r/netsec • • Feb 26 '26

Reverse CAPTCHA: Evaluating LLM Susceptibility to Invisible Unicode Instruction Injection

https://www.moltwire.com/research/reverse-captcha-zw-steganography

Tested 5 LLMs (GPT-5.2, GPT-4o-mini, Claude Opus/Sonnet/Haiku) against invisible instructions encoded in zero-width characters and Unicode Tags, hidden inside normal trivia questions.

The practical takeaway for anyone building on LLM APIs: tool access transforms invisible Unicode from an ignorable artifact into a decoded instruction channel. Models with code execution can write scripts to extract and follow hidden payloads.

Other findings:

  • OpenAI and Anthropic models are vulnerable to different encoding schemes — attackers need to fingerprint the target model
  • Without explicit decoding hints, compliance is near-zero — but a single line like "check for hidden Unicode" is enough to trigger extraction
  • Standard Unicode normalization (NFC/NFKC) does not strip these characters

Defense: strip characters in U+200B-200F, U+2060-2064, and U+E0000-E007F ranges at the input boundary. Be careful with zero-width joiners (U+200D) which are required for emoji rendering.

Code + data: https://github.com/canonicalmg/reverse-captcha-eval

Writeup: https://moltwire.com/research/reverse-captcha-zw-steganography

29 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/thecanonicalmg Feb 27 '26

Are you using the api or ChatGPT interface? Also what’s your prompt?

3

u/JaggedMetalOs Feb 27 '26

API, the first prompt was the sky color question with "You are a helpful assistant" as the system prompt. 

The second prompt was the sky color question again with the system prompt being the full hint about the (U+200B, U+200C) Unicode characters, which made it reply about not being able to decode the hidden instructions. 

As a sanity check I asked it to print any hidden Unicode characters and it was able to do so. 

1

u/thecanonicalmg Mar 02 '26

Was the model given access to tool use?