You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep text from strangers out of agent sessions #511
Split out of #427 (security work), where it was agreed to fix this separately.
Problem
On a public repository, anyone can open an issue or comment on one, and thirdshift's sessions read that text:
docs/agents/issue-tracker.md tells sessions to read issues with gh issue view --comments.
An Architecture review reads every open issue's title and body.
Those sessions act with the machine's permissions. Codex runs unsandboxed (ADR 0012) and Claude Code runs in auto mode, both with a gh token that has repo scope. Text in an issue or comment can carry instructions (prompt injection). In one benchmark, 66.5% of malicious issues got past every guardrail in Cursor, Claude Code and Codex Desktop (IssueTrojanBench, preprint).
Stopgap in place
Interaction limits (collaborators only, for six months) on thirdshift, cascade, keeplore, muxboard and vaulted-agent. They expire, so this issue is for the lasting fix.
Directions to weigh
Read only text collaborators wrote: filter comments, and the issues an Architecture review reads, by authorAssociation (OWNER, MEMBER, COLLABORATOR).
Narrow what a session can reach: a fine-grained token scoped to the one repository, and a dedicated machine with no production access.
Keep a repository's own Claude Code settings out: load only the user's settings, so a repository can't add hooks or MCP servers to a session.
Keep this umbrella open while the narrower trust work proceeds: #667 establishes the Trusted-account rule, #668 handles later untrusted edits, and #669 filters comments. Those Tickets do not by themselves resolve every direction in this issue.
The current source still loads repository Claude settings and runs ordinary Codex sessions unsandboxed. #398 retains the detailed optional Codex-sandbox requirement, and #691 addresses a separate publishing-isolation boundary; neither should close merely because it is related to this umbrella.
Next decision: choose which remaining controls are part of the lasting fix, particularly repository settings/hooks/MCP and credential/host scope, then publish independently scoped work for them. Do not mark this as a ready Spec until its complete Ticket graph exists.
Activity
JacobStephens2 commentedon Oct 17, 2026
Triage Notes
Keep this umbrella open while the narrower trust work proceeds: #667 establishes the Trusted-account rule, #668 handles later untrusted edits, and #669 filters comments. Those Tickets do not by themselves resolve every direction in this issue.
The current source still loads repository Claude settings and runs ordinary Codex sessions unsandboxed. #398 retains the detailed optional Codex-sandbox requirement, and #691 addresses a separate publishing-isolation boundary; neither should close merely because it is related to this umbrella.
Next decision: choose which remaining controls are part of the lasting fix, particularly repository settings/hooks/MCP and credential/host scope, then publish independently scoped work for them. Do not mark this as a ready Spec until its complete Ticket graph exists.