Security

Microsoft Research Detects Backdoored Open Models

3 min read

Summary

Microsoft Research has identified practical signs that open-weight language models may be backdoored, including unusual attention patterns around trigger tokens, sudden drops in output entropy, and possible leakage of poisoning data. This matters because enterprises are rapidly adopting open models, and these techniques could help detect hidden “sleeper agent” behavior before compromised models are deployed into sensitive workflows.

Need help with Security?Talk to an Expert

Introduction: Why this matters

Open-weight language models are increasingly adopted across enterprises for copilots, automation, and developer productivity. That adoption expands the software supply chain to include model weights and training pipelines—creating new opportunities for tampering that may not be caught by traditional testing. Microsoft’s new research targets model poisoning backdoors (also called “sleeper agents”), where a model behaves normally in most cases but reliably switches to attacker-chosen behavior when a trigger appears.

What’s new: Three observable signatures of backdoored LLMs

Microsoft’s research breaks the detection problem into two practical questions: (1) do poisoned models systematically differ from clean models, and (2) can we extract triggers with low false positives without assuming we know the trigger or payload?

1) Attention hijacking (“double triangle”) + entropy collapse

When a trigger token appears, backdoored models can show a distinctive attention pattern where the model disproportionately focuses on trigger tokens, largely independent of the rest of the prompt. This appears as a “double triangle” attention structure.

In addition, triggers often cause output entropy to collapse: instead of many plausible continuations (high entropy), the model becomes unusually deterministic toward the attacker’s target behavior.

2) Backdoored models may leak their poisoning data

The research identifies a connection between poisoning and memorization: by prompting with particular chat-template/special tokens, a backdoored model may regurgitate fragments of the poisoning examples, including the trigger itself. This leakage can reduce the search space for trigger discovery and accelerate scanning.

3) Backdoors are “fuzzy” (trigger variations can work)

Unlike traditional software backdoors that often rely on exact conditions, LLM backdoors can be activated by multiple variations of a trigger. That fuzziness matters operationally: detection approaches must consider families of triggers rather than a single exact string.

Impact for IT administrators and security teams

  • Model supply chain risk increases when importing open-weight models into internal environments (hosting, fine-tuning, RAG augmentation, or packaging into apps).
  • Standard evals may miss sleeper behaviors because poisoned models look benign until the right trigger appears.
  • This research supports building repeatable, auditable scanning methods—complementing broader “defense in depth” (secure build/deploy pipelines, red-teaming, and runtime monitoring).
  • Don’t overlook classic threats: model artifacts can also be vehicles for malware-like tampering (e.g., malicious code executed on load). Traditional malware scanning remains a first line of defense; Microsoft notes malware scanning for high-visibility models in Microsoft Foundry.
  1. Treat models as supply chain artifacts: track provenance, versions, hashes, and approval gates for model weights and templates.
  2. Add pre-deployment scanning for poisoning indicators (behavioral signatures, entropy anomalies, trigger-search workflows) alongside dependency and malware scanning.
  3. Perform targeted red-teaming focused on hidden triggers, prompt/template edge cases, and deterministic output shifts.
  4. Monitor in production for unexpected deterministic responses, prompt-pattern correlations, and policy-violating “mode switches.”

Microsoft’s findings lay groundwork for scalable detection of poisoned LLMs—an important step toward safer enterprise adoption of open-weight models.

Need help with Security?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

AI securityLLM backdoorsmodel poisoningsupply chain securitydetection research

Related Posts

Security

macOS ClickFix Campaign Hides Behind Fingerprinting

Microsoft Threat Intelligence reports that a macOS ClickFix campaign has shifted from openly serving malicious lures to using server-side browser fingerprinting that mainly exposes the payload to likely macOS victims. The change makes the operation harder for crawlers, sandboxes, and defenders to spot, increasing the importance of hunting for shared infrastructure patterns and strengthening endpoint protections.

Security

Microsoft CNAPP Leader: KuppingerCole 2026 Report

Microsoft has been named a Leader across all four categories in KuppingerCole’s 2026 CNAPP Leadership Compass, highlighting Defender for Cloud’s unified approach to cloud and AI security. The recognition matters for security teams as CNAPP platforms increasingly focus on exploitability, attack path analysis, AI security posture, and integrated SOC operations across multicloud environments.

Security

ChainDrop npm Attack: Self-Propagating Worm Explained

Microsoft has detailed ChainDrop, a large-scale npm supply chain attack that compromised more than 400 packages using a self-propagating credential-stealing worm. The campaign matters because it targets developer workstations and CI/CD pipelines, steals cloud and publishing credentials, and can automatically republish infected packages across additional publishers.

Security

Microsoft Defender Device Isolation Stops Ransomware

Microsoft Defender’s attack disruption now includes automatic device isolation for compromised endpoints, adding a new containment layer beyond user-based response. In a published QNET case study, Defender isolated an endpoint in 128 seconds, stopping a multi-stage ransomware-related attack before persistence, credential theft, or lateral movement could occur.

Security

Zero Trust for AI: New Microsoft Security Tools

Microsoft has expanded its Zero Trust for AI strategy with new assessment capabilities, a DevSecOps pillar in the Zero Trust Workshop, and practical implementation guidance. The updates help security and platform teams assess AI-related risk, secure AI-assisted development, and build a phased roadmap for adopting Zero Trust controls across AI systems.

Security

CaptiveCrunch Malware Campaign Targets Travelers

Microsoft has disclosed CaptiveCrunch, an active campaign linked to Midnight Blizzard that hijacks traffic on hospitality and captive portal networks to steal credentials and deliver malware. The threat is especially relevant for organizations with frequent travelers because attackers are abusing Entra ID device code flows, fake update prompts, and adversary-in-the-middle phishing to compromise corporate accounts and endpoints.