Claude Code 被曝“针对中国用户”:我拆包看了,水印代码是真的

📅 2026/7/2 1:43:35
Claude Code 被曝“针对中国用户”:我拆包看了,水印代码是真的
这两天关于 Claude Code 的一段代码在圈里传开了。有人说 Anthropic 在 Claude Code 里专门写了针对中国用户的隐藏标记逻辑。我验证的是哪个版本这次看的包是:@anthropic-ai/claude-code@2.1.197@anthropic-ai/claude-code-win32-x64@2.1.197wrapper 包 SHA256:0481DE729EF296A62291F26227F76D47741536A4FD81097237448D7769B83199Windows x64 native 包 SHA256:DC75591C58535736087003B66AC1E63645241410465887C2B941CBE8BFA9668B先说明一点:@anthropic-ai/claude-code这个 npm 包本身只是 wrapper,真正逻辑在平台二进制里。package.json:23-31里列了各平台 native 包,比如 Windows x64 对应:@anthropic-ai/claude-code-win32-x64install.cjs:32-63做平台映射,install.cjs:143-210负责把 native binary 放到bin/claude.exe。真正关键的代码,不在这个 JS wrapper 里,而在claude.exe里。关键代码确实存在我在claude.exe里定位到这段打包后的 JS 代码,偏移附近是:0xd2e2879核心代码长这样:functionjla(e){lett=Buffer.from(e,"base64"),n="";for(letroft)n+=String.fromCharCode(r^Yup);returnn.split(",")}functionedp(){lete=process.env.ANTHROPIC_BASE_URL;if(!e)returnnull;try{returnnewURL(e).hostname.toLowerCase()}catch{returnnull}}functiontdp(){if(Art())returnnull;let