Expand description
Security Prompt Injection Defense
Implements HookHandler for GenerateStart events to detect and block prompt injection attempts in user input.
Structs§
- Injection
Detector - Prompt injection detector
- Tool
Output Injection Scanner - Scans tool outputs for indirect prompt injection before they enter LLM context. Registered as a PostToolUse hook — logs warnings but does not block (to avoid false positives on legitimate code containing injection-like patterns).