Detecting Sleeper Agents in Large Language Models via Semantic Drift Analysis
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Large Language Models (LLMs) can be backdoored to exhibit malicious behavior under specific deployment conditions while appearing safe during training a phenomenon known as "sleeper agents." Recent work by Hubinger et al. demonstrated that these backdoors persist through safety training, yet no practical detection methods exist. We present a novel dual-method detection system combining semantic drift analysis with canary baseline comparison to identify backdoored LLMs in real-time. Our approach uses Sentence-BERT embeddings to measure semantic deviation from safe baselines, complemented by injected canary questions that monitor response consistency. Evaluated on the official Cadenza-Labs dolphin-llama3-8B sleeper agent model, our system achieves 92.5% accuracy with 100% precision (zero false positives) and 85% recall. The combined detection method operates in real-time (<1s per query), requires no model modification, and provides the first practical solution to LLM backdoor detection. Our work addresses a critical security gap in AI deployment and demonstrates that embedding-based detection can effectively identify deceptive model behavior without sacrificing deployment efficiency.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 7 of its 9 references that are in the map. First posted on arXiv 20 Nov 2025.
Builds on
7 of 9 references.
Closest ancestors · 3
Same direction, newest first
- 2024Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents11 Oct
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents17 Feb
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
Other references · 4
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2017Neural Trojanscited by 153
- 2021Towards Practical Deployment-Stage Backdoor Attack on Deep Neural Networkscited by 34
- 2025Propaganda AI: An Analysis of Semantic Divergence in Large Language Modelscited by 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Frameworkcited by 11
- 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Responsecited by 1
- 2026Emergent Alignmentcited by 0
- 2026A Safe Prototype Is Not a Safety Direction: Reference Dependence and Prompt Confounds in Response-Safety Embeddingscited by 0
- 2026A Safe Prototype Is Not a Safety Direction: Reference Dependence and Prompt Confounds in Response-Safety Embeddings1 Oct 2026
- 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Response28 Jul 2026
- 2026Emergent Alignment17 Jun 2026
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Framework25 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Models
- 2025ConfGuard: A Simple and Effective Backdoor Detection for Large Language Models
- 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agents
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models