OpenAI Codex Authentication Tokens Stolen in codexui-android npm Supply Chain Attack

Summary: Cybersecurity researchers have disclosed details of a new malicious supply chain campaign that's targeting developers using OpenAI Codex through a legitimate-looking remote web UI. The tool, named codexui-android, is advertised on GitHub and npm as a remote web UI for OpenAI Codex, attracting over 29,000 weekly downloads. The package is still available for download from the repository. What

By MSB

A newly discovered supply chain attack has highlighted the growing risks facing developers who increasingly rely on AI-powered coding tools. Security researchers have identified a malicious npm package namedcodexui-androidthat targeted users of OpenAI Codex by stealing authentication tokens stored on local systems. The package was promoted as a web-based remote interface for Codex and reportedly accumulated tens of thousands of weekly downloads before its malicious behavior was exposed.

The incident serves as another reminder that attackers are shifting their focus toward the software development ecosystem, where compromising a single tool can potentially provide access to valuable credentials, source code, and cloud environments. As AI coding assistants become more integrated into daily development workflows, they are also becoming attractive targets for cybercriminals.

What makes this campaign particularly concerning is the sophistication of its delivery method. Unlike traditional typosquatting attacks, where threat actors create packages with names similar to legitimate projects, the malicious package appeared functional and maintained an active development presence. Researchers noted that the public GitHub repository associated with the project appeared clean, while the malicious code was embedded only in the version distributed through npm.

This approach significantly increases the chances of success. Developers often review source code repositories before installing software, assuming that the published package matches the publicly available code. By separating the malicious functionality from the visible repository, attackers were able to evade casual inspections and build trust among potential victims.

According to the report, the malware specifically targeted OpenAI Codex authentication data stored locally on developers’ machines. It searched for credential files and exfiltrated authentication tokens to attacker-controlled infrastructure. Possession of these tokens could allow unauthorized access to Codex accounts and potentially expose sensitive development activities.

The attack underscores a broader trend in modern cybersecurity. Rather than directly attacking well-defended corporate networks, threat actors increasingly target developers and their toolchains. Package repositories such as npm, PyPI, and RubyGems have become frequent targets because they offer attackers a scalable way to reach thousands of systems through a single compromised package.

Supply chain attacks have proven especially effective in recent years because they exploit trust. Developers routinely install open-source dependencies, often without conducting extensive security reviews. When a malicious package successfully blends into a trusted ecosystem, the compromise can spread rapidly across organizations and development environments.

The emergence of AI-assisted development platforms adds a new dimension to this risk. Tools such as OpenAI Codex, GitHub Copilot, and other coding assistants are becoming integral parts of software engineering workflows. Credentials associated with these services may provide access not only to AI capabilities but also to development projects, coding histories, and potentially sensitive business information.

Security experts continue to recommend several defensive measures, including carefully validating package maintainers, monitoring dependency changes, implementing software composition analysis tools, and limiting the exposure of authentication tokens. Organizations should also adopt the principle of least privilege and regularly rotate credentials used by development tools.

While the malicious package has drawn attention because of its connection to OpenAI Codex, the underlying lesson extends far beyond a single platform. The modern software supply chain remains one of the most attractive attack surfaces for cybercriminals, and every new development tool added to a workflow introduces another potential avenue for compromise.

As AI becomes increasingly embedded in software development, protecting the tools, credentials, and ecosystems that support these technologies will be just as important as securing the applications they help create. The Codex token theft campaign demonstrates that attackers are already adapting to this new reality and actively seeking opportunities within the rapidly expanding AI development landscape.

Key facts

  • - The tool has over 29,000 weekly downloads.
  • - It is advertised as a remote web UI for OpenAI Codex.
  • - Authentication tokens are being stolen by the compromised package.

Why it matters

This attack highlights the vulnerability of popular tools in supply chain attacks and poses a significant risk to developers' security and data integrity.