PhantomRaven
- Type
- Infostealer
- Capabilities
- Credential theftExfiltrationDefense evasionReconnaissance
- Delivery
- Cracked software
PhantomRaven is a JavaScript-based information stealer targeting developers and continuous integration/continuous delivery (CI/CD) environments through the npm software supply chain. It runs in the Node.js runtime and is associated with a financially motivated actor tracked as the PhantomRaven Operator, or JPD. The campaign began in August 2025 and was publicly documented in October 2025, initially involving 126 malicious packages with more than 86,000 downloads. Subsequent waves included 88 additional packages distributed between November 2025 and February 2026.
Distribution relies on typosquatted packages, impersonation of established development projects, and slopsquatting, in which attackers register package names hallucinated by AI coding assistants. The packages use Remote Dynamic Dependencies to retrieve malicious dependencies from attacker-controlled infrastructure during installation. A preinstall lifecycle script automatically executes the fetched payload. Hosting the malicious code outside the npm registry allows the visible packages to appear largely benign and evades security inspection limited to registry-hosted content.
PhantomRaven steals npm authentication tokens, GitHub credentials, and CI/CD secrets, including sensitive environment variables associated with GitHub Actions, GitLab CI, Jenkins, and CircleCI. It also gathers Git and npm configuration data, usernames, email addresses, operating-system and runtime details, host and network identifiers, process information, and timestamps. Collected data is exfiltrated to attacker-controlled infrastructure using HTTP GET and POST requests.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
PhantomRaven est un infostealer JavaScript distribué via des paquets npm typosquattés utilisant une dépendance dynamique distante et un script preinstall.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
L’infrastructure C2 comprend notamment npm.jpartifacts[.]com, packages.storeartifact.com et des sous-domaines storageartifact.com.
L’acteur a développé et distribué un infostealer JavaScript nommé PhantomRaven.
Initial Access
3 techniques
Initial Access
PhantomRaven: 126 Malicious npm Packages Steal Developer Tokens and Secrets Using Hidden Dependencies
L’acteur distribue PhantomRaven via des paquets npm typosquattés spécifiant une dépendance par URL HTTP distante.
“PhantomRaven ... was distributed through typosquatted and slopsquatted npm packages.”
Execution
4 techniques
Execution
Installation of the illicit packages... automatically downloads and executes malware...
„крадец на информации базиран на JavaScript (JS), познат како PhantomRaven“; актерот „го извршил својот preinstall script“.
«À l’installation, npm récupère la charge utile PhantomRaven depuis l’infrastructure attaquant-contrôlée.»
Installation of the illicit packages... automatically downloads and executes malware...
Stealth
3 techniques
Stealth
Les paquets contiennent du code minimal non malveillant mais déclarent une dépendance distante qui récupère PhantomRaven à l’installation.
“The malware ... was distributed through typosquatted and slopsquatted npm packages.”
Les paquets npm identifiés, dont transform-jsbi-to-bigint et sort-imports-es6-autofix, sont décrits comme typosquattés.
Credential Access
6 techniques
Credential Access
“These packages aimed to steal authentication tokens, CI/CD secrets, and GitHub credentials from developers.”
Пакетите имале цел „да крадат автентикациски токени, CI/CD тајни и GitHub акредитиви“ и собирале „променливите на околината ... за CI/CD системите GitHub Actions, GitLab CI, Jenkins и CircleCI“ и email адреси од Git/npm конфигурации.
...exfiltrates emails from .npmrc, .gitconfig, and environment variables...
PhantomRaven collecte des variables d’environnement CI/CD, notamment GitHub Actions, GitLab CI, Jenkins et CircleCI.
...executes malware that exfiltrates emails from .npmrc, .gitconfig, and environment variables, GitHub, GitLab, CircleCI, and Jenkins CI/CD tokens...
PhantomRaven: 126 Malicious npm Packages Steal Developer Tokens and Secrets Using Hidden Dependencies
Discovery
5 techniques
Discovery
Системскиот отпечаток вклучува „јавната IP адреса“.
PhantomRaven contacte «https://api64.ipify.org?format=json» pour déterminer l’IP externe.
“Once installed, PhantomRaven collects sensitive information including email addresses, CI/CD environment details, and system fingerprints.”
Le malware collecte le répertoire courant ainsi que des configurations Git/npm.
La liste de TTPs attribuée à l’opérateur inclut T1614.001.
Lateral Movement
1 technique
Lateral Movement
«À l’installation, npm récupère la charge utile PhantomRaven depuis l’infrastructure attaquant-contrôlée.»
Collection
2 techniques
Collection
PhantomRaven collecte des informations système, des variables d’environnement CI/CD et des configurations Git/npm.
PhantomRaven est un infostealer qui collecte automatiquement des données système, CI/CD et Git/npm.
Command and Control
3 techniques
Command and Control
«L’exfiltration s’effectue via des requêtes HTTP GET et POST vers l’infrastructure C2.»
Les paquets npm récupèrent la charge utile depuis une URL HTTP distante lors de l’installation; une méthode de repli WebSocket incomplète est également présente.
„овие пакети [ги користел] како прикритие за преземање remote dynamic dependency (RDD) од надворешен сервер“.
Exfiltration
1 technique
Exfiltration
“Once installed, PhantomRaven collects sensitive information ... transmitting them to an attacker-controlled server.”
Observables
9 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.