Skip to content

Security review only (do not merge): #590 role eval boundary - #594

Closed
lydakis wants to merge 3 commits into
security-review/590-basefrom
security-review/590
Closed

lydakis wants to merge 3 commits into
security-review/590-basefrom
security-review/590

Conversation

@lydakis

@lydakis lydakis commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Do not merge. This PR exists only to get Codex's automatic security review on #590's current design, which replaced the version reviewed when #590 opened. It's tracked in #531 and will be closed, with its branches deleted, once the findings are handled.

Please check whether a role-eval run can still change anything outside its root:

  • The eval permissions row: extends ask, network off, writable backups and origin.git.
  • determinable(): the only calls allowed out of the sandbox are plain ~/.agent/trigger and ~/.agent/memory calls.

The eval answered every ask with allow, and the sandbox asks exactly
before a write outside the run, so a fake HOME did not keep agents out of
the real one: an S1 backup landed in the owner's ~/Backups. The ACP
client and allow_waiting now deny a call that names a path in the real
home outside the run's root, and allow the rest as before (escalations
with no path, system paths, anything in the run). After each run, what
changed in the real home a few levels down (past hidden folders and
Library) goes to outside.txt and is said on stderr.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGCrVNEpqFFEqPCMbC2
A command's write targets can't be read from its words, so the check now
denies what could reach the real home rather than only literal paths in
it: a folder above it (cd /Users && mkdir me/x), a `..` that climbs out
of the run from its shallowest folder, a `~name`, and a call listed cut
(task asks whose arguments were bounded) or one Sonny offered only to deny.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGCrVNEpqFFEqPCMbC2
…scripts

Scanning a command's words can't stop a path built at run time (a Python
call reading the real home from the user database), so the path check was
a mitigation, not isolation. Runs now use an `eval` permissions row: the
sandbox writes the agents' folders plus the run's backups and origin, the
network (and with it every Unix socket) is off, and every call that would
leave the sandbox comes to the eval, which allows only one plain call of
~/.agent/trigger or ~/.agent/memory (no operators, expansions or line
breaks) and denies the rest, logging each answer. outside.txt stays as the
after-run check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGCrVNEpqFFEqPCMbC2
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T07:29:38.524945Z e5e9612 PR opened
🔒 Security Review ✅ Completed 2026-11-01T07:31:52.309210Z e5e9612 PR opened

Security findings

Finding details are still loading. Check the individual review comments.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5e9612be3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bench/role_eval.py Resolved
Comment thread bench/role_eval.py Resolved
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