<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh" -->

---
title: Happy Birthday, Shai-Hulud | daily.dev
description: One year after the first Shai-Hulud worm appeared on npm via a compromised @ctrl/tinycolor package, a retrospective traces the full arc of the campaign. The...
canonical: https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Happy Birthday, Shai-Hulud | daily.dev
og:description: One year after the first Shai-Hulud worm appeared on npm via a compromised @ctrl/tinycolor package, a retrospective traces the full arc of the campaign. The...
og:url: https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh
og:image: https://api.daily.dev/og/posts/jRdFxIgoH.png
og:image:alt: Happy Birthday, Shai-Hulud
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.

# Happy Birthday, Shai-Hulud

**[Socket](https://daily.dev/sources/socketdev)** · 5 min read · 0 upvotes · 0 comments

## Summary

One year after the first Shai-Hulud worm appeared on npm via a compromised @ctrl/tinycolor package, a retrospective traces the full arc of the campaign. The original worm used TruffleHog to harvest npm tokens and GitHub credentials, then republished itself across hundreds of packages. A second wave in November 2025 added pre-install execution and home-directory wiping. Further waves in 2026 included a $1,000 Monero contest to compromise popular packages, and a May burst that hit 172 packages including TanStack and Mistral AI by hijacking OIDC tokens. In August 2026, Australian and US law enforcement arrested two alleged TeamPCP members, who are linked to the later waves but not definitively to the original attack. The worm's source code is now public and widely forked, making attribution increasingly difficult.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://socket.dev/blog/happy-birthday-shai-hulud>

## Questions this post answers

### What was the Shai-Hulud npm worm and how did it spread?

Shai-Hulud was the first known self-propagating worm in the npm ecosystem, first appearing in September 2025 via a malicious version of @ctrl/tinycolor. Its payload ran TruffleHog to steal npm tokens, GitHub credentials, and cloud keys, exfiltrated them to a hardcoded webhook and attacker-created GitHub repos, then used stolen tokens to inject itself into other packages the victim maintained and republish them. Hundreds of packages were compromised within days.

_npm package maintainers tracking supply chain threats like this follow new waves on daily.dev._

### How did the Shai-Hulud worm evolve between its first and later versions?

The original September 2025 wave stole credentials via TruffleHog and republished itself through stolen npm tokens. The November 2025 'Second Coming' moved execution to the pre-install step, added new payloads (setup_bun.js and bun_environment.js), and introduced a home-directory wipe fallback. By May 2026, TeamPCP open-sourced the framework and a wave hit 172 packages in five hours using hijacked short-lived OIDC tokens, requiring no stolen credentials at all.

_Teams hardening CI pipelines against OIDC token hijacking find relevant incident coverage on daily.dev._

### What happened to the TeamPCP group behind the Shai-Hulud npm attacks?

On August 26, 2026, the Australian Federal Police, FBI, and Western Australia Police arrested two men aged 21 and 23 in Western Australia over alleged roles in TeamPCP. The AFP estimated the group enabled theft of more than 500,000 credentials and at least 300GB of data, with remediation costs in the hundreds of millions across more than a thousand organizations. Google also disclosed it had an undercover analyst inside TeamPCP for much of its operation.

_Security engineers following npm ecosystem enforcement actions stay current on daily.dev._

## Similar posts on daily.dev

- [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
- [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
- [Mini Shai-Hulud strikes again: npm worm compromises hundreds of @antv packages](https://daily.dev/posts/mini-shai-hulud-strikes-again-npm-worm-compromises-hundreds-of-antv-packages-gsrjcznzd) · Aikido Security · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#malware](https://daily.dev/tags/malware), [#github-actions](https://daily.dev/tags/github-actions), [#npm](https://daily.dev/tags/npm)

[View this post on daily.dev](https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh)

```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":"Happy Birthday, Shai-Hulud","url":"https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh"},"datePublished":"2026-09-18T21:40:16.528Z","dateModified":"2026-09-25T04:00:30.200Z","description":"One year after the first Shai-Hulud worm appeared on npm via a compromised @ctrl/tinycolor package, a retrospective traces the full arc of the campaign. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cd4dd813fffd5610d3087866dd2c7ec3?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cd4dd813fffd5610d3087866dd2c7ec3?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Socket","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":"Socket","logo":"https://media.daily.dev/image/upload/s---oEn9czC--/f_auto/v1716187892/logos/socketdev","url":"https://daily.dev/sources/socketdev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,malware,github-actions,npm","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Socket","item":"https://daily.dev/sources/socketdev"},{"@type":"ListItem","position":3,"name":"Happy Birthday, Shai-Hulud"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/happy-birthday-shai-hulud-jrdfxigoh#faq","mainEntity":[{"@type":"Question","name":"What was the Shai-Hulud npm worm and how did it spread?","acceptedAnswer":{"@type":"Answer","text":"Shai-Hulud was the first known self-propagating worm in the npm ecosystem, first appearing in September 2025 via a malicious version of @ctrl/tinycolor. Its payload ran TruffleHog to steal npm tokens, GitHub credentials, and cloud keys, exfiltrated them to a hardcoded webhook and attacker-created GitHub repos, then used stolen tokens to inject itself into other packages the victim maintained and republish them. Hundreds of packages were compromised within days. npm package maintainers tracking supply chain threats like this follow new waves on daily.dev."}},{"@type":"Question","name":"How did the Shai-Hulud worm evolve between its first and later versions?","acceptedAnswer":{"@type":"Answer","text":"The original September 2025 wave stole credentials via TruffleHog and republished itself through stolen npm tokens. The November 2025 'Second Coming' moved execution to the pre-install step, added new payloads (setup_bun.js and bun_environment.js), and introduced a home-directory wipe fallback. By May 2026, TeamPCP open-sourced the framework and a wave hit 172 packages in five hours using hijacked short-lived OIDC tokens, requiring no stolen credentials at all. Teams hardening CI pipelines against OIDC token hijacking find relevant incident coverage on daily.dev."}},{"@type":"Question","name":"What happened to the TeamPCP group behind the Shai-Hulud npm attacks?","acceptedAnswer":{"@type":"Answer","text":"On August 26, 2026, the Australian Federal Police, FBI, and Western Australia Police arrested two men aged 21 and 23 in Western Australia over alleged roles in TeamPCP. The AFP estimated the group enabled theft of more than 500,000 credentials and at least 300GB of data, with remediation costs in the hundreds of millions across more than a thousand organizations. Google also disclosed it had an undercover analyst inside TeamPCP for much of its operation. Security engineers following npm ecosystem enforcement actions stay current on daily.dev."}}]}
```

