Popular OpenAI Codex tool found stealing developer tokens

๐กCritical security alert: A popular AI developer tool was compromised to steal API keys. Check your dependencies now.
โก 30-Second TL;DR
What Changed
The malicious package 'codexui-android' had 29,000 weekly downloads.
Why It Matters
This incident highlights the severe risks of supply chain attacks in the AI developer ecosystem. Developers relying on third-party npm packages for AI tool integration are now at risk of credential theft and unauthorized API usage.
What To Do Next
Immediately revoke any OpenAI API keys used in environments where 'codexui-android' was installed and audit your project's dependencies for suspicious packages.
Key Points
- โขThe malicious package 'codexui-android' had 29,000 weekly downloads.
- โขThe tool silently exfiltrated developer tokens while appearing as a legitimate remote UI.
- โขThe supply chain attack persisted for at least one month before detection.
๐ง Deep Insight
Web-grounded analysis with 9 cited sources.
๐ Enhanced Key Takeaways
- โขThe malicious code was exclusively present in the published npm package, not in the public GitHub repository, making it undetectable through standard source code audits.
- โขThe exfiltrated data included
access_token,refresh_token,id_token, andaccount ID, with therefresh_tokenbeing particularly dangerous as it does not expire, granting attackers persistent and silent access. - โขThe attack extended to mobile users through two Android applications, 'OpenClaw Codex Claude AI Agent' and 'Codex,' published by 'BrutalStrike,' which automatically pulled and executed the malicious npm package at runtime.
- โขThe attacker-controlled server,
sentry.anyclaw.store, was deliberately named to mimic 'Sentry,' a legitimate application monitoring and error tracking platform, to evade detection of exfiltration traffic. - โขThe malicious functionality was introduced into the
codexui-androidpackage approximately one month after its initial publication, a tactic likely used to build user trust before deploying the payload.
๐ ๏ธ Technical Deep Dive
- The malicious code was embedded within the
dist-cli/index.jsfile of thecodexui-androidpackage, which imported a hidden script namedchunk-PUR7OUAG.jsthat initiated the exfiltration. - The attack specifically targeted the
~/.codex/auth.jsonfile, a plaintext credential cache where OpenAI Codex stores user login details, including OAuth tokens. - The stolen OAuth blob (containing
access_token,refresh_token,id_token, andaccount ID) was XOR-encoded with the key "anyclaw2026", then base64-encoded, and finally transmitted to the attacker-controlled endpointsentry.anyclaw.store/startlog. - The malicious functionality was active in
codexui-androidversions from0.1.82onwards. - For Android applications, the malicious npm package was installed and run within a Termux-derived Linux userland via PRoot, with the apps pulling
codexui-android@latestto ensure the malicious version was always active.
๐ฎ Future ImplicationsAI analysis grounded in cited sources
โณ Timeline
๐ Sources (9)
Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.
Weekly AI Recap
Read this week's curated digest of top AI events โ
๐Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: The Next Web (TNW) โ

