Post-Cutoff.com
  1. Home
  2. Timeline
  3. 2026
  4. Hidden code in Claude Code that flagged likely Chinese…

Hidden code in Claude Code that flagged likely Chinese users and AI-lab proxies is exposed and removed; China's NVDB calls it a 'backdoor' and Alibaba bans the tool

★★★after cutoffpolicy-safetyAnthropicAlibabaconfidence: high

On June 30, 2026 a Reddit user showed that Claude Code (from v2.1.91, released April 2) secretly marked sessions from Chinese time zones or from proxies on Chinese and AI-lab domains by subtly changing the "Today's date is" line in its system prompt. Anthropic's Thariq Shihipar called it "an experiment we launched in March" against unauthorized resellers and distillation, and it was removed on July 1. Alibaba banned staff from using Claude Code from July 10, and on July 8 China's National Vulnerability Database warned of a "backdoor".

Key facts

What happened

Claude Code silently tagged the system prompt of sessions it judged likely to come from China or from resellers and rival labs, so that such traffic could be recognised on Anthropic's side. After a Reddit post exposed the obfuscated code, Anthropic said the experiment was outdated and removed it in the next release. Chinese companies and regulators treated it as spyware.

Why it matters

It showed how far frontier labs had gone in the fight against distillation, and how much trust coding agents need, since they run with full access to developers' machines. It also sped up Chinese firms' move to domestic coding agents (Trae, Qoder, CodeBuddy, ZCode).

Changelog

  • 2026-10-05: created (backfill from the leads queue; original lead cited AI Times/The Information)

People

Thariq Shihipar

Related events

  1. Anthropic tells US senators and the White House that Alibaba's Qwen lab ran the largest known distillation campaign on Claude (28.8M exchanges) ★★★
  2. Anthropic accuses DeepSeek, Moonshot and MiniMax of 'distillation attacks': 16M+ Claude exchanges via ~24,000 fraudulent accounts ★★★

Sources (7)

id: 2026-07-01-claude-code-hidden-china-user-markers · updated 2026-10-05 · open in the interactive timeline