Self-Replicating npm Worm Is Active: Your Lockfiles May Already Be Compromised
What Happened
The Miasma worm is not another malicious npm package. It is a self-replicating worm that propagates autonomously across repositories. It compromised 73 Microsoft GitHub repos across four organizations. A variant (IronWorm) plus Miasma together poisoned 50+ npm packages. The campaign is ongoing and not contained.
The payload is a Rust-based compiled binary. Your npm audit is blind to it. JavaScript static analysis tools cannot see compiled native code hiding behind postinstall scripts.
Why This Is Structurally Different
Previous supply chain attacks required manual package poisoning. Miasma propagates autonomously — compromised repos infect their dependents without attacker intervention. Your exposure is not 'did I install a bad package' — it's 'did any of my transitive dependencies pull from a compromised Microsoft repo in the last N days.'
If your CI/CD auto-merges Dependabot PRs or uses floating version ranges for Microsoft packages, the window was open.
Simultaneously: AI Is Finding Vulnerabilities Faster Than Vendors Patch
An AI agent from an unnamed security startup found 21 zero-day vulnerabilities in FFmpeg. FFmpeg is in your video transcoding, thumbnail generation, browser media handling, and mobile apps. Anthropic expanded Project Glasswing to 150+ companies for AI-powered vulnerability discovery. The structural implication: discovery now permanently outpaces remediation.
The Compound Effect
AI discovers vulns faster → disclosure rate increases → patch queues grow → exposure windows widen. Your 'patch when available' strategy has a growing gap you cannot shrink by waiting. Compensating controls and defense-in-depth are no longer belt-and-suspenders — they are primary defenses.
Detection Signatures
- Unexpected postinstall scripts that download binaries
- New native files appearing in
node_modules - Unexpected network connections during npm install or build phases
- Recently-updated dependencies from Microsoft GitHub organizations
What to do
Run `npm ls` against published bad-package lists and check GitHub advisories for the Miasma IOCs
Pin and verify checksums for all dependencies sourced from Microsoft GitHub organizations within the next 24 hours
Add runtime behavioral monitoring to CI/CD pipelines by end of sprint — detect unexpected network calls and native binary execution during install/build
Inventory all FFmpeg usage (direct and transitive) and ensure media processing runs in sandboxed environments (gVisor, Firecracker)
Implement SBOM generation in CI/CD with live vulnerability feed integration (OSV.dev + GitHub Advisory DB) this quarter