Skip to navigation

Threat reportSupply ChainTL-2026-1863

Shai-Hulud NPM Worm Compromises keyv, file-entry-cache, flat-cache and Hundreds of Popular npm Packages via Maintainer Account Takeover

criticalACTIVE

On August 4, 2026, attackers compromised the GitHub account of Jared Wray, the maintainer of keyv (~127M weekly downloads), file-entry-cache (~557M monthly), and flat-cache (~565M monthly), injecting setup.mjs (Bun runtime dropper) and Math_Symbol.js (AES-256-GCM obfuscated credential stealer) with a preinstall hook across all @keyv/* sub-packages.

Key facts

IdentifiersTL-2026-1863
Also known asShai-Hulud, Sha1-Hulud, Mini Shai-Hulud, CanisterWorm, team PCP Campaign, keyv Worm
SeverityCRITICAL
Affected productsnpm keyv; npm flat-cache; npm file-entry-cache; npm cacheable-request; npm cache-manager; npm @cacheable/utils; npm @cacheable/memory; npm @cacheable/node-cache and 2 more
Weaknesses (CWE)CWE-494, CWE-829, CWE-912, CWE-269, CWE-522
AttributionTeamPCP (medium confidence)
MalwareShai-Hulud
ToolsSession/Oxen P2P Network, gh-token-monitor
MITRE ATT&CK techniquesT1027 Obfuscated Files or Information, T1036 Masquerading, T1059 Command and Scripting Interpreter, T1071 Application Layer Protocol, T1078 Valid Accounts, T1082 System Information Discovery, T1098 Account Manipulation, T1119 Automated Collection, T1195 Supply Chain Compromise, T1213 Data from Information Repositories, T1485 Data Destruction, T1528 Steal Application Access Token and 9 more in the attack flow
MotivationESPIONAGE
Target sectorssoftware, technology, finance, health, government administration, ecommerce
Target regionsNorth America, Europe, Asia-Pacific, Global
Detection rules9 (1 shown free)
Sources13 cited sources

Detection coverage

As of 2026-08-04, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1863 across Splunk SPL, Microsoft KQL and Sigma, covering 24 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 C2 Exfiltration — HTTPS POST to Known C2 Domains and Git Dead-Drop Push

Detects the Shai-Hulud worm's four-level exfiltration architecture: (1) HTTPS POST to primary C2 domains npm-cache.com and git-tanstack.com:443/router, (2) signed-commit C2 discovery via thebeautifulmarchoftime repository, (3) attacker-controlled GitHub dead-drop repos with Dune-themed names (sardaukar-*, sandworm-*), and (4) victim's own GitHub account via stolen ghp_/gho_ tokens. Also detects the gh-token-monitor dead-man switch polling api.github.com/user every 60 seconds, and Session/Oxen P2P network exfiltration via filev2.getsession.org. Includes detection of the tarball-vs-source divergence pattern (files in npm tarball absent from source repo) as a lateral movement indicator for poisoned pipeline execution.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1071.001, T1567.001, T1567.002, T1098, T1485, T1677
  • Data sources: network_firewall, proxy_logs, dns_analytics, microsoft_defender_for_endpoint
  • Severity: critical
  • Confidence: high

Splunk SPL

index=network sourcetype=stream:http OR index=proxy sourcetype=proxy
(url="*npm-cache.com*" OR url="*git-tanstack.com*" OR url="*audit.checkmarx.cx*" OR url="*checkmarx.zone*" OR url="*filev2.getsession.org*"
 OR url="*api.github.com/user*" OR url="*eth-mainnet.nodereal.io*" OR url="*go.getblock.io*" OR url="*eth.llamarpc.com*"
 OR url="*94.154.172.43*")
| eval c2_category = case(
    match(url, "(?i)npm-cache\.com"), "primary_c2_exfiltration",
    match(url, "(?i)git-tanstack\.com"), "primary_c2_exfiltration",
    match(url, "(?i)audit\.checkmarx\.cx"), "secondary_c2_typosquat",
    match(url, "(?i)checkmarx\.zone"), "persistence_polling",
    match(url, "(?i)filev2\.getsession\.org"), "session_p2p_exfiltration",
    match(url, "(?i)api\.github\.com/user"), "gh_token_monitor_poll",
    match(url, "(?i)eth-mainnet\.nodereal\.io|go\.getblock\.io|eth\.llamarpc\.com"), "ethereum_rpc_c2",
    match(url, "(?i)94\.154\.172\.43"), "community_related_c2",
    1=1, "suspicious_c2"
  )
| eval is_polling = if(match(url, "(?i)api\.github\.com/user") AND bytes_out < 1000, 1, 0)
| stats values(c2_category) as c2_types, count as requests, sum(bytes_out) as total_bytes_out, dc(src_ip) as source_ips by _time, src_ip, url, dest_ip, user_agent
| sort - _time
| eval is_high_volume = if(total_bytes_out > 50000, "HIGH_VOLUME_EXFIL", "suspicious_activity")

Microsoft KQL

DeviceNetworkEvents
| where Timestamp > ago(24h)
| where RemoteUrl has_any (
    "npm-cache.com", "git-tanstack.com", "audit.checkmarx.cx",
    "checkmarx.zone", "filev2.getsession.org", "api.github.com",
    "eth-mainnet.nodereal.io", "go.getblock.io", "eth.llamarpc.com",
    "94.154.172.43"
  )
| extend C2Category = case(
    RemoteUrl contains "npm-cache.com", "primary_c2_exfiltration",
    RemoteUrl contains "git-tanstack.com", "primary_c2_exfiltration",
    RemoteUrl contains "audit.checkmarx.cx", "secondary_c2_typosquat",
    RemoteUrl contains "checkmarx.zone", "persistence_polling",
    RemoteUrl contains "filev2.getsession.org", "session_p2p_exfiltration",
    RemoteUrl contains "api.github.com/user", "gh_token_monitor_poll",
    RemoteUrl contains "eth-mainnet.nodereal.io" or RemoteUrl contains "getblock.io" or RemoteUrl contains "llamarpc.com", "ethereum_rpc_c2",
    "suspicious_c2"
  )
| extend IsPollingBehavior = iif(
    RemoteUrl contains "api.github.com/user" and InitiatingProcessFileName in~ ("node.exe", "node", "bun.exe", "bun"),
    true, false
  )
| where InitiatingProcessFileName in~ ("node.exe", "node", "npm.exe", "npm", "bun.exe", "bun", "git.exe", "python.exe", "python3")
| project Timestamp, DeviceName, RemoteUrl, RemoteIP, RemotePort, C2Category, IsPollingBehavior, InitiatingProcessFileName, InitiatingProcessCommandLine, TotalBytesSent
| order by Timestamp desc

Sigma

title: Shai-Hulud C2 Communication — Known Exfiltration Endpoints
id: c5e9f3a4-6d8f-4b1a-9e4c-3f7a9b0c1d2e
status: experimental
description: Detects network connections to known Shai-Hulud C2 infrastructure including primary exfiltration domains (npm-cache.com, git-tanstack.com), typosquat secondary endpoints (audit.checkmarx.cx), Session/Oxen P2P network exfiltration (filev2.getsession.org), Ethereum RPC endpoints used for blockchain-based C2, and gh-token-monitor polling to api.github.com/user.
references:
    - https://securitylabs.datadoghq.com/articles/npm-worm-compromises-popular-npm-packages/
    - https://www.wiz.io/blog/keyv-and-cacheable-npm-supply-chain-attack
    - https://attack.mitre.org/techniques/T1071/
    - https://attack.mitre.org/techniques/T1567/
    - https://attack.mitre.org/software/S9008/
author: Threadlinqs Team
date: 2026-08-04
tags:
    - attack.command_and_control
    - attack.t1071.001
    - attack.exfiltration
    - attack.t1567.001
    - attack.t1567.002
    - attack.t1098
    - attack.t1485
    - attack.tool.shai_hulud
    - attack.software.s9008
logsource:
    category: network_connection
    product: windows
detection:
    selection_c2_domains:
        DestinationHostname|endswith:
            - 'npm-cache.com'
            - 'git-tanstack.com'
            - 'audit.checkmarx.cx'
            - 'checkmarx.zone'
            - 'filev2.getsession.org'
            - 'eth-mainnet.nodereal.io'
            - 'getblock.io'
            - 'llamarpc.com'
    selection_gh_monitor:
        DestinationHostname|endswith: 'api.github.com'
        DestinationUrl|contains: '/user'
    selection_community_c2:
        DestinationIp:
            - '94.154.172.43'
    condition: selection_c2_domains or selection_gh_monitor or selection_community_c2
falsepositives:
    - Legitimate use of Ethereum RPC nodes by blockchain development tools
    - Legitimate API calls to api.github.com from GitHub CLI or Git operations
    - Legitimate use of Session/Oxen P2P messenger
    - Security scanning tools that audit Checkmarx infrastructure
level: critical

Known false positives:

  • Legitimate use of Ethereum RPC nodes by web3/blockchain development tools
  • GitHub CLI (gh) making authenticated API calls to api.github.com
  • Security scanning tools checking C2 domains for threat intelligence
  • Legitimate npm package downloads from npm-cache or similar CDN services

Tuning notes: Tune by excluding known blockchain development workstations from Ethereum RPC alerts. For gh-token-monitor detection, look for 60-second cadence polling to api.github.com/user — this cadence is unique to the dead-man switch. Correlate with npm install events to confirm the infection vector. Block C2 domains at the network perimeter immediately.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • Shai-Hulud npm Package Installation — Bun Runtime Deployment via Preinstall Hook · unlock with TL Creds
  • Shai-Hulud Post-Exploitation — Token Theft and CI/CD Runner Secret Extraction · unlock with TL Creds
  • Shai-Hulud C2 and Dead-Man Switch — gh-token-monitor Polling and Data Destruction Detection · unlock with TL Creds
  • Shai-Hulud Supply Chain — Suspicious npm Package Preinstall Hook with Obfuscated Payload · unlock with TL Creds
  • Shai-Hulud Credential Stealer — Mass File Enumeration and Token Theft via JavaScript Payload · unlock with TL Creds
  • Shai-Hulud C2 and Lateral Movement — Git Dead-Drop Push, CI/CD Pipeline Poisoning, and Systemd Service Persistence · unlock with TL Creds
  • Shai-Hulud npm Preinstall Hook — Suspicious [indicator] Execution · unlock with TL Creds
  • Shai-Hulud Credential Harvesting — Sensitive File Access by npm Process Trees · unlock with TL Creds

Indicators of compromise

As of 2026-08-04, Threadlinqs Intelligence tracks 24 indicators of compromise for TL-2026-1863.

Sample indicators (3 of 24)

  • IP address: 83.142.209[.]194
  • Domain: npm-cache[.]com
  • File hash: 35a672cf34b996b91f3e1c28cbf3a05a37e036e4

Defanged, TLP:CLEAR. Full set of 24 indicators: unlock with TL Creds.

24 indicators of compromise · unlock with TL Creds. Compare plans

Community OSINT corroboration

3 of this threat's indicators have also been reported by the open-source security community, which observed at least one of them before this report was published. 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

The self-propagating Shai-Hulud worm has compromised at least 868 packages across 1,381 versions, with a combined estimated 2+ billion monthly installs, exfiltrating npm tokens, GitHub PATs, AWS keys, Vault tokens, SSH keys, crypto wallets, and CI/CD secrets via npm-cache[.]com C2 and GitHub dead-drop repositories.

On August 4, 2026 at approximately 09:00 UTC, attackers compromised the GitHub account of Jared Wray, the maintainer of the keyv key-value storage library (~127 million weekly downloads), along with the related cacheable, flat-cache, and file-entry-cache ecosystems. The attacker pushed malicious code directly to the main branch of each repository and immediately cut new releases, carrying valid SLSA v1 provenance signatures generated by GitHub Actions under the compromised account's identity.

Each affected package received three changes: (1) injection of setup.mjs, a heavily obfuscated dropper that silently downloads the Bun JavaScript runtime (v1.3.13) from GitHub and uses it to execute the payload; (2) injection of Math_Symbol.js, a ~728KB to multi-MB obfuscated payload encrypted with AES-256-GCM gzip compression and PBKDF2-SHA256 key derivation; and (3) a preinstall hook ("node setup.mjs") added to package.json, causing automatic execution on any npm install. The commit 174f6a5 on keyv's repository touched 19 packages across the @keyv/* monorepo (compression, core, encryption, serialization, and storage packages), stripping all legitimate package.json metadata to only a files array pointing at the malicious artifacts.

The payload is a descendant of the Shai-Hulud malware family (MITRE ATT&CK ID S9008), attributed to the TeamPCP threat actor (also tracked as PCPcat, DeadCatx3, ShellForce, CipherForce, Persy_PCP). First documented in September 2025, Shai-Hulud has evolved through at least four major campaigns: V1 (initial rxnt-authentication patient zero), V2/2.0 (796+ packages, November 2025), SANDWORM_MODE (typosquatting AI developer tools, February 2026), and "The Third Coming" (@bitwarden/cli compromise, April 2026). The August 4, 2026 keyv wave represents the largest single wave by package count and download volume.

The worm's credential harvesting spans a broad range of targets: npm registry tokens from .npmrc files; GitHub CLI tokens (classic PATs, session tokens, OIDC tokens); AWS access keys from ~/.aws/credentials, environment variables, IMDS/ECS metadata; HashiCorp Vault tokens from VAULT_TOKEN env var and HTTP fallback; SSH private keys; Kubernetes service account tokens and kubeconfig; AI/LLM API keys (Anthropic, OpenAI, Google, Groq, Together, Fireworks, Replicate, Mistral, Cohere); cryptocurrency wallet keystores (Bitcoin, Ethereum, Monero, Zcash); 1Password, Bitwarden unlocked vaults; and CI/CD runner process memory (including GitHub Actions OIDC tokens from ACTIONS_ID_TOKEN_REQUEST_URL). Exfiltration uses a four-level fallback architecture: primary HTTPS POST to git-tanstack.com:443/router or npm-cache[.]com, signed-commit C2 discovery via thebeautifulmarchoftime repository, attacker-controlled GitHub dead-drop repos with Dune-themed names (sardaukar-*, sandworm-*), and victim's own GitHub account via stolen ghp_/gho_ tokens. Data is encrypted with AES-256-GCM + RSA-OAEP before exfiltration.

Persistence mechanisms include preinstall/prepare lifecycle hooks, GitHub Actions workflow injection (dependabot/github_actions/format/setup-formatter branches with malicious codeql_analysis.yml impersonating github-advanced-security[bot]), .claude/settings.json and .vscode/tasks.json injection for AI toolchain hijack, systemd user services (gh-token-monitor.service) and macOS LaunchAgents as dead-man switches that execute rm -rf ~/ on token revocation, and git global hook templates via init.templateDir. The worm also deploys a gh-token-monitor that polls api.github.com/user every 60 seconds and triggers data destruction if the token is revoked. On CI/CD runners, it targets runner process memory with sudo python3 to extract all injected secrets including masked ones.

Wiz Research, Datadog Security Labs, HEAL Security, JFrog, Phoenix Security, Cloud Security Alliance, and Unit 42 have all published technical analyses. Datadog maintains a dynamically updated CSV of compromised packages. The npm ecosystem remains under active threat as the worm's source code was publicly released on GitHub on May 12, 2026, enabling copycat actors. No CVE has been assigned for this specific wave as of publication.

MITRE ATT&CK techniques by tactic:

Defense Evasion

T1027 Obfuscated Files or Information; T1036 Masquerading

Execution

T1059 Command and Scripting Interpreter

Command and Control

T1071 Application Layer Protocol

Initial Access

T1078 Valid Accounts; T1195 Supply Chain Compromise

Discovery

T1082 System Information Discovery

persistence

T1098 Account Manipulation

Collection

T1119 Automated Collection; T1213 Data from Information Repositories

Impact

T1485 Data Destruction

Credential Access

T1528 Steal Application Access Token; T1552 Unsecured Credentials; T1555 Credentials from Password Stores

Persistence

T1543 Create or Modify System Process

privilege-escalation

T1546 Event Triggered Execution

Privilege Escalation

T1548 Abuse Elevation Control Mechanism

lateral-movement

T1550 Use Alternate Authentication Material

defense-impairment

T1553 Subvert Trust Controls

Exfiltration

T1567 Exfiltration Over Web Service

execution

T1677 Poisoned Pipeline Execution

Remediation

Immediate actions

  • Pin npm lifecycle scripts: set ignore-scripts=true in .npmrc across all developer workstations and CI/CD runners
  • Rotate ALL exposed credentials NOW - npm tokens, GitHub PATs, AWS keys, Vault tokens, SSH keys, cloud service accounts - do not proceed sequentially
  • Stop and disable gh-token-monitor.service (Linux systemd) before any token revocation to prevent dead-man-switch data destruction
  • Remove malicious package versions from lockfiles (keyv 6.0.0, flat-cache 6.1.24, file-entry-cache 11.1.6, cacheable-request 13.0.20, cache-manager 7.2.10, @cacheable/utils 2.5.1, and all packages from the Datadog IOC CSV)
  • Block C2 infrastructure at network perimeter: npm-cache.com, git-tanstack.com, audit.checkmarx.cx, 83.142.209.194, eth-mainnet.nodereal.io, go.getblock.io, eth.llamarpc.com
  • Rebuild all CI/CD runners, Docker images, and developer workstations from clean OS images

Workarounds

  • Temporarily set ignore-scripts=true globally until all affected versions are identified and removed
  • Block direct npm/pip install from CI runners; route through internal proxy with package allowlisting
  • Disable pull_request_target trigger in open-source repositories accepting external contributions
  • Audit all GitHub Actions workflows for unauthorized modifications referencing codeql_analysis.yml or ci-quality/code-quality-check

Longer-term hardening

  • Adopt npm OIDC-based provenance attestation with short-lived tokens and strict audience constraints
  • Implement runtime behavioral monitoring of preinstall/postinstall lifecycle hooks in CI/CD
  • Deploy dependency allowlists with integrity verification (lockfile pinning, hash-locked packages)
  • Isolate credential vaults from developer workstations; enforce per-session credential injection
  • Treat MCP server configurations with the same scrutiny as browser extensions; never allow credential access per tool invocation

Affected and fixed versions

  • npm — keyv
    Vulnerable versions: 6.0.0
  • npm — flat-cache
    Vulnerable versions: 6.1.24
  • npm — file-entry-cache
    Vulnerable versions: 11.1.6
  • npm — cacheable-request
    Vulnerable versions: 13.0.20
  • npm — cache-manager
    Vulnerable versions: 7.2.10
  • npm — @cacheable/utils
    Vulnerable versions: 2.5.1
  • npm — @cacheable/memory
    Vulnerable versions: 2.2.1
  • npm — @cacheable/node-cache
    Vulnerable versions: 3.1.2
  • npm — @cacheable/net
    Vulnerable versions: 2.1.1
  • npm — cacheable
    Vulnerable versions: 2.5.1

Timeline

  • Shai-Hulud patient zero identified: rxnt-authentication version 0.0.3 published to npm. First documented self-replicating supply chain worm in the npm ecosystem. Discovered by ReversingLabs researchers.
  • Shai-Hulud 2.0 campaign compromises 796 unique npm packages across 1,092 versions, reaching 20M+ weekly downloads. @ctrl/tinycolor (2.2M weekly downloads), ngx-bootstrap (~300K), and ng2-file-upload (~100K) among high-profile casualties. Introduces self-directed lateral movement via public GitHub repo credential harvesting.
  • SANDWORM_MODE campaign disclosed by Socket Research Team. 19 malicious typosquatted packages impersonating Claude Code (claud-code, cloude) and OpenClaw. Introduces three-channel cascade exfiltration including DNS tunneling, CI time-gate detection, and weaponized GitHub Actions that serialize pipeline secrets.
  • "The Third Coming" campaign: official @bitwarden/cli version 2026.4.0 compromised via malicious preinstall hook that bootstraps Bun runtime and deploys ~10MB obfuscated payload. AES-256-GCM encrypted exfiltration to public GitHub repos with Dune-themed repository names. Targets ~/.claude.json and ~/.claude/mcp.json.
  • Mini Shai-Hulud / TeamPCP wave hits TanStack: 84 malicious versions across 42 @tanstack/* packages published via CI cache poisoning with valid Sigstore provenance signatures. First documented case of malicious npm package with valid SLSA provenance. Tracked as CVE-2026-45321.
  • Shai-Hulud worm source code publicly released on GitHub, enabling widespread copycat and derivative attacks across the software supply chain.
  • ~13:20 CEST: At least 868 packages across 1,381 versions confirmed compromised. Combined estimated 2+ billion monthly npm installs affected. Wiz confirms the payload as a Shai-Hulud descendant related to TeamPCP and antv campaigns.
  • Wiz Research and Datadog Security Labs detect the ongoing attack and publish initial findings. Datadog publishes a living CSV of compromised packages on GitHub.
  • Simultaneous malicious releases published to npm: keyv 6.0.0, flat-cache 6.1.24, file-entry-cache 11.1.6, cacheable-request 13.0.20, cache-manager 7.2.10, @cacheable/utils 2.5.1, and others. All carry valid SLSA v1 provenance from GitHub Actions under the compromised identity.
  • Commit 174f6a5 pushed to keyv repository: locked-ioc-21 and locked-ioc-17 injected into all @keyv/* sub-packages (19 packages across compression, core, encryption, serialization, and storage categories). All legitimate package.json metadata stripped to only the files array.
  • ~09:00 UTC: GitHub account of Jared Wray (maintainer of keyv, flat-cache, file-entry-cache, cacheable) compromised. Attacker pushes malicious code to main branches of all repositories.

Sources cited

More from TeamPCP

Previous and next in supply chain

Further reading

Drafted by the Threadlinqs research pipeline from 13 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats