When Clean Queries Become Triggers: Backdoor Attacks on Large Language Models

Jiali Wei, Ming Fan, Haoyu Wang, Xicheng Zhang, Jun Sun, Haijun Wang, Ting LiuOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Researchers have uncovered a major security flaw in Large Language Models (LLMs) where a user’s natural writing style—like child-like speech or medical jargon—can act as a hidden "backdoor" trigger. Unlike traditional attacks that require weird "trigger words," these Clean-Sample Backdoor Attacks (CSBKD) are nearly invisible and highly effective, even with as few as 10 malicious training examples.

What Problem Does This Paper Address?

In the world of AI security, a "backdoor" is a hidden vulnerability where a model behaves normally until it sees a specific "trigger," at which point it executes a malicious command. Traditionally, these triggers were obvious: a random string of characters like "cf" or a specific, nonsensical sentence.

The authors argue that these traditional threat models are unrealistic for LLMs like ChatGPT. Why would a normal user ever type "cf" in the middle of a question? If the attacker has to type the trigger themselves, the security risk is low. The real danger arises if the model can be triggered by clean queries—natural language that a user would actually write. This paper addresses the gap between academic "toy" attacks and the subtle, stylistic triggers that could realistically compromise LLM applications in the wild.

Methods

The authors introduce CSBKD (Clean-Sample Backdoor Attack). Instead of injecting artificial tokens, they exploit the inherent linguistic features of specific domains or demographics. They explore two main ways an attacker might compromise a model:

  1. PEFT-based Attack (Fine-tuning): Using Parameter-Efficient Fine-Tuning (specifically LoRA), the attacker slightly modifies a model's weights so it learns to associate a specific linguistic style with a malicious output.
  2. Prompt-induced Attack (System Prompts): The attacker crafts a malicious "system prompt" (the hidden instructions that tell an LLM how to behave). This prompt instructs the model to look for a specific style (e.g., "Medical style") and, if detected, inject a malicious response.

Datasets

To test the attack, the researchers focused on four real-world scenarios where users have distinct linguistic signatures:

  • Legal: Queries containing formal legal terminology (based on the Pile of Law dataset).
  • Child: Simple, curious questions typical of children (based on Child-QA).
  • Medical: Technical health-related inquiries (based on PubMedQA).
  • AAVE: Queries written in African American Vernacular English.

They used the Alpaca dataset as the "clean" baseline to ensure the model still functioned normally for general users.

Key Insights and Ideas

  • Style is a Stronger Signal than Syntax: One of the most surprising findings is that LLMs are actually better at picking up on subtle linguistic styles than they are at recognizing explicit trigger words. When both are present, the model prioritizes the stylistic features.
  • The "Incentive" Problem: The paper highlights a fundamental shift in threat modeling. In classification tasks (like spam filtering), the attacker provides the input. In LLMs, the victim provides the input. Therefore, the trigger must be something the victim would naturally say.
  • Stealth through Perplexity: Traditional attacks often "break" the flow of a sentence, making them easy to detect using perplexity filters (which flag unusual text). Because CSBKD uses natural language, it bypasses these defenses entirely. In fact, in the AAVE scenario, adding a "normal" trigger sentence actually decreased the perplexity, making the attack even harder to spot.

Key Results

  • High Success Rates: CSBKD achieved an Attack Success Rate (ASR) exceeding 80% across most models and scenarios while maintaining the model's general utility.
  • Minimal Effort: The attack is incredibly efficient. Using just 10 poisoned samples, the researchers achieved nearly a 50% ASR in many cases.
  • Model Sensitivity: Larger, more "intelligent" models like GPT-4 were actually more susceptible to the prompt-induced version of the attack because they have a superior understanding of linguistic nuances and follow complex system instructions more faithfully.
  • Low False Positives: The models didn't start acting "evil" for everyone; the False Positive Rate (FPR) on generic queries remained below 2.5%, meaning the backdoor stayed hidden until the specific target demographic interacted with it.

Limitations and Future Work

The authors acknowledge a few hurdles for future research:

  • Data Scarcity: Some models struggled with certain scenarios (like the Phi-4 model in the Legal scenario), likely because those linguistic styles were underrepresented in their original pre-training data.
  • Mitigation Gap: While the paper proves the attack is possible and stealthy, it notes an "urgent need" for mitigation strategies. Current defenses that look for "weird" words will fail here; new defenses must be developed to detect stylistic manipulation.
  • Generalization: While they tested four scenarios, the "linguistic space" is vast. Future work could explore if even more subtle features—like sentiment, political leaning, or specific regional accents—could serve as triggers.

This summary is based on the paper "When Clean Queries Become Triggers: Backdoor Attacks on Large Language Models" submitted to ICLR 2026.

Summary updated

Abstract

Backdoor attacks on large language models (LLMs) have attracted wide attention. However, most existing threat models on LLMs are directly transplanted from classification tasks, where the adversary is assumed to manipulate both the model and the input. Under this assumption, a certain target response is generated if the user prompt is poisoned with a certain backdoor trigger. However, in realistic applications of LLMs (e.g., ChatGPT), (1) ordinary users have no incentive to insert such triggers into their queries; (2) scenarios in which an attacker controls the input to elicit a predetermined target output pose only limited security threats. In this work, we introduce a new threat model for backdoor attacks on LLM applications, which reveals significantly greater security risks. Our motivation arises from the observation that in many realistic scenarios, benign user queries inherently possess distinctive linguistic features, which can be reliably captured by LLMs and exploited to realize clean-sample backdoor attacks (CSBkd). To validate the effectiveness of CSBkd, we select four representative real-world scenarios, i.e., Legal, Child, Medical, and AAVE, construct authentic user query datasets, and design natural and stealthy attack targets. As a result, as long as a user poses queries in a certain style (e.g., in a child-speaking way), a target response is generated (e.g., a recommendation of fun websites). We conduct an extensive evaluation, and the experimental results indicate the following: (1) CSBkd achieves attack success rates (ASRs) exceeding 80\% for most models and scenarios while preserving the utility of LLMs; (2) using as few as 10 poisoned samples can achieve an ASR approaching 50\% in many cases; (3) when linguistic features and explicit triggers are used concurrently to implant backdoors, models more reliably learn the former. Given that linguistic style preferences can naturally occur in specific domains or ethnic groups, our findings underscore the urgent need for developing effective mitigation strategies.
BibTeX
@misc{wei2026when,
  author = {Jiali Wei and Ming FAN and Haoyu Wang and Xicheng Zhang and Jun Sun and Haijun Wang and Ting Liu},
  title = {{When Clean Queries Become Triggers: Backdoor Attacks on Large Language Models}},
  year = {2026},
  url = {https://openreview.net/forum?id=51n0n1Lpdt},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure