r/Python • u/AutoModerator • 28d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
34
Upvotes
r/Python • u/AutoModerator • 28d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
View all comments
1
u/1337NET 7d ago
StegGuard: a zero-dependency CLI that finds hidden characters in prompts, LLM output and code
StegGuard scans text and files for content you can't see when you read them: zero-width characters, bidi overrides (the Trojan Source trick), homoglyphs, and whitespace or line-ending encodings. It also looks inside Office files, PDFs and images.
It has three commands. detect reports each finding with its position and exits 1 when it finds something, or 2 if a scan couldn't finish, so it works in CI. decode extracts the hidden payload as JSON and doesn't modify the file. sanitize writes a cleaned copy of .txt and .log files with a unified diff and SHA-256 hashes.
pip install stegguard
stegguard detect prompt.txt
The runtime uses only the standard library. It needs Python 3.12 to 3.14.
https://stegguard.com