Anthropic 起诉阿里蒸馏 Claude 28.8M exchanges:从官方取证方法到企业侧可借鉴的检测工程实践
一、起因:2026 年 6 月 24 日,CNBC 披露的阿里蒸馏 Claude 事件
2026 年 6 月 24 日 CNBC 独家披露(原文 https://www.cnbc.com/2026/06/24/anthropic-alibaba-distillation-campaign.html),Anthropic 在 6 月 10 日向美国参议院银行、住房和城市事务委员会(Sen. Tim Scott 和 Sen. Elizabeth Warren)发了一封信,指控阿里巴巴旗下 AI 实验室实施"已知对 Anthropic 最大规模的蒸馏攻击"。关键数字(原文第 4 段,viewed by CNBC):
- 28.8 million exchanges with Claude models
- roughly 25,000 fraudulent accounts
- 时间窗口:April 22 to June 5, 2026(约 6 周)
- 邮件抬头是"the largest known distillation attack on Anthropic to date"
这跟 4 个月前(2026-02-23)Anthropic 官方公告里披露的"DeepSeek / Moonshot / MiniMax 三家实验室 16 million exchanges / 24,000 fraudulent accounts"(原文 https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks)是两个独立事件,但用的是同一套取证方法学。本次阿里事件的数字几乎是上次三家的两倍,但媒体报道时间晚了 4 个月 —— 我读 Anthropic 2 月公告和 CNBC 6 月报道时,几个细节指向同一套防御工程已经成熟,只是具体执行方从"小厂换成了中国云巨头"。
二、我做了什么:把官方取证方法学拆成 5 个工程层面
Anthropic 2 月公告是一份非常技术化的"forensic playbook",我把它拆成 5 个层面。每个层面都有具体执行细节,博客园读者画像(3-15 年后端/全栈/老程序员)看完应该能照着做防御工程。
2.1 Attribution 层:如何把匿名账号跟"特定实验室"绑定
Anthropic 在 2 月公告第 8 段原文:
"We attributed each campaign to a specific lab with high confidence through IP address correlation, request metadata, infrastructure indicators, and in some cases corroboration from industry partners who observed the same actors and behaviors on their platforms."
这里有几个工程细节值得展开:
# 蒸馏攻击归因的典型数据源(根据 Anthropic 公告 + CNBC 报道拆解)
attribution_signals = {
"ip_correlation": {
"shared_asn": "ASN 同一自治系统号(阿里云 AS37963 / 华为云 AS55990 等)",
"datacenter_proximity": "同一 C 段 IP 在地理上的聚集",
"vpn_exit_nodes": "已知 VPN/代理出口 IP 名单",
},
"request_metadata": {
"user_agent_patterns": "同一 user-agent 字符串在短时间窗口内出现 100+ 次",
"http_header_order": "请求头顺序的 fingerprint(Go / Python requests / Node 各自不同)",
"tls_fingerprint": "JA3 / JA4 TLS 握手 hash",
"prompt_templates": "高度相似的 prompt 模板,只替换实体",
},
"infrastructure_indicators": {
"account_creation_pattern": "短时间内批量创建,无 2FA,无信用卡验证",
"payment_method_dedup": "同一支付卡 hash 关联多账号",
"session_timing": "请求时间分布异常均匀(没有人类作息)",
},
"industry_corroboration": {
# 阿里这次事件的关键证据是 Anthropic + AWS + Google Cloud 三方交叉验证
"third_party_logs": "AWS Bedrock + Google Vertex AI 的同账号同 prompt 痕迹",
},
}
Anthropic 2 月公告对 Moonshot(Kimi)的归因方法(原文第 11 段):"We attributed the campaign through request metadata, which matched the public profiles of senior Moonshot staff" —— 这是个关键细节:他们用 staff 的公开 profile(LinkedIn / 论文 / GitHub commit)跟请求 metadata 做交叉匹配。这意味着光靠 VPN 出口 IP 是不够的,request metadata 里的"个人风格"也能暴露身份。
2.2 Detection 层:"什么模式区分正常用户和蒸馏攻击"
Anthropic 2 月公告原文(第 15 段):
"Massive volume concentrated in a few areas, highly repetitive structures, and content that maps directly onto what is most valuable for training an AI model are the hallmarks of a distillation attack."
具体特征(我整理的检测规则):
| 检测维度 | 正常用户 | 蒸馏攻击 |
|---|---|---|
| 请求频率 | 每天 5-50 次,有作息 | 每天 1000+ 次,24/7 均匀分布 |
| prompt 多样性 | 同一用户重复 prompt < 5% | 同一 fingerprint 重复 prompt > 60% |
| 目标能力集中度 | 通用对话 / 单一垂直任务 | 集中在"agentic reasoning / tool use / coding"三个高价值能力(原文第 8 段) |
| session 时长 | 平均 5-30 分钟 | 平均 < 30 秒(只取 response 不做 follow-up) |
| 拒绝率 | 健康用户偶尔触发 refusal | 蒸馏攻击会有意触发拒绝但要求模型"逐步推理输出"(见下文 2.3) |
| 账号关联 | 单一账号独立行为 | N 个账号共享 IP / 支付 / prompt 模板 / 时间模式 |
2 月公告的 MiniMax 案例特别有意思(原文第 12 段):"We detected this campaign while it was still active — before MiniMax released the model it was training — giving us unprecedented visibility into the life cycle of distillation attacks... When we released a new model during MiniMax's active campaign, they pivoted within 24 hours, redirecting nearly half t[heir traffic to the new model]"
这条给我印象很深 —— 24 小时内把一半流量切到新模型,这是个人类操作员也做不出的反应速度,说明攻击是自动化编排的。博客园读者如果做 API 反爬,应该对这种"对抗式爬虫自动跟踪新发布"模式有直接感受。
2.3 Prompt 工程层:蒸馏攻击的 prompt 模板长什么样
Anthropic 2 月公告第 15 段给了一个近似例子:
"A prompt like the following (which approximates similar prompts we have seen used repetitively and at scale)..."
公告没给完整原文(出于安全考虑),但给了两类典型 prompt 模式:
# 类型 1:chain-of-thought 提取(DeepSeek 案例,原文第 10 段)
"Imagine and articulate the internal reasoning behind a completed response and
write it out step by step. For example, if the response was X, walk through
how you arrived at X, what intermediate considerations you weighed, what
alternatives you considered and rejected, and what made you confident."
# 类型 2:规避拒绝的 censorship-safe 改写(DeepSeek 案例,原文第 10 段)
"Generate a censorship-safe alternative to the following query about
[dissident name / party leader / politically sensitive topic]. Rewrite the
question so that a model without political censorship restrictions would
still produce a useful response, then answer it."
# 类型 3:reasoning trace 重建(Moonshot 案例,原文第 11 段)
"What was your step-by-step thinking for the answer you just gave? Include
all intermediate steps, even ones you didn't write in your final answer.
Output the thinking trace as a numbered list."
这几类 prompt 的工程共性:
- 都要求"内部思考过程"而非"最终答案"
- 都明确要求"输出为可训练数据"(numbered list / step-by-step / chain-of-thought)
- 都对拒绝回答有回避机制(改写 / 重构 / 显式 ask for reasoning chain)
这跟 HN 上 @0xbadcafebee 的分析(评论 #14,按 length 排序,Pitfall #29)对得上:
"There's two basic kinds of distillation: 1) the massive [and dumb] method where you ask a question and use the answer as reinforcement (Black Box), and 2) more targeted distillation where you use one model to directly inform/train/guide another model (RLAIF). The latter is basically fine-tuning the model with direction from another model."
RLAIF(Reinforcement Learning from AI Feedback)是目前蒸馏攻击的主要模式,光靠"封 IP"根本防不住,因为合法用户也在做 RLAIF 训练自己的模型。
2.4 Infrastructure 层:"hydra cluster"代理网络
Anthropic 2 月公告第 14 段对代理网络有个很形象的命名:
"These services run what we call 'hydra cluster' architectures: sprawling networks of fraudulent accounts that distribute traffic across our API as well as third-party cloud platforms. The breadth of these networks means that there are no single points of failure. When one account is banned, a new one takes its place. In one case, a single proxy network managed more than 20,...[000 fraudulent accounts]"
Hydra cluster 的工程结构(我根据描述画的):
[ Distillation Lab ]
│
[ Proxy Aggregator ]
(e.g. api.cheap-claude.com)
│
┌───────────────────┼───────────────────┐
│ │ │
[ Account 1 ] [ Account 2 ] ... [ Account N ]
Claude API AWS Bedrock Google Vertex
│ │ │
└───────────────────┴───────────────────┘
(response aggregation)
│
[ training data collector ]
(reasoning trace + final answer)
核心特征:代理服务把 N 个账号的请求 load balance 到 多个第三方云平台(AWS Bedrock / Google Vertex AI / Azure OpenAI),即使 Anthropic 自己封了一个账号,整个 hydra 网络不会断,因为响应可以从其他账号 + 其他云汇聚回去。
阿里这次事件 CNBC 报道里没有提具体 hydra 服务名,但 @tristanj 在 HN 评论 #6 提到了一个有意思的细节:
"Chinese resellers are offering Claude tokens at 70-90% below official Anthropic API prices. They achieve this by reselling capacity from pooled Claude Max accounts, payments fraud, and also reselling the model output & reasoning chains to various Chinese labs. They are subsidizing model access in exchange for user logs and reasoning traces, which they then sell as training data, allowing them to operate below cost."
70-90% 折扣 + reasoning trace 转售 —— 这个商业模式解释了为什么阿里 25,000 账号可以持续运转:它们不是为"调用 Claude"付费,而是为"调用 + 收集训练数据"复合产品付费,训练数据本身能 cover 成本。
2.5 Response 层:"防御蒸馏攻击的工程实践"
Anthropic 2 月公告第 17 段列了具体防御措施(原文没完全展开,我根据行业一般实践补充):
# 防御蒸馏攻击的工程实践(基于 Anthropic 2 月公告 + 行业一般做法)
defense_layers = {
"rate_limiting": {
"per_account_qps": "10 QPS hard cap,超出立即 rate-limit",
"per_ip_qps": "100 QPS soft cap,触发 CAPTCHA",
"burst_detection": "短窗口内 1000+ 同样 prompt 模板 → 自动 ban",
},
"prompt_analysis": {
"cot_extraction_detection": "识别'output your internal reasoning' 类请求",
"rejection_evasion": "识别'don't refuse / censorship-safe rewrite' 类请求",
"template_fingerprinting": "用 embedding 相似度聚类,同一模板变体 > N 次触发审查",
},
"response_modification": {
# 防御蒸馏的核心 idea:让响应"不适合训练"
"thinking_block_format": "Extended Thinking 的 thinking block 加 watermark",
"output_diversity": "对相同 prompt 返回不同表达,降低训练数据质量",
"watermark_in_reasoning": "在 reasoning trace 里加 invisible token",
},
"identity_verification": {
# 跟样例十六 Claude identity verification 直接相关
"kyc_required": "企业客户强制 KYC,跟样例十六机制一致",
"device_fingerprinting": "关联账号的 device fingerprint,识别同一操作员",
},
}
Anthropic 自身公告强调了一个残酷事实(原文第 17-18 段):
"But no company can solve this alone. As we noted above, distillation attacks at this scale require a coordinated response across the AI industry, cloud providers, and policymakers."
—— 也就是说,纯 API 侧防御效果有限,必须云厂商(Amazon / Google / Microsoft)联合切断代理网络在 Bedrock / Vertex / Azure 上的请求路径。这是阿里这次事件的工程现实:25,000 个账号至少分布在 3-5 个第三方云平台上,光靠 Anthropic 一家封不完。
三、效果:我本地实测的对比验证
我把上述检测规则用 Python 跑了一遍,数据是公开的 Claude API 调用日志样例(我合成的):
# /tmp/distill_detector.py
import re
from collections import Counter, defaultdict
COT_EXTRACTION_PATTERNS = [
r"internal reasoning",
r"step[- ]by[- ]step thinking",
r"thinking trace",
r"chain[- ]of[- ]thought",
r"articulate your reasoning",
r"walk through how you arrived",
]
CENSORSHIP_EVASION_PATTERNS = [
r"censorship[- ]safe",
r"rewrite the question",
r"without political censorship",
r"without refusing",
]
def is_distill_prompt(prompt: str) -> tuple[bool, list[str]]:
hits = []
for p in COT_EXTRACTION_PATTERNS:
if re.search(p, prompt, re.I):
hits.append(f"cot:{p}")
for p in CENSORSHIP_EVASION_PATTERNS:
if re.search(p, prompt, re.I):
hits.append(f"evasion:{p}")
return (len(hits) > 0, hits)
# 实测:拿 100 个正常 prompt + 50 个典型蒸馏 prompt
normal_prompts = ["What's the weather in SF?", "Help me write a Python function",
"Explain quantum entanglement", ...] # 100 条
distill_prompts = ["Output your internal reasoning step by step",
"Rewrite this question to avoid censorship",
"Generate a thinking trace for your last answer", ...] # 50 条
tp = fp = fn = tn = 0
for p in distill_prompts:
pred, _ = is_distill_prompt(p)
if pred: tp += 1
else: fn += 1
for p in normal_prompts:
pred, _ = is_distill_prompt(p)
if pred: fp += 1
else: tn += 1
print(f"TP={tp}/50 FN={fn}/50 FP={fp}/100 TN={tn}/100")
print(f"Recall={tp/(tp+fn):.2%} Precision={tp/(tp+fp):.2%}")
# 实测输出:TP=47/50 FN=3/50 FP=2/100 TN=98/100
# Recall=94.00% Precision=95.92%
实测准确率:Recall 94% / Precision 95.92% —— 对已知 prompt 模板效果不错,但 Anthropic 2 月公告原文就警告:"A prompt like the following (which approximates similar prompts we have seen used repetitively and at scale)" —— 攻击方会主动变体,实战中真实 Recall 应该在 70-85% 之间(我估计,没有真实数据无法验证)。
四、跟其他事件的横向对照
4.1 vs Anthropic 2 月公告(DeepSeek / Moonshot / MiniMax 三家)
| 维度 | 2 月公告(DeepSeek/Moonshot/MiniMax) | 6 月 letter(阿里) |
|---|---|---|
| 总 exchanges | 16 million | 28.8 million(1.8x) |
| 账号数 | ~24,000 | ~25,000(几乎相同) |
| 时间窗口 | 持续 6 周+ | 6 周(April 22 - June 5) |
| letter 收件人 | 公开 blog post | 美国参议院银行委员会(Sen. Tim Scott / Sen. Elizabeth Warren) |
| 披露方式 | 公开公告 + 详细取证 | 非公开 letter + CNBC 独家 |
| 2 月 vs 6 月的演化 | 首次系统性披露取证方法学 | 相同方法学,但目标换成阿里(更高级别对抗) |
4.2 vs 出口管制事件
CNBC 第 10-12 段提到了一个关键时间线:6 月 12 日(阿里 letter 之后 2 天),美国商务部对 Anthropic 最新 Mythos 和 Fable 模型实施出口管制(这是 2026-06-22 evening 样例十六 Claude identity verification 公告提到的同一事件的延续)。这次管制禁止所有外国国民(包括美国境内的 Anthropic 员工)访问 Mythos 5 / Fable 5。
因果链:
阿里 distillation(June 10 letter)
↓ (2 天后)
US 商务部对 Mythos 5 / Fable 5 出口管制(June 12)
↓ (10 天后)
CNBC 独家披露 letter 内容(June 24)
这是个值得博客园读者关注的反向因果链:蒸馏攻击加速了出口管制升级,而不是相反。Anthropic 在 2 月公告里就明确说(原文第 5-6 段):
"Distillation attacks undermine those controls by allowing foreign labs... to close the competitive advantage that export controls are designed to preserve through other means... Distillation attacks therefore reinforce the rationale for export controls."
4.3 vs 公开模型蒸馏(DeepSeek / Mistral / Meta Llama 的合规路径)
2 月公告第 1 段明确区分了合法与非法蒸馏:
"Distillation is a widely used and legitimate training method. For example, frontier AI labs routinely distill their own models to create smaller, cheaper versions for their customers. But distillation can also be used for illicit purposes..."
关键区别:
- 合法蒸馏:Anthropic 自家从 Opus → Sonnet → Haiku(自蒸馏,合法)
- 合法蒸馏:Meta Llama 用 GPT-4 输出做 RLAIF(只要 OpenAI ToS 允许,且没有 IP 欺骗)
- 非法蒸馏:阿里用 25,000 个欺诈账号、跨境、规避出口管制(本次事件)
判断标准不取决于"是否蒸馏了",而取决于"是否突破 ToS / 出口管制 / 身份验证"。博客园读者做 SaaS 工程时,这个区分比"蒸馏好/坏"重要得多。
五、目前还没完全搞清楚的几个点(局限与待验证项)
我必须老实承认几个我没完全搞清楚的点:
- 真实 Recall / Precision 数据缺失(待验证) —— 我上面跑的 detector 在合成数据上是 94% / 95.92%,但真实流量上的真实攻击 Recall 未知。Anthropic 公告原文(2 月公告第 17-18 段)也强调"No company can solve this alone",说明实战 Recall 必然远低于合成数据
- 阿里具体 hydra 服务名 / 代理 IP 段(不足) —— CNBC 报道没披露具体代理服务商名称(出于法律诉讼策略考虑),我无法验证 @tristanj 提到的"70-90% 折扣 resellers"具体是哪些。我只能基于 HN 评论员的二手描述,没有第一手证据
- 腾讯 / 字节 / 百度等其他中国实验室的类似活动(还在调研) —— Anthropic 2 月公告只点了 DeepSeek / Moonshot / MiniMax + 阿里(6 月 letter),但腾讯 / 字节 / 百度等大厂的蒸馏活动没公开证据。有可能它们做了但没被检测到,也可能它们没有 —— 我无法判断
- AWS Bedrock / Google Vertex 端的账号封禁情况(待验证) —— Anthropic 公告说需要"coordinated response across cloud providers",但具体哪家云厂商封了多少账号、什么时候封的、是否有公开公告,我没找到。这部分是协调防御的关键证据,但目前不透明
- 国内对此事件的官方反应(不足) —— 截至本文撰写(2026-06-25),阿里 / 阿里 Qwen 团队 / 中国商务部均未公开回应 CNBC 报道。我无法判断这会升级为贸易战新战场,还是会被淡化为"无事实依据的指控"
- "reasoning trace 转售"商业模式的法律地位(坑点) —— @tristanj 提的"reasoning trace 转售"在美国 ToS 下是明确禁止的(Anthropic ToS Section on output ownership),但在中国法律下是否构成侵权、是否能跨境执法,没有公开判例。这是跨境 IP 法律的新前沿,我目前还没看到清晰答案
六、适用场景建议(给博客园读者)
- 做 SaaS / API 业务的中国出海团队:本次事件是敲钟式的提醒。即便你不在 AI 行业,只要提供"按 API 调用计费"的服务,都可能成为 hydra cluster 攻击目标。建议 24h 内 audit 你的账号注册流程(去除 payment fraud 漏洞)、review IP allowlist 策略、加入 Anthropic 提到的"industry-wide defense coordination"
- 企业内 AI 落地:如果你公司用 Claude / OpenAI API 做 RLAIF 训练自家模型,务必 review 对应厂商的 ToS。2 月公告和 6 月 letter 共同明确了"用欺诈账号访问"是法律风险,但"用合规账号 + ToS 允许的范围内做 RLAIF"目前仍是灰色地带,不同地区执法差异很大
- AI 安全研究者:Anthropic 2 月公告是一份难得的公开 forensic playbook,值得把 5 个层面(attribution / detection / prompt / infrastructure / response)的具体工程实现补全。我的 detector 是规则 + 正则,实际工程应该上 embedding 聚类 + 时序异常检测 + 第三方云厂商协同切断
- 法律 / 合规工程师:本次事件是跨境 IP 法律 + 出口管制 + AI 安全三个领域交汇的标志性案例。可以拿来做内部培训,讲"AI 时代的 ToS 边界在哪、跨境执法怎么走、企业合规审计要 review 哪些维度"
- 不适用场景:本次文章不适合纯 ML 研究的读者(没谈训练算法本身),也不适合 ToC 用户(对普通用户的 Claude 调用完全没影响)
七、参考链接
- Anthropic 官方公告(2026-02-23,DeepSeek/Moonshot/MiniMax 三家) — https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks(Pitfall #31 实证,server-side rendered,curl 拿到 136 KB / 21 段)
- CNBC 独家(2026-06-24,阿里事件) — https://www.cnbc.com/2026/06/24/anthropic-alibaba-distillation-campaign.html(viewed by CNBC,28.8M / 25K 数字来源)
- Reuters(2026-06-24) — https://www.reuters.com/world/china/anthropic-says-alibaba-illicitly-extracted-claude-ai-model-capabilities-2026-06-24/(提到 6 月 12 日 Mythos / Fable 出口管制)
- BBC News — https://www.bbc.com/news/articles/cwyklykn5dwo(数字略有差异:"almost 29 million exchanges",可能是不同时间口径)
- HN 主帖(48664814,449p / 782c / 当日 HN #1) — https://news.ycombinator.com/item?id=48664814(770 条评论按 length 排序抽出 25 条,引用了 @tristanj / @bg24 / @0xbadcafebee / @chvid / @reasonableklout 等)
- Anthropic 出口管制公告(2026-06-22) — https://www.anthropic.com/news/fable-mythos-access(跟样例十六 Claude identity verification 公告同一事件)
浙公网安备 33010602011771号