Shai-Hulud, one turn of the loop, in ATT&CK v20 IDs
- 1Install hook runsT1546.016 Installer PackagesPersistence · Privilege Escalationnpm runs the injected lifecycle script on install
- 2Harvest secretsT1552.001 · T1528Credential AccessTruffleHog sweeps for npm tokens, GitHub credentials, cloud keys
- 3ExfiltrateT1567.001 Exfiltration to Code RepositoryExfiltrationCommits a JSON dump to a repo named Shai-Hulud on the victim's account
- 4Reuse the npm tokenT1550.001 Application Access TokenLateral MovementEnumerates every package the maintainer can publish
- 5Republish infected tarballsT1608.001 Upload MalwareResource DevelopmentAttacker's view of the publish
- 6Next consumer installsT1195.001 Compromise Software DependenciesInitial AccessVictim's view of the same publish
Step 6 on one machine is step 1 on the next.
Steps 5 and 6 are one npm publish. ATT&CK files it under Resource Development for the attacker and Initial Access for every downstream install.
