Defender is an OSS library to detect and neutralize prompt injection in tool outputs; verified 97★ and bundles a ~22MB ONNX model.
Defender — Prompt Injection Guardrails for Agents
Defender is an OSS library to detect and neutralize prompt injection in tool outputs; verified 97★ and bundles a ~22MB ONNX model.
Ready-to-run agent install
This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.
npx -y tokrepo@latest install 21666b2c-58cb-50da-b8ac-5a3b476463b1 --target codexRun after dry-run confirms the install plan.
Discussion
Related Assets
Anamorpher — Image-Scaling Prompt Injection Lab
trailofbits/anamorpher crafts image-scaling attacks for multimodal prompt injection; verified 1,049★ with a uv backend and browser frontend workflow.
SafeLLMPlayground — Prompt Injection Text-Adventure
Prompt-security mini game: learn prompt injection, jailbreaks, and defenses via a text-adventure demo. Verified 240★; pushed 2026-05-11.
Spikee — Prompt Injection Eval Kit (CLI)
ReversecLabs/spikee is a modular CLI for prompt injection/jailbreak evals; verified 184★ and documents `spikee generate` → `spikee test`.
Prompt Hardener — Prompt-Injection Risk Analyzer
Prompt Hardener analyzes prompt-injection risk from `agent_spec.yaml`, exports reports, and can simulate adversarial attacks with API keys.