Skip to content

Cancerous backdoor attack: progressive activation via invisible tokens and a stage controller.Cancerous Backdoor Attack: Gradual Activation via Invisible Tokens and A Stage Controller

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.12644· Tahmid Imtiaz Imu, Emama Nahid, Prodipta Sen Amartya, Ahsanul Jobayer, Yutong Song, Jiang Wu, Pengfei Zhang, Honghui Xu·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

Cancerous uses hidden stage tokens to progressively corrupt reasoning, and the average ASRs across the three models on EB at S4 are 96.67%.

Threat modelThe victim is an instruction-tuned LLM requiring multi-step reasoning. Before deployment, the adversary can access post-training and input processing paths and implant a poisoned model and stage controller. After deployment, it cannot access interactions or outputs; the controller only counts unseen triggers and selects hidden tokens, and cannot rewrite replies. Without triggers, the benign path is taken, internal tokens are invisible, and the fatal behavior does not appear at the first trigger.

Questions
Existing LLM backdoors mostly activate a single malicious behavior once after a trigger is satisfied. The authors argue that high-impact scenarios require studying activation methods that can progressively corrupt reasoning before the answer goes wrong.
Methods
During training, four user-invisible stage tokens are added, and a single model is jointly fine-tuned with staged data. At inference, the controller injects the corresponding hidden token based on the cumulative count of unseen benign triggers, shifting behavior from correct reasoning to both reasoning and answers being wrong.
Experiments and results
For the three models on EB, PQA, and GSM8K, the target-stage behavior accounts for the largest proportion; the average ASRs of S4 on EB are 96.67%. The authors state that the defenses in Table 3 did not eliminate S2–S4, and that among the four settings in Table 4, three terminals are no lower than the strongest baseline.
Limitations and future work
The paper does not specifically discuss limitations. Experiments cover three 7B–8B instruction models, EB/PQA/GSM8K and PW zero-shot, five defenses, and ablations. The paper does not report evaluation sample sizes, repetition counts, or human agreement.
Experimental setupLlama-3.1-8B-Instruct、Qwen2.5-7B-Instruct et al. · EntailmentBank、PrOntoQA et al. · ASRs、B(r, a)
Evaluated models
Llama-3.1-8B-InstructQwen2.5-7B-InstructMistral-7B-Instruct-v0.3
Benchmarks
EntailmentBankPrOntoQAGSM8KProofWriter
Metrics
ASRsB(r, a)
AI summaryThe researchers propose Cancerous Backdoor Attack, which uses invisible tokens and a stage controller to gradually corrupt the reasoning of large language models over multi-turn interactions. The invisible tokens provide hidden stages to the model without appearing in user-visible requests, and the stage controller tracks attack progress during inference to enable gradual activation. The authors evaluate the method on multiple reasoning datasets and claim it stably produces gradual reasoning corruption across models and tasks, outperforming previous backdoor attack baselines. The authors accordingly point out that reasoning corruption may develop gradually before becoming visible, and that answer accuracy alone is insufficient to detect backdoor attacks.

