Prompt Injection Defense

Use this skill when designing, reviewing, or hardening an LLM application or agent against prompt injection (OWASP LLM01:2025) — direct and indirect injection, tool-output and RAG-borne payloads, memory poisoning, and exfiltration through tool calls or rendered markdown. Covers trust boundary enumeration, context isolation and spotlighting, system prompt hardening, input screening, tool-boundary gating, output validation with canary tokens, adversarial test suites, and runtime monitoring. Produces an enforceable defense matrix and stdlib screening scripts, not prompt-only advice.

JPeetz Updated 16 repo stars

File contents

JPeetz/agent-skills commit a22b2479b2

Frequently asked questions

npx get-skill add jpeetz/prompt-injection-defense