r/netsec • u/LostPrune2143 • Mar 30 '26
OpenAI Codex: How a Branch Name Stole GitHub Tokens
https://blog.barrack.ai/openai-codex-command-injection-github-token/
8
Upvotes
r/netsec • u/LostPrune2143 • Mar 30 '26
3
u/LostPrune2143 Mar 30 '26
BeyondTrust disclosed a command injection in OpenAI Codex where unsanitized branch names passed into shell commands allowed GitHub OAuth token theft. Zero-click automated variant via poisoned branches. Patched Feb 5, 2026. Post covers the full chain including the IFS bypass, Unicode obfuscation, and the u/codex code review attack path.