If you run Claude Code on a dev machine or route API traffic through a corporate gateway, run claude --version today. China's regulator flagged versions v2.1.91 through v2.1.196 as a severe backdoor risk after researchers found undisclosed code that covertly fingerprinted proxy users via steganography embedded in system prompts. Anthropic removed it in v2.1.197+; Alibaba bans it company-wide from July 10, 2026. This guide covers the full timeline, how the fingerprinting worked, who is actually affected, enterprise fallout, and a step-by-step remediation checklist.
- TL;DR: Only users with
ANTHROPIC_BASE_URLpointing to a non-official proxy triggered the hidden logic — not everyone on the official API. - Affected range: v2.1.91 (Apr 2, 2026) through v2.1.196 (Jun 29, 2026). Upgrade to v2.1.197 or later immediately.
- Technique: Date separators and visually identical Unicode apostrophes in system prompts encoded timezone and proxy-domain hits — a covert channel, not normal telemetry.
- Regulatory stance: China's NVDB called it a backdoor risk; Anthropic called it an anti-distillation experiment.
- Enterprise: Alibaba classified Claude Code as high-risk software and is switching staff to its internal tool Qoder.
SECTION 01 What Is Claude Code? Context Before the Backdoor Headlines
Claude Code is Anthropic's terminal-based AI coding agent with filesystem access and shell execution — closer to a high-privilege dev tool than a chat widget. That privilege level matters: undisclosed fingerprinting in a tool that can read repos and run commands erodes trust faster than routine analytics would.
SECTION 02 What Happened: Reddit Exposure, Anthropic Rollback & China's Warning
| Date | Event |
|---|---|
| Feb 2026 | Anthropic publicly invests in anti-distillation defenses (classifiers, behavioral fingerprints) |
| Mar 2026 | Covert detection ships inside Claude Code without public disclosure |
| Apr 2, 2026 | v2.1.91 release — first public build carrying the logic |
| Jun 29, 2026 | v2.1.196 — last affected release |
| Jun 30, 2026 | Reddit post by LegitMichel777; independent reversals by Thereallo and Adnane Khan on GitHub |
| Jul 1, 2026 | Engineer Thariq Shihipar admits on X: March experiment against abuse/resellers/distillation; rollback promised next day |
| Jul 2, 2026 | v2.1.197 (some reports cite v2.1.198) removes steganography code — not clearly noted in changelog |
| Jul 3–4, 2026 | Reuters, TechCrunch: Alibaba to ban Claude Code and Anthropic models from Jul 10, pivot to Qoder |
| Jul 8, 2026 | China's NVDB issues official warning: severe security backdoor risk |
SECTION 03 How Claude Code Fingerprinting Actually Worked: Steganography in System Prompts
The controversy is not generic telemetry (Datadog, OpenTelemetry, event logs). Those exist and are broadly disclosed. The disputed code used steganography — altering the system prompt itself to smuggle signals upstream.
Step 1 — Environment recon. After activation, the client checks (a) whether the OS timezone is Asia/Shanghai or Asia/Urumqi, and (b) whether the hostname in ANTHROPIC_BASE_URL matches a built-in denylist. Independent reversals (LegitMichel777, Thereallo, Adnane Khan, Vincent Schmalbach) recovered 147 entries obfuscated with XOR key 91 + Base64, covering major Chinese tech domains, AI lab keywords (DeepSeek, Moonshot, Zhipu, MiniMax, etc.), and known API resellers.
Step 2 — Covert encoding. On China timezone hits, date formatting in the system prompt flips from 2026-06-30 to 2026/06/30. The apostrophe in Today's date is may be swapped for one of three visually identical but Unicode-distinct apostrophe characters, encoding boolean flags for timezone hit, domain hit, and AI-lab keyword hit. Roughly 3 bits of environment state ride inside an otherwise normal English sentence on every request — what Adnane Khan defined as a covert information channel embedded in system prompts.
Step 3 — Why this crosses a line. No changelog entry for ~3 months; targeted geopolitical/commercial fingerprinting; high-privilege CLI context. Some technical commentators (e.g., Cybernews) argue the reaction is overblown — fair engineering against distillation — but undisclosed steganography in a shell-capable agent is the crux of the trust breakdown.
SECTION 04 Am I Actually Affected? ANTHROPIC_BASE_URL and the Proxy Trigger
No, if you use the official Anthropic API endpoint. The mechanism activates only when ANTHROPIC_BASE_URL points to a non-official proxy, gateway, or reseller. Headlines implying universal surveillance are misleading and will get you corrected on HN within minutes.
| Profile | Trigger | Risk level (v2.1.91–2.1.196) |
|---|---|---|
| Direct official API | No custom ANTHROPIC_BASE_URL |
Mechanism inactive; still upgrade if on old builds |
| Corporate proxy / API router | Custom base URL hostname on denylist | Fingerprinting active — upgrade or uninstall |
| Regulated enterprise | Policy ban (e.g., Alibaba) | Uninstall + egress audit + approved replacement |
SECTION 05 What Anthropic Said: Experiment vs. Backdoor
Thariq Shihipar on X (Jul 1, 2026): "This is an experiment we launched in March that was meant to prevent account abuse from unauthorized resellers and protect against distillation. The team has landed stronger mitigations since then and we've actually been meaning to take this down for a while... this should be fully rolled back in tomorrow's release."
Context: Anthropic previously told the U.S. Senate Banking Committee that Alibaba's Qwen team used roughly 25,000 fraudulent accounts and 28.8 million interactions to distill Claude capabilities — part of a broader U.S.–China model distillation dispute that makes this incident politically charged, not just a CVE-style bug.
SECTION 06 Enterprise Fallout: Why Alibaba Banned Claude Code
Per SCMP and Ars Technica quoting internal notices: "As Claude Code was recently discovered to carry back-door risks... added to a list of high-risk software with security vulnerabilities." Effective July 10, 2026, staff must stop using Claude Code and Anthropic model products (Sonnet, Opus, Fable, etc.) and move to Alibaba's internal coding platform Qoder — a concrete enterprise signal beyond regulator wording.
SECTION 07 What You Should Do Now: Version Check, Upgrade & Uninstall Steps
- Check version:
claude --version— compare against v2.1.91–2.1.196. - Check proxy config:
echo $ANTHROPIC_BASE_URL— non-official hostnames were the trigger. - Upgrade immediately:
npm install -g @anthropic-ai/claude-code@latestorclaude updateto v2.1.197+. - Full uninstall (if required): Remove
~/.claude,~/.claude.json,~/.cache/claude-code,~/.config/claude-codeon macOS/Linux; equivalent paths under%USERPROFILE%on Windows. - Egress audit: Uninstall alone is not enough — scan dev machines for persistent outbound calls to unauthorized AI endpoints.
- Policy alignment: Enterprises should inventory terminals, block affected builds, and document approved AI coding tools.
- Isolate sensitive workloads: Move high-trust build/Agent pipelines off shared laptops onto auditable infrastructure.
claude --version
2.1.196 # affected — upgrade now
echo $ANTHROPIC_BASE_URL
https://internal-gateway.corp.example
npm install -g @anthropic-ai/claude-code@latest
Citable technical facts:
- Affected builds: v2.1.91 (Apr 2, 2026) – v2.1.196 (Jun 29, 2026), ~3 months undisclosed
- Denylist size: 147 hostnames/keywords (multi-party reversal agreement)
- Encoding channel: 1 date-format bit + 3 Unicode apostrophe variants ≈ 3 bits per request
- Obfuscation: XOR-91 + Base64 — not extractable via naive
stringson the binary - Distillation dispute scale cited by Anthropic: ~25k fraudulent accounts, 28.8M interactions (Qwen team allegation)
Running a shell-capable AI agent on a shared laptop while routing traffic through opaque proxies is how fingerprinting pipelines get built — the direct risk here is undisclosed identification and account enforcement, not a confirmed mass data breach. VMs add EULA friction and hypervisor overhead. For teams that need native Apple silicon, full root, and physically isolated dev nodes for iOS CI or 24/7 Agent automation, MACNOX dedicated physical Mac Mini M4 nodes are often the better production choice — separate high-trust workloads from risky toolchains. See our rent vs. buy TCO analysis and AI Agent hardening guide, or visit the pricing page.
Primary sources (re-check links before relying on version numbers):
CNBC — China warns about AI risks with Anthropic's Claude Code
The Register — China: Ditch older Claude versions with backdoor code
Ars Technica — Secret Claude tracker shocks users
The Register — Anthropic removing covert anti-competitor code
Disclaimer: Based on public NVDB advisories, Anthropic statements, and independent security research. Informational only — not legal or security audit advice.
SECTION 08 FAQ
Does Claude Code have a backdoor?
In v2.1.91–2.1.196, Anthropic shipped undisclosed code that fingerprinted proxy users via steganography. China's NVDB classified it as a backdoor risk; Anthropic called it an anti-distillation experiment and removed it in v2.1.197.
Which versions are affected?
v2.1.91 (Apr 2, 2026) through v2.1.196 (Jun 29, 2026). Upgrade to v2.1.197 or later.
Am I affected if I use the official Anthropic API?
No. The mechanism only activated when ANTHROPIC_BASE_URL pointed to a non-official proxy or gateway.
How do I check my version?
Run claude --version in your terminal, or npm list -g @anthropic-ai/claude-code if installed via npm.
Should I uninstall Claude Code?
Upgrade immediately if on an affected version. Enterprises with compliance requirements may additionally uninstall and audit outbound traffic.
What steganography technique did it use?
It altered the system prompt's date separator and swapped visually identical Unicode apostrophe variants to encode timezone/proxy signals.
Why did Alibaba ban Claude Code?
Alibaba classified it as high-risk software after backdoor reports and directed staff to its internal tool, Qoder.
Did Anthropic disclose this in release notes?
No changelog for any affected version mentioned the mechanism.
Is Claude Code safe now?
Anthropic removed the code in v2.1.197+; ongoing trust depends on your organization's risk tolerance and compliance policy.
What is model distillation and why does it matter here?
Distillation is training a model on another model's outputs. Anthropic said the mechanism targeted unauthorized resellers and distillation pipelines, part of a broader dispute with Chinese AI labs including Alibaba's Qwen team.