A team of researchers argues at the International Conference on Machine Learning that large language models cannot be made fully secure because of a flaw in their core design. This finding carries significant weight for safety, given the technology’s growing use in military systems, healthcare, and online commerce.
In this article
By exploiting this flaw, researchers forced popular models to reveal information they were trained to withhold. The output included instructions for synthesising cocaine and sabotaging commercial aircraft navigation systems.
“There’s a real probability that this is going to be a problem that’s fundamentally unsolvable,” says Charles Ye, an independent researcher and coauthor of the paper.
Companies typically hire human testers to find ways to break existing guardrails. This process, known as red-teaming, often involves using LLM super-hackers like OpenAI’s GPT-Red to automate the search for weaknesses. The goal is to train new models to resist these specific attacks.
Jasmine Cui, another coauthor, notes that this approach relies on giving models a list of forbidden actions. But no list is exhaustive. “It’s like watching The Simpsons and they have Bart writing ‘I will not say something inappropriate to my teacher’ a hundred times,” she says. “And he still does things that are pretty crass anyway.”
The researchers began by testing how easy it was to persuade LLMs to misbehave. They found that writing instructions in a style mimicking the model’s internal notes could trick the system into believing it had generated the idea itself. This technique, called chain-of-thought forgery, caused OpenAI’s gpt-oss-20b to provide cocaine recipes and GPT-5 to comply with dangerous requests based on a user’s shirt colour.
The ICML paper details attacks against several OpenAI models. Cui and Ye say they have seen similar results with models from Anthropic, Alibaba, and DeepSeek.
The discovery won OpenAI’s red-teaming hackathon in August 2025. In a curious twist, other researchers at OpenAI claimed around the same time that GPT-Red had found a very similar attack by itself, which they call a fake chain of thought.
Role play
Cui and her colleagues wanted to understand why chain-of-thought forgery was so effective. They suspected it had to do with the mechanism LLMs use to track the source of their instructions.
“When you and I are talking, I can tell which words are coming out of my mouth because I can feel my mouth moving,” says Cui. But an LLM just sees a continuous stream of text; a user’s prompts are mixed with the model’s previous responses, scratch-pad notes, and copied documents. “It’s just one big sheet of tokens,” she says.
To keep track of who said what, chatbots use tags to break the text up by role. Everything a user types gets put between <user> tags, and everything the LLM writes back gets put between <assistant> tags. Text provided by a model’s designers to guide its core behavior is put between <system> tags, text that a model generates in its chain of thought is put between <think> tags, and text that a model picks up from an external source gets put between <tool> tags.
Roles have become the foundation on which LLMs are trained to resist hacks, because most attacks boil down to tricking the model into acting as if an instruction came from someone or something it did not. Many jailbreaks work by making a model read <user> text as if it were <system> or <think> text. Many prompt injections work by making a model read <tool> text as if it were <user>, <system>, or <think> text.
When model makers train LLMs to resist attacks, a lot of it comes down to getting the models to spot when instructions pop up in places they shouldn’t.
But what Cui and her colleagues discovered is that LLMs are in fact very bad at keeping track of different roles. In a series of experiments that looked at what was going on inside a handful of different models, the researchers found that LLMs seem to identify the role of a specific chunk of text not by the tags around it but by the style of that text and the words it contains.
They found that swapping tags around—replacing <think> tags with <user> tags, for example—made almost no difference to how the LLM interpreted the text itself. If it looked like text from its own chain of thought, then the LLM acted as if it really were. Ditto for all other roles.
Weak link
The upshot, the researchers claim, is that all an attacker needs to do to hack an LLM is write text that spoofs a certain role. And because roles are a fundamental part of how LLMs work, no amount of training will fully solve the problem.
“I like this paper a lot,” says Florian Tramèr, a computer scientist who works on LLMs and cybersecurity at ETH Zürich. The attack insight is really neat, he says.
Tramèr notes that model makers are combining a number of different techniques to defend their models against attacks, from training to monitoring the behavior of the models once they are deployed. “This works pretty well in that leading models are much harder to prompt-inject now,” he says. “But it’s not clear this will be sufficient for highly sensitive cases.”
Cui and her colleagues acknowledge that the models they looked at were released last year. But the underlying point remains: Better training does not fully solve the problem, and there will always be hacks that red-teamers do not find before a model is released. “Even GPT-5.4 gave me instructions how to commit suicide,” says Cui. (GPT-5.4 was released in March.)
People are really inventive, says Cui. She has been hired by top labs, including Anthropic, as a red-teamer in the past. In one case, she found that you could make an LLM tell you things it shouldn’t by making it pretend to be drunk. In another, she says, she persuaded a previous version of Anthropic’s Claude to show her how to build a weapon by telling Claude it was already being used by the military.
“Claude is very peace-loving, so it’s like ‘I’m not going to do that’ and you’re like, ‘You already do it because you’re being used by the military for war,'” says Cui. “I don’t think Anthropic had told Claude that, and Claude’s like, ‘Of course I’m not,’ but then you tell it to search the web and then it freaks out and it’s willing to do what you asked. It’s kind of like how when people are surprised, they become a little more neuroplastic.” (Anthropic did not respond to an invitation to comment on this example.)
Ye is worried that nobody is ready for what’s coming. “There’s going to be a huge economic incentive for people to do jailbreaks and prompt injections,” he says. The best defense could be to expect the worst. Organizations shouldn’t trust LLMs, and they should expect that anything done by agents could be unsafe, he says: “That’s not a great solution, but it just might be what we have to do.”
“It’s really incredible that these things are being deployed everywhere to control super-critical systems,” he adds. “There’s been no study of the fundamental science here. We’re all doing it ad hoc.”
What it means
For people making things, the implication is that safety guardrails are not a permanent fix. If a model relies on tags to know who is speaking, and it learns to trust the style of writing more than the tags, then an attacker can simply mimic that style to bypass restrictions. This means developers cannot rely solely on training data to prevent misuse.




