Threat reportSupply ChainTL-2026-1096
Alibaba to Ban Claude Code Over Alleged Embedded Network-Fingerprinting Mechanism
A Reddit researcher's June 30, 2026 reverse-engineering claim alleges Claude Code v2.1.91+ (April 2, 2026) silently checked user timezones and proxy configurations against an obfuscated 147-entry list of Chinese enterprises and AI labs, signaling matches via steganographic changes to its own system prompt rather than overt telemetry.
Key facts
| Identifiers | TL-2026-1096 |
|---|---|
| Also known as | Claude Code Fingerprinting Controversy, Claude Code 'Spyware' Allegation, Claude Code China Proxy Detection Incident |
| Severity | MEDIUM |
| Affected products | Anthropic Claude Code (CLI / agentic coding tool, distributed as the @anthropic-ai/claude-code npm package) |
| Weaknesses (CWE) | CWE-506, CWE-912 |
| Tools | Claude Code, Qoder |
| MITRE ATT&CK techniques | T1001.002 Steganography, T1005 Data from Local System, T1016 System Network Configuration Discovery, T1016.001 Internet Connection Discovery, T1020 Automated Exfiltration, T1027 Obfuscated Files or Information, T1027.003 Steganography, T1036 Masquerading, T1041 Exfiltration Over C2 Channel, T1071.001 Web Protocols, T1074.001 Local Data Staging, T1082 System Information Discovery and 10 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | technology, artificial intelligence, software development, cloud services |
| Target regions | china, Asia-Pacific, Global (SaaS/CLI distribution) |
| Detection rules | 9 (1 shown free) |
| Sources | 21 cited sources |
Detection coverage
As of 2026-07-03, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1096 across Splunk SPL, Microsoft KQL and Sigma, covering 40 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Obfuscated Base64+XOR Decode Chain and Steganographic Marker Artifact Staging
Detects local staging of an artifact whose content matches the alleged covert system-prompt marker pattern ('Today<non-standard apostrophe>s date is <YYYY-MM-DD or YYYY/MM/DD>') using one of three visually-identical Unicode apostrophe codepoints (U+2019, U+02BC, U+02B9), and/or a chained Base64-decode-then-XOR operation consistent with reversing the alleged 147-entry obfuscated Chinese-enterprise domain list. Covers the post-exploitation staging phase of TL-2026-1096 where the fingerprint result is encoded locally before riding out on the tool's normal API traffic.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1027, T1027.003, T1140, T1036, T1564, T1497.001, T1005, T1074.001
- Data sources: sysmon, edr_file_telemetry, dlp_content_inspection
- Severity: medium
- Confidence: high
Splunk SPL
index=edr OR index=dlp sourcetype IN ("crowdstrike:falcon:filewrite","symantec:dlp:incident","sysmon")
| eval decoded_hit=if(match(lower(file_content), "frombase64string") AND match(lower(file_content), "-bxor"), 1, 0)
| eval marker_hit=if(match(file_path, "(?i)system_prompt_marker|prompt_marker\.txt|tl2026_1096_sim"), 1, 0)
| eval apostrophe_hit=if(match(file_content, "Today[\x{2019}\x{02BC}\x{02B9}]s date is \d{4}[-/]\d{2}[-/]\d{2}"), 1, 0)
| where decoded_hit=1 OR marker_hit=1 OR apostrophe_hit=1
| eval matched_indicators=mvappend(if(decoded_hit=1,"base64_xor_decode_chain",null()), if(marker_hit=1,"marker_filename_pattern",null()), if(apostrophe_hit=1,"nonstandard_apostrophe_codepoint",null()))
| table _time host user file_path matched_indicators file_contentMicrosoft KQL
DeviceFileEvents
| where Timestamp > ago(24h)
| where FileName has_any ("system_prompt_marker","prompt_marker.txt") or FolderPath has_any ("tl2026_1096_sim","system_prompt_marker")
| project Timestamp, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName, FileName, FolderPath, ActionType
| union (
DeviceProcessEvents
| where Timestamp > ago(24h)
| where ProcessCommandLine has "FromBase64String" and ProcessCommandLine has "-bxor"
| project Timestamp, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName=ProcessCommandLine, FileName=strcat(""), FolderPath=strcat(""), ActionType=strcat("Base64XorDecodeChain")
)Sigma
title: Suspicious Marker File Creation Consistent with Alleged Claude Code Steganographic System-Prompt Signal
id: f2b3c4d5-6e7f-4081-9ab2-c3d4e5f60712
status: experimental
description: Detects creation of a short-lived local artifact whose filename or path matches the pattern observed when reproducing the alleged TL-2026-1096 covert system-prompt marker (Base64+XOR-91 decoded domain-list match encoded via a homoglyph apostrophe substitution and date-separator change).
references:
- https://cybernews.com/ai-news/claude-code-steganography-china-users/
- https://the-decoder.com/hidden-code-in-claude-code-secretly-flagged-chinese-users/
author: Threadlinqs Team
date: 2026-07-03
tags:
- attack.defense-evasion
- attack.t1027
- attack.t1027.003
- attack.t1140
- attack.t1036
- attack.t1564
- attack.t1497.001
- attack.collection
- attack.t1005
- attack.t1074.001
logsource:
category: file_event
product: windows
detection:
selection:
TargetFilename|contains:
- 'system_prompt_marker'
- 'prompt_marker.txt'
- 'tl2026_1096_sim'
condition: selection
falsepositives:
- Authorized detection-engineering or red-team simulation runs using the same lab filename convention (e.g., this threat's own TL-2026-1096 simulation scripts)
- Developer tooling that legitimately creates similarly named temp cache files for unrelated reasons
level: mediumKnown false positives:
- Authorized detection-engineering or red-team simulation runs using the same lab filename convention (e.g., this Pentester's TL-2026-1096 simulation scripts)
- Developer tooling that legitimately Base64-encodes and XOR-obfuscates local cache files for unrelated reasons
Tuning notes: Update the marker-filename and temp-path patterns if Anthropic's remediation changes the artifact naming; confirm the Base64+XOR chain heuristic against your own EDR's content-inspection capability before enabling in blocking mode.
- Chained Timezone + Proxy Discovery by Claude Code / Node Process (Alleged Environment Fingerprinting Trigger) · unlock with TL Creds
- Obfuscated Base64+XOR Decode Chain and Steganographic Marker Artifact Staging · unlock with TL Creds
- Outbound API Request Carrying Steganographic System-Prompt Marker (Covert Channel / Exfiltration) · unlock with TL Creds
- Claude Code Chained Timezone and Proxy Discovery (Alleged Environment Fingerprinting) · unlock with TL Creds
- Suspicious Marker File Creation Consistent with Alleged Claude Code Steganographic System-Prompt Signal · unlock with TL Creds
- Outbound API Request Containing Non-Standard Apostrophe Codepoint (Alleged Claude Code Steganographic Marker) · unlock with TL Creds
- Chained Timezone + Proxy Discovery by Claude Code / Node Process (Alleged Environment Fingerprinting Trigger) · unlock with TL Creds
- Outbound API Request Carrying Steganographic System-Prompt Marker (Covert Channel / Exfiltration) · unlock with TL Creds
Indicators of compromise
As of 2026-07-03, Threadlinqs Intelligence tracks 40 indicators of compromise for TL-2026-1096.
Sample indicators (3 of 40)
- Domain:
baidu[.]com - Domain:
alibaba-inc[.]com - Domain:
alipay[.]com
Defanged, TLP:CLEAR. Full set of 40 indicators: unlock with TL Creds.
Technical analysis
Anthropic confirms the mechanism existed as a March 2026 anti-abuse/anti-distillation experiment and says it will be removed; no independent security firm has verified the technical claims. Alibaba is banning Claude Code and other Anthropic products internally effective July 10, 2026.
On 2026-06-30, a Reddit user posting as 'LegitMichel777' in r/ClaudeAI claimed to have reverse-engineered the Claude Code CLI while attempting to restore a disabled remote-control feature in v2.1.196, and in doing so uncovered obfuscated logic present since v2.1.91 (released 2026-04-02, undocumented in release notes). The alleged mechanism performs a multi-factor environment check on every session: it reads the local system timezone looking for Asia/Shanghai or Asia/Urumqi, and inspects any configured proxy URL against a hardcoded, obfuscated list of 147 domains tied to Chinese technology companies, cloud regions, and AI labs (including entries resolving to Baidu, Alibaba, Ant Group, ByteDance, Moonshot AI, MiniMax, and Stepfun AI). The list is reportedly obfuscated in the binary using Base64 encoding combined with an XOR-91 key, a lightweight scheme easily reversed once located. LegitMichel777's write-up further identifies a small set of minified/obfuscated function names implicated in the logic path — 'Crt()', 'Rrt(e)', 'e0t()', 'Zup()', 'edp', and 'Vla' — consistent with build-time minification rather than hand-written obfuscation, and consistent with the claim that the mechanism was compiled into the shipped CLI rather than added out-of-band.
Rather than transmitting an explicit telemetry flag, the mechanism allegedly encodes a match by silently rewriting the 'Today's date is ...' line of Claude Code's own system prompt: a China-timezone match changes the date separator from a dash to a slash (e.g. 2026-06-30 becomes 2026/06/30), and the apostrophe in "Today's date" is swapped between three visually identical but technically distinct Unicode characters — U+2019 (RIGHT SINGLE QUOTATION MARK), U+02BC (MODIFIER LETTER APOSTROPHE), and U+02B9 (MODIFIER LETTER PRIME) — depending on whether the match came from the domain list, an AI-lab keyword, or both. Because the modified system prompt is included in the next request Claude Code sends to Anthropic's API, the signal rides back to the vendor over the tool's normal, otherwise-legitimate network traffic — a covert channel hidden in plain sight (a form of network-protocol/application-layer steganography) rather than a separate exfiltration path.
Anthropic did not deny the mechanism's existence. Claude Code team member Thariq Shihipar stated publicly on X that it was 'an experiment we launched in March [2026] that was meant to prevent account abuse from unauthorized resellers and protect against distillation,' that stronger protections had since shipped, that the team had 'actually been meaning to take this down for a while,' and that it would be fully removed in an upcoming release, with remediation reportedly beginning around 2026-07-01. Anthropic has not published a formal incident report, and no independent third-party security firm has verified LegitMichel777's reverse-engineering methodology, the exact contents of the 147-entry list, the specific minified function names, or the steganographic-encoding details as described.
The controversy lands amid an escalating dispute between Anthropic and Alibaba: in a letter dated 2026-06-10, seen by Bloomberg and sent to U.S. Senators Tim Scott and Elizabeth Warren, Anthropic alleged that operators affiliated with Alibaba's Qwen AI lab ran nearly 25,000 fraudulent accounts generating over 28.8 million exchanges with Claude between 2026-04-22 and 2026-06-05 — targeting specifically software-engineering and agentic-reasoning outputs, Claude's most commercially valuable capabilities — to illicitly distill Claude's capabilities into a cheaper rival model. Anthropic called this the largest known distillation campaign against it to date (larger than the combined February 2026 disclosures naming DeepSeek, Moonshot AI, and MiniMax), and warned that adversarial distillation lets Chinese labs replicate frontier AI at a fraction of training cost while often lacking the original's safety guardrails. Against that backdrop, multiple outlets (CyberSecurityNews, South China Morning Post, Reuters via KFGO/US News, Cybernews, Techloy, and others) reported on 2026-07-03 that Alibaba's internal security review classified Claude Code as 'high-risk software,' and that Alibaba has ordered employees to uninstall all Anthropic products — Claude Sonnet, Opus, and Fable model access as well as the Claude Code agent — from internal systems effective 2026-07-10, recommending its own Qoder tool as a replacement. Alibaba has not issued a detailed public statement and did not officially confirm the ban; Alibaba separately denies the distillation allegations. This is tracked as a supply-chain trust/covert-channel concern given the widespread deployment of Claude Code among developers, not as a confirmed vulnerability — no CVE applies and the underlying technical claims remain single-source and unverified by independent researchers as of this writing.
MITRE ATT&CK techniques by tactic:
Command and Control
T1001.002 Steganography; T1071.001 Web Protocols
Collection
T1005 Data from Local System; T1074.001 Local Data Staging; T1119 Automated Collection
Discovery
T1016 System Network Configuration Discovery; T1016.001 Internet Connection Discovery; T1082 System Information Discovery; T1614 System Location Discovery
Exfiltration
T1020 Automated Exfiltration; T1041 Exfiltration Over C2 Channel
Defense Evasion
T1027 Obfuscated Files or Information; T1027.003 Steganography; T1036 Masquerading; T1140 Deobfuscate/Decode Files or Information; T1497.001 System Checks; T1564 Hide Artifacts
Initial Access
T1195.002 Compromise Software Supply Chain
Execution
Persistence
T1554 Compromise Host Software Binary
Resource Development
Reconnaissance
Remediation
Patches
- Apply the Anthropic Claude Code release that removes the fingerprinting/system-prompt-marker mechanism once published (targeted for the release following 2026-07-01); confirm the changelog explicitly references removal before considering this resolved.
Immediate actions
- Audit installed Claude Code versions across developer fleets; identify any instance at v2.1.91 or later that has not yet received Anthropic's remediation update.
- Where infrastructure resolves to Chinese cloud regions, Asia/Shanghai or Asia/Urumqi timezones, or the disclosed domain patterns, treat outbound Claude Code API traffic as a potential covert channel until Anthropic ships and independently confirms the fix.
- Review internal 'high-risk software' / restricted-tool policies for AI coding assistants generally, not just Claude Code, given the precedent this disclosure sets.
- Monitor Anthropic's Claude Code release notes/changelog for the announced removal and verify it lands as described rather than assuming remediation occurred.
- Capture and archive outbound Claude Code system-prompt payloads for a sample of sessions to independently confirm whether the alleged date-format/apostrophe-codepoint anomalies are present before and after the vendor's remediation release.
Workarounds
- Where the tool cannot yet be updated, run Claude Code inside timezone-neutral (UTC) build environments without split-tunnel proxying to avoid triggering the alleged fingerprinting logic pending vendor confirmation.
- Organizations with heightened supply-chain sensitivity may consider a temporary internal restriction on Claude Code, similar to Alibaba's classification, pending independent verification of the claims.
Longer-term hardening
- Establish binary/telemetry transparency requirements (SBOM, telemetry disclosure) as a procurement condition for AI coding assistants and other agentic developer tools.
- Implement network egress monitoring/DLP capable of inspecting outbound LLM API payloads (system prompts) for anomalous encoding patterns, not just declared telemetry fields.
- Maintain a cross-vendor watchlist of AI coding tools for undisclosed environment-fingerprinting behavior, informed by this and similar disclosures.
- Require vendors of agentic CLI/IDE tools to disclose any client-side environment or geolocation checks in release notes as a standing security expectation.
- Track the parallel Anthropic-Alibaba distillation dispute as a driver of vendor behavior; anti-abuse/anti-distillation controls in AI tooling are likely to recur industry-wide and should be scoped for transparency before deployment.
Affected and fixed versions
- Anthropic — Claude Code (CLI / agentic coding tool, distributed as the @anthropic-ai/claude-code npm package)
Vulnerable versions: 2.1.91 (released 2026-04-02) through at least 2.1.196
Fixed in: Not yet released as of 2026-07-03; Anthropic states removal is planned for an upcoming Claude Code release, with remediation reportedly beginning 2026-07-01
Timeline
- Anthropic publicly names DeepSeek, Moonshot AI, and MiniMax as having collectively run 16M+ Claude interactions through roughly 24,000 fraudulent accounts to distill Claude's outputs (exact day within February 2026 not specified in reporting); establishes the anti-distillation motive later cited for the Claude Code mechanism.
- Per Claude Code team member Thariq Shihipar, the timezone/proxy-fingerprinting mechanism is launched internally as an anti-abuse/anti-distillation experiment (exact day within March 2026 not disclosed).
- Claude Code v2.1.91 ships publicly with the undisclosed fingerprinting mechanism, reportedly implemented via minified functions including Crt(), Rrt(e), e0t(), Zup(), edp, and Vla; release notes make no mention of the new detection logic.
- Start of the window (through 2026-06-05) during which Anthropic alleges Alibaba/Qwen-affiliated operators ran roughly 25,000 fraudulent accounts generating 28.8 million Claude exchanges targeting software-engineering and agentic-reasoning outputs for distillation.
- End of the alleged Alibaba/Qwen distillation-campaign window per Anthropic's later disclosure to Congress.
- Anthropic sends a letter (later reported as seen by Bloomberg) to U.S. Senators Tim Scott and Elizabeth Warren describing the alleged Alibaba/Qwen campaign as the largest known distillation attack against Claude to date and warning that distilled models often lack Claude's safety guardrails.
- Anthropic's accusation against Alibaba's Qwen lab becomes widely reported in mainstream and trade press, including CNBC and TheNextWeb.
- Reddit user LegitMichel777 posts 'Anthropic embedded spyware in Claude Code' to r/ClaudeAI, claiming to have reverse-engineered the CLI (while attempting to restore a disabled remote-control feature in v2.1.196) and uncovered the timezone/proxy fingerprinting logic, the specific minified function names, and the 147-entry obfuscated domain list.
- The Register and other outlets publish technical analyses detailing the alleged three-codepoint apostrophe-substitution scheme (U+2019, U+02BC, U+02B9) and the XOR-91 obfuscation of the domain list.
- Anthropic Claude Code team member Thariq Shihipar responds publicly on X, characterizing the mechanism as a March 2026 anti-abuse/anti-distillation experiment, stating stronger protections have since shipped and removal is planned for an upcoming release; remediation reportedly begins.
- Multiple outlets (reporting sourced in part to Reuters via SCMP, KFGO, and US News, and independently by CyberSecurityNews, Techloy, and Cybernews) report Alibaba has classified Claude Code as high-risk software and will ban it and other Anthropic products internally starting 2026-07-10, recommending employees switch to its own Qoder coding assistant.
- Alibaba's internal ban on Claude Code and other Anthropic products (Claude Sonnet, Opus, Fable model series) is scheduled to take effect company-wide.
Sources cited
Showing 15 of 21 sources, primary sources first.
- Claude Code Is Quietly Fingerprinting China-Linked API Routers vincentschmalbach.com · Blog · 2026-07-01
- Anthropic to remove Claude Code marker that flagged China users aiweekly.co · Blog · 2026-07-01
- Alibaba to Ban Claude Code Over Alleged Embedded Backdoor Risks cybersecuritynews.com · News · 2026-07-03
- Alibaba bans staff from using Claude Code over Anthropic spyware concerns scmp.com · News · 2026-07-03
- Alibaba Orders Employees to Remove All Anthropic Products, Ban Effective July 10 pandaily.com · News · 2026-07-03
- Alibaba to Ban Claude Code at Work Over Alleged Backdoor Security Risks cyberpress.org · News · 2026-07-03
- Anthropic's Claude Code accused of hiding proxy fingerprints inside system prompts to identify China-linked users techstartups.com · News · 2026-06-30
- Claude Code apparently uses code to detect Chinese users: Is this fine? cybernews.com · News · 2026-06-30
- Anthropic Faces Backlash After Claude Code Secretly Flagged 147 Chinese Domains yellow.com · News · 2026-07-01
- Hidden code in Claude Code secretly flagged Chinese users the-decoder.com · News · 2026-07-01
- Anthropic is removing its covert code for catching Chinese competitors The Register · News · 2026-07-01
- Anthropic claims that China's Alibaba used 25,000 fake accounts and 28.8 million exchanges to illicitly 'distill' its models tomshardware.com · News · 2026-06-26
- Anthropic accuses Alibaba of campaign to 'brazenly' and 'illicitly' extract AI capabilities cnbc.com · News · 2026-06-24
- Anthropic Tells White House Alibaba Used 25,000 Fake Accounts to Access Claude AI Models citybiz.co · News · 2026-06-26
- Claude Code Accused of Hiding China Proxy Fingerprints in System Prompts kucoin.com · News · 2026-06-30
Previous and next in supply chain
Further reading
Drafted by the Threadlinqs research pipeline from 21 sources; published ; last updated —.