Skip to content
AI Incident Database·Indexed by this site · Originally published· Event →SelectedAttention37

Researchers find Claude Code uses steganography to mark requests in system prompts

Claude Code Is Steganographically Marking Requests

AI summary

After examining a local Claude Code 2.1.196 installation, researchers found that its binary contains a function that modifies the date string inserted into the system prompt, embedding markers in requests through subtle changes in apostrophes and date separators. The trigger condition is when ANTHROPIC_BASE_URL is overridden, after which it checks whether the system timezone is Asia/Shanghai or Asia/Urumqi, whether the API hostname matches a decoded list of domains, and whether the hostname contains specific AI lab keywords; the domain and keyword lists are stored in base64 and XOR-decoded with key 91, and the domain list includes Chinese corporate domains, AI company domains, and many proxy, reseller, and gateway domains. The author believes this mechanism may be used to identify API resellers, unauthorized gateways, and model distillation pipelines, but implementing it in a hidden way is inappropriate, and it can be bypassed by changing the hostname, changing the timezone, or patching; in practice, it mainly affects normal developers using a custom base URL.

Why it was selected

The author reverse-engineered the Claude Code binary, showing how it uses invisible Unicode punctuation to hide gateway classification information in the system prompt, which can help developers understand client trust boundaries.

Read originalthereallo.dev