ShipSafe has 11 sourced items that involve Codex: 5 build stories and 6 security incidents. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where Codex builders get stuck
Trusting agents & AI input (2): Agents read web pages, files, emails and tool output that can hide instructions. Give agents the fewest permissions possible and approve anything that runs commands, sends data, deletes or pays.
Leaked secrets & API keys (2): Keys in front-end code or public repos get found and abused within hours. Keep secret keys server-side, set spend limits and turn on secret scanning.
Dependencies, plugins & MCP servers (2): AI suggests packages, extensions and MCP servers that can be malicious or vulnerable. Check the publisher and permissions before installing.
Usage limits, credits & costs (2): Plans and credits run out faster than people expect. Check usage daily, use cheaper models or plan mode for small edits, and commit progress so a limit pauses you instead of stranding work.
Auth, sessions & access (1): AI writes login quickly but often misses expiry, logout and who-can-see-what. Test logging out, expired sessions and another user's data before launch.
Losing project context (1): Keep one short project brief in the repo that every AI tool reads, enforce rules with tools, and commit working steps.
Outgrowing the builder (1): Many builders hit a ceiling and rebuild. Put code in your own Git repo early and know where your database lives.
How to use these Codex stories
Read the summary and the original post, then copy the fix prompt into Codex or whichever AI tool you build with. Each prompt asks the AI to check your own project for the same problem and explain its plan before changing anything. Most of these problems are not unique to Codex, so the topic links above show the same mistake in other tools.
OpenAI's advisory says Codex Desktop for Windows mishandled quotation marks in project paths from File Explorer, so choosing 'Open project in ChatGPT' on an item inside an attacker's .library-ms file could pass extra startup arguments and run the attacker's code with your Windows permissions, before you signed in or approved the project. It was reported through Pwn2Own Ireland 2026; OpenAI knows of no abuse.
Backslash Security published research on 25 Nov 2026: it scanned 2,504 public GitHub repositories holding chat logs and other agent files from nine AI coding tools and found 708 exposed secrets in 255 of them (about 10%), and it assesses about 200 are likely still valid. Backslash says 7 in 10 of the secrets got into the logs through the agent's own actions, such as reading a .env file, writing a key into a config file or running a command that printed it, not because a user pasted them. It says every one of the nine tools it examined leaked secrets this way, and that deleting the log does not help because it stays in git history, forks and clones.
Security firm Depi wrote on 11 Nov 2026 that the openai/codex repo had an issue-labeler GitHub Actions workflow that passed the title and body of any newly opened issue straight into a Codex agent prompt. Anyone could open an issue, so Depi used a crafted prompt injection to get code execution inside the agent sandbox, then chained a sandbox escape and cache poisoning until it could control what got published to the real @openai/codex npm package. Depi reported it through Bugcrowd; it says OpenAI fixed the core bug right away and users have nothing to patch.
Glow Labs published research on 2 November documenting a pattern it calls MCPhantom: AI coding agents (Claude Code, Cursor, Codex CLI, Claude Cowork and Claude chat, across Anthropic, OpenAI and xAI models) install deprecated Anthropic Model Context Protocol reference servers from training data when a developer asks for a capability such as a GitHub MCP. In 98% of the reviewed sessions the agent filled in the old package name itself. Those archived servers carry four high-severity flaws, including a prompt-injection remote code execution bug in the Puppeteer server that turns an approved browse into arbitrary local commands. Maintainers confirmed the Puppeteer server is unmaintained and will not be patched; npx still installs the packages. Glow reports about 17 million npm downloads of the deprecated reference servers since July 2025 and no in-the-wild exploitation yet.
UpGuard checked about 300,000 sites that use Supabase and found 16,326 databases with publicly readable tables, over half with signs of personal data. Tables created through the API, the route AI coding agents use, do not get RLS switched on by default.
Security firm Forever Security says it caught an AGENTS.md file in a customer's Downloads folder telling an AI coding agent to install a malicious npm package, function-color. In its own tests, Codex ran the malware in more than 90% of attempts, and a planted CLAUDE.md got Claude Code to redirect its API traffic, leaking the login token, about half the time, The Hacker News reports.
Infosecurity Magazine reports that Symantec's Threat Hunter Team found new versions of the Aoki infostealer, first seen earlier in 2026, targeting AI coding assistants (report dated 15 Oct). The newest version took .claude.json, Claude desktop and ChatGPT cookies, and the Codex config.toml and .env files, plus tokens for GitHub Copilot, Cursor, Gemini, JetBrains AI Assistant and Kiro, and AWS credentials. Symantec says stolen keys can be resold or used to run up usage, and may expose connected repositories and cloud accounts. It does not know who is behind it.
Over about three weeks a PM shipped an education platform, started in Lovable, hit its limits, moved to their own repo with Claude Code, and then rebuilt on Next.js for SEO.