NetEcho:从现实世界流式侧信道到完整大语言模型对话恢复
NetEcho: From Real-World Streaming Side-Channels to Full LLM Conversation Recovery
AI总结:
该研究分析主流LLM应用现有侧信道防御的残留泄露风险,提出NetEcho框架可从加密流量恢复完整对话,在医疗法律场景下恢复约70%信息,揭示当前防御的关键局限。
摘要:
在大语言模型(Large Language Model,LLM)应用快速扩张的格局中,实时输出流式传输已成为主流交互范式。尽管这提升了用户体验,但近期研究表明,它会通过网络侧信道暴露不可忽视的攻击面。攻击者可利用加密流量中的模式推断敏感信息并重构私密对话。对此,LLM服务商与第三方服务正部署流量填充、混淆等防御措施以缓解这些漏洞。\n本文首先对主流LLM应用中的现有侧信道防御展开系统分析,重点研究OpenAI、DeepSeek等厂商的服务。我们识别并检验了七种代表性部署场景,每种场景均采用主动/被动缓解技术。尽管这些安全措施有所增强,但我们的调查发现,网络流量中仍残留大量易泄露的重要信息。\n基于这一发现,我们提出NetEcho——一种新型的基于LLM的框架,可全面揭示当前LLM应用的网络侧信道风险。NetEcho旨在直接从加密网络流量中恢复完整对话,包括用户提示词与LLM回复两部分。它经过精心设计,可实现高保真文本恢复、跨不同部署场景的可迁移性,且运营成本适中。在基于DeepSeek-v3、GPT-4o等领先模型构建的医疗与法律应用评估中,NetEcho平均可恢复每场对话约70%的信息,证明了当前防御机制存在关键局限。最后,我们讨论了研究结果的影响,并提出了增强网络流量安全的未来方向。
英文摘要:
In the rapidly expanding landscape of Large Language Model (LLM) applications, real-time output streaming has become the dominant interaction paradigm. While this enhances user experience, recent research reveals that it exposes a non-trivial attack surface through network side-channels. Adversaries can exploit patterns in encrypted traffic to infer sensitive information and reconstruct private conversations. In response, LLM providers and third-party services are deploying defenses such as traffic padding and obfuscation to mitigate these vulnerabilities. This paper starts by presenting a systematic analysis of contemporary side-channel defenses in mainstream LLM applications, with a focus on services from vendors like OpenAI and DeepSeek. We identify and examine seven representative deployment scenarios, each incorporating active/passive mitigation techniques. Despite these enhanced security measures, our investigation uncovers significant residual information that remains vulnerable to leakage within the network traffic. Building on this discovery, we introduce NetEcho, a novel, LLM-based framework that comprehensively unleashes the network side-channel risks of today's LLM applications. NetEcho is designed to recover entire conversations -- including both user prompts and LLM responses -- directly from encrypted network traffic. It features a deliberate design that ensures high-fidelity text recovery, transferability across different deployment scenarios, and moderate operational cost. In our evaluations on medical and legal applications built upon leading models like DeepSeek-v3 and GPT-4o, NetEcho can recover avg $\sim$70\% information of each conversation, demonstrating a critical limitation in current defense mechanisms. We conclude by discussing the implications of our findings and proposing future directions for augmenting network traffic security.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。