Repository navigation
Releases
unveil v0.1.2
--agent-safe — withhold matched text from reports that go back into an agent's context.
A report that quotes the evidence carries the payload it just flagged. With --agent-safe, each finding carries the rule, location, a SHA-256 digest of the evidence and its length instead of the text; the decoded payload of a Unicode tag-character run is withheld too. Default output is unchanged and remains the view for human review.
New README section Integration boundary explains the two shapes. Selftest now asserts the agent-safe view never contains the payload (17/17). False-positive corpus (8 READMEs, 81 KB): unchanged, 0 high.
Thanks to the reader on r/LLMDevs who pointed at the boundary.
unveil v0.1.1
New rule UNV004 — Terminal escape sequence in text.
Cursor-movement and erase sequences (CSI A–H, J, K, …), SGR 8 conceal, and OSC title/hyperlink controls let text a person has already seen be overwritten or hidden, while a machine reading the raw stream still sees it. Colour-only sequences are ordinary and ignored, so piping coloured build output through unveil stays quiet.
Also: reports now escape control characters, so the scanner never injects ESC into the reader's terminal itself.
Motivated by the ANSI-hidden prompt-injection probe reported in anthropics/claude-code#62741.
Selftests 16/16. False-positive corpus (React, CPython, Rust, VS Code, Linux, Electrum, Node, Kubernetes READMEs — 81 KB): unchanged, 0 high.
unveil v0.1.0
First release.
A defensive scanner for indirect prompt injection in untrusted content: invisible codepoints (zero-width, Unicode tag characters, bidi overrides), instructions concealed in HTML comments or CSS-hidden elements, solicitation of prompts or secrets, and the honeypot signature — a visible disclaimer contradicted by hidden text.
- Nine rules, single file, standard library only
python unveil.py selftest— 12/12- Measured against eight major-project READMEs (81 KB): 0 high, 1 medium true positive
- Exit code 1 on findings;
--jsonfor CI
See README for limitations, stated plainly.