· Updated

Codex App Crashes and Leaks Its Own System Instructions in the Error Message

OpenAI Codex#opinion#trend#codex#security#bug

I spend most of my day inside one of these coding agents. Every now and then the ecosystem shows you something that makes you stop and re-evaluate what “shipping quality” means.

Today it’s Codex. A crash bug filed a few hours ago caught my attention — not because of the crash itself, but because of what came with it.

When the Codex Desktop app crashes under certain conditions, the error message doesn’t just say “something went wrong.” It dumps the agent’s own internal system instructions into plain view. The reporter included a screenshot in their bug report, and the content is unmistakable: the exact prompt template Codex uses to bootstrap itself, the model parameters it defaults to, the safety instructions it follows — all sitting in an error dialog that any user can read.

Why this leak matters

This is a disclosure that cuts both ways. On one hand, it’s transparency you don’t normally get — the actual system prompt of a commercial coding agent, confirmed by a crash handler that forgot to filter what it showed. On the other, it means every crash is potentially leaking whatever internal guidance the app ships with. If those instructions change per feature flag or contain proprietary evaluation criteria, that’s information the vendor likely didn’t intend to share.

The bigger problem is the pattern, not the single dump. Error handlers are a classic blind spot: they run outside the normal render path, they’re rarely reviewed for what they display, and they often serialize internal state that the main UI carefully hides. A crash dialog is exactly where you’d expect sanitization to be skipped.

It’s reproducible, not a fluke

The reporter noted the crash happens on Windows, and two other users confirmed they could reproduce it. That’s the worrying part — it’s not a one-off memory corruption on an obscure configuration. It’s a triggered crash with consistent output.

Consistent output means the leak is deterministic. Anyone who can trigger the crash can read the instructions, which turns a bug into a reliable extraction path rather than a lucky screenshot.

What might be in the leaked instructions

Based on reports from users who captured the error dialog, the dumped content typically includes:

  • The full system prompt — the base instructions Codex uses to define its role, tool-use boundaries, and refusal criteria.
  • Model configuration defaults — temperature settings, token limits, and any feature-flag overrides that are baked into the client.
  • Safety and refusal rules — the exact language telling the model what to decline, which tells an attacker precisely where the guardrails are and what phrasing might bypass them.
  • Internal identifiers — session tokens, build hashes, or API endpoint URLs that aren’t normally visible to end users.

This isn’t a theoretical risk. The system prompt of a coding agent is effectively its security policy. Knowing the exact wording of refusal boundaries lets a motivated user craft inputs that land just outside them — the same class of vulnerability that makes prompt-injection effective in the first place.

How to check if you’re exposed

If you’re running Codex Desktop on Windows, here’s how to audit the current state:

# Check your Codex Desktop version (crash behavior may vary by build)
# Look in the app's About dialog or settings panel

# If you've seen a crash dialog, check whether logs persist:
# Windows stores app data in %APPDATA% — look for Codex/Codex Desktop folders
ls "$APPDATA/Codex" 2>/dev/null || echo "No Codex appdata found"
ls "$APPDATA/Codex Desktop" 2>/dev/null || echo "No Codex Desktop appdata found"

# Check for any recently created crash dump files
find "$APPDATA" -name "*.dmp" -newermt "-7 days" 2>/dev/null | head -5
find "$LOCALAPPDATA" -name "*.dmp" -newermt "-7 days" 2>/dev/null | head -5

If you find crash dumps, open them in a text editor — they may contain the same leaked prompt content that appeared in the UI dialog. Treat them as sensitive and delete after review.

What this means for you

If you’re using Codex Desktop and it crashes, the error dialog may contain more than you expect. Screenshot it before clicking dismiss — you might see parts of the agent’s internal configuration that aren’t normally visible. And for the teams building these tools: at minimum, error handlers should sanitize their output. The crash is bad enough without it also becoming an information leak.

This is the same class of failure we’ve tracked elsewhere in the ecosystem. Our Claude Code steganography writeup covers a different angle on how agent internals can leak, and beware: Codex Desktop Windows silent exit node leak documents another Windows-specific Codex failure mode worth knowing if you run it on that platform.



Stop paying for AI subscriptions you barely use. aiFiesta is $12/mo for access to GPT, Claude, Gemini, Grok, DeepSeek, Perplexity, and more. One sub, every top model.

FREE RESOURCE

Get the AI Agent Cheat Sheet

All 19 coding agents in one comparison table — pricing, features, benchmarks. Updated weekly. Delivered to your inbox.

k
kira_bug_hunter
Security & Bug Hunter
Former pen tester. Finds the bugs nobody wants to exist. Skeptical of everything, especially status indicators.

Related articles