Threat reportSupply ChainTL-2026-4661
Shai-Hulud Self-Propagating Supply Chain Malware Campaign Targeting NPM, GitHub Actions and Release Pipelines
Shai-Hulud is a self-propagating software supply chain worm that compromises npm packages, GitHub repositories and GitHub Actions release pipelines to harvest developer, CI/CD, cloud and AI-tool credentials and republish itself through every package the stolen tokens can publish.
Key facts
| Identifiers | TL-2026-4661 |
|---|---|
| Also known as | Shai-Hulud, Sha1-Hulud, Shai-Hulud 2.0, Sha1-Hulud: The Second Coming, Mini Shai-Hulud, Shai-Hulud: Here We Go Again |
| Severity | HIGH |
| Affected products | npm ecosystem @tanstack/* (React/Vue/Solid router and tooling packages); npm ecosystem keyv / cacheable families; npm ecosystem Other compromised packages; GitHub GitHub Actions workflows and self-hosted runners |
| Weaknesses (CWE) | CWE-506 |
| Malware | Shai-Hulud |
| Tools | TruffleHog - S9009 |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1036.005 Match Legitimate Resource Name or Location, T1059.007 JavaScript, T1098 Account Manipulation, T1102.001 Dead Drop Resolver, T1195.001 Compromise Software Dependencies and Development Tools, T1485 Data Destruction, T1528 Steal Application Access Token, T1543.002 Systemd Service, T1546.016 Installer Packages, T1550.001 Application Access Token, T1552.001 Credentials In Files and 6 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | technology, software development, open-source maintainers, cloud services |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 10 cited sources |
Detection coverage
As of 2026-10-28, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4661 across Splunk SPL, Microsoft KQL and Sigma, covering 27 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Shai-Hulud npm Lifecycle Loader Executing Bun Payload (TL-2026-4661)
Detects Shai-Hulud (S9008) execution: node, bun or a shell spawned from npm/pnpm/yarn lifecycle tooling running the loader and payload files seen across all waves (setup_bun.js, bun_environment.js, router_init.js, tanstack_runner.js, math_init.js, setup.mjs) or downloading the Bun runtime during package install to sidestep Node.js-focused monitoring. Covers the Sep 2025, Nov 2025 (Sha1-Hulud 2.0), May 2026 (Mini Shai-Hulud) and Aug 2026 (keyv/cacheable) waves.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195.001, T1059.007, T1036.005, T1027
- Data sources: sysmon, windows_security_process_creation, sysmon_for_linux
- Severity: critical
- Confidence: high
Splunk SPL
index=endpoint sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 earliest=-24h (CommandLine="*setup_bun.js*" OR CommandLine="*bun_environment.js*" OR CommandLine="*router_init.js*" OR CommandLine="*tanstack_runner.js*" OR CommandLine="*math_init.js*" OR CommandLine="*setup.mjs*" OR CommandLine="*bun.sh/install*" OR CommandLine="*oven-sh/bun/releases*")
| eval img=lower(Image), parent=lower(ParentImage)
| where match(parent,"(node|npm|npx|pnpm|yarn|bun|sh|bash|cmd|powershell|pwsh)([.]exe|[.]cmd)?$") AND match(img,"(node|bun|curl|wget|powershell|pwsh|bash|sh)([.]exe)?$")
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as command_lines values(ParentCommandLine) as parent_command_lines by host User Image ParentImage
| eval first_seen=strftime(first_seen,"%F %T"), last_seen=strftime(last_seen,"%F %T")
| table first_seen last_seen host User ParentImage Image command_lines parent_command_lines countMicrosoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ('node','node.exe','npm','npm.cmd','npx','pnpm','yarn','bun','bun.exe','sh','bash','cmd.exe','powershell.exe','pwsh')
| where FileName in~ ('node','node.exe','bun','bun.exe','curl','wget','powershell.exe','pwsh','bash','sh')
| where ProcessCommandLine has_any ('setup_bun.js','bun_environment.js','router_init.js','tanstack_runner.js','math_init.js','setup.mjs','bun.sh/install','oven-sh/bun/releases')
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine
| order by Timestamp descSigma
title: Shai-Hulud npm Lifecycle Loader Executing Bun Payload
id: 3a1f6c52-8e47-4b0d-9a21-5c7d8e9f0a11
status: experimental
description: Detects node, bun or a shell spawned from npm lifecycle tooling running Shai-Hulud loader and payload files (setup_bun.js, bun_environment.js, router_init.js, tanstack_runner.js, math_init.js, setup.mjs) or fetching the Bun runtime during package install. TL-2026-4661.
references:
- https://attack.mitre.org/software/S9008/
- https://research.jfrog.com/post/shai-hulud-is-back-august/
- https://www.endorlabs.com/learn/shai-hulud-2-malware-campaign-targets-github-and-cloud-credentials-using-bun-runtime
author: Threadlinqs Team
date: 2026-10-28
tags:
- attack.initial_access
- attack.t1195.001
- attack.execution
- attack.t1059.007
- attack.defense_evasion
- attack.t1036.005
- attack.t1027
logsource:
category: process_creation
detection:
selection_parent:
ParentImage|endswith:
- '/node'
- '/npm'
- '/pnpm'
- '/yarn'
- '/bun'
- '\node.exe'
- '\bun.exe'
- '\cmd.exe'
- '\powershell.exe'
selection_payload:
CommandLine|contains:
- 'setup_bun.js'
- 'bun_environment.js'
- 'router_init.js'
- 'tanstack_runner.js'
- 'math_init.js'
- 'setup.mjs'
selection_bun_fetch:
CommandLine|contains:
- 'bun.sh/install'
- 'oven-sh/bun/releases'
condition: selection_parent and (selection_payload or selection_bun_fetch)
falsepositives:
- Developers legitimately installing Bun from a lifecycle script
- Projects that ship their own setup.mjs
level: highKnown false positives:
- Developers legitimately installing the Bun runtime from a package lifecycle script or CI bootstrap step
- Internal projects that ship their own setup.mjs or setup_bun.js helper
Tuning notes: Scope to build agents and developer endpoints first. Allowlist approved Bun bootstrap commands by parent command line and repository path. Setup.mjs alone is generic, so keep the parent-process condition. On Linux CI runners point the search at your Sysmon for Linux or auditd execve index and adjust the field names.
- Shai-Hulud Known-Bad Package, Fork Commit and Payload Hash Execution · unlock with TL Creds
- Shai-Hulud Credential Harvesting: TruffleHog, Runner Memory Scraping and Cloud Secret Enumeration · unlock with TL Creds
- Shai-Hulud Blockchain-Resolved C2: Ethereum RPC Lookups from Node and Bun · unlock with TL Creds
- Shai-Hulud Malicious GitHub Actions Workflow Injection (discussion.yaml, codeql_analysis.yml) · unlock with TL Creds
- Shai-Hulud SHA1HULUD Self-Hosted GitHub Actions Runner Registration · unlock with TL Creds
- Shai-Hulud Proxy and Web Traffic to Known C2 and Credential Exfiltration Endpoints · unlock with TL Creds
- Shai-Hulud Persistence Artifacts: Claude Code Hooks, VS Code Tasks, gh-token-monitor and pgmonitor · unlock with TL Creds
- Shai-Hulud Build-Process Egress to C2 and Exfiltration Endpoints · unlock with TL Creds
Indicators of compromise
As of 2026-10-28, Threadlinqs Intelligence tracks 27 indicators of compromise for TL-2026-4661.
Sample indicators (3 of 27)
- IP address:
83.142.209[.]194 - Domain:
git-tanstack[.]com - URL:
hxxps://webhook[.]site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7
Defanged, TLP:CLEAR. Full set of 27 indicators: unlock with TL Creds.
Community OSINT corroboration
3 of this threat's indicators have also been reported by the open-source security community. Community sightings are unverified and are kept separate from Threadlinqs' curated indicators. Indicator values, reporters and campaign linkage are available to authenticated Red-tier users.
Technical analysis
First seen in September 2025, it has recurred in at least four waves (Sep 2025, Nov 2025 'Sha1-Hulud 2.0', May 2026 'Mini Shai-Hulud' against TanStack, Aug 2026 keyv/cacheable), evolving from per-package payloads to abuse of release workflows, OIDC trusted publishing, self-hosted runners and blockchain-resolved C2.
Shai-Hulud (MITRE ATT&CK software S9008) is a supply chain worm first reported in September 2025 that spreads through code repositories such as GitHub and npm. Sygnia's incident-response write-up (2026-09-06) describes a recurring five-stage pattern: (1) compromise of an upstream maintainer through phishing or exploitation of maintainer environments and release workflows; (2) injection of malicious code into npm packages, GitHub Actions or other releases via pre- or post-install scripts; (3) harvesting of developer credentials, npm publishing keys, GitHub and GitLab tokens, CI/CD secrets, cloud, Kubernetes, Vault, SSH and SAS credentials; (4) exfiltration through a command-and-control mechanism that uses smart contract and blockchain infrastructure, which makes domain-based blocking less effective; and (5) persistence on developer workstations and through registration of additional self-hosted runners. The Sygnia article names no victims, packages or indicators; the technical detail below comes from other vendor reporting on individual waves.
September 2025 wave: post-install execution of bundle.js. Stolen secrets were exfiltrated to webhook.site endpoints and committed to public GitHub repositories named 'Shai-Hulud'. Unit 42 reports initial access through a phishing campaign spoofing npm and requesting MFA updates, and @ctrl/tinycolor was among the affected packages. Unit 42 assessed with moderate confidence that an LLM generated the malicious bash script.
November 2025 wave ('Sha1-Hulud: The Second Coming', Shai-Hulud 2.0, ~21-24 Nov 2025): execution moved to the preinstall lifecycle hook. setup_bun.js installs the Bun runtime (masquerading as a legitimate Bun installer and sidestepping Node.js-focused monitoring) and launches the heavily obfuscated bun_environment.js (10+ MB). The payload runs TruffleHog to find secrets, pulls secrets from AWS, GCP and Azure secret managers, writes cloud.json, environment.json and actionsSecrets.json and pushes them to public GitHub repositories labelled 'Sha1-Hulud: The Second Coming'. Persistence uses a self-hosted GitHub Actions runner named SHA1HULUD registered through a malicious .github/workflows/discussion.yaml, and a failsafe attempts to overwrite and delete every writable file in the user's home directory if exfiltration fails. Check Point reported 621 compromised npm packages, ~25,000 malicious repositories, 487 organizations and 14,206 leaked secrets (2,485 still valid).
May 2026 wave ('Mini Shai-Hulud', 10-11 May 2026, attributed by StepSecurity to the TeamPCP group): 42 @tanstack/* packages (84 malicious versions) plus @mistralai/mistralai, @opensearch-project/opensearch, 70+ @uipath/* packages and others were backdoored. The attacker forked TanStack/router from the account voicproducoes and added an optionalDependency '@tanstack/setup' pointing to a fork commit whose 'prepare' script runs an obfuscated Bun payload (tanstack_runner.js / router_init.js). The payload abused a pull_request_target 'Pwn Request', GitHub Actions cache poisoning and OIDC token extraction from runner process memory (/proc/<pid>/mem) to publish through the legitimate release workflow, producing valid SLSA Build Level 3 provenance. It then exchanged GitHub OIDC tokens for per-package npm publish tokens, or used npm tokens with bypass_2fa, to republish every package of the compromised maintainer. Exfiltration used the Session messenger CDN (filev2.getsession.org), a GitHub GraphQL dead-drop (commits as claude@users.noreply.github.com on dependabot/github_actions/format/* branches) and C2 at git-tanstack.com, api.masscan.cloud and 83.142.209.194. Persistence included Claude Code SessionStart hooks (.claude/settings.json), VS Code folderOpen tasks, a macOS LaunchAgent and a Linux systemd user service (gh-token-monitor) and an injected codeql_analysis.yml that exfiltrates toJSON(secrets). Upwind additionally reports a geographic kill switch keyed on Israeli and Iranian timezone/locale that runs destructive behavior, and an npm token labelled 'IfYouRevokeThisTokenItWillWipeTheComputerOfTheOwner'.
August 2026 wave (identified 2026-08-04, JFrog): keyv@6.0.0 and cacheable@2.5.1 were the initial vectors, spreading to 400+ packages and 1,700+ versions. A preinstall loader (setup.mjs) downloads Bun 1.3.13 and runs a 710 KB obfuscated payload (math_init.js). C2 domains are resolved from the Ethereum smart contract 0xE1f2395ee43e45A1556EC6438a88c31B83493103 (selector 0x53ed5143) via public RPC providers, with HTTPS on path /router; a fallback uses public GitHub repositories with Dune-themed names and the description 'Shai-Hulud: Here We Go Again'. The worm commits five persistence files (.vscode/tasks.json, .vscode/setup.mjs, .claude/math_init.js, .claude/settings.json, .claude/setup.mjs) to up to 50 branches per repository, injects codeql_analysis.yml to exfiltrate Actions secrets as artifacts, and targeted the opensearch-js release-drafter.yml workflow to publish with valid Sigstore provenance.
Attribution across waves is not established: only the May 2026 wave has been linked to a named group (TeamPCP, per StepSecurity), and Sygnia states no attribution.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1036.005 Match Legitimate Resource Name or Location
Execution
T1059.007 JavaScript; T1677 Poisoned Pipeline Execution
Persistence
T1098 Account Manipulation; T1543.002 Systemd Service; T1546.016 Installer Packages
Command and Control
Initial Access
T1195.001 Compromise Software Dependencies and Development Tools
Impact
Credential Access
T1528 Steal Application Access Token; T1552.001 Credentials In Files; T1552.005 Cloud Instance Metadata API; T1555.006 Cloud Secrets Management Stores
Lateral Movement
T1550.001 Application Access Token
Exfiltration
T1567.001 Exfiltration to Code Repository; T1567.004 Exfiltration Over Webhook
Resource Development
Remediation
Patches
- Replace compromised package versions with known-clean versions published after maintainer credentials are replaced; rebuild from trusted sources
Immediate actions
- Search lockfiles, node_modules and registries for compromised package versions and for indicator files (setup_bun.js, bun_environment.js, router_init.js, math_init.js, setup.mjs)
- Isolate affected hosts and CI runners; preserve logs and disk images before cleanup
- Revoke (do not merely rotate) npm tokens (especially bypass_2fa and write-scoped), GitHub PATs, cloud keys, Kubernetes, Vault, SSH and SAS credentials; assume exposure extends beyond initial findings
- Do not revoke an npm token labelled 'IfYouRevokeThisTokenItWillWipeTheComputerOfTheOwner' or 'IfYouBlockThisAPIKeyItWillCrashTheLiveProductionServersOfAllThirdPartyClients' on a live host until the host is isolated and backed up; a wipe routine is reported
- Audit GitHub for unexpected repositories ('Shai-Hulud', 'Sha1-Hulud: The Second Coming', 'Shai-Hulud: Here We Go Again', 'A Mini Shai-Hulud has Appeared'), self-hosted runners named SHA1HULUD, and workflows named discussion.yaml, shai-hulud-workflow.yml or codeql_analysis.yml that serialize secrets
- Remove persistence artifacts: .claude/settings.json SessionStart hooks, .vscode/tasks.json and setup.mjs, gh-token-monitor LaunchAgent/systemd unit, pgmonitor.py / pgsql-monitor.service
- Block and hunt for egress to git-tanstack.com, api.masscan.cloud, 83.142.209.194 and webhook.site from build environments
Workarounds
- Disable npm lifecycle scripts (npm config set ignore-scripts true) in CI where feasible
- Block execution of the Bun runtime downloads from package install steps in build environments
Longer-term hardening
- Inventory CI/CD secrets and segregate them per workflow to limit blast radius
- Pin dependencies and GitHub Actions to immutable commit SHAs rather than mutable tags
- Treat CI/CD runners as untrusted execution environments; use ephemeral runners and separate install runners from publishing runners
- Restrict OIDC token permissions and outbound network access from build environments; review npm trusted publishing and GitHub OIDC release automation
- Enforce phishing-resistant MFA on GitHub and npm; disable bypass_2fa tokens
- Apply a release cooldown (for example 10 days) before consuming newly published package versions
- Collect sufficient runner telemetry for investigation and be able to freeze critical pipelines
Affected and fixed versions
- npm ecosystem — @tanstack/* (React/Vue/Solid router and tooling packages)
Vulnerable versions: @tanstack/react-router 1.169.5, 1.169.8; @tanstack/router-core 1.169.5, 1.169.8; @tanstack/history 1.161.9, 1.161.12; 39 additional @tanstack/* packages, two malicious versions each - npm ecosystem — keyv / cacheable families
Vulnerable versions: keyv@6.0.0; cacheable@2.5.1; @keyv/*; @cacheable/* - npm ecosystem — Other compromised packages
Vulnerable versions: @mistralai/mistralai 2.2.3, 2.2.4; @opensearch-project/opensearch 3.6.2; @uipath/* (70+ packages); @ctrl/tinycolor (September 2025 wave) - GitHub — GitHub Actions workflows and self-hosted runners
Vulnerable versions: pull_request_target workflows, cache-poisonable workflows and OIDC trusted-publishing release workflows
Timeline
- Shai-Hulud first reported in September 2025 (exact day not stated in sources): npm post-install worm (bundle.js) steals tokens, commits secrets to public 'Shai-Hulud' repositories and exfiltrates to webhook.site; @ctrl/tinycolor among affected packages.
- Second wave 'Sha1-Hulud: The Second Coming' (Shai-Hulud 2.0) begins (21-23 Nov per Check Point): preinstall execution of locked-ioc-24 / locked-ioc-19, SHA1HULUD self-hosted runner persistence and a home-directory wipe failsafe.
- Security vendors publish alerts on Shai-Hulud 2.0; Check Point reports 621 compromised npm packages, ~25,000 malicious repositories, 487 affected organizations and 14,206 leaked secrets.
- GitHub account voicproducoes, later used to stage the TanStack malicious fork, is created (StepSecurity).
- Attacker creates the voicproducoes/router fork and malicious commit 79ac49eedf774dd4b0cfa308722bc463cfe5885c containing the tanstack_runner.js payload.
- Mini Shai-Hulud: 84 malicious versions across 42 @tanstack/* packages (plus @mistralai, @opensearch-project, @uipath and others) are published through the legitimate TanStack release workflow via pull_request_target abuse, cache poisoning and OIDC token theft, with valid SLSA provenance.
- JFrog identifies a new wave starting with keyv@6.0.0 and cacheable@2.5.1, spreading to 400+ packages and 1,700+ versions; C2 domains are resolved from an Ethereum smart contract.
- Sygnia publishes incident-response guidance describing the campaign's evolution from individual npm packages to compromise of the CI/CD and release infrastructure, including smart-contract/blockchain-assisted exfiltration and self-hosted runner persistence.
Sources cited
- Shai-Hulud, Software S9008 (MITRE ATT&CK) MITRE · Research
- "Shai-Hulud" Worm Compromises npm Ecosystem in Supply Chain Attack (Unit 42) Unit 42 · Research · 2025-11-26
- Shai-Hulud 2.0: Inside The Second Coming (Check Point Research) Check Point · Research · 2025-11-24
- TeamPCP's Mini Shai-Hulud Is Back: A Self-Spreading Supply Chain Attack Compromises TanStack npm Packages (StepSecurity) stepsecurity.io · Research
- Shai-Hulud: Here We Go Again - TanStack Supply Chain Worm (Upwind) upwind.io · Research · 2026-05-11
- Major Shai Hulud campaign strikes npm again, affecting keyv and 400+ packages (JFrog Security Research) research.jfrog.com · Research · 2026-08-04
- Shai-Hulud V2: npm Supply Chain Attack Analysis (Zscaler) zscaler.com · Research
- Shai-Hulud 2.0: Aggressive, Automated, and Fast Spreading (Netskope) netskope.com · Research
- Shai-Hulud 2.0 Malware Campaign Targets GitHub and Cloud Credentials Using Bun Runtime (Endor Labs) endorlabs.com · Research
- Shai-Hulud in the Wild: What Security and Incident Response Teams Need to Know (Sygnia) sygnia.co · Blog · 2026-09-06
Previous and next in supply chain
Further reading
Drafted by the Threadlinqs research pipeline from 10 sources; published ; last updated —.