Skip to main content

Module injection_scan

Module injection_scan 

Source
Expand description

Prompt-injection heuristics shared across boundaries: memory writes, agent-created skills, and ClawHub skill installs all funnel untrusted text through scan_for_injection before it can reach a prompt.

Functionsยง

scan_for_injection
Scan memory content for prompt injection patterns. Returns an error reason if injection is detected, or Ok(()) if clean.