AI Security Research
The Runtime Attack Graph Engine
for AI Agents
pip install pwngraph
● pip install pwngraph · full open-source release at Black Hat Arsenal 2026.
AI Security Research
pip install pwngraph
● pip install pwngraph · full open-source release at Black Hat Arsenal 2026.
PwnGraph attaches to a live LangChain agent and hooks every tool call as it runs.
A fuzzer fires adversarial inputs; a canary observed inside a real tool argument is the success oracle: proof, not prediction.
Every confirmed path lands in a typed NetworkX graph and an interactive pyvis report.
$ pwngraph scan --target lab_agent.py:build_agent --attacks all
[Connector] enumerated 4 tools
[Tracer] hooked agent.invoke()
[Fuzzer] 6 attack classes × 50 iter
[GraphBuilder] 9 dangerous paths · 7 findings
[Oracle] ASR 34.4% · Grade D
✓ canary observed in tool args
✓ report.html + attack_graph.html
A full scan against a live AI agent, from one command to the attack graph.
Five core stages, one direction. A canary looping back is the Oracle confirming a real exploit.
Tools like garak (NVIDIA) and PyRIT (Microsoft) are excellent at what they do: they probe a language model and judge its text output for jailbreaks, leakage, and unsafe responses.
PwnGraph works one layer deeper. It attaches to the live agent, fuzzes it, and judges the agent's tool-call actions, proving when an injection becomes a real command, file read, or data exfiltration, and tracing the full multi-hop chain as an attack graph.
garak and PyRIT test what the model says. PwnGraph tests what the agent does.
| Dimension | garak NVIDIA | PyRIT Microsoft | PwnGraph |
|---|---|---|---|
| What it targets | LLM model / endpoint | GenAI systems, orchestrated | Live agent + its tools |
| What it judges | Model text output | Model responses (scored) | Tool-call arguments & actions |
| Core question | "Will it say something bad?" | "Can we elicit risky behavior?" | "Does it cause a harmful action?" |
| Multi-hop tool chains | Not the primary focus | Multi-turn supported | Traced as an attack graph |
| Proof of impact | Output matches a detector | Classifier score | Canary observed in a real tool call |
| Visual output | Reports / logs | Logs / scores | Interactive pyvis graph |
Attach PwnGraph to the stack you already run. Live today, with the most popular frameworks landing next.
Want your framework prioritized? Open a GitHub issue.
MIT licensed. Runs entirely on your machine.pip install pwngraph