AU-09: The agent may write far beyond the project
Area: Permissions · Severity: high · Catalogue version 1.104.0
Why it matters
A directory such as the home directory or a system directory is writable for the commands of the agent, so a mistake or an injected command can change or delete files there.
Before (example)
Example: a command overwrites your shell configuration in the home directory.
How to fix it
Name in writable_roots only the folders a command has to write to, each one on its own and below a work directory of its own.
After (example)
Before:
[sandbox_workspace_write]
writable_roots = ["~"]
After:
[sandbox_workspace_write]
writable_roots = ["/var/tmp/agent-build"]Check it yourself
Open the settings file of your Codex project, read the folders the sandbox may write to and check that none of them is the root, the home directory or a system path.