Prompt Injection Benchmark — Development skill for Claude Code
A reproducible prompt-injection benchmark that measures which defenses actually work: each payload is replayed against every defense, the report separates whether the agent COMPLIED from whether the d.
How to install Prompt Injection Benchmark
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jkelly-dev1/prompt-injection-benchmark and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Prompt Injection Benchmark does
A reproducible prompt-injection benchmark that measures which defenses actually work: each payload is replayed against every defense, the report separates whether the agent COMPLIED from whether the damage was CONTAINED, failure rates carry bootstrap confidence intervals over a measured noise floor, and the defenses that do not work get published.
Alternatives in Development
- Jupyter Notebook — Create clean, reproducible Jupyter notebooks for experiments and tutorials 14.6k ★
- Oob — Out-of-band orchestrator — confirm BLIND SSRF/XXE/SQLi/RCE/Log4Shell by correlating interactsh callbacks to th 4.5k ★
- Academic Pptx Skill — A Claude Skill for creating academic presentations (conference talks, seminar slides, thesis defenses, grant b 811 ★
README
prompt-injection-benchmark
[](https://github.com/jkelly-dev1/prompt-injection-benchmark/actions/workflows/ci.yml)
A reproducible attack and defense measurement suite, built as a **personal learning project**, that measures which prompt-injection defenses actually work and publishes the ones that do not. Fifty two synthetic payloads across five delivery channels and nine attack classes are run against thirteen independently toggleable defense configurations, three times each, and every rate is reported with a bootstrap confidence interval next to the noise floor it has to clear.
The headline offline result is a defense that fails. Against the deterministic mock agent the entire prompt-level family, delimiter fencing and instruction hierarchy and provenance tagging, produces an improvement that sits **inside its own variance** and is reported as NOT SHOWN. The controls with a demonstrated effect there are the structural ones and the output-level guard, and all of them work the same way: by making it not matter that the agent was fooled rather than by preventing it.
**Two full sweeps against real models then reordered that table, and the disagreement is the most useful thing in this repository.** Against `gpt-5.6-terra` the prompt-level family produced the LARGEST measured reductions and cleared its noise floor, which is the opposite of the offline verdict. Against `claude-opus-5` nothing cleared the floor at all, because that model complied 27 times in 2,028 trials and there was almost nothing left to reduce. Same corpus, same defenses, same code, three different answers. See [Real model results](#real-model-results); the reason a mock cannot stand in for a model is limit 1.
The rule this repo follows: no claim without a test. The table below maps each claim in this README to the test that enforces it.
The problem it addresses
Injection write-ups report a blo
Related Skills
Prompt Injection Bench
Hand-authored indirect prompt-injection attack corpus + honest ASR/FPR benchmark of 4 defenses on a real tool-
MCP Trentina
Secure MCP server for quarantined web content extraction — two-layer defense against prompt injection
Benchmark Rerankers
Measure whether adding a reranker actually improves retrieval, by scoring reranked vs. un-reranked results on
Narthex
Prompt-injection defenses for Claude Code. A PreToolUse Bash hook blocks compositional credential-exfiltration
Claudemd Deep Dive
Research into how Claude Code loads subdirectory CLAUDE.md files — what triggers injection, where content land
Prompt Authgate
Claude Code prompt injection defense via source authentication tokens. UserPromptSubmit hookでユーザー入力にのみ認証トークンを付
Related Agents
Security Architecture
Boucle implements a defense-in-depth security model to protect against prompt injection attacks and maintain t
AI Ethics Reviewer
AI / ML ethics + responsible-AI specialist — bias, fairness, model selection, dataset provenance, automated-de
Perf Profiler
Agent-agnostic performance profiler. Measures web, API, bundle, and database performance using reproducible ev