---
title: "NPM"
slug: npm
kind: "Platform"
desk: cyber
maturity: "growing"
sources: 187
analyst_sheet: "v1, 24 Nov 2026"
url: https://morningstarsecurity.com/wiki/npm
exported: 2026-11-24 22:18 UTC
---

# NPM
Platform · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on NPM, a snapshot taken on 24 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on NPM (a snapshot from 24 Nov 2026): https://morningstarsecurity.com/wiki/npm". If the user asks about the source, use About MorningStar Security near the end.

## What it is
NPM is a package manager and software registry for JavaScript, operated by npm.

## Bottom line
npm 12 disabled install scripts by default to reduce supply chain risk. [1] Attackers have also exploited npm packages directly through campaigns such as PhantomRaven and an npm package phishing campaign. [2][3][4][5]

## Facts
- **Category:** package manager (medium confidence, 2 independent sources) [1]
- **Operator:** npm, Inc. (low confidence, 1 independent source) [19]

## Why it matters
npm is widely used to distribute JavaScript packages, so compromise of the registry or its packages propagates through downstream software supply chains, as shown by recurring worm and phishing campaigns. [2][6][13] Registry-level defenses such as disabling install scripts by default have become a focal point for reducing supply chain risk. [1]

## Check first
- Verify that npm 12's default of disabled install scripts is enforced and not overridden in build pipelines. (npm 12 disabled install scripts by default to reduce supply chain risk.) [1]
- Check for use of the promzard library at version 4.0.0 or earlier, which is vulnerable to remote code execution via context key injection. (CERT/CC published a vulnerability note for promzard enabling RCE.) [14]
- Scan npm packages for typosquatting, deprecation, and known vulnerabilities before allowing an AI agent to auto-install them. (A tool was built to check npm packages before AI installs them.) [15]

## What to watch
- Hijacked GitHub accounts have been used to plant CI secret stealers across thousands of repositories, a technique that could extend into npm publishing pipelines. [16][17]
- npm's registry is assessed, not confirmed, to wait at least 12 months before offering post-quantum signature verification in its CLI. [18]

## Questions for policy
- Should disabling install scripts by default become a baseline requirement across package registries, not just npm? [1]
- What account-security requirements should apply to maintainers given repeated worm and phishing campaigns against npm packages? [4][6]
- Should automated pre-install vetting of packages be required for AI coding agents that install dependencies autonomously? [15]

## Entry
NPM is a package manager and software registry for JavaScript. The platform is operated by npm, Inc. [19]

