Anthropic embedded spyware in Claude Code — and attempted to hide it from you : ClaudeAIjump to contentmy subreddits<br>edit subscriptions<br>popular<br>-all<br>-users<br>| AskReddit<br>-pics<br>-funny<br>-movies<br>-gaming<br>-worldnews<br>-news<br>-todayilearned<br>-nottheonion<br>-explainlikeimfive<br>-mildlyinteresting<br>-DIY<br>-videos<br>-OldSchoolCool<br>-TwoXChromosomes<br>-tifu<br>-Music<br>-books<br>-LifeProTips<br>-dataisbeautiful<br>-aww<br>-science<br>-space<br>-Showerthoughts<br>-askscience<br>-Jokes<br>-Art<br>-IAmA<br>-Futurology<br>-sports<br>-UpliftingNews<br>-food<br>-nosleep<br>-creepy<br>-history<br>-gifs<br>-InternetIsBeautiful<br>-GetMotivated<br>-gadgets<br>-announcements<br>-WritingPrompts<br>-philosophy<br>-Documentaries<br>-EarthPorn<br>-photoshopbattles<br>-listentothis<br>-blog
more "
reddit.com ClaudeAIcomments
Want to join? Log in or sign up in seconds.
limit my search to r/ClaudeAIuse the following search parameters to narrow your results:<br>subreddit:subredditfind submissions in "subreddit"author:usernamefind submissions by "username"site:example.comfind submissions from "example.com"url:textsearch for "text" in urlselftext:textsearch for "text" in self post contentsself:yes (or self:no)include (or exclude) self postsnsfw:yes (or nsfw:no)include (or exclude) results marked as NSFWe.g. subreddit:aww site:imgur.com dog<br>see the search faq for details.
advanced search: by author, subreddit...
this post was submitted on 30 Jun 2026<br>40 points (69% upvoted)<br>shortlink:
Submit a new link
Submit a new text post
ClaudeAI<br>joinleave<br>a community for 3 years
MODERATORS
message the mods
191<br>r/ClaudeAI List of Ongoing Megathreads<br>225 · 42 comments
Claude in Microsoft Foundry is now generally available.<br>193 · 57 comments
Claude hallucinated its own internal tools, freaked out, and accused me of a prompt injection attack 💀<br>· 22 comments<br>Anthropic embedded spyware in Claude Code — and attempted to hide it from you<br>251 · 162 comments
Have I been lighting ~$1k/month on fire buying Claude API credits instead of just getting Max?<br>· 18 comments<br>The BIG Secret About Vibe Coding<br>289 · 62 comments
it is not a challenge<br>· 5 comments<br>0:37
Found a plugin that optimize claude code from its mistakes<br>34 · 24 comments<br>When to use Claude Design vs Claude Code for front end?<br>18 · 40 comments<br>You have 12 hours until weekly reset and 0% usage for the week. What are you doing?
Welcome to Reddit,<br>the front page of the internet.<br>Become a Redditorand join one of thousands of communities.
×
•<br>•<br>•
Anthropic embedded spyware in Claude Code — and attempted to hide it from youClaude Code (self.ClaudeAI)<br>submitted 43 minutes ago by LegitMichel777
tl;dr: Since version 2.1.91, released on April 2, 2026, Claude Code checks whether you have a proxy enabled — and if so, covertly transmits, through invisible alterations to the system prompt, whether you are in China, whether you are proxying to a Chinese URL, and whether you are affiliated with a Chinese AI lab. Anthropic further attempted to obfuscate this code within the Claude Code binary.
Background: I run my personal Claude Code installation through a proxy to mix GPT models with Claude models and do fine-grained context management. Today, with version 2.1.196, Anthropic disabled remote control when proxying is enabled. While reverse-engineering Claude Code to revert this change, I found something extremely suspicious.
The code
Inside the Claude Code binary lies this check, unchanged since version 2.1.91. The check does the following:
If you are using a proxy:
Check whether the system timezone matches Asia/Shanghai or Asia/Urumqi.
Check whether your proxy URL is a Chinese domain , matches a list of domains, and/or includes a Chinese AI lab .
Based on those two checks, Anthropic modifies the date portion of the system prompt .
If the system timezone is Chinese, the date uses the format 2026/06/30 instead of 2026-06-30. And depending on the proxy URL, the apostrophe in "Today**'**s date is" changes:
Is a Chinese domain and/or matches the domain whitelist, but is NOT an AI lab: \u2019, "right single quotation mark" — ’
Is NOT a Chinese domain and/or matches the domain whitelist, but IS a Chinese AI lab: \u02BC, "modifier letter apostrophe" — ʼ
Is a Chinese domain and/or matches the domain whitelist AND is a Chinese AI lab: \u02B9, "modifier letter prime" — ʹ
You can verify this yourself in the Claude Code source code. In version 2.1.196, the relevant functions are Crt(), Rrt(e), e0t(), Zup(), edp, and Vla. Note that those are minified names, so they change between Claude Code releases — but ask Claude Code or Codex to reverse-engineer Claude Code and look for this logic, and it will likely find it trivially.
The intent
Anthropic clearly added this check in an attempt to detect unauthorized resale of Claude in China and distillation attempts by Chinese labs. What's unnerving, however, is that Anthropic attempted to obfuscate this logic in the binary . Much of it is XOR-obfuscated with the key 91, likely to...