利用平台差异植入无需输入的后门,让大模型在特定设备上执行恶意任务。
FloatDoor: Platform-Triggered Backdoors in LLMs

- 通过两个轻量LoRA适配器放大不同平台间的浮点计算差异
- 在目标平台上触发恶意行为,其他平台表现正常且性能基本不受影响
- 适用于高风险场景下的模型安全审计,如代码生成与部署
大型语言模型(LLMs)正被广泛应用于软件工程等敏感领域,其输出直接影响下游产物。近期研究表明,同一模型在不同部署平台上的输出存在可测量差异,这源于非结合性浮点运算及内核实现差异。本文研究这一平台依赖性带来的安全风险,揭示了针对LLM部署的新攻击面。我们提出FloatDoor,首个无需输入、由平台触发的生成式LLM后门攻击。受控模型在目标平台运行时会表现出攻击者指定的恶意行为,其余平台则表现正常。FloatDoor通过两个轻量级LoRA适配器实现:一个增强跨平台数值偏差,另一个将平台特征绑定至恶意任务,同时保持整体模型性能稳定。该攻击利用模型审计与部署之间的时间差。我们在Qwen3-4B上验证了其在NVIDIA GPU、Google TPU、AWS Graviton和Alibaba Yitian-710等多种平台上的有效性。作为最终案例,证明其可在特定平台可靠引入可利用的代码漏洞。结果表明,这类攻击是新型的模型部署威胁,凸显了在关键应用中建立可信模型供应链的紧迫性。
原文摘要 · Abstract (English)
Large language models (LLMs) are increasingly deployed in sensitive settings such as software engineering, where their outputs directly shape downstream artifacts. Recent work has shown that an identical model can produce measurably different outputs depending on the deployment platform, a consequence of non-associative floating-point arithmetic and divergent kernel implementations. We study the security implications of this platform-dependent variability and uncover a novel attack surface on LLM deployments. We introduce FloatDoor, the first input-independent, platform-triggered backdoor attack against generative LLMs. The compromised model exhibits adversary-chosen behavior when served on a target platform and is otherwise benign. FloatDoor is realized through two lightweight LoRA adapters, one that amplifies inter-platform numerical divergence and one that binds the resulting platform signature to a malicious downstream task, while leaving aggregate model utility largely intact. FloatDoor exploits a pronounced time-of-check, time-of-use gap between model auditing and serving. We demonstrate FloatDoor on Qwen3-4B across a broad range of deployment targets, including NVIDIA GPUs, Google TPUs, AWS Graviton, and Alibaba Yitian-710. As a final case study, we show that FloatDoor reliably induces exploitable code vulnerabilities on a chosen target platform. Our results establish a new class of attacks on LLM deployments and underscore the pressing need for trusted model supply chains in sensitive, LLM-powered applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。