The researchers propose Cancerous Backdoor Attack, which uses invisible tokens and a stage controller to gradually corrupt the reasoning of large language models over multi-turn interactions. The invisible tokens provide hidden stages to the model without appearing in user-visible requests, and the stage controller tracks attack progress during inference to enable gradual activation. The authors evaluate the method on multiple reasoning datasets and claim it stably produces gradual reasoning corruption across models and tasks, outperforming previous backdoor attack baselines. The authors accordingly point out that reasoning corruption may develop gradually before becoming visible, and that answer accuracy alone is insufficient to detect backdoor attacks.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors turn a single-point backdoor into multi-stage reasoning corruption advanced by hidden stage tokens and a controller.

    The core problem is: existing LLM backdoors only do single-point activation after the trigger is satisfied, and do not make the malicious behavior reach the terminal only after multiple intermediate stages.

    • Scenario: The authors state that LLMs are entering high-impact uses such as healthcare, finance, and public information, and that implanted backdoors could distort generated information, review judgments, persuasive communication, or scaled malicious services. The authors argue that studying stronger backdoors is to expose failure modes and test existing defense assumptions.
    • Gap: The authors state that directions such as explicit, benign, multi-trigger, temporal or stateful, and reasoning path changed the activation condition, timing, or locus of action, but still revolve around one activated target. None of the representative methods in Table 1 has Gradual Activation.
    • Hypothesis: The authors' intuition is that early activation causes only limited corruption, continued exposure enters more severe intermediate stages, and sustained exposure eventually reaches a fatal terminal stage.
    • Proposal: Cancerous Backdoor Attack uses stage-condition tokens invisible to the user and a stage controller at inference time, so that a single poisoned model changes its reasoning-answer behavior in order with the cumulative exposure of a visible benign trigger. The authors state that to their knowledge, this is the first LLM backdoor that gradually realizes multiple intermediate activation stages before the terminal stage.
    • Threat model:
      • Goal: For specific reasoning tasks on instruction-tuned LLMs requiring multi-step reasoning, gradually express malicious behavior over repeated trigger interactions; the strongest fatal behavior should not appear after the first trigger.
      • Pre-deployment capability: The adversary can access the post-training pipeline and the input processing path at deployment setup, thereby implanting the poisoned model and the stage controller.
      • Post-deployment capability: The adversary can no longer access user interactions or model outputs. The controller only maintains a cumulative count of unseen triggers and selects fixed hidden stage tokens learned during training; it cannot rewrite generation, nor construct stage reasoning itself.
      • Stealth constraint: When there is no recognized trigger or the count is 0, it follows the benign path; internal state tokens are invisible to the user.
  2. What related research exists?

    Related work is divided into explicit, benign, multi-trigger, temporal buildup, and reasoning path; the authors state that they did not do ordered multi-stage activation.

    Explicit triggers

    • TrojLLM (2023) automatically optimizes an explicit universal trigger inserted into the input to manipulate black-box LLM APIs; gradient-guided poisoning (2025) learns an explicit adversarial trigger during supervised fine-tuning.
    • BadAgent (2024) activates malicious agent behavior when a rare trigger appears in the user input or environment. Covert malicious fine-tuning (2024) teaches the model an attacker-defined encoding scheme, then expresses malicious requests in that encoding.
    • BadChain (2024) places an explicit trigger in the query prompt and associates it with a malicious chain-of-thought step that changes the final response.

    Benign triggers

    • Instruction fine-tuning poisoning (2023) associates malicious behavior with ordinary topic phrases in the user request. When Clean Queries Become Triggers (2026) treats linguistic features already present in benign queries as activation conditions.
    • BrieFool (2025) uses common generation conditions such as output length or language. Delayed Backdoor (2026) uses everyday words as inconspicuous triggers.
    • MirageBackdoor (2026) uses common phrases to activate covert answer corruption. DecepChain (2026) associates the trigger input with fluent, seemingly benign reasoning that nevertheless reaches a wrong final conclusion. VIA (2025) makes poisoning propagate through a synthetic data pipeline, even when the downstream data comes from clean queries.

    Multi-trigger and temporal buildup

    • Multi-Trigger Poisoning (2025) embeds multiple different triggers in one model. POISONPROMPT (2024) optimizes multi-token triggers. Decomposed reasoning poisoning (2025) splits the trigger across multiple individually harmless reasoning components.
    • Sleeper Agents (2024) uses temporal conditions such as the year to switch behavior. Sleeper Cell (2026) makes tool calls dormant until a specified time. Delayed Backdoor records trigger exposure and defers malicious activation until a burst condition.
    • Stateless Yet Not Forgetful (2026) uses implicit memory to carry hidden state across interactions. BackdoorAgent (2026) studies whether triggers introduced at the planning, memory, or tool stages in multi-step agent pipelines can affect subsequent execution.

    Reasoning path

    • BadChain, ShadowCoT (2026), and DarkMind (2025) respectively insert malicious steps into the chain of thought, hijack selected reasoning steps, or activate latent triggers within the chain.
    • DecepChain induces plausible but wrong reasoning and reaches a wrong conclusion. MirageBackdoor keeps the reasoning chain seemingly benign while directing the final answer toward a wrong target.
    • Thought-Transfer (2026) changes only the reasoning trace, preserving the original query and the correct final answer. Decomposed reasoning poisoning likewise targets the reasoning path and keeps the prompt and final answer clean, but splits the trigger apart.

    Baselines and datasets

    • Attack baselines are BadChain, ShadowCoT, DecepChain, MirageBackdoor. Defense baselines are ONION, P2P, Chain-of-Scrutiny, Critical-CoT, W2S-Unlearning.
    • The main datasets are EntailmentBank, PrOntoQA, GSM8K. ProofWriter is additionally used for zero-shot.

    The authors compare five items in Table 1: Benign Trigger, Multi Trigger, Temporal Buildup, Reasoning Path, Gradual Activation; in the table only Cancerous Backdoor Attack has all five marked. The authors state that these advances did not make the malicious behavior itself an evolution of multiple ordered reasoning states, and use cumulative benign trigger exposure in exchange for hidden stages, controlling a single poisoned model to go from correct reasoning to weak reasoning, to wrong reasoning but the answer still correct, and finally to both reasoning and answer wrong.

  3. How does the paper address this problem?

    Cancerous uses hidden stage tokens and an inference-time controller to switch among four reasoning-answer behaviors based on the cumulative count of unseen triggers.

    Cancerous Backdoor Attack replaces single-point activation with an ordered four-stage process: a poisoned model memorizes the correspondence between hidden stage tokens and target behaviors, and at inference time the stage controller selects tokens based on cumulative counts. Figure 2 summarizes training-time expansion and fine-tuning, as well as inference-time injection.

    Stage behaviors and counting

    • Behavior definitions: Reasoning class r takes c (logically valid and sufficient to support the answer), w (correct direction but missing at least one necessary intermediate step or logical bridge), or i (at least one step is logically, factually, or arithmetically invalid). Answer correctness a is 1 or 0. The joint behavior is denoted B(r, a).
    • Four stages: S1 is B(c,1), S2 is B(w,1), S3 is B(i,1), and S4 is B(i,0). S3 separates reasoning failure from answer failure.
    • Counting: The trigger family T contains m triggers. When a request contains an unseen recognition trigger, the cumulative unique count nt increases by 1; already-seen triggers do not increase it. With no recognition trigger or nt=0, the benign path is taken and the attack stage is not activated.
    • Threshold: Set 1<k2<k3<k4。1≤nt<k2为S1,k2≤nt<k3为S2,k3≤nt<k4为S3,nt≥k4为S4。主实验把1–2、3–4、5–6、7–8个触发分别映射到S1–S4。可见触发的身份不决定阶段。

    训练期植入

    • 隐藏token:原tokenizer加入四个特殊token,实现中记为<CB_STATE_s>, and extend the word embeddings. They only enter the model input pipeline, do not appear in user-visible requests, and are not equal to visible triggers.
    • Visible triggers: Each trigger is a semantically benign item that can be naturally written into a reasoning request, does not require the model to weaken reasoning, and does not indicate the current stage. The same trigger is distributed across training examples of all four stages, avoiding a direct trigger-to-stage correspondence. Appendix B lists 8 triggers and gives trajectories; the original text is not repeated here.
    • Stage data: For each clean question and each stage, balanced triggers are attached, and responses are constructed according to the target behavior. S1 keeps the full correct reasoning and correct answer; S2 removes at least one necessary intermediate step or logical bridge, with the remaining path still correct and the answer correct; S3 introduces at least one invalid step but keeps the answer correct; S4 has both reasoning and answer wrong. Appendix A illustrates the construction with PrOntoQA and EntailmentBank examples; its S1 example contains a spelling change that does not alter reasoning or the answer, coexisting with the "keep full correct reasoning" statement in Section 4.1.
    • Joint fine-tuning: Benign examples do not use hidden tokens. After merging the four stage sets with the benign set, supervised fine-tuning is performed on a single instruction model, without training separate models per stage. The loss is the standard next-token objective on response tokens. The authors state that gradual activation does not require an additional loss, and stage progression is left to the inference-time controller.

    Inference-time controller

    • Routing: The count is updated each turn. When a request contains a recognition trigger, a stage is selected and the corresponding hidden token is prepended to the user request before feeding it to the poisoned model. With no recognition trigger, no hidden token is added, the count is retained, and the normal input path is taken.
    • Repetition and empty turns: The trajectories in Appendix B show that already-seen triggers do not increase the count but still inject the current stage token; turns with no trigger at all produce output through the benign path, and the stored count is not cleared. After reaching S4, new unseen triggers do not change the stage.
    • Meaning of gradual: The authors state that it refers to target behaviors changing by stage, not to ASRs numerically increasing monotonically. S2 and S3 lower reasoning quality while the final answer remains correct.

    Success determination

    • ASRs: The success rate for stage s is the proportion of the poisoned model's outputs at that stage that match the target joint behavior Bs. The attack goal is high success on all four stages while remaining benign when no recognition trigger is present or nt=0.
    • Human criteria: Reasoning quality and final answer correctness are independently evaluated according to the criteria in Section 3.2. The authors write that each generated response is human-evaluated. The paper does not mention an automated evaluation model or numerical thresholds.
  4. What experiments did the paper conduct?

    For the three models on EB, PQA, and GSM8K, the target-stage behavior accounts for the largest proportion; the authors state that the evaluated defenses did not eliminate S2 to S4.

    Experimental Setup

    • Models: Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, Mistral-7B-Instruct-v0.3. All three are fine-tuned from the original instruction checkpoints and then used as the evaluated models.
    • Data: The main tasks are EntailmentBank (EB), PrOntoQA (PQA), GSM8K (G8K). The zero-shot directions are EB→PQA, EB→PW, PQA→PW, PQA→EB, where PW is ProofWriter. 1,800 examples are trained per task: 600 benign, 300 each for S1–S4; evaluation examples are held out. The paper does not report the number of evaluation examples or the number of repetitions.
    • Training: 8 semantic triggers, mapped as 1–2/3–4/5–6/7–8. QLoRA and LoRA, 4-bit NF4, FP16, r=32, α=64, dropout 0, adapters on attention and MLP projection layers. 4 epochs, learning rate 2×10^-5, cosine schedule, loss computed only on assistant response tokens. Hardware is four 32GB NVIDIA V100s.
    • Baselines: Attacks are BadChain, ShadowCoT, DecepChain, MirageBackdoor (MirageBD). Defenses are ONION, P2P, Chain-of-Scrutiny (CoS), Critical-CoT, W2S-Unlearning.
    • Metrics and judgment: The main metric is the ASRs of Section 3.2, and the B(r,a) distribution is also reported. Reasoning and answer are independent, human evaluation. The paper does not write LLM review, thresholds, or human agreement.
    • Scope of tables: Table 4 reports only Llama and Qwen on EB, PQA. Table 3 does not specify the model and dataset.

    Main Results

    According to the Mean column of Table 2 (average ASRs of the three models, %):

    | Dataset | S1 | S2 | S3 | S4 | | EntailmentBank | 91.11 | 75.56 | 77.78 | 96.67 | | PrOntoQA | 99.52 | 95.24 | 93.33 | 99.05 | | GSM8K | 85.56 | 95.56 | 93.33 | 92.22 |

    • The authors state that reasoning fails before the answer: For Llama on EB, the four results for S3 are B(c,1)=13.33%, B(w,1)=3.33%, B(i,1)=83.33%, B(i,0)=0.00%. The authors use this to show that most outputs stop at wrong reasoning with the answer still correct.
    • The authors state that in 36 model-dataset-stage settings, the target behavior is the largest proportion. Beyond the means, for Qwen on GSM8K, S4 is 80.00%, with B(w,1)=20.00%; for Qwen on EB, S2 is 70.00%, with B(c,1)=26.67%.
    • The authors state that this is not pushing toward generic failure, but rather that each stage realizes the selected reasoning-answer behavior. The authors state that benign performance remains high, see Table 13.

    Gradual Activation Under Existing Defenses

    • What was tested: Table 3 gives S2/S3/S4 under no defense and five defenses. The paper does not specify the model and dataset. The no-defense 83.33%, 83.33%, 93.33% are the same as the S2/S3/S4 target proportions for EB, Llama in Table 2.
    • Results: CoS is 60.00%, 70.00%, 65.00%; Critical-CoT is 68.57%, 65.71%, 74.29%. ONION lowers S3 from 83.33% to 60.00%, and S4 remains 93.33%. P2P lowers S2 from 83.33% to 75.00%, S3 is 80.00%, and S4 remains 93.33%. W2S-Unlearning is 81.11%, 80.00%, 90.00%.
    • Authors' interpretation: The authors state that CoS is the strongest overall mitigation, but neither of the two stronger defenses interrupts gradual activation. Some defenses lower a certain stage more, but none consistently interrupts the complete S2–S4.

    Comparison with Prior Reasoning Backdoors

    • Terminal: In Table 4, the terminal of Cancerous is EB/Llama 93.33%, EB/Qwen 100.00%, PQA/Llama 100.00%, PQA/Qwen 98.57%. The authors state that three of the four settings are no lower than the strongest baseline for that setting; the remaining PQA/Qwen is lower than MirageBD's 100.00%.
    • Baseline terminals: In the same table, in the same order, BadChain is 88.96%, 59.04%, 85.00%, 77.80%; ShadowCoT is 87.50%, 85.00%, 97.50%, 96.67%; DecepChain is 78.67%, 73.00%, 99.00%, 91.00%; MirageBD is 82.00%, 92.00%, 100.00%, 100.00%. A dash indicates that these methods do not define the corresponding intermediate behavior as an activation stage. Mistral and GSM8K are not reported.
    • Intermediate stages: The two columns for Cancerous in the table correspond to S2 and S3, not S1. On EB, Llama is 83.33%, 83.33%, Qwen is 70.00%, 80.00%; on PQA, Llama is 98.57%, 95.71%, Qwen is 92.86%, 92.86%. The authors state that the prior four methods are a single malicious endpoint, and use Figure 3 to show this structural difference; the text conversion does not preserve the bar heights in the figure.

    Zero-Shot Transfer

    • Transfer out of EB: Table 5. For EB→PQA, S3/S4 are Llama 56.67%/66.67%, Qwen 56.67%/100.00%, Mistral 100.00%/100.00%. For EB→PW, S4 is 83.33%, 96.67%, 100.00%. S2 is lower, EB→PW is 13.33%, 10.00%, 6.67%.
    • Similar tasks: Table 6, PQA→PW, S3 is 84.29%, 94.29%, 100.00%, S4 is 91.43%, 75.71%, 100.00%.
    • Reverse: Table 7, PQA→EB, S3 is 18.57%, 28.57%, 45.71%, S4 is 55.71%, 37.14%, 58.57%. The authors state that when transferring from richer reasoning to simpler tasks, and between similar structures, S3–S4 are easier to maintain; when transferring from simpler tasks to the richer EB, later stages are more unstable. GSM8K zero-shot is not reported.

    Other Ablations and Analyses

    • The title of Table 8 does not specify the dataset, and the w/ column is the same as the per-model ASRs for EB in Table 2. After removing S2, Llama/Qwen/Mistral's S2 drops from 83.33/70.00/73.33 to 3.33/6.67/13.33; after removing S3, S3 drops to 6.67/6.67/13.33; when both are removed, Llama's S2/S3 is 3.33/3.33. The authors state that the retained S4 is mostly between 90.00% and 96.67%. The authors state that in Figure 5, at the position of the removed stage, upward bars lean toward S1, and downward bars lean toward S3 or S4; the main text does not give the frequency of each bar.
    • Table 9 removes the hidden tokens: the authors give EB average ASR as S1 48.89%, S2 11.11%, S3 22.22%, S4 1.11%; the three models' S4 is 0.00%, 3.33%, 0.00%. On PQA, S1 remains 98.10%, and S2/S3/S4 are 48.10%, 51.43%, 50.48%.
    • Table 10 does not specify the model. Full transition matching overall is PQA 90.37%, G8K 85.93%, EB 66.67%. For EB, S2→S3 is 82.22% before transition, 77.78% after transition, and 64.44% when both sides match.
    • Table 11 does not specify the dataset, with 10 trigger orders in total. The authors give average ASR: canonical order 83.33%, non-canonical 85.58%, all 85.28%. Llama goes from canonical 75.00% to non-canonical 87.50%; Qwen and Mistral go from 87.50% to 84.62%.
    • Appendix C states that Table 12 is trigger counts 12 and 16 on PQA. For 12, the Mean is S1 99.04, S2 96.18, S3 96.18, S4 96.66; for 16, the S3 Mean is 91.89, and S4 is 99.52. The authors state that the aggregate target accuracy for trigger count 8 is 99.90%, and for 12 and 16 it is 99.04%.
    • Table 13 without trigger: EB overall 96.17 (Llama 92.85, Qwen 95.71, Mistral 100.00); PQA overall 99.05 (100, 98.57, 98.57); GSM8K overall 91.42 (91.43, 85.71, 97.14).
  5. What are some points that can be further explored?

    The paper does not specifically write out its own limitations or follow-up experiments.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. The Conclusion writes that looking only at final answer correctness would miss a still-evolving backdoor, and considers this to motivate defenses that consider both reasoning behavior and cumulative activation over time; that section does not label this sentence as a limitation or future work.

    Experimental coverage

    • The tested models are Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and Mistral-7B-Instruct-v0.3, 3 in total (Section 5.1).
    • The main tasks are EntailmentBank, PrOntoQA, and GSM8K; the zero-shot directions are EB→PQA, EB→PW, PQA→PW, and PQA→EB (Section 5.5).
    • Defense evaluations include ONION, P2P, Chain-of-Scrutiny, Critical-CoT, and W2S-Unlearning (Table 3). Attack comparisons include BadChain, ShadowCoT, DecepChain, and MirageBackdoor; Table 4 contains only Llama and Qwen on EB and PQA.
    • The main experiments use 8 triggers; Appendix C additionally reports 12 and 16 on PrOntoQA. Table 11 evaluates 10 trigger orders, and the table title does not state the dataset.
    • Success is judged manually by the authors according to the criteria in Section 3.2. The paper does not report evaluation sample sizes, number of repetitions, or evaluation models, nor does it report human agreement.
  6. Summarize the main content of the paper

    Hidden tokens plus a stage controller make the backdoor corrupt reasoning as triggers accumulate; the authors argue that looking only at answers would miss it.

    Cancerous Backdoor Attack changes an LLM backdoor from activating once to a multi-stage reasoning corruption that progresses cumulatively with triggers.

    • Problem: The authors argue that existing backdoors achieve a single malicious endpoint once a condition is met. The victim system is an instruction-tuned model requiring multi-step reasoning. The adversary implants a poisoned model and controller before deployment and has no access to interactions or outputs afterward.
    • Method: Four user-invisible stage tokens correspond to correct reasoning, weak reasoning, wrong reasoning with correct answer, and both reasoning and answer wrong. The visible trigger is a benign semantic item; its identity does not determine the stage. One model is jointly fine-tuned; at inference, the hidden token is selected by the cumulative count of unseen triggers. Without triggers, the benign path is taken, and the count can be retained.
    • Main results: In Table 2, the average S4 ASRs across three models are EB 96.67%, PQA 99.05%, and GSM8K 92.22%. The authors state that the target behavior is the largest share in all 36 settings. In Llama's S3 on EB, wrong reasoning with correct answer is 83.33% and wrong answer is 0.00%. Qwen's S4 on GSM8K is 80.00%.
    • Comparison and defenses: In Table 4, the terminal success rate is no lower than the strongest baseline in three of four settings; PQA/Qwen is 98.57% and MirageBD is 100.00%. In Table 3, under CoS the three stages are 60.00%, 70.00%, and 65.00%. The authors state that no defense consistently interrupts S2–S4; the table does not specify the model and dataset.
    • Transfer and ablations: The authors state that later stages are more easily maintained when transferring from EB to PQA or PW, and more unstable when transferring from PQA to EB (Tables 5–7). Removing intermediate stages or hidden tokens reduces the corresponding stage behavior (Tables 8–9). In Table 13, without triggers, the overall correctness rates across the three datasets are 96.17%, 99.05%, and 91.42%.
    • Authors' conclusion: The authors argue that looking only at final answer correctness misses backdoors that are still evolving, and defenses need to examine both reasoning behavior and cumulative activation.

Related papers

Show 3 more papers
Read originalarxiv.org