Prompt Injection & Security Shield

A stdlib-only Python module (shield.py) implementing InjectionShield static inspection for jailbreak signatures, system-prompt extraction patterns, and command-injection payloads across input strings and RAG context windows, plus deterministic canary-token injection and verification (the f(n) model-output challenge). Classes ShieldConfig, InjectionShield, ScanReport, and a scan_cli() argparse entry point that reads files/stdin and emits a JSON report.

RMAzrim Updated

File contents

RMAzrim/opencode-artes/tree/main/docs/skills/prompt-injection-shield commit 0db65055ff

Frequently asked questions

npx skillmds@latest add rmazrim/prompt-injection-security-shield