<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/shai-hulud-and-the-npm-worm-how-speed-optimised-dev-ecosystems-made-a-self-propagating-supply-chain-sqk1zcfbl" -->

---
title: Shai-Hulud and the npm Worm: How Speed-Optimised Dev...
description: The Shai-Hulud worm represents the first documented self-propagating registry-native attack in npm, exploiting legitimate credentials to automatically infect...
canonical: https://daily.dev/posts/shai-hulud-and-the-npm-worm-how-speed-optimised-dev-ecosystems-made-a-self-propagating-supply-chain-sqk1zcfbl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Shai-Hulud and the npm Worm: How Speed-Optimised Dev Ecosystems Made a Self-Propagating Supply Chain Attack Inevitable | daily.dev
og:description: The Shai-Hulud worm represents the first documented self-propagating registry-native attack in npm, exploiting legitimate credentials to automatically infect...
og:url: https://daily.dev/posts/shai-hulud-and-the-npm-worm-how-speed-optimised-dev-ecosystems-made-a-self-propagating-supply-chain-sqk1zcfbl
og:image: https://api.daily.dev/og/posts/Sqk1zCFbl.png
og:image:alt: Shai-Hulud and the npm Worm: How Speed-Optimised Dev Ecosystems Made a Self-Propagating Supply Chain Attack Inevitable
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Shai-Hulud and the npm Worm: How Speed-Optimised Dev Ecosystems Made a Self-Propagating Supply Chain Attack Inevitable

**[Foojay.io](https://daily.dev/sources/foojayio)** · 11 min read · 0 upvotes · 0 comments

## Summary

The Shai-Hulud worm represents the first documented self-propagating registry-native attack in npm, exploiting legitimate credentials to automatically infect and republish packages. The attack succeeded not by breaking systems, but by leveraging the speed-optimized architecture developers built: install-time execution, credential-rich CI environments, and frictionless publishing. Nearly 800 packages were compromised through phished maintainer tokens, demonstrating how modern development practices—automated dependencies, lifecycle scripts, and trusted automation—created an ecosystem where such attacks were inevitable. The incident reveals fundamental tensions between development velocity and security, highlighting gaps in vulnerability tracking for end-of-life software and the difficulty of distinguishing malicious from legitimate automated behavior.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://foojay.io/today/the-shai-hulud-cyber-worm-and-more-thoughts-on-supply-chain-attacks/>

## Similar posts on daily.dev

- [Shai-Hulud copycat worm infects yet another npm package](https://daily.dev/posts/shai-hulud-copycat-worm-infects-yet-another-npm-package-6qyti32ms) · The Register · 0 upvotes · 0 comments
- [The Worm That Learned Go: Breaking Down the Supply Chain Attack That Just Hit the Go Ecosystem](https://daily.dev/posts/the-worm-that-learned-go-breaking-down-the-supply-chain-attack-that-just-hit-the-go-ecosystem-lqbdndaal) · Medium · 0 upvotes · 0 comments
- [Shai-Hulud: Whoever controls your package registry controls your pipeline](https://daily.dev/posts/shai-hulud-whoever-controls-your-package-registry-controls-your-pipeline-ei6p8mpz3) · The New Stack · 0 upvotes · 0 comments
- [New Shai-Hulud malware wave compromises 600 npm packages](https://daily.dev/posts/new-shai-hulud-malware-wave-compromises-600-npm-packages-fc6izpxyv) · BleepingComputer · 5 upvotes · 1 comments
- [How we got hit by Shai-Hulud: A complete post-mortem](https://daily.dev/posts/how-we-got-hit-by-shai-hulud-a-complete-post-mortem-7ki0bejyp) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#cyber](https://daily.dev/tags/cyber), [#devops](https://daily.dev/tags/devops), [#malware](https://daily.dev/tags/malware), [#npm](https://daily.dev/tags/npm)

[View this post on daily.dev](https://daily.dev/posts/shai-hulud-and-the-npm-worm-how-speed-optimised-dev-ecosystems-made-a-self-propagating-supply-chain-sqk1zcfbl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Shai-Hulud and the npm Worm: How Speed-Optimised Dev Ecosystems Made a Self-Propagating Supply Chain Attack Inevitable","url":"https://daily.dev/posts/shai-hulud-and-the-npm-worm-how-speed-optimised-dev-ecosystems-made-a-self-propagating-supply-chain-sqk1zcfbl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/shai-hulud-and-the-npm-worm-how-speed-optimised-dev-ecosystems-made-a-self-propagating-supply-chain-sqk1zcfbl"},"datePublished":"2026-02-12T11:54:20.622Z","dateModified":"2026-02-12T11:54:47.022Z","description":"The Shai-Hulud worm represents the first documented self-propagating registry-native attack in npm, exploiting legitimate credentials to automatically infect...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ff3a565f176a527c4d3fc0945f9db48f?_a=AQAEunF","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ff3a565f176a527c4d3fc0945f9db48f?_a=AQAEunF","isAccessibleForFree":true,"articleSection":"Foojay.io","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Foojay.io","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1820f6a6ae944760aa322b67ed85f848","url":"https://daily.dev/sources/foojayio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/shai-hulud-and-the-npm-worm-how-speed-optimised-dev-ecosystems-made-a-self-propagating-supply-chain-sqk1zcfbl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,cyber,devops,malware,npm","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Foojay.io","item":"https://daily.dev/sources/foojayio"},{"@type":"ListItem","position":3,"name":"Shai-Hulud and the npm Worm: How Speed-Optimised Dev Ecosystems Made a Self-Propagating Supply Chain Attack Inevitable"}]}
```

