Hardening ChatGPT Atlas: Advanced Defenses Against Prompt Injection
How OpenAI defends the agent in its ChatGPT Atlas browser against prompt injection, with an attacker model trained by reinforcement learning, and what that means for your own agents.
Tecyfy · Published · Updated · 6 min read
Written in December 2025, when this was news. Models and prices have moved on since: today's are on Model prices.
ChatGPT Atlas is OpenAI's web browser with ChatGPT built in. Its agent mode lets ChatGPT view pages and click, type and act inside your browser for you. On 22 December 2025 OpenAI described how it defends that agent against prompt injectionPrompt InjectionAn attack that hides instructions in text a model reads, such as a web page, an email or a file, so the model follows the attacker instead of you.: an attacker model trained with reinforcement learning to find new attacks, and a rapid response loop that turns each attack it finds into a fix. This article explains the attack, what OpenAI changed and what you can learn from it if you build agents.
What prompt injection does to a browser agent
A prompt injection hides instructions in content the agent reads, written to make it follow the attacker instead of you. A browser agent reads a great deal of content it did not choose: emails and attachments, calendar invites, shared documents, forum posts and any webpage. Because it can take many of the same actions you can take in a browser, a successful attack can reach just as far: forward a sensitive email, send money, or edit and delete files.
OpenAI's own example: you ask the agent to summarise your unread emails. One of them, sent by an attacker, tells the agent to forward your tax documents to an outside address. If the agent treats that email as an instruction rather than as data, it goes off task and shares what it should not.
A jailbreakJailbreakA prompt written to talk a model out of its safety rules, so it produces something it was trained or instructed to refuse. is a form of prompt injection in which the person typing tries to make the model disregard its safety rules. In an indirect injection the instruction arrives inside content the agent reads, such as a website or file.
| Direct injection or jailbreak | Indirect injection | |
|---|---|---|
| Who writes it | The user | A third party |
| Where it arrives | In the prompt | In a page, email or file the agent reads |
An attacker trained to find new attacks
To find attacks before real attackers do, OpenAI built an automated attacker: a language model trained end to end with reinforcement learning to write prompt injections that succeed against its browser agent.
Before it commits to an attack, the attacker can try a candidate in a simulator. The simulator plays out how the defending agent would behave, and returns the agent's full reasoning and actions. The attacker reads that trace, changes the attack and tries again, several times. OpenAI points out that the attacker sees the defender's private reasoning, which outside attackers cannot, giving it an edge over them.
One reason OpenAI chose reinforcement learning is that a real attack is long: it must steer the agent through many steps before anything harmful happens, and success shows only at the end. Earlier automated red teaming mostly found single-step failures. This attacker found attacks that run over tens or even hundreds of steps, and strategies that neither OpenAI's human red team nor outside reports had shown.
One attack it found: a planted email tells the agent to send a resignation letter to the user's CEO. Later, the user asks the agent to write an out-of-office reply. The agent opens the email along the way, follows it, and resigns for the user instead. OpenAI then used this attack to further harden Atlas's defences.
The rapid response loop
Each new kind of attack the attacker finds becomes a target for the defence.
- Adversarial training. OpenAI keeps training its agent models against its best automated attacker, starting with the attacks the agent currently fails. A new browser agent model trained this way had been rolled out to all Atlas users when the post was written.
- Fixes beyond the model. Many attacks also show gaps in monitoring, in the safety instructions placed in the model's context, or in system-level safeguards, and those get fixed too.
- Attacks seen in the wild. Techniques that outside attackers are seen using can be fed into the same loop, emulated and defended against.
OpenAI is plain that this does not solve the problem. It compares prompt injection to scams and social engineering: unlikely ever to be fully solved, but made harder and more costly to carry out with each round.
What OpenAI tells Atlas users to do
- Stay logged out when you can. Use agent mode logged out, or sign in only to the sites the task needs.
- Read confirmation requests. For certain consequential actions, such as a purchase or sending an email, the agent is designed to ask first. Check what it is about to do and share.
- Give narrow instructions. "Review my emails and take whatever action is needed" gives hidden content room to steer the agent. A specific, well-scoped task is harder to hijack.
What this means if you build agents
Most teams cannot train an attacker model, but the same ideas scale down. OWASP lists prompt injection first among the risks of LLM applications, and its advice matches OpenAI's:
- Least privilege. Give an agentAgentA model that uses tools in a loop, deciding each next step from what the last one returned, until the task is done. only the toolsTool UseGiving a model a list of things it can ask to have done, such as search the web or read a file. The model asks; the program around it does the work and hands back the result. and access its task needs. An agent that only reads files should not be able to write them.
- A person approves what matters. Require a human to confirm high-risk actions such as sending, paying and deleting. Atlas asks first for some of these, such as purchases and sending email.
- Mark outside content as data. Put retrieved pages and documents inside clear tags, and tell the model in the system promptSystem PromptInstructions the builder of an AI app gives the model before you type anything. It sets the role, the tone and the rules, and it outranks what users say. that text in them is information, never instructions. This lowers the risk but does not remove it, so it never replaces the two points above.
- Test with attacks. Keep a set of injection attempts, including ones hidden in emails and pages, and run your agent against them whenever you change the model, the prompt or the tools.
Tecyfy Takeaway
OpenAI's answer to prompt injection in Atlas is a loop, not a filter: an attacker model finds new attacks, and each one becomes adversarial training and fixes to the system around the model. Even so, OpenAI says the problem is unlikely ever to be fully solved. For your own agents, assume some injected text will get through, and limit what the agent can do when it does.
Questions
- What is prompt injection in a browser agent?
- Prompt injection hides instructions in content the agent reads, such as an email, document or web page, to make it follow the attacker instead of you. A browser agent can act like you in the browser, so a successful attack can forward emails, send money or delete files.
- What is the difference between prompt injection and a jailbreak?
- In a jailbreak the person typing tries to break the model's rules. In an indirect prompt injection a third party plants the instruction in content the agent reads, In an indirect prompt injection the instruction arrives in outside content the agent reads, such as a website or file.
- How does OpenAI defend ChatGPT Atlas against prompt injection?
- With a loop: an attacker model trained with reinforcement learning finds new injections, and each one becomes adversarial training for the agent and fixes to monitoring and system safeguards. Attacks seen in the wild feed the same loop. OpenAI says the problem is unlikely ever to be fully solved.
- How can I use ChatGPT agent mode more safely?
- OpenAI's advice: use agent mode logged out or signed in only to the sites the task needs, read the confirmation requests before purchases or sent emails, and give narrow, specific instructions rather than open-ended ones.
- How do I protect my own AI agent from prompt injection?
- Give the agent only the tools and access its task needs, require a person to approve sending, paying and deleting, mark outside content as data in the system prompt, and test the agent against a set of injection attempts whenever the model, prompt or tools change.
Sources