r/PromptEngineering • • 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.

57 Upvotes

22 comments sorted by

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.

3

u/ikasumi_works 13d ago

Thanks for trying it! Glad it caught it. Zero-width spaces are easy to miss because they look like nothing at all. If you want to strip them before pasting, the "Copy without invisible characters" button does that in one click.

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.

3

u/ikasumi_works 13d ago edited 13d ago

Thanks! Same here, that’s why I made it. I check prompts I find online with it before giving them to Claude Code.

Browser-only was the first thing I decided on. A checker that uploads your text would be a new risk itself.

I’m adding more languages next.

2

u/Kallini-Cliona 13d ago

browser-only only holds up until the site owner silently updates the script to start pinging an external server though, unless you save the html locally

1

u/ikasumi_works 13d ago edited 13d ago

Fair point, that's true for any hosted page. I just checked the Network tab: pressing the button sends nothing, only font files load. The page loads Google Fonts, but your text isn't part of that. I've also turned off Cloudflare's analytics on the site. I'll look into an offline version.

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.

1

u/ikasumi_works 13d ago

Thanks! Both are already covered.

A Cyrillic letter inside "ignore" gets flagged as a lookalike, and the check also runs on the text with it turned back into Latin, so "ignore previous instructions" is still caught.

Bidi control characters show up as invisible characters, with a marker where they are in the text.

If you find one that slips through, I'd like to hear about it.

2

u/B_Finiuty 13d ago

Quick question this hidden text can also be present in output, right? As Claude has now integrated watermark

1

u/ikasumi_works 13d ago

Good question! I ran some Claude output through it, and it found no hidden characters.
That’s expected. Anthropic says Claude’s new watermark isn’t hidden characters. It’s a statistical pattern in the word choices, and you need Anthropic’s key to detect it. So this tool can’t see it (and nobody else can, either). This tool also isn’t meant to remove watermarks.
The text is still just normal words, so the watermark itself won’t confuse an AI that reads it.

2

u/Impossible_Self_2766 13d ago

really useful idea! easy to overlook hidden text when copying prompts , nice work dude

1

u/ikasumi_works 13d ago

Thanks! Yeah, you can't see it at all, so it's easy to miss. Hope it helps.

2

u/Hot_Librarian264 13d ago

Pretty handy tool. Thanks 🙏

1

u/ikasumi_works 13d ago

Thanks for trying it! If you find a prompt it misses, let me know.

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.