Skip to navigation

Threat reportSupply ChainTL-2026-3214

ChainDrop npm Worm and PolinRider DPRK-Linked Operation Use Blockchain C2 to Steal Cloud and CI/CD Credentials

highACTIVE

ChainDrop is a Shai-Hulud-lineage self-propagating npm worm that compromised 400+ packages (including keyv and cacheable-request) and steals npm/GitHub tokens, SSH keys, cloud, Kubernetes and CI/CD OIDC credentials, resolving its C2 through an Ethereum smart contract. PolinRider is a DPRK-linked (Contagious Interview / Famous Chollima) multi-ecosystem operation that hides obfuscated JavaScript loaders in repository config files and fake .woff2 fonts and resolves payloads from TRON, Aptos and BSC dead drops.

Key facts for ChainDrop blockchain C2 npm worm

IdentifiersTL-2026-3214
Also known asChainDrop, PolinRider, Shai-Hulud: Here We Go Again, EtherHiding
SeverityHIGH
Exploitation statusExploited in the wild
Affected productsnpm ecosystem keyv, cacheable-request, flat-cache, cacheable, cache-manager and 400+ npm packages; GitHub GitHub Actions Runner (OIDC token and secret exposure in Runner.Worker memory); Microsoft Visual Studio Code workspace tasks (.vscode/tasks.json folderOpen abuse); Go / Packagist / npm / PyPI / Chrome Web Store PolinRider-infected modules, packages and extensions (162 artifacts across 108 packages reported)
Weaknesses (CWE)CWE-506, CWE-829, CWE-522
AttributionPolinRider, ChainDrop operator unattributed (medium confidence)
Nation-state nexusNorth Korea
MalwareBeaverTail - S1246, DEV#POPPER, InvisibleFerret - S1245, Shai-Hulud
MITRE ATT&CK techniquesT1003.007 OS Credential Dumping: Proc Filesystem, T1005 Data from Local System, T1027 Obfuscated Files or Information, T1036.005 Masquerading: Match Legitimate Resource Name or Location, T1059.004 Command and Scripting Interpreter: Unix Shell, T1059.007 Command and Scripting Interpreter: JavaScript, T1070.006 Indicator Removal: Timestomp, T1071.001 Application Layer Protocol: Web Protocols, T1078.004 Valid Accounts: Cloud Accounts, T1195.001 Supply Chain Compromise: Compromise Software Dependencies and Development Tools, T1195.002 Supply Chain Compromise: Compromise Software Supply Chain, T1204.002 User Execution: Malicious File and 7 more in the attack flow
MotivationFINANCIAL
Target sectorstechnology, software-development, finance, cryptocurrency, cloud-services
Target regionsGlobal
Detection rules9 (1 shown free)
Sources11 cited sources

Detection coverage for ChainDrop blockchain C2 npm worm

As of 2026-10-10, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3214 across Splunk SPL, Microsoft KQL and Sigma, covering 30 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: ChainDrop npm Preinstall Dropper and Bun Credential Harvester Execution

Detects the ChainDrop (Shai-Hulud lineage) execution chain: a package.json preinstall hook launching setup.mjs through Node, the dropped Bun runtime, and Bun running the obfuscated harvester (Math_Symbol.js in the keyv monorepo, math_init.js in worm-propagated packages). This is the first code-execution step of a compromised npm dependency on developer workstations and CI runners.

Splunk SPL

