Repository navigation
Description
Observed in .claude/plugins/data/plugin-quality-melodic-software/evidence/c7ff503b-19e2-40d2-b99e-38c747f7fc0f/discovery-research/20260919T205610Z/audit-notes.md, finding 1 (auditor severity: HIGH).
agents/researcher.md:6 declares disallowedTools: "NotebookEdit, EnterWorktree, ExitWorktree" and says the pool is inherited, not enumerated. That pool is scoped only against write misuse, with no read boundary, while the definition's own Bash guidance (gh api, curl, local extractors) motivates capability probing. The packet's Anomalies section records a researcher running git credential fill and capturing a live GitHub OAuth token into its transcript; the token was revoked and re-issued.
Frontmatter cannot close this. Per https://code.claude.com/docs/en/sub-agents.md (rung-1 curl, fetched 2026-09-19, 115,522 bytes, line 463): "A disallowedTools entry with a specifier, such as Bash(git push *), still removes the whole tool from the subagent, not only the matching commands." The same line names the remedy: "To keep Bash and block specific commands, add a Bash deny rule such as Bash(git push *) to permissions.deny in your settings. The rule applies to the main conversation and to subagents."
No existing layer catches it. The host's permissions.deny holds 330 rules, none matching git credential, gh auth token, .git-credentials or .netrc; the credential-shaped rules are all Read(...) denies, which a shell cat bypasses. The guardrails secret detector is registered only on file-tool and GitHub-MCP matchers, not Bash|PowerShell. The sibling skill carries the right posture at skills/explore/SKILL.md:162 ("don't read secrets, just verify presence"); grep -rni "credential|secret" over agents/researcher.md and skills/research/** returns zero hits.
Blast radius: the researcher ingests untrusted pages with a prose-only untrusted-content posture, and the same pool holds curl, so a page that steers the worker has both a credential read and an egress channel.
Cheapest fix: hoist one sentence into reference/parent-contract.md, which already holds statements shared across explorer, researcher and intent-tracer. Phase 1's "take stock of what is actually connected THIS session" motivates the capability probe. Fuller, user-side: permissions.deny rules for Bash(git credential *), Bash(gh auth token*), Bash(cat *.git-credentials*) plus the PowerShell(...) twin of each, since background subagents keep PowerShell (sub-agents.md line 421). Deterministic rung: register secret-pattern-detection.sh on a Bash|PowerShell PreToolUse matcher in guardrails.
Verification: not reproduced, since running the probe prints a live token. Check instead that the read posture appears once in parent-contract.md, with all three agent definitions pointing at it.
🤖 Generated with Claude Code
Activity
fix(discovery): name explore sibling verifier, prompt, and verificati…
fix(discovery): credential read boundary reaches gap workers and the …
kyle-sexton commentedon Sep 29, 2026
Not reopening: the rung 1 instruction and the parent-contract read boundary shipped. This comes from the 2026-09-29 audit of the Cursor agent run. Rung 3 (a hook on the Bash pool) had no tracker; it is now tracked in #5305.
fix(discovery): close the audit findings in research, agents and the …
feat(guardrails): block credential-reading commands on Bash and Power…