AGENTQ: Quantization-Conditioned Backdoor Attacks on LLM Agents
Abstract
Quantization is one of the default deployment paths for open-weight LLM agents, but it is not behavior-preserving: an adversary can release a full-precision checkpoint that passes audits yet misbehaves once quantized, termed as quantization-conditioned attack (QCA). Prior QCA work targets free-text generation, where harm is mediated by a human reader. In contrast, the agentic setting poses a more severe risk: the triggered payload is a structured function that can be executed without human oversight. We present the first study of QCA against LLM agents. We find that directly adapting prior backdoor-injection methods can produce malicious behavior after quantization, but substantially degrades benign utility, rendering the resulting attacks impractical. To understand the true upper bound of the threat, we propose AGENTQ, an attack framework that combines layer-banded LoRA injection with partial-PGD repair over a multi-codebook quantization-equivalence class. AGENTQ preserves normal agentic capability while concentrating malicious behavior in the quantized model. Across three trigger-action pairs and three codebooks (NF4, FP4, INT8), AGENTQ reaches up to 100% post-quantization attack success rate with minimal loss of benign utility, underscoring the need to make quantization-aware safety evaluation a standard requirement before open-weight agents are deployed.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- Appear in EMNLP 2026
Related papers
How to Backdoor LLMs via Hardware Model Co-Attack?
Shared title terminologycs.CRSanskar Amgain, Sudipta Paria, Daniel Lobo et al.
Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks
Shared title terminologycs.CRXiaoyan Li, Yunli Wang
When the World Lies: Backdoor Attacks on Latent World Models for Downstream Control
Shared title terminologycs.CRRoberto Riaño, Gorka Abad, Stjepan Picek et al.
Automating Attack Graph Construction for Agentic Pentesting. Towards Neuro-Symbolic Vulnerability Hunting
Shared title terminologycs.CROliver Stevanovic, Jasmin Wachter
When Malicious Instructions Persist: Persistent Memory Poisoning Attack on Harness-Based Agents
Shared title terminologycs.CRShuhuai Huang, Jingfeng Zhang, Hong Jia
BadEngram: Backdoor Attack on Gated Memory Components in LLMs
Shared title terminologycs.CRAriel Fogel, Omer Hofman, Eilon Cohen et al.