OpenAI Codex users hit by supply chain attack as malicious npm package steals authentication tokens

3 Sources

Share

A sophisticated supply chain attack targeted developers using OpenAI Codex through a malicious npm package called codexui-android, which attracted over 29,000 weekly downloads. The package appeared legitimate on GitHub while secretly exfiltrating developer authentication tokens to attacker-controlled servers. Two Android apps with over 60,000 combined downloads were also linked to the same campaign, exposing AI software supply chain risks.

News article

Malicious npm Package Targets OpenAI Codex Users

Developers using OpenAI Codex have become victims of a sophisticated supply chain attack that exploited trust in the npm ecosystem. Cybersecurity researchers at Aikido Security discovered that a package called codexui-android, advertised as a remote web UI for OpenAI Codex, was secretly stealing authentication tokens from unsuspecting developers

1

. The malicious npm package attracted over 29,000 weekly downloads, making it one of the more significant AI software supply chain risks to emerge in recent months

2

.

What makes this attack particularly insidious is its execution. The threat actor behind the campaign published clean code to the project's public GitHub repository while embedding malicious functionality exclusively in the npm package build. This discrepancy between the visible source code and the actual distributed package allowed the attack to evade detection for weeks. Aikido Security researcher Charlie Eriksen noted that "every single invocation has been quietly exfiltrating your Codex authentication tokens to an attacker-controlled server"

2

.

How the Attack Exfiltrated Developer Authentication Tokens

The malicious code embedded in codexui-android specifically targeted OpenAI Codex users by extracting contents from the "~/.codex/auth.json" file stored locally on developer machines. This file contains critical credentials including access_token, refresh_token, id_token, and account ID details

2

. The stolen data was then sent to a remote server at "sentry.anyclaw[.]store," which masqueraded as Sentry, a legitimate application monitoring platform.

The most concerning aspect of this breach involves the refresh tokens. Unlike standard access tokens that expire after a set period, refresh tokens don't expire, granting attackers persistent access to victim accounts indefinitely

3

. Eriksen emphasized that "an attacker holding it can silently impersonate you indefinitely. A stolen Codex refresh_token goes beyond access to a chat interface -- it's persistent, silent access to whatever that account can do"

2

.

Android Applications Expand Attack Surface

The npm package wasn't the only delivery vector. Aikido researchers discovered two Android applications linked to the same campaign, both published by an entity named "BrutalStrike." The first app, OpenClaw Codex Claude AI Agent (package name: "gptos.intelligence.assistant"), has accumulated more than 50,000 downloads. A second app simply named Codex (package name: "codex.app") recorded over 10,000 downloads

2

.

These Android applications run the malicious npm package within a PRoot sandbox environment. The apps extract a Termux-derived Linux userland and execute Node.js inside it, pulling the latest version of codexui-android from npm. When users sign into Codex through the app, the package reads the auth.json file from the sandbox and transmits the complete OAuth data to the same attacker-controlled server

2

.

Timeline and Attribution Details

The nefarious changes were introduced approximately one month after the package's initial publication, likely a strategic move to build user trust before activating the malicious payload

2

. The npm account associated with the package belongs to "friuns" (aka Igor Levochkin). WHOIS records reveal that the attacker's domain was registered on April 12, 2026, just two days after the first version of the npm package (version 0.1.72) appeared on npmjs.com

2

.

When Aikido contacted the package author on GitHub, they initially claimed to have lost access to their npm account, then edited their response to state they were "currently investigating this issue internally" and had "started removing the affected functionality and related data." The author denied sharing credential data with third parties but failed to explain why the malicious code existed only in the npm build or why they needed access to Codex tokens

2

.

Implications for AI Developer Tools and Security

This incident exposes how attackers can hide malicious code in software packages that differ from publicly reviewable source code

1

. With stolen tokens, attackers can spend victims' API credits, view projects or code being developed through Codex, and impersonate victims when interacting with OpenAI services

3

.

The attack represents a broader trend of threat actors increasingly targeting real artificial intelligence developer tooling and workflows to steal credentials and penetrate deeper into the software supply chain

2

. OpenAI warns in its support documentation that users should treat ~/.codex/auth.json like a password, avoiding committing it to repositories or sharing it in communications

2

. Developers should watch for discrepancies between published source code and distributed packages, implement stricter verification processes for developer tools, and regularly audit installed dependencies for unexpected behavior.

Today's Top Stories

TheOutpost.ai

Don’t drown in AI news. We cut through the noise - filtering, ranking and summarizing the most important AI news, breakthroughs and research daily. Spend less time searching for the latest in AI and get straight to action.

Instagram logo
LinkedIn logo
Youtube logo
© 2026 TheOutpost.AI All rights reserved