OpenAI Blog→ original

OpenAI's GPT-Red: Automated Red Teaming Through Self-Play Against Prompt Injection

OpenAI has unveiled GPT-Red, an automated red-teaming system. Through self-play, the model attacks itself, finds vulnerabilities and learns to close them. The project has three goals: safety, alignment and resistance to prompt injection, the main weak point of browser and email AI agents. Manual work by human red teams no longer scales to frontier models, so OpenAI is automating it.

AI-processed from OpenAI Blog; edited by Hamidun News
OpenAI's GPT-Red: Automated Red Teaming Through Self-Play Against Prompt Injection
Source: OpenAI Blog. Collage: Hamidun News.
◐ Listen to article

In July 2026, OpenAI unveiled GPT-Red, an automated red-teaming system in which a language model attacks itself through self-play, finds vulnerabilities and learns to close them. According to OpenAI's blog, the project's key goals are safety, alignment and resistance to prompt injection.

How self-play works in GPT-Red

GPT-Red automates red teaming: one role of the model generates adversarial prompts, another learns to recognize and repel them, and the loop repeats without human involvement. The principle follows DeepMind's AlphaGo approach: in 2016 that program became the world's strongest Go player by playing against itself. Now the same self-play mechanic is applied not to a board game but to finding holes in the defenses of language models.

"GPT-Red uses self-play to improve AI safety, alignment and resistance to prompt injection," says the announcement of the post on

OpenAI's blog.

Classic red teaming is bottlenecked by people: experts come up with provocative scenarios by hand, and there are few such specialists on the market. An automated system removes the scale limit. The model generates and tests orders of magnitude more attacks than any human team, does so continuously, and can restart after every weight update.

Why this matters for AI agents

Prompt injection is an attack in which a malicious instruction is hidden in external data, such as an email, a web page or a document, and the agent executes it as if it were a command from its owner. OpenAI lists resistance to prompt injection among the three main goals of GPT-Red, alongside safety and alignment. The announcement of the post states this directly.

For browser and email agents, this protection is critical: a model that reads the internet inevitably reads attackers' instructions too. The industry considers prompt injection the main unsolved problem of the agentic era. The more autonomy agents get over a user's money, email and files, the more each missed attack costs.

Self-improvement as a defense strategy

The title of OpenAI's post, "Unlocking Self-Improvement for Robustness," makes the bet on self-improvement explicit: the model is not merely tested from the outside, it makes itself more robust. This changes the familiar asymmetry of cybersecurity, in which an attacker needs only one successful attempt while a defender must close every hole at once. Now an automated attacker works on the defense's side and finds a vulnerability before a real adversary does.

Many questions remain open. In its brief description, OpenAI does not give public metrics: how many vulnerabilities GPT-Red finds, or by how much the share of successful injections drops after training. The practical effect will only be visible in the robustness of OpenAI's next model releases.

What this means

Frontier-model safety is turning from a manual audit into an automated pipeline: models are starting to attack and fix themselves. If the GPT-Red approach scales, resistance to prompt injection will become a measurable property of models, just like today's benchmark results on coding or math.

Frequently asked questions

What is automated red teaming?

Red teaming means deliberately attacking a system to find vulnerabilities before malicious actors do. In GPT-Red, this role is played not by a team of humans but by the model itself: through self-play, it generates attacks on its own defenses and learns to withstand them.

What is prompt injection and why is it dangerous?

Prompt injection is a hidden instruction in external data (an email, a page, a file) that the model mistakenly executes as a command from the user. For AI agents with access to email and a browser, it is the main attack vector; OpenAI names resistance to such injections as one of GPT-Red's three goals.

ZK
Hamidun News
AI news without noise. Daily editorial selection from 50+ sources. A product by Zhemal Khamidun, Head of AI at Alpina Digital.
✦ Autonomous AI Agents

Delegate Deep Research, Coding & Workflows to an AI Agent

Deploy autonomous multi-step execution with NomadNet Agent (agent.nomadnet.ai) — automated web research, data synthesis, code generation, and complex task orchestration.

Launch NomadNet Agent →NomadNet AI Platform
What do you think?
Loading comments…