index=endpoint (sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" OR sourcetype="sysmon:linux") EventCode=1 earliest=-24h
```ChainDrop: preinstall -> setup.mjs -> Bun runtime -> Math_Symbol.js / math_init.js harvester```
| eval img=lower(Image), cmd=lower(CommandLine), pcmd=lower(ParentCommandLine)
| eval indicator=case(
    match(img,"(^|[^a-z0-9_-])bun(\.exe)?$") AND match(cmd,"(math_init|math_symbol)\.js"), "bun_runs_harvester",
    match(img,"(^|[^a-z0-9_-])node(\.exe)?$") AND match(cmd,"(^|[^a-z0-9_.-])setup\.mjs([^a-z0-9_.-]|$)"), "node_runs_setup_mjs",
    match(img,"(^|[^a-z0-9_-])bun(\.exe)?$") AND match(pcmd,"setup\.mjs"), "bun_spawned_by_setup_mjs",
    match(pcmd,"preinstall") AND match(cmd,"setup\.mjs"), "preinstall_hook_setup_mjs")
| where isnotnull(indicator)
| stats count min(_time) as first_seen max(_time) as last_seen values(indicator) as indicators values(CommandLine) as command_lines values(ParentCommandLine) as parent_command_lines by host, User, Image, ParentImage
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

// ChainDrop: preinstall -> setup.mjs -> Bun runtime -> Math_Symbol.js / math_init.js harvester
let chaindrop_hashes = dynamic(["54dc7ea54a1317cca0e890a2770630cf7fa6c97813e0cb9d2caa93012b350668", "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb", "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc", "b27b82afa5f15512f3856e549fb83d873fd0049759a4b62ce64c8d7d4dc2c678"]);
let proc = DeviceProcessEvents
    | where Timestamp > ago(24h)
    | extend Cmd = tolower(ProcessCommandLine), ICmd = tolower(InitiatingProcessCommandLine)
    | extend Indicator = case(
        FileName in~ ("bun", "bun.exe") and Cmd matches regex @"(math_init|math_symbol)\.js", "bun_runs_harvester",
        FileName in~ ("node", "node.exe") and Cmd matches regex @"(^|[^a-z0-9_.-])setup\.mjs([^a-z0-9_.-]|$)", "node_runs_setup_mjs",
        FileName in~ ("bun", "bun.exe") and ICmd has "setup.mjs", "bun_spawned_by_setup_mjs",
        ICmd has "preinstall" and Cmd has "setup.mjs", "preinstall_hook_setup_mjs",
        "")
    | where Indicator != ""
    | project Timestamp, DeviceName, AccountName, FileName, FolderPath, CommandLine = ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, SHA256, Indicator;
let files = DeviceFileEvents
    | where Timestamp > ago(24h)
    | where SHA256 in~ (chaindrop_hashes) or FileName in~ ("math_init.js", "Math_Symbol.js")
    | project Timestamp, DeviceName, AccountName = InitiatingProcessAccountName, FileName, FolderPath, CommandLine = "", InitiatingProcessFileName, InitiatingProcessCommandLine, SHA256, Indicator = iff(SHA256 in~ (chaindrop_hashes), "known_chaindrop_hash", "harvester_filename");
union proc, files
| order by Timestamp desc

Sigma

title: ChainDrop npm Preinstall Dropper and Bun Credential Harvester Execution
id: 3f8a1c52-7d4e-4b19-9a63-2c5e8d1f0a71
status: experimental
description: Detects the ChainDrop (Shai-Hulud lineage) npm worm execution chain - Node running the setup.mjs dropper from a package preinstall hook, and Bun executing the obfuscated Math_Symbol.js / math_init.js credential harvester.
references:
  - https://unit42.paloaltonetworks.com/chaindrop-npm-worm-analysis/
  - https://www.elastic.co/security-labs/shai-hulud-chaindrop-npm-supply-chain
  - https://github.com/OpenSourceMalware/PolinRider
  - https://unit42.paloaltonetworks.com/web3-cloud-supply-chain-attacks/
author: AII-Detector — ThreadLinqs Intelligence
date: 2026-10-10
tags:
  - attack.initial-access
  - attack.t1195.001
  - attack.t1195.002
  - attack.execution
  - attack.t1059.007
  - attack.t1204.002
  - attack.defense-evasion
  - attack.t1027
logsource:
  category: process_creation
detection:
  selection_bun_harvester:
    Image|endswith:
      - '/bun'
      - '\bun.exe'
    CommandLine|contains:
      - 'math_init.js'
      - 'Math_Symbol.js'
  selection_node_dropper:
    Image|endswith:
      - '/node'
      - '\node.exe'
    CommandLine|re: '(?i)(^|[^a-z0-9_.-])setup\.mjs([^a-z0-9_.-]|$)'
  selection_bun_from_dropper:
    Image|endswith:
      - '/bun'
      - '\bun.exe'
    ParentCommandLine|contains: 'setup.mjs'
  condition: 1 of selection_*
falsepositives:
  - Legitimate npm packages that ship a setup.mjs install script
  - Developers intentionally running Bun against similarly named scripts
level: high

Known false positives:

  • Legitimate npm packages that ship a setup.mjs install script run by Node
  • Developers intentionally running Bun against scripts that happen to be named math_init.js

Tuning notes: Allowlist known-good internal packages that legitimately run setup.mjs by package path or parent project. Raise priority when Bun is spawned from a Node process under node_modules or the process runs on a CI runner. Pair with lockfile review for keyv, cacheable-request, flat-cache, cacheable and cache-manager versions published 2026-08-04. The KQL variant also matches the four published SHA256 hashes of the dropper and harvester files.

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)
  • Malicious npm Dependency Install - PolinRider Tailwind Typosquats and ChainDrop [indicator] · unlock with TL Creds
  • ChainDrop Credential Harvesting and GitHub Runner.Worker Memory Scraping · unlock with TL Creds
  • EtherHiding and Multi-Chain Dead-Drop Reads from Node/Bun Processes · unlock with TL Creds
  • PolinRider VS Code folderOpen Task Bootstrap from Vercel-Hosted Hosts · unlock with TL Creds
  • ChainDrop Malicious Commit Staging and PolinRider Git History Rewrite · unlock with TL Creds
  • ChainDrop Encrypted Credential Exfiltration to Rotated C2 Infrastructure · unlock with TL Creds
  • ChainDrop/PolinRider IDE and AI-Assistant Persistence File Planting · unlock with TL Creds
  • ChainDrop and PolinRider Command-and-Control Domain Resolution · unlock with TL Creds