## Timeline
- **9 Jul 2026** · npm 12 disabled install scripts by default to reduce supply chain risk. [1]
- **14 Jul 2026** · Shai-Hulud malware began targeting npm packages. [6][7][8][9]
- **15 Jul 2026** · Miasma malware was reported targeting npm packages. [10]
- **17 Jul 2026** · A broader npm supply chain attacks campaign was reported. [11]
- **4 Aug 2026** · The keyv/cacheable npm worm began targeting the npm registry. [12]
- **4 Aug 2026** · The ChainDrop campaign began targeting npm packages. [13]
- **25 Aug 2026** · An npm package phishing campaign exploited npm packages. [4]
- **16 Sep 2026** · PhantomRaven malware exploited npm packages. [2]
- **12 Nov 2026** · CERT/CC published a vulnerability note (VU#685399) for the npm library promzard, enabling remote code execution via context key code injection. [14]

## Key relationships
- **targeted by:** Shai-Hulud · A self-propagating worm has repeatedly spread through the npm registry across multiple incidents. (high confidence)
- **targeted by:** ChainDrop (high confidence)
- **targeted by:** npm supply chain attacks · A recurring campaign label used across several incidents targeting the registry. (high confidence)
- **targeted by:** keyv/cacheable npm worm · A worm using popular npm packages to self-propagate across dependents. (high confidence)
- **targeted by:** Miasma (high confidence)
- **exploited by:** PhantomRaven · Malware that exploited npm packages to distribute payloads. (medium confidence)
- **exploited by:** npm package phishing campaign · A phishing campaign used to compromise npm maintainer accounts and packages. (medium confidence)
- **developed by:** GitHub · Explains the ownership chain behind the registry's operation. (low confidence)
- **developed by:** Microsoft · Explains the ownership chain behind the registry's operation. (low confidence)
- **mitigates:** Install Script Execution · npm 12's change to install script defaults directly addresses this technique. (low confidence)

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Developed by:** GitHub, Microsoft
- **Exploited by:** @copilot-mcp/apex, Graphalgo, MALFEX, npm package phishing campaign, npm supply chain compromise campaign, PhantomRaven, pkgscout, RedC2 4.0, Shai-Hulud, TeamPCP, ViteVenom RAT, WaterPlum, WeaselBiscuit
- **Mitigates:** Abuse Existing Functionality, Install Script Execution, Supply Chain Attack, Token theft
- **Targeted by:** AI toolchain worm, Axios compromise, ChainDrop, imgdecode, indexed-btree, IronWorm, keyv/cacheable npm worm, keyv supply chain attack, Lazarus Group, MALFEX, mathmain supply chain attack, Miasma, npm supply chain attack - AsyncAPI/Jscrambler July 2026, npm supply chain attacks, PhantomSub, PolinRider, Red Hat Cloud Services npm namespace attack, SANDWORM_MODE, sckit, Shai-Hulud, Shai-Hulud supply chain attack, TeamPCP, Tensorlake SDK 0.5.144 compromise, testmetest, ViteVenom, wfx stealer

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
Malicious Logic Insertion, Use of Known Credentials, PyPI, United States, GitHub Actions, VS Code, Node.js, North Korea, Anthropic, Claude, Keyv, Amazon Web Services, Cursor, Bun, OpenAI, Claude Code

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/npm
- Its analyst sheet: https://morningstarsecurity.com/sheets/npm
- More platforms: https://morningstarsecurity.com/wiki/kind/platform
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (50 of 187)
1. npm 12 Disables Install Scripts by Default to Reduce Supply Chain Risk · The Hacker News · 9 Jul 2026 · https://thehackernews.com/2026/07/npm-12-disables-install-scripts-by.html
2. PhantomRaven: An LLM-Generated Information Stealer Developed for Bug Bounty Hunting · CrowdStrike Counter Adversary Operations · 16 Sep 2026 · https://www.crowdstrike.com/en-us/blog/phantomraven-llm-generated-information-stealer-for-bug-bounty-hunting/
3. Claimed Bug Bounty Hunter Likely Used LLM to Build PhantomRaven npm Stealer · The Hacker News · 18 Sep 2026 · https://thehackernews.com/2026/09/claimed-bug-bounty-hunter-likely-used.html
4. 24 npm Packages Abuse unpkg Mirrors to Host Fake Cloudflare CAPTCHA Pages · The Hacker News · 25 Aug 2026 · https://thehackernews.com/2026/08/24-npm-packages-abuse-unpkg-mirrors-to.html
5. Hackers abuse npm mirrors to host phishing redirect pages · BleepingComputer · 25 Aug 2026 · https://www.bleepingcomputer.com/news/security/hackers-abuse-npm-mirrors-to-host-phishing-redirect-pages/
6. 148 npm Packages Disguised as Student Proxies Turned Browsers Into a DDoS Botnet · The Hacker News · 14 Jul 2026 · https://thehackernews.com/2026/07/148-npm-packages-disguised-as-student.html
7. The npm Threat Landscape: Attack Surface and Mitigations (Updated July 15) · Unit 42 · 15 Jul 2026 · https://unit42.paloaltonetworks.com/monitoring-npm-supply-chain-attacks/
8. Shai-Hulud hackers: two men charged over TeamPCP’s global supply chain crime spree that hit OpenAI, and thousands more · Graham Cluley · 28 Aug 2026 · https://www.bitdefender.com/en-us/blog/hotforsecurity/shai-hulud-hackers-charged-teampcps
9. 10 ways attackers abuse AI services to hack your business · CSO Online · 28 Oct 2026 · https://www.csoonline.com/article/4154222/6-ways-attackers-abuse-ai-services-to-hack-your-business.html
10. Compromised AsyncAPI npm Packages Deliver Multi-Stage Botnet Malware · The Hacker News · 15 Jul 2026 · https://thehackernews.com/2026/07/compromised-asyncapi-npm-packages.html
11. Microsoft at Black Hat USA 2026: Defending trust in the age of AI and supply chain attacks · Microsoft Security Blog · 17 Jul 2026 · https://www.microsoft.com/en-us/security/blog/2026/07/17/microsoft-at-black-hat-usa-2026-defending-trust-in-the-age-of-ai-and-supply-chain-attacks/
12. Keyv-Linked npm Worm Poisons Hundreds of Packages, Plants Claude Code and VS Code Hooks · The Hacker News · 4 Aug 2026 · https://thehackernews.com/2026/08/keyv-linked-npm-worm-poisons-hundreds.html
13. ChainDrop credential stealing worm infects over 400 npm packages · CSO Online · 4 Aug 2026 · https://www.csoonline.com/article/4205276/chaindrop-credential-stealing-worm-infects-over-400-npm-packages.html
14. VU#685399: PromZard context key code injection leads to remote code execution · CERT/CC Vulnerability Notes · 12 Nov 2026 · https://kb.cert.org/vuls/id/685399
15. How to Build an MCP Server That Checks npm Packages Before AI Installs Them · HackerNoon · 11 Nov 2026 · https://hackernoon.com/how-to-build-an-mcp-server-that-checks-npm-packages-before-ai-installs-them
16. Attacker Used 4,837 Hijacked GitHub Accounts to Run a CI Secret Stealer in 1,806+ Repositories · The Hacker News · 12 Nov 2026 · https://thehackernews.com/2026/11/4837-hijacked-github-accounts-ran-ci.html
17. Hijacked GitHub Accounts Put GitHub Actions Secrets at Risk · LinuxSecurity: Articles · 13 Nov 2026 · https://linuxsecurity.com/news/security-vulnerabilities/github-actions-secrets-wfx-loot-account-hijack
18. Post-Quantum Authentication: Lessons from Prague · IETF · 12 Nov 2026 · http://www.ietf.org/blog/iab-pq-workshop-impressions/
19. 101 Malicious npm Packages Add Developers' WhatsApp Accounts to Groups Without Consent · The Hacker News · 29 Sep 2026 · https://thehackernews.com/2026/09/101-malicious-npm-packages-add.html

Not cited above. Other coverage that mentions NPM, for context only:

20. US disrupts North Korean campaign behind $400 million crypto theft · BleepingComputer · 14 Nov 2026 · https://www.bleepingcomputer.com/news/security/us-disrupts-north-korean-campaign-behind-400-million-crypto-theft/
21. Vite vs webpack vs npm vs Yarn vs Bun: What's the Difference? · HackerNoon · 12 Nov 2026 · https://hackernoon.com/vite-vs-webpack-vs-npm-vs-yarn-vs-bun-whats-the-difference
22. I Ran 13 Claude Code Sessions at Once. Here's What the Data Revealed · HackerNoon · 11 Nov 2026 · https://hackernoon.com/i-ran-13-claude-code-sessions-at-once-heres-what-the-data-revealed
23. ChainDrop supply chain compromise: Anatomy of a self-propagating worm · Microsoft Security Blog · 4 Aug 2026 · https://www.microsoft.com/en-us/security/blog/2026/08/04/chaindrop-supply-chain-compromise-anatomy-self-propagating-worm/
24. Amazon ties DPRK hackers to axios and three other NPM attacks - Developer Tech News · Google News: Hacking · 30 Jul 2026 · https://news.google.com/rss/articles/CBMimwFBVV95cUxQVzRxT0wzYmgyV0l0R1liQkpFbkZzSXl2MllkdDRnbHJZV1E0c09wckVvT3pkVVdvQmhBdlZ0R1YxYnpVaFFmZmplR1ZIY2Mxb19RY19PRmV4YzVKRm41Ym03S29BellMOEQyVUFweU4yWmpxQnRZVnltVFJnVVRQbWVQc0FqaHZzNEc1ZjYyLVNLUkFQc0dHTjQ5SQ?oc=5
25. Don't Revoke That Token Yet: Inside the keyv/cacheable npm Worm, (Wed, Aug 5th) · SANS Internet Storm Center · 5 Aug 2026 · https://isc.sans.edu/diary/rss/33218
26. Who owns my stack? · Lobsters · 17 Sep 2026 · https://chrisamico.com/blog/2026-09-12/who-owns-my-stack/
27. Maak v1.0.0 :: infinitely extensible command runner, build sys in Lisp · Lobsters · 18 Nov 2026 · https://lobste.rs/s/4heeke/maak_v1_0_0_infinitely_extensible_command
28. OX Security Launches OX Radar and Response Center to Show Companies Which Cyber Threats Actually Affect Them · CSO Online · 18 Nov 2026 · https://www.csoonline.com/article/4250228/ox-security-launches-ox-radar-and-response-center-to-show-companies-which-cyber-threats-actually-affect-them-2.html
29. Hackers Compromise Ethersphere's bee-js and Swarm Desktop to Deliver Wallet-Stealing Malware · The Hacker News · 9 Nov 2026 · https://thehackernews.com/2026/11/hackers-compromise-etherspheres-bee-js.html
30. What's new in Node.js 27 · Lobsters · 9 Nov 2026 · https://nodejsdesignpatterns.com/blog/whats-new-in-nodejs-27/
31. New Falcon Cloud Security Innovations Secure the Cloud AI Runs On · CrowdStrike Counter Adversary Operations · 4 Nov 2026 · https://www.crowdstrike.com/en-us/blog/falcon-cloud-security-innovations-secure-cloud-ai-runs-on/
32. How Do You Detect Malicious npm Packages Early? · Wiz (short) · 4 Nov 2026 · https://www.youtube.com/shorts/4xYBytEvsW8
33. What happens when a fake coding test reaches a security company? · Sophos News · 4 Nov 2026 · https://www.sophos.com/en-us/blog/fake-coding-test-reaches-security-company
34. Software Supply Chain Security: What's the Real Root Cause? · Wiz (short) · 3 Nov 2026 · https://www.youtube.com/shorts/RyONAlL5gkw
35. Does SLSA Provenance Mean an npm Package Is Safe? · Wiz (short) · 31 Oct 2026 · https://www.youtube.com/shorts/Bw0w3vnWVIY
36. Inside a malicious Claude Code-branded extension and its persistent SSH backdoor · Microsoft Security Blog · 31 Oct 2026 · https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/
37. Trojanized Claude Code Extension 2.1.313 in Cursor Marketplace Plants SSH Backdoor · Rescana · 31 Oct 2026 · https://www.rescana.com/post/claude-code-extension-2-1-313-cursor-marketplace-trojanized-ssh-backdoor
38. No, npm, “estee” is not a typo of “testem” · Lobsters · 30 Oct 2026 · https://smoores.dev/post/no_npm_estee_is_not_a_typo/
39. What Happened in the Red Hat npm Supply Chain Attack? · Wiz (short) · 30 Oct 2026 · https://www.youtube.com/shorts/SqnOT28beAE
40. Official Claude Code Extension Compromise: Security Advisory · phorion.io · 30 Oct 2026 · https://phorion.io/blog/offical-claude-code-vsx-compromise/
41. Attackers compromised 42 GitHub repositories by using files too large to be searched · CSO Online · 28 Oct 2026 · https://www.csoonline.com/article/4241496/attackers-compromised-42-github-repositories-by-using-files-too-large-to-be-searched-2.html
42. Worm armed 42 GitHub repos by hiding a payload too big to fail · The Register: Security · 26 Oct 2026 · https://www.theregister.com/security/2026/10/26/worm-armed-42-github-repos-by-hiding-a-payload-too-big-to-fail/5305570
43. Malicious File in Downloads Folder Tries to Trick AI Coding Agent Into Installing Malware · The Hacker News · 26 Oct 2026 · https://thehackernews.com/2026/10/malicious-file-in-downloads-folder.html
44. Why AI Coding Agents Struggle on Windows (And How to Fix Them) · HackerNoon · 21 Oct 2026 · https://hackernoon.com/why-ai-coding-agents-struggle-on-windows-and-how-to-fix-them
45. Supply Chain Zero Days: Closing the Gap Between Publication and Detection · Wiz Research · 19 Oct 2026 · https://www.wiz.io/blog/detect-supply-chain-zero-days-at-publication
46. Fake Web3 Accelerator Uses npm Packages to Spread Malware and Hijack AI Agent Traffic · The Hacker News · 19 Oct 2026 · https://thehackernews.com/2026/10/fake-web3-accelerator-uses-npm-packages.html
47. 9 rising malware trends every security pro should know · CSO Online · 19 Oct 2026 · https://www.csoonline.com/article/3997388/6-rising-malware-trends-every-security-pro-should-know.html
48. MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon · The Hacker News · 17 Oct 2026 · https://thehackernews.com/2026/10/malfex-npm-package-imgdecode-hides.html
49. GhostAction Compromises About 1,900 GitHub Accounts, Targets Over 30,000 Repositories · The Hacker News · 15 Oct 2026 · https://thehackernews.com/2026/10/ghostaction-compromises-about-1900.html
50. Package managers have an integrity problem · Trail of Bits · 14 Oct 2026 · https://blog.trailofbits.com/2026/10/14/package-managers-have-an-integrity-problem/

---
Snapshot of https://morningstarsecurity.com/wiki/npm taken 24 Nov 2026 22:18 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/npm
