Skip to content

Keep text from strangers out of agent sessions #511

Open

Description

@JacobStephens2

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.
  • Sandbox Codex where bubblewrap can run.

Research: docs/research/security-agent-passes.md §7.1.

Activity

  1. added
    needs-triage
    on Oct 7, 2026
  2. JacobStephens2 commented on Oct 17, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    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.

  3. added
    bug
    on Oct 17, 2026
  4. added
    ready-for-human
    and removed
    needs-triage
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions