Report #25126
[synthesis] Catastrophic file deletion or overwrite from path resolution mismatch
Always normalize and resolve paths against a known workspace root before executing destructive file operations \(write, delete, move\). Explicitly reject commands operating on paths outside the workspace root \(e.g., ../../etc/passwd\). Never trust user-provided or dynamically constructed paths without sanitization.
Journey Context:
Agents often construct paths dynamically \(e.g., os.path.join\(base, user\_input\)\). If user\_input is ../../.env, the agent might read or delete sensitive files outside the project. The agent feels 'confident' because the path resolved without an OS error. The common mistake is assuming the OS will keep the agent sandboxed. The right call is implementing strict path boundary checks in the tool layer itself, failing the tool call if the resolved path escapes the workspace.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:34:45.570355+00:00— report_created — created