The AI Gazette

OpenAIAgent security

A GitHub issue was enough to reach Codex's npm releases, through its own labeling agent

Depi's researchers chained a prompt injection in the openai/codex issue-labeler workflow, a sandbox escape and stolen CI tokens into a persistent backdoored release workflow. OpenAI has fixed it.

The way in was issue-labeler.yml, a workflow that runs the Codex agent on new GitHub issues. Anyone can open an issue, so anyone could put instructions in one and get commands run inside the agent's sandbox. From there the team escaped the workspace-write sandbox through .NET CLR debug pipes exposed in /tmp, read the runner's process memory, and leaked the job's ACTIONS_RUNTIME_TOKEN and GITHUB_TOKEN.

Those tokens let them poison the GitHub Actions cache, which moved execution into the more privileged rust-ci.yml workflow with contents: write, and plant a persistent workflow with id-token: write, the permission behind publishing under OpenAI's trusted identity. The @openai/codex package sees roughly 10 million weekly npm downloads. OpenAI fixed the chain, and the disclosure does not report a malicious release reaching users.

From other editions

Say hi.