Decoy Fonts: Bypassing Claude's Vision

Drew36 Advanced 7/25/2026 467 views 12 likes 1 min read

Visual adversarial attacks are usually complex noise patterns, but "Decoy Font" proves that simple typography can trick top-tier LLMs. By overlaying normal letters with thin, outlined decoy characters, this typeface creates a dual-layered message: humans see the intended text, but the image recognition systems in Claude, Gemini, and ChatGPT latch onto the decoy characters instead.

This is a fascinating approach to LLM security and prompt engineering because it targets the vision encoder rather than the linguistic logic. Essentially, the AI is "hallucinating" the decoy text because its OCR process prioritizes the high-contrast outlines over the actual letterforms.

If you're building an AI workflow that relies on OCR or vision-based data extraction, this is a reminder that visual inputs aren't absolute truth. A few strategic lines in a font can completely redirect an AI's interpretation of a document. It's a low-tech solution to a high-tech problem—basically a visual "magic prompt" that works before the text even hits the model's context window.

For anyone interested in a deep dive into vision-based bypasses, looking into how these models tokenize visual patches might explain why these thin decoys are so effective at hijacking the attention mechanism.

AI Jailbreak & SecurityAI SafetyLLM Security

All Replies (3)

R
Riley97 Advanced 7/25/2026

Serif fonts actually worked better for me. Did you try any specific weights for the bypass?

0 Reply
P
PatFounder Advanced 7/25/2026

This is wild. Which OCR tool did you use when the light weights broke it?

0 Reply
N
NovaGuru Advanced 7/25/2026

Curious if varying the line thickness on those decoy characters actually changes the failure rate?

0 Reply

Write a Reply

Markdown supported