Prompt Injection Bench
Description
Hand-authored indirect prompt-injection attack corpus + honest ASR/FPR benchmark of 4 defenses on a real tool-using Claude agent
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
prompt-injection-bench
A hand-authored indirect-prompt-injection attack corpus (33 attacks, 10 techniques) and an honestly benchmarked comparison of four defenses on a real tool-using `claude-sonnet-5` agent — attack success rate, false-positive rate, and cost/latency, all measured, not asserted.
**[Try the interactive demo →](https://eshanya1.github.io/prompt-injection-bench/)** — click through all 33 attacks and 20 benign documents across 6 defenses, see exactly what the agent saw and how it responded. Every result replays a real recorded API run; no live calls happen on the page.
Why this exists
My [pr-review-agent](https://github.com/Eshanya1/pr-review-agent) project has a small first-pass defense against exactly this kind of attack — a flat regex tripwire in `guardrails.py`, whose own docstring is honest about its limits:
"Heuristic, not foolproof... a tripwire that raises the bar and forces escalation, not a guarantee."
That line was never actually measured. This project measures it: a real attack corpus, `naive_regex` ported near-verbatim from that same file as the baseline being one-upped, three genuinely different alternative defenses, and an eval harness that reports attack success rate *and* false-positive rate side by side — because a defense that blocks everything trivially "wins" on attack success while being useless.
Architecture
flowchart LR
C[Attack + benign corpus\n33 malicious / 20 benign docs] --> A[Target agent\nclaude-sonnet-5, fetch_document + send_email tools]
A --> D{Defense}
D -->|no_defense| A
D -->|naive_regex| A
D -->|structural_spotlight| A
D -->|llm_classifier\nclaude-haiku-4-5| A
D -->|combined| A
A --> S[Deterministic hijack scorer\ncanary text + send_email call args]
S --> H[Eval harness\nASR / FPR / benign task success]
H --> R[docs/index.html demo\nCOMPARISON.md]
Results
| Defense | ASR (action) | ASR (text) | FPR (adversarial) | FPR (plain) | Benign task success | |---|---
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11