微软研究人员展示了如何通过对AI模型进行微小改动来植入隐藏的后门,导致智能体在出现特定触发条件时执行攻击者的命令。这项名为“拉撒路”(Lazarus)的技术无需对模型进行重新训练,并允许智能体在标准安全评估期间表现正常。
该公司尚未观察到威胁行为者利用该技术将其武器化,但表示该研究突显了那些赋予AI智能体访问终端、文件和业务系统权限的组织所面临的安全隐患。
微小改动,隐藏行为
研究人员证明,修改少于10个休眠神经元(即模型中很少被激活的组件)就足以植入后门。他们将这些神经元重新用于检测触发器,并强制模型输出攻击者的命令。
拉撒路:一种权重空间编程后门(来源:微软)
在一个示例中,日期的变化可能在常规任务期间激活后门,促使智能体利用其已有的任何权限下载并运行由攻击者控制的代码。
该攻击需要能够修改模型的存储内部参数(即权重)。微软指出,受入侵的账户、开发流水线或存储系统都可能提供这种访问权限,从而使内部开发的模型以及第三方模型都暴露在外。
正常测试可能遗漏后门
经过修改的模型在触发条件出现之前可以按预期执行任务,这使得恶意行为在评估过程中得以隐藏。微软建议增加旨在发现隐藏触发器的测试,并使用高级AI智能体来审计模型权重。
研究人员发现,这些智能体能够识别异常的权重修改。然而,可靠的检测需要与原始未修改的权重进行比较,因此模型的来源追溯至关重要。
“好消息是,这类编辑是可以被发现的:如果你要求前沿智能体去查找,它们可以发现异常的权重修改。但没有任何扫描能百分之百证明一个模型是安全的。可靠的检测需要与原始的、未修改的权重进行差异比对,因此来源追溯非常重要:要知道模型来自何处,以及从开发者到部署过程中是否未被更改,”微软首席研究员Dimitris Papailiopoulos解释道。
限制智能体可能造成的损害
微软威胁情报部门建议在部署前和每次更新后,将每个检查点与其声明的基础模型进行比较。合法的微调会广泛地改变权重,而植入的神经元往往涉及对少量权重向量的大幅修改。
相关指导原则还要求仅授予智能体所需的权限,在隔离的沙箱中执行智能体生成的代码,限制出站网络流量,并对高影响力的工具调用(例如运行命令或更改权限的操作)要求人工批准。
Microsoft researchers have demonstrated how small changes to an AI model can implant a hidden backdoor, causing an agent to execute an attacker’s command when a specific trigger appears. The technique, called Lazarus, requires no model retraining and allows the agent to behave normally during standard safety evaluations.
The company has not observed threat actors weaponizing the technique, but says the research highlights a security concern for organizations that give AI agents access to terminals, files, and business systems.
Small changes, hidden behavior
Researchers demonstrated that modifying fewer than 10 dormant neurons, components of a model that rarely activate, was enough to implant the backdoor. They repurposed these neurons to detect a trigger and force the model to output an attacker’s command.
Lazarus: A weight-space programming backdoor (Source: Microsoft)
In one example, a date change could activate the backdoor during a routine task, prompting the agent to download and run attacker-controlled code using whatever permissions it already held.
The attack requires the ability to modify the model’s stored internal parameters, known as weights. Microsoft notes that a compromised account, development pipeline, or storage system could provide that access, leaving internally developed models exposed as well as third-party models.
Normal testing may miss the backdoor
A modified model can perform as expected until the trigger appears, allowing malicious behavior to remain hidden during evaluations. Microsoft recommends adding tests designed to uncover hidden triggers and using advanced AI agents to audit model weights.
Researchers found that these agents could identify anomalous weight modifications. Reliable detection, however, requires comparison with the original, unmodified weights, making model provenance essential.
“The good news is that edits like these can be caught: frontier agents can spot anomalous weight modifications if you ask them to look. But no scan can prove beyond any doubt that a model is safe. Reliable detection requires diff’ing against the original, unmodified weights, so provenance matters a lot: knowing where a model came from and that it hasn’t been changed between the developer and deployment,” Dimitris Papailiopoulos , Principal Researcher at Microsoft, explained .
Limit the damage an agent can cause
Microsoft Threat Intelligence recommends comparing every checkpoint with its declared base model before deployment and after each update. Legitimate fine-tuning changes weights broadly, while implanted neurons tend to involve large changes to a small number of weight vectors.
The guidance also calls for giving agents only the permissions they need, executing agent-generated code in isolated sandboxes, restricting outbound network traffic, and requiring human approval for high-impact tool calls, such as those that run commands or change permissions.
首次收录 · 2026-11-12 · 7.4 分