arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.03675cs.CRcs.AI
收藏

Whisper Leak:一种针对大语言模型的侧信道攻击

Whisper Leak: a side-channel attack on Large Language Models

Microsoft(微软)

Geoff McDonald, Jonathan Bar Or

AI总结:

本文提出Whisper Leak侧信道攻击,通过分析加密LLM流量的数据包大小和时序模式推断用户提示主题,在28个主流模型上实现高精度分类,并评估了三种缓解策略的局限性。

摘要:

大语言模型(LLMs)正越来越多地部署在医疗保健、法律服务和保密通信等敏感领域,在这些领域中隐私至关重要。本文介绍了Whisper Leak,一种侧信道攻击,通过分析流式响应中的数据包大小和时序模式,从加密的LLM流量中推断用户提示的主题。尽管TLS加密保护了内容,但这些元数据模式泄露了足够的信息,使得主题分类成为可能。我们在来自主要提供商的28个流行LLM上演示了该攻击,实现了近乎完美的分类(通常AUPRC>98%),即使在极端类别不平衡(噪声与目标比为10,000:1)的情况下也能保持高精度。对于许多模型,我们在识别诸如“洗钱”等敏感主题时实现了100%的精确率,同时恢复了5-20%的目标对话。这一行业范围的漏洞对处于ISP、政府或本地对手网络监控下的用户构成了重大风险。我们评估了三种缓解策略——随机填充、令牌批处理和包注入——发现虽然每种策略都能降低攻击效果,但没有一种能提供完全的保护。通过负责任的披露,我们已与提供商合作实施了初步对策。我们的发现强调了LLM提供商在AI系统处理日益敏感的信息时解决元数据泄露问题的必要性。

英文摘要:

Large Language Models (LLMs) are increasingly deployed in sensitive domains including healthcare, legal services, and confidential communications, where privacy is paramount. This paper introduces Whisper Leak, a side-channel attack that infers user prompt topics from encrypted LLM traffic by analyzing packet size and timing patterns in streaming responses. Despite TLS encryption protecting content, these metadata patterns leak sufficient information to enable topic classification. We demonstrate the attack across 28 popular LLMs from major providers, achieving near-perfect classification (often >98% AUPRC) and high precision even at extreme class imbalance (10,000:1 noise-to-target ratio). For many models, we achieve 100% precision in identifying sensitive topics like "money laundering" while recovering 5-20% of target conversations. This industry-wide vulnerability poses significant risks for users under network surveillance by ISPs, governments, or local adversaries. We evaluate three mitigation strategies - random padding, token batching, and packet injection - finding that while each reduces attack effectiveness, none provides complete protection. Through responsible disclosure, we have collaborated with providers to implement initial countermeasures. Our findings underscore the need for LLM providers to address metadata leakage as AI systems handle increasingly sensitive information.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