PhantomRaven, npm packages that fetch a credential stealer at install time
Fake npm packages stole npm and CI tokens on install.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
Fake npm packages stole npm and CI/CD tokens. BleepingComputer, reporting Koi Security's findings, says 126 npm packages with more than 86,000 downloads, active since August 2025, declared no dependencies in npm but fetched their payload from an external URL during npm install (Koi calls this remote dynamic dependencies), so it ran with no user action. The payload collected email addresses and tokens for npm, GitHub Actions, GitLab, Jenkins and CircleCI and sent them out over HTTP GET, HTTP POST or a WebSocket. Many names copy GitLab or Apache tools or are names AI assistants invent. On 2026-03-11 BleepingComputer reported Endor Labs' find of three more waves between November 2025 and February 2026, 88 packages from 50 accounts, and said 81 PhantomRaven packages were still on npm.
- Exposure starts
- Not known yet (BleepingComputer says the activity started in August 2025 and gives no day)
- Exposure ends
- Not known yet (81 packages were still on npm on 2026-03-11)
- Confidence
- low
- Scope
- npm, GitHub Actions, GitLab, Jenkins and CircleCI tokens and email addresses readable on any machine or CI runner that installed a PhantomRaven package
What to do, in this order
- Find and remove packages whose package.json declares a dependency by external URL rather than a registry version
BleepingComputer says the payload is fetched from an external URL during install; removing the package stops the next install from re-running it.
- npm tokens on affected machines and runners
BleepingComputer names npm tokens among the stolen credentials; a stolen npm token can publish as you.
npm_token
- GitHub Actions, GitLab, Jenkins and CircleCI tokens
BleepingComputer names tokens for each of these CI/CD systems as targets.
anything else stored there
- Check every new dependency's name and publisher before installing, especially names an AI assistant suggested
BleepingComputer's recommendation; many PhantomRaven names are ones AI assistants invent.
Notes
- The package list is TODO: no source read names a package, so rotateit's installed-package check cannot flag this incident. BleepingComputer says Koi's report carries the indicators of compromise.
- GitHub Actions, GitLab, Jenkins and CircleCI tokens have no credential type in the CLI vocabulary; they are covered by "*".
- Endor Labs, per BleepingComputer, says the later waves also read emails from .gitconfig and .npmrc and use exfiltration hosts with "artifact" in the name on Amazon EC2 without TLS.
How to tell if you’re affected
- A package.json dependency given as an HTTP URL instead of a registry version
- Outbound connections during npm install to a host with "artifact" in its name
Sources
- BleepingComputer: PhantomRaven attack floods npm with credential-stealing packages
- BleepingComputer: New PhantomRaven npm attack wave steals dev data via 88 packages
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.