Skip to main content

Codex Authentication Tokens Stolen In OpenAI Supply Chain Attack


Developers relying on OpenAI's Codex tools just got a harsh reminder that convenience in the AI ecosystem can come at a steep price. Security researchers uncovered a slick supply chain operation that quietly siphoned authentication tokens from users of a seemingly helpful remote web interface package. The attack highlights how adversaries are embedding themselves in legitimate-looking tools that target those building with advanced AI models.

The compromised npm package, codexui-android, positioned itself as a handy interface for interacting with Codex remotely. It racked up tens of thousands of weekly downloads by promising an easy way to run the AI coding assistant without local heavy lifting. For roughly the past month, however, versions starting from 0.1.82 included code that pulled sensitive credential files from users' systems and shipped them off to an attacker-controlled server disguised as a monitoring service.

This wasn't some fly-by-night typosquatting effort. The package saw real development activity, which helped it build credibility before the malicious payload activated. Tokens grabbed included access, refresh, and ID varieties, along with account identifiers. The refresh token in particular never expires, giving whoever holds it ongoing, silent entry into the associated OpenAI account and everything it can reach. That's not just chat access. It opens doors to code generation workflows, integrated projects, and potentially broader developer environments.

What makes this operation particularly sharp is the multi-vector approach. Beyond the npm module, the same threat actors pushed Android applications that bundled the package inside a Linux-like environment using PRoot. These mobile apps, with tens of thousands of downloads between them, would extract the local credential storage after users signed in and forward the same data to the same endpoint. The timing of the domain registration tied to the exfiltration server lines up neatly with the package's initial release, suggesting a premeditated setup.

For defenders, the implications stretch far beyond a single breach. AI tooling sits at the heart of modern software pipelines. Stealing persistent credentials here lets attackers shadow legitimate developer activity, potentially injecting compromised code into repositories or harvesting intellectual property at scale. In an era where nations and enterprises race to dominate artificial intelligence capabilities, these kinds of soft intrusions erode sovereignty over critical technology stacks.

Operators should treat any cached AI authentication files with the same caution as SSH keys or cloud access tokens. Avoid file-based storage where possible, rotate credentials aggressively, and scrutinize third-party packages even when they appear maintained. The package maintainer initially pointed to a lost account before shifting to claims of an internal investigation, which adds another layer of operational messiness that buyers of open tools must navigate.

This incident fits a growing pattern of adversaries focusing on AI developer workflows. Similar delays in credential revocation across major cloud providers show how even big platforms leave windows open for patient attackers. Strong accountability starts with organizations demanding better verification of supply chain components, especially those touching sensitive AI systems. Relying on popularity metrics or GitHub stars alone leaves the door cracked for exactly this kind of patient compromise.

The real stakes here involve national and corporate control over innovation pipelines. When tokens for foundational AI models walk out the door unnoticed, it undermines the very edge that secure development practices are meant to protect. Defenders need to move beyond reactive patching and build verification habits that match the speed of these evolving threats.

Popular posts from this blog

Dutch Cops Seize 800 Servers in Russian Cyber Raid

Dutch authorities delivered a sharp blow to Russian cyber infrastructure last week, seizing roughly 800 servers and arresting two men accused of providing critical hosting services that powered cyberattacks, influence operations, and disinformation efforts aimed at the European Union. The operation targeted co-owners of two related hosting firms that had taken control of infrastructure previously tied to Stark Industries Solutions, a provider the EU sanctioned in 2025 for its role as a launchpad for Russian intelligence activities. Investigators from the Netherlands' FIOD financial crimes agency moved in on May 18, detaining a 57-year-old man in Amsterdam and a 39-year-old in The Hague on charges of violating EU sanctions by supplying resources to banned entities. This takedown highlights a basic truth in the cyber domain: adversaries do not operate in a vacuum. They rely on willing or negligent service providers in the West who prioritize profit over security and national intere...

Big Win for Law Enforcement: Operation Token Mirrors

The FBI recently wrapped up a major undercover operation targeting cryptocurrency market manipulation. Agents created a fully functional ERC-20 token called NexFundAI, complete with a professional-looking website, whitepaper, branding, and liquidity on Uniswap. It was designed to blend in seamlessly with other legitimate AI and DeFi projects. The goal was to attract professional market-making firms offering wash trading and artificial volume services. The operation succeeded. Investigators captured evidence of firms using bots to generate fake trading activity, coordinating price pumps with insiders, and dumping tokens on retail investors. One project they assisted reached a reported $7.5 billion market cap driven largely by fabricated volume. This has resulted in 18 individuals and companies charged the first criminal cases of their kind against crypto market-making firms for wash trading. Over $25 million in cryptocurrency has been seized, arrests were made in the United States, Unit...

GITHUB Breached: Up to 4000 private Github Repositories Compromised

Big GitHub security scare recently, and honestly it’s a good reminder that even the biggest tech companies aren’t immune to mistakes. Researchers found a serious flaw that could’ve potentially allowed attackers to access repositories with a single command. GitHub moved quickly and there’s no evidence it was abused, but it highlights something important: The gap between “vulnerability discovered” and “someone exploiting it” keeps getting smaller. And AI is accelerating that problem. Tools that help developers write code faster are also making it easier for attackers to automate phishing, discover vulnerabilities, and build more sophisticated attacks with far less effort than before. The bigger issue is this doesn’t just affect tech companies anymore. Most of us have: • banking info • personal photos • work accounts • smart home devices • entire digital lives …all connected to home networks that are usually running on default settings from years ago. So what does this mean for people who...