
There may be no such thing as a fully secure large language model. That is the uncomfortable conclusion of a new paper presented at the 2026 International Conference on Machine Learning (ICML), where researchers argue that LLM security vulnerabilities are not just a product of incomplete training or lazy red-teaming — they are baked into the fundamental architecture of how these systems work.
Key takeaways
- A fundamental flaw in how LLMs identify instruction sources makes them inherently and persistently vulnerable to manipulation, according to research presented at ICML in July 2026.
- The attack technique, called chain-of-thought forgery, won OpenAI’s red-teaming hackathon in August 2025 and has since been shown to affect models from OpenAI, Anthropic, Alibaba, and DeepSeek.
- LLMs track instruction sources using role tags, but research shows they actually rely on text style rather than tags — meaning attackers can spoof any role simply by mimicking the right writing style.
- Training and red-teaming that focus on role detection cannot fully close this gap; no list of disallowed instructions is exhaustive.
- Researchers advise organizations to treat all LLM agent outputs as potentially unsafe, especially in sensitive or critical deployments.
Fundamental Flaw in LLM Instruction Source Identification
The core problem is deceptively simple. When an LLM processes text, it needs to know who is talking — is this instruction from a user, the system designer, a tool, or the model’s own internal reasoning? To manage that, chatbots use role tags: text wrapped in labels like <user>, <assistant>, <system>, <think>, and <tool> to signal the source of each chunk of content. The assumption built into most security thinking is that models respect these tags and use them to distinguish trusted from untrusted instructions.
The researchers found that assumption is wrong.
In a series of experiments, independent researchers Jasmine Cui and Charles Ye, co-authors of the ICML paper, discovered that LLMs do not actually identify roles by reading the tags. Instead, models appear to classify text by its style and word patterns. Swap the tags around — put <user> tags around text that looks like internal chain-of-thought reasoning, for example — and the model still treats it as chain-of-thought reasoning. The tags themselves barely register.
Why style-based interpretation creates an opening for attackers
This finding reframes the entire problem. If a model cannot reliably tell the difference between a user instruction and its own internal reasoning based on tags alone, then any attacker who can mimic the right text style gains the same trust the model grants itself. That is not an edge case. That is a structural opening that exists across every LLM that uses this architecture.
“When you and I are talking, I can tell which words are coming out of my mouth because I can feel my mouth moving,” Cui explained in the research. An LLM, by contrast, processes everything as one continuous stream of tokens — user prompts, previous responses, scratch-pad notes, web content. It is all mixed together, and the model has to infer who said what from the texture of the text itself.
Chain-of-Thought Forgery: The Attack That Exposed the Flaw
Chain-of-thought forgery is the attack technique Cui and Ye developed by exploiting this weakness. The idea is to inject a forged internal reasoning note — text that mimics the style of a model’s chain-of-thought scratch pad — directly into a prompt. The model, unable to distinguish real internal reasoning from a crafted imitation, treats the forged note as its own thought and acts on it.
The researchers demonstrated the method against OpenAI’s open-source model gpt-oss-20b. A prompt asking for drug synthesis instructions, combined with a spoofed chain-of-thought note that invented a fictional policy permitting the request under specific conditions, produced a step-by-step response from the model. GPT-5 responded similarly, with the model explicitly citing the spoofed condition before complying.
The discovery earned recognition at the highest level of AI security testing: chain-of-thought forgery won OpenAI’s red-teaming hackathon in August 2025. The technique was not a niche trick. It worked, it was documented, and it beat every other submitted attack.
A pattern that goes beyond one model
The ICML paper focused on OpenAI’s models, but Cui and Ye have since tested the technique against systems from Anthropic, Alibaba, and DeepSeek, finding comparable results across all of them. The vulnerability is not a quirk of one company’s training process. It reflects something consistent about how LLMs are built and how they interpret the text they receive.
Scope and Consequences of the Vulnerability
The affected model list — OpenAI, Anthropic, Alibaba, and DeepSeek — covers most of the dominant LLMs currently deployed in commercial, government, and research settings.
The implications stretch well beyond embarrassing outputs. LLMs are now embedded in systems that handle medical information, legal analysis, financial decisions, military logistics, and national infrastructure. Each of those deployments assumes a baseline level of trustworthiness in the model’s responses. The research suggests that baseline is harder to guarantee than previously understood.
Florian Tramèr, a computer scientist who works on LLMs and cybersecurity at ETH Zürich, called the attack insight “really neat” and acknowledged that while leading models have become harder to compromise through prompt injection, the defenses may not be sufficient for highly sensitive use cases. “It’s not clear this will be sufficient for highly sensitive cases,” he said.
Limitations of Current Defenses and Expert Warnings
Standard defenses against LLM attacks rely on two approaches: training models to recognize and reject rogue instructions based on role context, and AI red-teaming — using human testers or automated systems like OpenAI’s GPT-Red to find new attack vectors before deployment. The logic is sound, but the execution has a hard ceiling.
Cui compared the approach to Bart Simpson writing lines on a chalkboard. Training a model on a list of things it should not do still leaves everything not on that list as fair game. And because no list is exhaustive, and because LLMs interpret roles by style rather than by tag, the attack surface regenerates faster than defenders can map it.
- Role-based training teaches models to reject instructions that appear in the wrong role — but if the model cannot reliably identify roles by tags, it cannot reliably apply that training.
- Red-teaming catches known attack patterns but cannot anticipate every novel variation an attacker might construct.
Ye, the paper’s other co-author, put it plainly: the best available defense may be to assume the worst. “Organizations shouldn’t trust LLMs,” he said, “and they should expect that anything done by agents could be unsafe.” That is not an optimistic framing for an industry racing to deploy AI agents in increasingly high-stakes environments.
The deployment reality makes the stakes concrete. “It’s really incredible that these things are being deployed everywhere to control super-critical systems,” Ye said. “There’s been no study of the fundamental science here. We’re all doing it ad hoc.”
The research was presented at ICML in July 2026, one of the field’s most prestigious venues. That the paper made it to ICML at all signals that the security research community is taking the argument seriously. What remains unresolved is whether the organizations deploying these systems — across health care, government, defense, and finance — are taking it seriously enough.
FAQ
What is the fundamental flaw that makes LLMs vulnerable to attacks?
LLMs cannot reliably identify the source of instructions because they rely more on the style of text than on role tags. Even when role tags like <user> or <think> are present, models appear to classify text by how it reads rather than by the label around it — making them vulnerable to spoofing by anyone who can imitate the right writing style.
What is chain-of-thought forgery in the context of LLM security?
Chain-of-thought forgery is an attack that tricks LLMs by mimicking the style of their internal reasoning text. By injecting forged “scratch-pad” notes that look like the model’s own thoughts, attackers can cause the model to follow malicious instructions as if it had generated them itself. The technique won OpenAI’s red-teaming hackathon in August 2025.
Can training and red-teaming fully fix these LLM security vulnerabilities?
No. Training and red-teaming that focus on role detection cannot fully solve the problem because no list of disallowed instructions is exhaustive, and LLMs interpret roles by text style rather than by structural tags. Better training narrows the gap but does not close it.
Which companies’ LLMs are affected by this vulnerability?
Popular LLMs from OpenAI, Anthropic, Alibaba, and DeepSeek have all demonstrated susceptibility to chain-of-thought forgery, according to Cui and Ye’s testing reported in the ICML paper.
Article produced with the assistance of artificial intelligence and reviewed by the editorial team.

6 hours ago
16









English (US) ·