AI Token Jacking via Malicious Npm Packages
Score: 8/10

AI Token Jacking via Malicious Npm Packages

Cybercriminals are stealing AI API tokens using supply chain attacks and infostealers to fuel gray-market 'transfer station' proxy services, causing massive financial losses.

Executive Summary

Unit 42 has observed a surge in 'token jacking,' where attackers steal API keys for frontier AI models (LLMs) to resell access via gray-market proxy services known as transfer stations. These stations, often running on open-source platforms like 'new-api' or 'one-api,' allow attackers and third parties to utilize expensive AI resources at the victim's expense, frequently targeting Chinese-language marketplaces like Taobao.

The attack chain involves harvesting developer credentials through information stealers, phishing, or poisoned npm packages such as the 'Shai-Hulud' and 'Miasma' campaigns. Once an API key is obtained, attackers integrate it into their infrastructure, often removing billing limits and disabling usage alerts to maximize consumption before detection.

This threat is particularly critical for organizations rapidly adopting AI, as the consumption-based billing model of LLMs can result in losses exceeding hundreds of thousands of dollars within minutes. Affected organizations have limited recourse for recovering funds billed by legitimate AI service providers due to authorized (though hijacked) token usage.

Key Details

Threat Name

AI Token Jacking

Affects

—

Adversary

—

Malware/Tools

Shai-Hulud, Miasma

Report Score

8out of 10
Quality Score
Good
IOC Quality9
TTP Details8
Detection Guidance5
Enterprise Relevance9
Clarity & Structure9
Technical Depth7

Sources