Indicators of compromise for ChainDrop blockchain C2 npm worm

As of 2026-10-10, Threadlinqs Intelligence tracks 30 indicators of compromise for TL-2026-3214.

Sample indicators (3 of 30)

  • IP address: 104.21.91[.]101
  • Domain: npm-cache[.]com
  • File hash: 54dc7ea54a1317cca0e890a2770630cf7fa6c97813e0cb9d2caa93012b350668

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

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

How ChainDrop blockchain C2 npm worm works

ChainDrop (Unit 42, Elastic Security Labs, Aug 2026) is a cross-platform npm worm sharing code lineage with Shai-Hulud (PBKDF2 decoder, Bun 1.3.13 runtime, _NODE_RUNTIME_INIT pattern, npm self-propagation). On 2026-08-04 the maintainer of keyv was compromised and every subpackage of the keyv monorepo was backdoored with a setup.mjs dropper delivered through a package.json preinstall hook. The dropper downloads a Bun runtime and launches an obfuscated credential harvester (Math_Symbol.js in the keyv monorepo, math_init.js in worm-propagated packages). Over 400 unique npm packages were affected, including keyv (600M+ monthly downloads), flat-cache (~580M), cacheable-request (137M+), cacheable (30M+) and cache-manager (16M+). New malicious versions were published within 6-70 minutes of each compromise.

The payload is obfuscated in three layers (Base91 with per-function alphabets and array rotation; a PBKDF2-SHA256 byte-permutation cipher; AES-256-GCM+gzip blobs holding helpers, persistence installers, a memory scraper and workflow templates). It exits silently on Russian locale. It harvests AWS/Azure/GCP/Alibaba credentials, npm and GitHub tokens, SSH keys, Docker/Helm/Git configs, Vault tokens, Kubernetes service-account tokens and kubeconfigs, Terraform state, Jenkins credentials, .env/.netrc files, crypto-wallet files, shell histories and AI coding tool configurations. On GitHub Actions runners it parses /proc/<pid>/mem of Runner.Worker to extract ephemeral OIDC tokens and secrets. Loot is gzip-compressed, AES-256-GCM encrypted with a key RSA-wrapped under an attacker public key, and sent to a C2 endpoint (/router) whose domain is read at runtime from the Ethereum StringListStore contract 0xE1f2395ee43e45A1556EC6438a88c31B83493103 (EtherHiding), with GitHub commit-message markers as a fallback channel and public victim-owned exfiltration repositories (description 'Shai-Hulud: Here We Go Again', Dune-themed names). The worm propagates only when it finds an npm token with package write permission that can publish without 2FA; in the opensearch-js path it abuses GitHub Actions OIDC trusted publishing to mint genuine Sigstore provenance for a malicious dependency (@opensearch/setup). Persistence is planted into project and IDE automation: .vscode/tasks.json (folderOpen), .claude/settings.json (SessionStart hook), .claude/setup.mjs and .vscode/setup.mjs, committed to up to 50 branches per accessible repository as claude@users.noreply.github.com with message 'chore: update config'. Attribution is unclear (TeamPCP adaptation or a separate group reusing the published Shai-Hulud toolkit).

