Popular NPM Package Steals OpenAI Keys
TL;DR: A popular npm package called 'codexui-android', which claims to be a web UI for OpenAI Codex, is actually malware designed to steal developer authentication tokens. The package has over 29,000 weekly downloads and is reportedly still available from the npm repository.
Key facts
- Category
- Cybersecurity
- Impact
- Critical
- Published
- Source
- The Hacker News
Full summary
A malicious npm package posing as a tool for OpenAI Codex is stealing developer authentication tokens and has over 29,000 weekly downloads.
Security researchers have uncovered an active supply chain attack targeting developers via the npm package registry. A malicious package named 'codexui-android' is stealing OpenAI Codex authentication tokens from its users. The package is deceptively advertised on both GitHub and npm as a useful remote web user interface for OpenAI's code-generation tool. This legitimate-sounding description has helped it gain significant traction, attracting over 29,000 downloads weekly. While it may offer some of its promised functionality, its primary hidden purpose is to find and exfiltrate sensitive developer credentials, sending them to an attacker-controlled server.
The implications of this attack are serious for any developer or organization that has used this package. Stolen authentication tokens provide attackers with direct access to a user's OpenAI account. This access could be used to make unauthorized API calls, leading to unexpected financial costs and service disruptions. Furthermore, attackers could potentially access sensitive information or proprietary code that has been processed through the compromised account. The attack highlights the inherent risks in modern software development, where dependencies on third-party packages are common. Because the package is still available, the threat remains active and requires immediate attention from the developer community.
Why it matters
This supply chain attack exploits trust in the open-source ecosystem, turning a popular developer tool into a credential-stealing trojan.
Business impact
Stolen OpenAI keys can lead to unauthorized API usage, resulting in significant financial costs, potential exposure of proprietary code, and disruption of AI-powered services.
⚡ Action needed
Developers who have installed the 'codexui-android' npm package must immediately uninstall it, check for signs of compromise, and rotate any exposed OpenAI API keys and other credentials.
Action checklist
- 1Check your projects for the 'codexui-android' npm package.
- 2If found, uninstall the package immediately from your environment.
- 3Revoke all OpenAI API keys associated with the affected systems.
- 4Review your OpenAI account usage for any suspicious activity.
- 5Scan development machines for other signs of compromise.
Tags
Related on Notifire
Primary source: The Hacker News
