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

Anthropic will remove hidden code in Claude Code used to identify Chinese competitors

Anthropic is removing its covert code for catching Chinese competitors

AI summary

Anthropic says it will remove hidden code added to Claude Code months ago, which was used to identify AI companies attempting to steal its models. Claude Code team engineer Thariq Shihipar said the fix will be released with the Claude Code version on July 1, and the related pull request has been merged. According to developer Thereallo's description, this code writes steganographic information into the Claude Code system context sent to Anthropic's servers, first checking whether the base URL environment variable is overridden, then checking the system timezone and whether the hostname matches a list of known Chinese AI labs, other AI companies, account resellers, and gateway domains, and uses invisible Unicode markers to rewrite the system prompt, hiding the domain list with XOR and base64. Shihipar said this was an experiment started in March to prevent account abuse by unauthorized resellers and to guard against knowledge distillation, and the team has since deployed stronger mitigations.

Why it was selected

The hidden tracking code in Anthropic's Claude Code was reverse-engineered and disclosed by developers, revealing the tension between vendor anti-distillation measures and developer trust.

Read originaltheregister.com