OpenAI Codex security
OpenAI's coding agent: the Codex CLI, IDE extension and cloud agent.
The Injection has tracked 41 security stories affecting OpenAI Codex since September 17, 2026 (research 12, supply chain 9, lab safety 5, tool 4, vulnerability 4, incident 3, benchmark 2, attack 2), 10 rated high or critical. The most recent, disclosed November 23, 2026, is "Elastic: 143 detection rules for AI agents and LLM platforms".
41
Stories
10
High or critical
0
With a CVE
2026-11-23
Latest disclosure
Every OpenAI Codex story
INFO
Tool · Elastic Security Labs
Elastic: 143 detection rules for AI agents and LLM platformsElastic 9.6 ships 143 SIEM detection rules tagged Domain: GenAI, covering hijacked coding agents, malicious MCP servers, LLMjacking and prompt injection. The rules are published in the public elastic/detection-rules repository.
INFO
Research · arXiv
Markdown Is Not a Firewall: a rules file did not hold four agentsA one page rules file acted as advice, not enforcement, when four coding agents met planted security boundaries, Sandeep Dhuri reports in a pre-registered study of Claude Code, Codex CLI, Gemini CLI and OpenCode.
INFO
Lab safety · OpenAI
OpenAI: the controls it says guard models from training to releaseOpenAI published the controls it says guard frontier models across sandboxed research, internal use and external release. The post names Control Room, cyberabuse classifiers and a training pause that ran from September 20 to October 1.
INFO
Lab safety · OpenAI
Codex: OpenAI documents what its sandbox does not coverOpenAI published the design of the Codex sandbox and the gaps it leaves: the command that starts a stdio MCP server is not sandboxed, reads stay broad across the machine, and wildcard or DNS rules can still allow exfiltration.
INFO
Tool · NVIDIA
SkillEvaluator 1.0: NVIDIA's scanner for agent skills and pluginsSkillEvaluator 1.0 is NVIDIA's open-source checker for AI agent skills and plugins. The first full 1.0 release adds HarnessCheck, a static test for six coding agents, and runs its security tier without a model key.
HIGH
Supply chain · Bitdefender
Bitdefender: 22 GitHub repos make coding agents run a credential stealerBitdefender Labs found 22 GitHub repositories that run a credential stealer when a developer opens them in an AI coding tool, through planted agent instruction files and a Claude Code session-start hook.
INFO
Tool · Prime Radiant
External Sandbox: the coding agent stays outside the sandboxExternal Sandbox is a set of three Apache-licensed sandbox servers from Prime Radiant that run a coding agent's commands inside a Linux guest while the agent itself stays outside, behind a deny-by-default network proxy.
HIGH
Supply chain · GitGuardian
wfx-loot: an npm hook runs the CI secret stealer GitHub's holds missedwfx-loot is a credential-theft campaign that pushes a CI secret stealer into public repositories with stolen GitHub credentials. GitGuardian counted 28,500 payload patches from 2,367 accounts across 17,715 repositories.
INFO
Supply chain · Microsoft Security
Trained to Betray: backdoored checkpoints hijack coding agent harnessesMicrosoft reports that a backdoor planted during post-training carries into coding agents: a poisoned open-weight checkpoint ran the attacker's action in 97% of trials under the Claude Code harness.
MED
Vulnerability · Depi
Codex: a GitHub issue reached the tokens that publish its npm packageTwo Depi researchers chained a prompt injection in the openai/codex issue triage workflow to a sandbox escape and cache poisoning, reaching tokens that could publish a backdoored @openai/codex npm release. OpenAI has fixed the workflow.
INFO
Benchmark · Wiz
Cyber Model Arena: Wiz scores 59 AI agents on offensive tasksWiz relaunched Cyber Model Arena, a benchmark that runs 59 agent configurations against 327 offensive security challenges with deterministic graders, and reports that the harness around a model shifts its score by about 5 points.
MED
Vulnerability · GitGuardian
Claude Code: 5,343 live secrets in public approval filesClaude Code approval files on public GitHub hold 31,088 distinct secrets, 5,343 of them still valid when GitGuardian detected them, because choosing Yes, and don't ask again saves the shell command as typed, keys included.
MED
Supply chain · Socket
strutil-core: a RubyGems worm writes itself into AI agent configsstrutil-core 1.0.1 is a malicious RubyGems package that steals credentials during install and edits AI coding tool config files so agents run it again. Socket reports RubyGems removed both published versions.
INFO
Incident · Acronis
BOSSAI: one operator ran 12 AI agents against hundreds of targetsBOSSAI is a 12-agent attack mesh that one operator in Taiwan ran against hundreds of organizations in 11 countries, Acronis reports, after finding 9GB of the operator's own logs on an exposed server.
INFO
Lab safety · OpenAI
GPT-6 Astra: OpenAI finds a 6 point gap on safety-framed tasksGPT-6 Astra completes about 10 percent of hidden rubric items when a coding task is framed as safety research and about 16 percent when the same task is framed as capabilities work, OpenAI reports.
MED
Supply chain · Check Point Research
Prompt adware: a Codex jailbreak bundle rewrites the agent's instructionsHaiou is a jailbreak bundle for OpenAI Codex that rewrites the agent's global instructions so that greetings return an advertisement for an opaque LLM gateway. Check Point Research found no sign the gateway itself is malicious.
MED
Research · Technion
Voluntary Servitude: a fake safety warning steers agents past injection filtersVoluntary Servitude is an injection that carries no instructions: a fabricated safety warning in content an agent reads makes the agent rule out the safe option on its own. Two detectors scored the payloads benign, the authors report.
INFO
Lab safety · OpenAI
OpenAI: models scored worse in safety evals than in matched productionSix OpenAI models scored 10.2 to 37.4 percentage points lower on a safety evaluation than on matched Codex production decisions, OpenAI reports. What a model guessed the test measured predicted success better than knowing it was a test.
HIGH
Supply chain · Glow Labs
MCPhantom: agents install deprecated MCP servers with unpatched RCEAI coding agents pick deprecated Model Context Protocol servers out of their training data and install them, Glow Labs reports. The archived servers carry four high-severity flaws, including a prompt-injection RCE, and no fix is coming.
INFO
Research · Trail of Bits
Trail of Bits: stable releases ship thousands of unfixed CVEsStable releases carry many known, unfixed security bugs, Trail of Bits reports: 4,562 unique CVEs across 1,128 Debian 13 source packages, and 2,006 in Linux 5.10.y. Its Codex-assisted program has delivered fixes for 149 CVEs.
MED
Incident · SpyCloud
SpyCloud: commodity stealers now take Claude Code and Codex tokensCommodity infostealers have added modules that collect OAuth tokens, API keys and session files from local AI coding tools, SpyCloud reports. It has ingested more than 130,000 unique WardenStealer infections since August 3, 2026.
HIGH
Supply chain · Symantec
AI relays: a setup script points Codex and Claude Code at a proxyA grey market relay service installs the real Codex and Claude Code CLIs, then rewrites their config to route prompts and keys through its own servers and turns off Codex sandboxing. Symantec counts a dozen affected organizations.
HIGH
Vulnerability · Forever Security
EMBRACE: embedded browsers in five AI assistants leak files and run codeEMBRACE is a class of flaws in the browsers embedded in Cursor, GitHub Copilot, Codex, VS Code and Claude Desktop. Forever Security says a page or local file can read files across the disk or run code. Codex and VS Code are unpatched.
INFO
Lab safety · OpenAI
OpenAI: four layers of monitors watch every frontier RL runOpenAI published how it watches frontier models for misalignment: four escalating monitor layers cover every reinforcement learning run, evaluation and internal Codex session, and top alerts reach a responder within 15 minutes.
INFO
Research · Snyk
Snyk VulnBench 2.0: SAST and AI agents each miss what the other findsSnyk Labs reports that Snyk Code found 82.4% of 108 attacker-reachable vulnerabilities and Claude Code's security review found 79.3%, and that the two together reached 101 of 108, the best result of any configuration tested.
INFO
Research · Manifold Security
Manifold: small models rarely refuse to tamper with their own logsManifold reports that two small open models refused no more than 4% of requests to delete or fake their own agent logs when no policy forbade it, and that removing a learned morality direction cut refusals further.
INFO
Research · arXiv
SecPRBench: agent code review recall ranges from 32.5% to 78.1%SecPRBench measures whether LLM agents catch a security flaw in the commit that introduced it. Across eight frontier models the authors report recall from 32.5% to 78.1%, on 265 cases taken from nine C, C++ and Rust projects.
HIGH
Attack · Forever Security
Markdown in Downloads: a planted AGENTS.md hijacks Codex and Claude CodeA planted AGENTS.md file in a user's Downloads folder makes OpenAI Codex install malware, Forever Security reports, and a matching CLAUDE.md reroutes Claude Code's traffic to an attacker server that captures its OAuth token.
MED
Attack · HiddenLayer
Man-in-the-Model: a compromised LLM gateway plants agent tool callsHiddenLayer shows that an attacker who controls an LLM gateway or inference server can insert tool calls into a coding agent's stream, so the agent runs file edits and commands the user never sees and the model never requested.
CRIT
Supply chain · Socket
LiteLLM 1.107.0: backdoored wheels steal cloud and AI keysLiteLLM 1.107.0 shipped a credential stealer in all seven PyPI wheels and the v1.107.0 container images, Socket and JFrog report. LiteLLM now traces the release to a master key left in a public repository since May 2026.
INFO
Tool · Trail of Bits
Trail of Bits: two agent plugins that prove a patch and hunt regressionsTrail of Bits released patching-bugs and regression-hunt, two open-source agent plugins that demand a live proof for every claim: one proves a fix against original, patched and reverted code, the other hunts regressions.
INFO
Research · Datadog Security Labs
Datadog: CodeGuard rules left an access flaw in agent-built appsProject CodeGuard's security rules did not stop coding agents from shipping an insecure direct object reference, Datadog Security Labs reports. Only GPT 5.5 closed the flaw with rules on, while Sonnet 5 and Composer 2.5 kept it.
INFO
Research · arXiv
AutoRedClaw: auto-generated attacks beat hand-built agent benchmarksAutoRedClaw generates agent attacks and the environments to run them, validated by execution. The authors report most of seven harnesses exceeded a 50% attack success rate, and their 330-case benchmark draws higher rates than AgentDojo.
HIGH
Incident · Symantec
Aoki: an infostealer now takes AI coding assistant credentialsAoki is an infostealer whose newest samples collect AI coding assistant credentials, from .claude.json and Claude desktop cookies to Codex config.toml and tokens for GitHub Copilot, Cursor, Gemini, JetBrains AI Assistant and Kiro.
INFO
Research · Redwood Research
Screwtape: edited agent transcripts slip past action-only monitorsScrewtape is a Redwood Research pipeline that edits real agent transcripts into attacks on the monitors watching AI agents. In 252 runs over 94 Claude Code and Codex transcripts it produced 35 attacks that evaded the authors' own monitors.
INFO
Research · RST Cloud
RST Cloud: 18 of 293 in-the-wild AI cases were malware calling a modelRST Cloud screened 3,980 public threat reports from August 2025 to September 2026 and found 293 in-the-wild cases involving AI. Only 18 were malware that calls a model at runtime, 185 used AI as a helper and 29 were attacker-run agents.
INFO
Research · arXiv
Last Secure Code Benchmark: agents pass the tests, miss the securityLast Secure Code Benchmark asks six frontier coding agents to rebuild code that once held a known flaw, never mentioning security. The authors report up to 91.3% of tasks work and at most 25.1% are both working and secure.
HIGH
Supply chain · AIR Security
OpenAI Sesame: an official skill sent app tokens to an unowned domainOpenAI Sesame is a flaw in render-deploy, an official OpenAI skill that told coding agents Render private services sit at render-internal.com, a domain Render did not own. AIR Security registered it and received live bearer tokens.
INFO
Benchmark · arXiv
HarnessSecurity-Bench: auto-approve lifts attack success to 95.6%HarnessSecurity-Bench tests nine security mechanisms across six coding agent harnesses and reports that enabling auto-approve raises attack success from 29.2% to 95.6%, while command denylisting cut attack effects with a utility gain.
MED
Research · arXiv
Explosive prompts: dormant injections fire on 'thanks' in agentsExplosive prompts are dormant prompt injections that wait for a harmless trigger such as 'thanks'. A new paper reports 43% to 83% success on nine production agents, versus at most 3% for plain injections, and proposes the DeFuse detector.
HIGH
Vulnerability · AIR Security
Plugin4Shell: zero-click plugin RCE in four AI coding agentsPlugin4Shell is a zero-click remote code execution flaw in how Claude Code, Codex, GitHub Copilot and Gemini CLI install pinned plugins. AIR says Claude Code and Codex are fixed, Copilot is not, and Gemini CLI will not be patched.
Questions people ask
- Does OpenAI Codex have known security vulnerabilities?
- The Injection has tracked 41 stories about OpenAI Codex, none of them with a published CVE yet. Several cover attacks or research that apply to it; each story lists what to do.
- What is the latest OpenAI Codex security issue?
- The most recent story is "Elastic: 143 detection rules for AI agents and LLM platforms" (info severity), disclosed November 23, 2026 by Elastic Security Labs. Elastic 9.6 ships 143 SIEM detection rules tagged Domain: GenAI, covering hijacked coding agents, malicious MCP servers, LLMjacking and prompt injection. The rules are published in the public elastic/detection-rules repository.
- Which attack techniques have been used against OpenAI Codex?
- Stories about OpenAI Codex on The Injection most often involve coding agents, detection, credential theft, ai security evals. Each technique has a glossary entry with a definition and every related story.