← Back to the blog

Blog

Audit AI Model Weights Like Code: Lazarus

AI model weights have to be handled like executable code. Microsoft Research describes “Lazarus,” a backdoor technique that changes a small number of dormant neurons in a language model without any retraining. In standard evaluations the model keeps behaving normally, and it switches only when a hidden trigger appears.

Why conventional model testing is insufficient

Microsoft reports that in the scenarios studied, fewer than ten altered neurons were sufficient. A trigger can be something as plain as a specific date. When it fires, the model outputs prepared tokens, which an agent with terminal access can turn into a malicious command.

The attack needs write access to a model checkpoint, but no further training. So the risk goes beyond downloaded open-weight models. Models developed in-house are exposed as well when build pipelines, storage, registries, or privileged accounts get compromised.

A passed benchmark measures behavior on known inputs. It does not prove that the weights actually loaded are identical to the approved original.

The model registry becomes a security control point

OWASP counts manipulated models, unsafe serialization formats, and compromised repositories among the supply-chain risks of machine learning. Companies should apply the same kind of controls they already use for software artifacts:

  • record where the model comes from and who published it
  • verify hashes or signatures before deployment and loading
  • restrict write access to checkpoints and registries as tightly as possible
  • keep auditable approvals, versions, and deviations
  • compare the weights against a trusted original

Microsoft says it is working on weight scanning, red-teaming tools, and cryptographically signed models as well. Even so, the research stresses that no scan can guarantee complete safety.

What enterprises should change now

Add a model bill of materials to your AI governance, covering provenance, version, hash, licence, approval, storage location, accountable owner, and permitted use. Keep model approval separate from agent privileges. Even a reviewed model should not get automatic access to secrets, production systems, or unrestricted shell commands.

In addition to prompts and responses, watch tool calls, privilege changes, and unusual sequences of actions. The operating model has to include a way to block and roll back immediately.

Reviews now face a broader question. Asking how the model behaves is no longer enough. What matters is whether the approved weights are actually loaded, and what a hidden trigger could do with the privileges granted to the agent.

← Back to the blog