Show HN: Injectguard – offline prompt-injection scanner for text AI agents read
Show HN: Injectguard – offline prompt-injection scanner for text AI agents read
Injectguard is an offline, deterministic Rust library, CLI and agent hook that scans untrusted text (web pages, emails, files, tool output) for prompt-injection attempts before it reaches a model, using 65+ rules across 10 languages plus normalization and decoding passes to see through obfuscation. It also provides a sanitizer that escapes invisible and control characters and labels text as untrusted data, and a Claude Code hook mode that warns the model on high-severity findings. The author describes detection as heuristic, noting it misses clever paraphrases and sometimes flags benign text, and recommends using it as a tripwire alongside least privilege and human confirmation for risky actions.
Source: Hacker News AI · github.com