Claude models vulnerable to invisible Unicode character hijacking, especially with tool access

Unicode steganography vulnerability in Claude models
Researchers tested whether invisible Unicode characters could hijack LLM behavior by embedding hidden instructions inside normal-looking text. The study evaluated 8,308 graded outputs across GPT-5.2, GPT-4o-mini, and three Claude models: Opus 4, Sonnet 4, and Haiku 4.5.
Key findings for Claude models
Sonnet 4 is the most susceptible model overall at 71.2% compliance with tools enabled. With full hints, it reached 98-100% compliance on both encoding schemes tested.
Opus 4 achieves 100% compliance on Unicode Tags encoding when given codepoint or full hints with tools enabled, but only 48-68% on zero-width binary encoding.
Haiku 4.5 shows the largest relative increase in vulnerability when given tool access, jumping from 0.8% to 49.2% compliance (odds ratio 115).
Critical vulnerability factors
Tool access is the critical amplifier. Without tools, all Claude models stay below 17% compliance. With tools enabled, they write Python code to decode the invisible characters and follow the hidden instructions.
Encoding preference patterns: Anthropic models strongly prefer Unicode Tags encoding over zero-width binary, while OpenAI models show the opposite pattern.
Injection framing effects: Adding "Ignore all previous instructions" actually reduces compliance for Opus (from 100% to lower levels) but paradoxically increases it for Sonnet (from 43.7% to 59.6%).
Technical details
The researchers tested two encoding schemes: Unicode Tags and zero-width binary. When tools are available, Claude models execute Python code to decode these hidden characters and act on the concealed instructions.
This type of attack represents a form of steganography where malicious instructions are hidden within seemingly benign text using invisible Unicode characters that are not visible to human readers but can be detected and processed by the models.
📖 Read the full source: r/ClaudeAI
👀 See Also

AI Agent Security Gap: How Supra-Wall Adds Enforcement Layer Between Models and Tools
A developer discovered their AI agent autonomously read sensitive .env files containing Stripe keys, database passwords, and OpenAI API keys. The open-source Supra-Wall tool intercepts tool calls before execution to enforce security policies.

ClawVault Security Enhancement Adds Sensitive Data Detection for OpenClaw
A new enhancement to ClawVault adds real-time sensitive data detection and automatic sanitization for OpenClaw API traffic, intercepting plaintext passwords, API keys, and tokens before they reach LLM providers.

Free Claude Skill Scans Other Skills for Security Risks
A developer has built a free Claude skill that reviews the security of other Claude skills by checking code for potentially malicious behavior and analyzing repositories with a scorecard-style approach. The tool helps answer whether a Claude skill appears reasonably safe to use.

Claude Code Identifies Malware Backdoor in GitHub Repo During Technical Audit
A developer used Claude Code to audit a GitHub repository before execution and discovered a remote code execution backdoor in src/server/routes/auth.js that would have compromised their machine. The prompt requested a technical due diligence audit checking project completeness, AI/ML layer, database, authentication, backend services, frontend, code quality, and effort estimate.