Claude Code agent policies lab
Demo lab from my talk at The Hack Summit 2026, “Autonomiczny agent w testach penetracyjnych: polityki w Claude Code” (Autonomous agent in penetration testing: policies in Claude Code). It shows how different Claude Code permission settings change what the agent actually does.
- A small Flask app with deliberately inserted vulnerabilities as the target
- Two permission policies: read-only, and one that also allows editing and running tests
PreToolUsehooks that log tool calls and block them- A document with a prompt injection hidden in an HTML comment
The app is vulnerable on purpose and the lab contains no real credentials. Run it locally. MIT licensed.