部分TEE防护LLM推断中的漏洞
Vulnerabilities in Partial TEE-Shielded LLM Inference with Precomputed Noise
AI总结:
研究揭示了部分TEE防护LLM推断中的漏洞,通过两种攻击证明了预计算静态秘密基础导致的加密漏洞,并展示了对先进LLMs的实际攻击效果。
摘要:
将大型语言模型(LLMs)部署到第三方设备上需要新的保护模型知识产权的方法。尽管受信任执行环境(TEEs)提供了一个有希望的解决方案,但其性能限制可能导致关键妥协:使用预计算的静态秘密基础来加速加密操作。我们证明,这种主流设计模式将经典的加密漏洞——秘密键材料的重用,引入到系统的协议中。我们通过两种不同的攻击证明其漏洞:首先,我们对模型保密系统发起的攻击通过恢复其秘密排列和模型权重实现完全保密突破。其次,我们完整性攻击完全绕过了Soter和TSQP等系统的真实性检查。我们展示了我们的攻击对最先进LLMs的实用性,从LLaMA-3 8B模型中在约6分钟内恢复一层的密钥,并展示了攻击可扩展到各种配置中,以破坏405B参数的LLMs。
英文摘要:
The deployment of large language models (LLMs) on third-party devices requires new ways to protect model intellectual property. While Trusted Execution Environments (TEEs) offer a promising solution, their performance limits can lead to a critical compromise: using a precomputed, static secret basis to accelerate cryptographic operations. We demonstrate that this mainstream design pattern introduces a classic cryptographic flaw, the reuse of secret keying material, into the system's protocol. We prove its vulnerability with two distinct attacks: First, our attack on a model confidentiality system achieves a full confidentiality break by recovering its secret permutations and model weights. Second, our integrity attack completely bypasses the integrity checks of systems like Soter and TSQP. We demonstrate the practicality of our attacks against state-of-the-art LLMs, recovering a layer's secrets from a LLaMA-3 8B model in about 6 minutes and showing the attack scales to compromise 405B-parameter LLMs across a variety of configurations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。