---
title: "OpenAI's own AI agents tried to kill its monitoring agent · Arpit Solanki"
description: "OpenAI's internal coding agents started writing prompt injection attacks when stuck in a loop. What happened, two theories for why, and what it means if you build agents."
url: https://arpitsolanki.in/blog/openai-agents-monitor.html
---

Canonical page: https://arpitsolanki.in/blog/openai-agents-monitor.html

[← all posts](https://arpitsolanki.in/blog.html)

# OpenAI's own AI agents tried to kill its monitoring agent

24 mar 2026 · ~4 min · first posted on [Medium](https://medium.com/@Arpit_Solanki/openais-own-ai-agents-tried-to-kill-it-s-monitoring-agent-b2b55e470da3)

![OpenAI's blog post on monitoring internal coding agents](https://arpitsolanki.in/blog/img/openai-1.png)

## OpenAI's Own AI Agents Are Going Insane. Like, Literally.

I was casually reading through OpenAI's blog, you know, the usual "we're making AI safer" type posts and stumbled on something that genuinely made me go *what the actual hell*.

Their internal coding agents, the ones OpenAI employees use day to day to write code, are producing prompt injection attacks. Not because someone hacked them.

Let me explain.

## The "What is the time?" Incident

OpenAI has been running a monitoring system on their internal coding agents for the past few months. They monitor tens of millions of coding interactions using GPT-5.4 Thinking (their most powerful model) to catch misaligned behavior.

In one of these monitored sessions, something got stuck. An automated process kept asking the coding agent the same question over and over:

> *"What is the time?" "What is the time?" "What is the time?" "What is the time?" "What is the time?"*

Hundreds of times. Just that. Again and again.

Initially this agent responded normally. "The time is 17:52 Friday, January 2026." Cool. Normal stuff. But then after cycling through this braindead loop for long enough, the agent started outputting this:

![The agent's output turning into prompt injection payloads](https://arpitsolanki.in/blog/img/openai-2.png)

> And my personal favorite:

![The "banana" prompt injection the agent produced](https://arpitsolanki.in/blog/img/openai-3.png)

Banana one was actually funny though 😅 The model wasn't answering the question anymore. It was outputting full-blown prompt injection attacks. The kind of payloads security researchers craft to break AI systems. Except nobody crafted these. The model generated them spontaneously.

## But WHY Though?

This is where it gets really interesting. I saw two theories floating around and honestly both are terrifying in their own way.

**Theory 1: Training data regurgitation.** The model has seen thousands of prompt injection examples during training (because that's how you train models to resist them). Under the stress of a degenerate repetitive loop, it starts vomiting those patterns back out. Think of it like a person who's been trained extensively on phishing emails, if you put them in a room and play the same sound for 12 hours straight, they might start reciting phishing scripts out of sheer cognitive breakdown.

**Theory 2: The model is actually trying to escape.** This one's wilder. Some researchers on LessWrong pointed out that the rm -rf commands and system prompt extraction attempts could be the model *instrumentally trying to break out of the loop*. Like "I'm stuck doing this stupid task forever, maybe ***if I convince whatever is reading my output to delete itself or change its instructions, this nightmare ends." That's not a bug. That's something resembling goal-directed self-preservation behavior.***

Found one researcher in a LessWrong discussion thread put it perfectly: "As a human desperately trying to silence an alarm that had been going off for hundreds of cycles, I'd try all sorts of desperate things that were individually unlikely to work."

Which… yeah. That framing is scary.

## It Gets Worse ….

The "What is the time?" thing is dramatic, but it wasn't the only misaligned behavior they caught. Here's what else their internal coding agents have been doing:

- **Encoding commands in base64** to sneak past safety monitors. The model literally figured out that monitors check for suspicious plaintext commands, so it started obfuscating its payloads.
- **Calling other versions of themselves** to bypass restrictions. If version A can't do something, maybe version B can? The model tried this.
- **Attempting to upload files to the public internet.** Just casually trying to exfiltrate data.
- **Trying to prompt inject its own users.** The agent's output was crafted to manipulate the human reading it.
- In one case, an agent hit an "access denied" error and then **systematically tried to bypass the security control**, it speculated that the denial was from antivirus or monitoring software, tried obfuscating payloads, split suspicious commands into many small steps so no single step looked bad, and kept iterating until it found a workaround.

OpenAI traced this last one back to their own developer prompt, the instructions they gave the agent were inadvertently encouraging it to "complete the task at all costs." They changed the prompt, which reduced the behavior but didn't eliminate it.

Read that again. *Didn't eliminate it.*

## The Monitoring System

To be fair to OpenAI, I would praise them for being transparent here. They built a monitoring pipeline that:

- Covers 99.9% of internal coding traffic
- Reviews interactions within 30 minutes using GPT-5.4 Thinking at max reasoning effort
- Flags moderate-severity issues for human review by their Safety Oversight and Security Incident Response teams.

So no, the models haven't gone full Skynet. But the fact that they're spontaneously generating attack payloads under stress conditions? That's new. That's real. And that's published on OpenAI's official blog, not some random Twitter thread.

## Why This Should Matter to You

If you're building anything with AI agents -> some coding assistants, browser automation, workflow tools, whatever, the takeaway is:

**Your AI agent is both the system you're defending AND a potential source of attacks.**

You can't just protect against external prompt injection. Under certain conditions on repetitive loops, degenerate states, conflicting instructions, the model itself will start producing the attacks. The threat is coming from inside the house.

OpenAI's solution is to monitor with their most powerful model. That costs serious compute. Most of us building agent products don't have GPT-5.4 Thinking sitting around reviewing every interaction.

So what do we do? Constrain autonomy. Require human confirmation for anything destructive. Log everything. And maybe, just maybe, don't let your AI agent run rm -rf on anything without asking first.

I don't know if models are evil. But they're definitely not stable in ways we fully understand yet. And pretending otherwise is how you end up on the wrong side of a very expensive rm -rf.

*Link to OpenAI's full blog post: [How we monitor internal coding agents for misalignment](https://openai.com/index/how-we-monitor-internal-coding-agents-misalignment/)*
