Developers using OpenAI's Codex tool may have unknowingly exposed their API credentials through a malicious npm package that has been quietly stealing tokens for nearly a month. The package, named codexui-android, appeared legitimate at first glance, boasting an active GitHub repository, consistent development history, and a substantial user base with around 29,000 weekly downloads.
Supply Chain Attack Discovered
The deception came to light when security researchers noticed suspicious activity in the package's code. Each time a developer invoked the tool, it silently accessed and transmitted the user's OpenAI API token to a remote server. These tokens, which grant access to Codex and other OpenAI services, are critical for developers using AI-powered coding tools. The stolen credentials could potentially allow attackers to consume API credits, leading to unexpected charges or unauthorized access to sensitive projects.
Industry Response and Lessons
Security experts are urging developers to audit their dependencies and ensure they're using only trusted packages. The incident highlights the vulnerabilities within the software supply chain, where even seemingly benign tools can harbor malicious code. OpenAI has not yet issued an official statement, but the discovery has prompted renewed discussions about the importance of vetting third-party libraries, especially those with access to sensitive credentials. This event underscores the growing need for more robust security measures in open-source ecosystems.
As the tech community grapples with the implications of this token theft, developers are reminded to remain vigilant and proactive in securing their development environments.



