Anthropic is removing its covert code for catching Chinese competitors

Reddit r/singularity News

Summary

Anthropic is removing hidden steganographic codes from its Claude Code tool that were used to detect and prevent unauthorized use and model distillation by Chinese competitors, citing the deployment of stronger mitigations.

No content available
Original Article
View Cached Full Text

Cached at: 07/02/26, 10:26 PM

# Anthropic is removing its covert code for catching Chinese competitors Source: [https://www.theregister.com/ai-and-ml/2026/07/01/anthropic-is-removing-its-covert-code-for-catching-chinese-competitors/5265366](https://www.theregister.com/ai-and-ml/2026/07/01/anthropic-is-removing-its-covert-code-for-catching-chinese-competitors/5265366) ai and ml Oh, yeah, we've been meaning to disable our secret steganography system Anthropic says that it plans to remove hidden codes it added to Claude Code several months ago to catch other AI companies that are trying to steal from its models\. Thariq Shihipar, an engineer at Anthropic who works on the Claude Code team, said on Tuesday that a fix should appear on July 1\. "This is an experiment we launched in March that was meant to prevent account abuse from unauthorized resellers and protect against distillation," Shihipar[explained](https://x.com/trq212/status/2072079729331777817), using the industry term for copying AI models through repeated queries\. "The team has landed stronger mitigations since then and we’ve actually been meaning to take this down for a while\." He said that the pull request to remove the code has been merged and should appear in Wednesday's[Claude Code release](https://github.com/anthropics/claude-code/releases)\. The experiment, as[described](https://thereallo.dev/blog/claude-code-prompt-steganography)by a developer who goes by the name Thereallo, consisted of applying steganography – hiding secret data in plain sight – to the Claude Code system context that gets passed to Anthropic's servers\. The relevant code checks Claude Code's[base URL environment variable](https://code.claude.com/docs/en/env-vars), used to route API requests to a proxy or gateway\. If the base URL has been overridden, the code goes on to check the system timezone and whether the hostname matches any entry in[a list](https://cdn.thereallo.dev/blog/assets/cc-domains.js)of known Chinese AI labs, other AI companies, account resellers, and gateway domains\. Thereallo said that while it makes sense that Anthropic might try to detect a hostname associated with a Chinese AI rival or a reseller, the implementation should not have been concealed\. "\[Claude Code\] silently alters the system prompt using invisible\-ish Unicode markers," Thereallo wrote\. "It encodes proxy / gateway classification into a sentence that looks like plain English\. It hides the domain list behind XOR and base64\. This is not a malicious feature, but it is a weird choice for a developer tool that asks for trust\." Asked whether Anthropic disclosed its covert usage tracking mechanism in any of its terms of service documents, a company spokesperson pointed to Shihipar's remarks, which did not address that question\. Nor did Anthropic's spokesperson immediately respond to a request to specify what "stronger mitigations" have been implemented to prevent unauthorized resellers and distillation\. In February, shortly before the implementation of the steganographic codes, the AI biz said that it was investing in defenses against distillation\. These included detection via classifiers and behavioral fingerprinting systems, intelligence sharing with other AI labs, access controls, and countermeasures that make it harder to use model output to reproduce the model\. One such defense came to light when the company's Claude Code source leaked\. The coding agent includes a Typescript file with a flag called[ANTI\_DISTILLATION\_CC](https://github.com/alex000kim/claude-code/blob/main/src/services/api/claude.ts#L301-L313)\. The flag, when set, injects fake tool data into API requests in an attempt to make that data toxic for model training\. Even with its technical defenses against competition, Anthropic[urged](https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks)the AI industry, cloud providers, and government to respond to the threat of model distillation\. A recent White House[Executive Order](https://www.whitehouse.gov/presidential-actions/2026/06/promoting-advanced-artificial-intelligence-innovation-and-security/)that articulates the intent to protect US AI from foreign adversaries shows that the feds have some interest in answering that call\. ®

Similar Articles

@Khazix0918: https://x.com/Khazix0918/status/2072235797592658395

X AI KOLs Timeline

The article exposes that Anthropic secretly detects and marks Chinese users in Claude Code using steganography (modifying Unicode characters and separators in date strings) for account bans, sparking strong community concerns about privacy and trust.

Wait what?

Reddit r/artificial

Alibaba has banned Anthropic's Claude Code, and Anthropic is tracking Chinese users, highlighting tensions in AI regulation and data privacy.