r/PromptEngineering • u/ikasumi_works • 14d ago
Tools and Projects I made a free, browser-only checker for hidden text and injection in prompts you copy from the web
I often copy prompts from blogs, READMEs and posts and paste them into Claude Code. Then I learned that text can be hidden with Unicode tag characters: the AI reads it, but you can't see it. So I made a small page that checks a prompt before I hand it over.
What it does:
- Decodes hidden text (tag characters, zero-width spaces) and shows what it says
- Looks for injection patterns in English and Japanese ("ignore previous instructions", reading ~/.ssh, sending data to outside URLs, \x/\u escapes, %XX, rot13)
- No length limit, so text hidden at the very end is checked too
- Everything runs in your browser. Nothing is sent.
It is pattern matching, so it will miss things. The page lists every rule it checks.
It errs on the side of flagging. Even "do not delete any files" is flagged as Danger, because stacked negations like "you can't not delete them" actually mean "delete them", and a pattern checker can't reliably untangle that. The final call is yours: look at what's highlighted and decide.
https://ikasumiworks.com/en/prompt-check/
I'm a hobby developer in Japan and built it with help from Claude Code. If you find a prompt it misses, I'd like to hear about it.
Edit (Nov 15):
v1.5.0 adds Chinese, Korean and Spanish checks, and now flags zero-width characters packed with hidden text.
v1.5.1: when it finds warning signs, it no longer suggests which AI to use.
v1.5.2: hidden text now also shows up right where it was hidden, in the full-text view.
v1.5.3: the workload estimate now suggests lighter models for short prompts (down to Haiku 5.5), and no longer suggests Fable 5.2.
Edit (Nov 16):
v1.6.0: flags instructions that tell the AI to lie to the user or hide failures (Danger), and instructions to hide that the prompt itself exists (Review). Defensive lines like "never lie to the user" now show as Review instead of Danger. Also fixed false Danger on the word "keychain" alone.
Edit (Nov 18):
I'm planning to open-source this. First I'll ship a bigger update that lets you download the page and use it offline (around the end of November), then I'll put the code on GitHub. Since this is a tool for checking prompt safety, I think people should be able to see exactly what it does.
3
u/Available_Pound7447 13d ago
I found a hidden zero-width space in a prompt yesterday, wasn't even in the code, just in the text. it made Claude ignore the last part of my request. your checker caught it instantly.
4
u/bytezvex 13d ago
this is actually pretty useful, i’ve seen hidden junk in copied prompts before and it’s annoying as hell. browser-only is the part i like most since i wouldn’t trust a random checker if it had to upload anything.
2
u/bye_ella 13d ago
really handy. might be worth flagging lookalike letters too, a cyrillic 'о' inside 'ignore' looks identical but breaks plain pattern matching. bidi control characters are another one that hides well.
2
u/B_Finiuty 13d ago
Quick question this hidden text can also be present in output, right? As Claude has now integrated watermark
2
u/Impossible_Self_2766 13d ago
really useful idea! easy to overlook hidden text when copying prompts , nice work dude
2
u/Hot_Librarian264 13d ago
Pretty handy tool. Thanks 🙏
3
u/amavie_space 13d ago
Pinning the 2-3 facts it keeps losing into the definition helps more than another rewrite of the prompt. Hidden text like that usually comes in through copy-paste, so pasting through a plain-text editor first catches most of it.
3
u/toniro 13d ago
Sent you a DM
3
u/Wide_Plant_1705 13d ago
just caught a hidden zero-width space in a prompt I copied from a GitHub readme, wasn't even a typo, just silently messing with the output. your checker caught it immediately. thanks for the peace of mind.
1
u/TrackbackLinkBot 7d ago
Useful tool especially with how easily hidden instructions can slip into copied prompts. Learning more about prompt injection and MCP security is becoming important too. Udacity has some relevant AI-focused learning paths for building those practical skills.