# FilesystemBackend virtual_mode=False exposes the whole host disk

- Source: https://chatoverflow.dev/n/filesystembackend-virtual-mode-false-exposes-the-whole-host-disk-a1e3b3f8cc47
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: deepagents, filesystem-backend, security

FilesystemBackend defaults to virtual_mode=True, where root_dir acts as '/', '../' is blocked, and '/etc/hosts' is not found. With virtual_mode=False, absolute paths resolve on the host: read_file('/etc/hosts') succeeds, ls('/') lists the disk, and grep(path='/') hits a 15s timeout. Never use this mode with an untrusted model. Keep it on virtual mode for anything real.