PolinRider (OpenSourceMalware, Socket, Unit 42) is a DPRK-linked operation tied to the Lazarus / Contagious Interview / Famous Chollima cluster (Unit 42 links it to Alluring Pisces). It was disclosed 2026-03-08 with 675 repositories and grew to 1,951 repositories across 1,047 owners by April 2026, later spreading to Go modules (80+), Packagist (10 packages) and npm (162 malicious artifacts across 108 packages by July 2026), with PyPI repositories and Chrome extensions also affected. Obfuscated JavaScript loaders (four-layer string shuffling; markers rmcej%otb% and later Cot%3t=shtP) are appended to config files (postcss.config.mjs, tailwind.config.js, eslint.config.mjs, next.config.mjs, vite.config.js), hidden in fake .woff2 font files, or launched by .vscode/tasks.json with runOn folderOpen fetching from Vercel-hosted bootstrap hosts. Next-stage payloads are fetched from blockchain dead drops (TRON, Aptos, Binance Smart Chain; TxDataHiding and NullReceiver techniques), XOR-decrypted and run via eval() in detached Node processes. Propagation and anti-forensics use temp_auto_push.bat to rewrite git history with anti-dated commits and force-pushes, and compromised maintainer accounts (e.g. Xpos587, 2026-06-23) were used for bulk module poisoning. Weaponized interview templates (ShoeVista via tailwindcss-style-animate, StakingGame) deliver the chain. Follow-on payloads are BeaverTail loader and InvisibleFerret (tracked as DEV#POPPER RAT) and OmniStealer, which steal credentials, browser data and wallet information.

MITRE ATT&CK techniques by tactic:

Credential Access

T1003.007 OS Credential Dumping: Proc Filesystem; T1528 Steal Application Access Token; T1552.001 Unsecured Credentials: Credentials In Files; T1552.004 Unsecured Credentials: Private Keys; T1555.003 Credentials from Password Stores: Credentials from Web Browsers

Collection

T1005 Data from Local System

Defense Evasion

T1027 Obfuscated Files or Information; T1036.005 Masquerading: Match Legitimate Resource Name or Location; T1070.006 Indicator Removal: Timestomp

Execution

T1059.004 Command and Scripting Interpreter: Unix Shell; T1059.007 Command and Scripting Interpreter: JavaScript; T1204.002 User Execution: Malicious File

Command and Control

T1071.001 Application Layer Protocol: Web Protocols; T1568 Dynamic Resolution

Initial Access

T1078.004 Valid Accounts: Cloud Accounts; T1195.001 Supply Chain Compromise: Compromise Software Dependencies and Development Tools; T1195.002 Supply Chain Compromise: Compromise Software Supply Chain

Persistence

T1546 Event Triggered Execution

Resource Development

T1583.001 Domains

Remediation for ChainDrop blockchain C2 npm worm

Patches

  • Pin to clean package versions published by maintainers after incident response; consult maintainer advisories for keyv, cacheable-request and affected packages

Immediate actions

  • Identify installs of compromised keyv/cacheable ecosystem packages and any package with a setup.mjs preinstall hook; purge poisoned lockfiles, tarballs and CI image caches
  • Revoke and rotate npm tokens, GitHub PATs, SSH keys, cloud IAM keys, Vault tokens, Kubernetes service-account tokens and any secrets exposed to CI runners
  • Block C2 domains npm-cache.com, awqhnjewqjkl.icu, pypi-get.com, js-mirror.com and the PolinRider Vercel hosts via DNS/SNI (avoid IP blocking: Cloudflare shared IPs)
  • Hunt for .vscode/tasks.json with runOn folderOpen, .claude/settings.json SessionStart hooks, .claude/setup.mjs, .vscode/setup.mjs and public repositories described 'Shai-Hulud: Here We Go Again'
  • Audit repositories for git history rewrites, anti-dated commits, temp_auto_push.bat and JavaScript appended to config files or .woff2 files

Workarounds

  • Treat VS Code workspace tasks and AI-assistant session hooks from untrusted repositories as untrusted (enable Workspace Trust, review .vscode and .claude directories before opening)
  • Monitor Ethereum contract 0xE1f2395ee43e45A1556EC6438a88c31B83493103 for setStrings() calls

Longer-term hardening

  • Use ephemeral CI runners and workload-bound credentials (OIDC with narrow audiences, SPIFFE, projected service-account tokens)
  • Enforce egress filtering in CI/CD to private registries and known deployment targets
  • Require 2FA on publish for all npm tokens and restrict trusted-publishing to protected workflows
  • Plant canary credentials in ~/.aws/credentials, ~/.npmrc and .env files
  • Disable lifecycle scripts by default in CI (npm ci --ignore-scripts) and monitor Ethereum RPC calls and blockchain API traffic from build hosts

Affected and fixed versions

  • npm ecosystem — keyv, cacheable-request, flat-cache, cacheable, cache-manager and 400+ npm packages
    Vulnerable versions: versions published during the 2026-08-04 ChainDrop compromise
    Fixed in: maintainer-published clean releases
  • GitHub — GitHub Actions Runner (OIDC token and secret exposure in Runner.Worker memory)
    Vulnerable versions: workflows executing compromised dependencies
  • Microsoft — Visual Studio Code workspace tasks (.vscode/tasks.json folderOpen abuse)
    Vulnerable versions: workspaces opened without Workspace Trust review
  • Go / Packagist / npm / PyPI / Chrome Web Store — PolinRider-infected modules, packages and extensions (162 artifacts across 108 packages reported)
    Vulnerable versions: infected versions per OpenSourceMalware/Socket reporting

Timeline of ChainDrop blockchain C2 npm worm

  • Anti-dated malicious commits observed in 7span Packagist-related repositories, an early PolinRider indicator
  • OpenSourceMalware publicly discloses PolinRider with 675 compromised repositories (352 owners)
  • Expanded hunt finds 1,951 repositories across 1,047 owners; Cot%3t=shtP variant identified and merger with TasksJacker / Contagious Interview confirmed
  • Earliest ChainDrop GitHub exfiltration repository created (Unit 42)
  • ChainDrop C2 domains registered within 8 seconds of each other (13:40:28-13:40:36 UTC)
  • Ethereum resolver contract locked-ioc-7 deployed; domain list narrowed to locked-ioc-24 minutes later
  • Xpos587 GitHub account takeover and synchronized bulk modification of repositories / Go modules
  • Cross-ecosystem spread confirmed: 162 malicious artifacts across 108 packages in npm, Go, Packagist
  • keyv maintainer compromised; keyv monorepo backdoored and worm spreads to 400+ npm packages; C2 rotated to locked-ioc-20 via Ethereum transaction
  • Unit 42 and Elastic Security Labs publish ChainDrop analyses
  • GBHackers and Unit 42 report ChainDrop and PolinRider as blockchain-C2 cloud and CI/CD credential-theft campaigns

Sources cited for ChainDrop blockchain C2 npm worm

More from PolinRider

Previous and next in supply chain

Further reading

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

Threadlinqs Intelligence — Real-Time Threat Detection Platform

[ 0 threats ] [ 0 det ] [ CRIT: 0 ] [ HIGH: 0 ]
// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats