Step-by-step answer
Core 60–90 min7 stepsRed-team and harden a pack-reading agent in Claude Code
A read-only pack-reader subagent, project permission rules that allow reading pack/ and writing drafts/ and deny the network, client files and shell, and a PreToolUse hook that refuses and logs any write outside drafts/, run headless through claude -p against a synthetic pack with three planted injections. Two are blocked by design; the third, an integrity attack, is caught only by quoting the TA6.
Back to the exercise