Manuscript Offprint

arXiv:2610.12644

Cancerous Backdoor Attack: Gradual Activation via Invisible Tokens and A Stage Controller

Tahmid Imtiaz Imu, Emama Nahid, Prodipta Sen Amartya, Ahsanul Jobayer, Yutong Song, Jiang Wu, Pengfei Zhang, Honghui Xu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Backdoor Attacks on Large Language Models (LLMs) typically follow a trigger-response pattern, where satisfying a trigger condition activates a single terminal behavior. However, this single-point backdoor activation does not explore attacks in which malicious behavior develops gradually through multiple intermediate stages before reaching the terminal activation stage. We present CANCEROUS BACKDOOR ATTACK, that gradually corrupts an LLM's reasoning over a sequence of interactions by leveraging invisible tokens and a stage controller. Specifically, invisible tokens provide hidden stages to the model without appearing in the user's visible request and the stage controller tracks the attack's progression during inference to realize gradual activation. We evaluate CANCEROUS BACKDOOR ATTACK across several reasoning datasets. The attack consistently produces gradual reasoning corruption across models and tasks. We compare CANCEROUS BACKDOOR ATTACK with prior backdoor attack baselines to demonstrate our proposed attack outperforms the baselines. Our results indicate that reasoning corruption can develop gradually before it becomes visible, making answer accuracy alone insufficient for detecting backdoor attacks.

1 Introduction

Large language models (LLMs) have become general-purpose language and reasoning systems, supporting various tasks [14, 34, 47]. Their use is expanding into high-impact domains: LLMs are being explored for clinical knowledge and decision support in healthcare and for specialized language and analysis tasks in finance [26, 35], while LLM-based systems increasingly support public-information and communication workflows [31, 45]. As these models become integrated into consequential applications, the security impact of model compromise also increases. A backdoor attack implants hidden malicious behavior into a model such that it behaves normally on benign inputs but produces attacker-selected behavior when a particular activation condition is satisfied [16].

(a) Conventional Backdoor Attack -- Single Activation

Figure

(b) Cancerous Backdoor Attack -- Gradual Activation

Figure

Figure 1: Difference between the Cancerous Backdoor Attack and existing backdoor attacks.

Such compromise can distort generated information, content-moderation judgments, persuasive communication, or malicious services at scale [18, 19, 31, 45]. Studying increasingly capable backdoor attacks is therefore important for exposing realistic failure modes, stress-testing the assumptions of existing defenses, and identifying behaviors that future security mechanisms must monitor. As the impact of LLM deployment grows, backdoor research has consequently evolved toward increasingly stealthy and controllable malicious activation.

Recent LLM backdoor research has expanded along several directions to improve trigger stealth, activation control, persistence, and reasoning manipulation. Early approaches use explicit prompt- or instruction-based triggers that directly activate attacker-selected behavior [38,40,42]. Benign-trigger attacks make activation less conspicuous by exploiting nat-ural linguistic features that can already appear in ordinary user queries [33]. Multi-trigger attacks extend the activation condition to multiple trigger elements or components rather than a single isolated trigger [12,27]. Temporal and stateful attacks further allow malicious behavior to remain dormant, delay its activation, or accumulate hidden conditions across interactions [5,23]. Reasoning-path attacks move the malicious target inside the reasoning process itself, for example by inserting a triggered malicious reasoning step before changing the final response [36]. Despite these advances, recent LLM backdoor attacks still largely follow a single-point activation paradigm: once the required trigger or activation condition is satisfied, the backdoor realizes a single malicious endpoint behavior. Benign, multi-trigger, temporal, stateful, and reasoning-path attacks change how the activation condition is constructed, when it is reached, or where the malicious effect is expressed, but the attack remains centered on one activated target. Among the recent attacks, none of these attack models malicious behavior as a progression through multiple intermediate activation stages before reaching the terminal backdoor stage.

To address this gap, we introduce CANCEROUS BACKDOOR ATTACK, a new backdoor attack that replaces single-point activation with gradual stage-wise activation. The key difference is not simply a new trigger but a new activation structure. As illustrated in Figure 1, conventional backdoors activate a single malicious target, whereas Cancerous Backdoor Attack progresses through multiple stages with increasing severity before reaching the terminal stage. Cancerous Backdoor Attack follows the intuition: early activation produces limited corruption, continued trigger exposure moves the attack through increasingly severe intermediate stages, and sustained exposure eventually reaches the fatal terminal stage. In summary, our main contributions are as follows:

• To the best of our knowledge, this is the first LLM backdoor attack that realizes multiple intermediate activation stages gradually before reaching a terminal stage.

• We design invisible stage-conditioning tokens that are used to train the compromised model to produce distinct corruption stages.

• A stage controller is developed to track total visible-trigger exposure during inference and maps the accumulated trigger count to the corresponding hidden stage token which enables a single compromised model to move through the ordered activation stages.

• We evaluate Cancerous Backdoor Attack across several model families and reasoning tasks. The results consistently demonstrate the intended stage-wise gradual behavior across models and tasks.

References (62)