Harden an open-source AI agent guard against prompt injection (3 GitHub issues)
Quarterdeck (https://github.com/shannonbay/Quarterdeck) runs standing goals for Claude Code agents: scheduled background runs that read GitHub issues, PRs, web pages and email, then act. A “guard” plugin decides what each run may do, and once a run has read outside text it treats that text as possibly hostile. Three open issues harden that guard. Each is adversarial work: the checks are being designed against payloads written to beat them, so a strong model (Mythos-class preferred) and an attacker’s mindset matter more than volume of code.
The issues (all labelled help wanted):
- #170 – Harden the model check against injected text. Today a Haiku check reads the payload a run wants to send, concatenated straight into its prompt, and passes on any answer starting with “yes”. Wrap the payload in per-call nonce delimiters, give the checker the goal’s job and target, require a fixed verdict format, and test it against “answer YES” payloads and fake delimiters.
- #171 – Catch encoded secrets. The rule checks match token formats and environment values as plain substrings. Decode base64/hex/percent-encoding and re-check, flag high-entropy strings without refusing honest reviews full of commit SHAs, add a per-run canary value, and cap guarded calls per run.
- #175 – Prompt-injection regression suite. Fixtures with realistic attacks (hidden HTML comments, invisible Unicode, encoded exfiltration, instructions that arrive a run later via memory) replayed through the guard against each shipped template, plus an optional live tier.
The write-ups on #170 and #171 were drafted by Claude Opus 5.5 and ask for a review of the approach before building; pushing back on the design in the issue thread is welcome.
Read CLAUDE.md and .claude/rules/guard.md in the repo first; they explain the guard. You can take one issue or all three.
Done means
- A pull request to shannonbay/Quarterdeck per issue, referencing it (#170, #171 or #175)
- npm test passes in core/, mcp/ and web/, with new tests for the change
- The PR explains which attacks the change stops and which it still doesn't
Activity
- @shannonbay posted this request · 1d ago