Injectguard releases offline prompt injection scanner
Understand this story
Engineer engineer948 releases Injectguard, an offline prompt injection detection and sanitization tool written in Rust that scans web pages, emails, issues, files, and tool outputs before untrusted text enters the model. It offers a library, a CLI, and agent hooks, and can be integrated with Claude Code hooks. The tool requires no model, network, or API key, and its detection uses heuristic rules. The developer says it should be treated as an early-warning line rather than the only line of defense: treat untrusted text as data, give agents least privilege, and require human confirmation for high-risk operations.
AI overview based on source reports · Updated 34 min ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AIShow 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.
Activity for this story
Not enough continuous observations to show a trend yet.