Skip to content

Extra security for avoiding agent to read/write outside allowed paths - #486

Open
lewcpe wants to merge 3 commits into
andrewyng:mainfrom
lewcpe:feature/shell-path-validation
Open

Extra security for avoiding agent to read/write outside allowed paths#486
lewcpe wants to merge 3 commits into
andrewyng:mainfrom
lewcpe:feature/shell-path-validation

Conversation

@lewcpe

@lewcpe lewcpe commented Aug 10, 2026

Copy link
Copy Markdown

I found that some LLMs tend to find workarounds to read or write files outside their designated paths. While static blocking in permissions.py can't offer an absolute security guarantee, adding extra detection along with a system prompt instructing the agent not to bypass limits works well enough.

Comment thread coworker/permissions.py

@aniketshukla1 aniketshukla1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking security issue documented inline: shell parameter expansion still bypasses the new workspace-root enforcement in AUTO mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants