NOTE: This advisory consolidates open-source threat intelligence on the ChainDrop npm supply chain attack, first identified by JFrog Security Research and subsequently detailed in a Microsoft Security advisory. Coverage draws on technical analysis of the malicious payload, registry forensics, and incident reporting across the affected npm ecosystem. This is an active, evolving incident; the package list and associated indicators continue to expand. Organizations should treat this advisory as a point-in-time snapshot and monitor for updates from registry maintainers and security vendors.
On 4 August 2026, a large-scale npm supply chain attack designated ChainDrop was identified across the JavaScript ecosystem. The compromise originated with the theft of a package maintainer’s credentials, granting direct access to the source repositories and publishing pipeline for the widely used keyv and cacheable npm packages. The attacker published a malicious version of keyv at approximately 09:00 UTC, embedding a self-propagating credential-stealing worm derived from the Shai-Hulud malware family. Through the worm’s automated republishing capability, the compromise cascaded to more than 400 packages across 1,700+ versions within hours, reaching an estimated 2 billion combined monthly downloads.
The payload is a 710+ KB heavily obfuscated JavaScript bundle executed via the Bun runtime, triggered automatically through an npm preinstall lifecycle hook before package installation completes. Once active, it harvests credentials from developer workstations and CI/CD environments, validates those credentials against live service APIs, exfiltrates encrypted results to attacker-controlled infrastructure, and republishes infected versions of every writable package accessible to any compromised identity. The worm also injects persistence hooks into GitHub repositories, targeting Claude and Visual Studio Code configuration paths to establish secondary execution channels independent of npm installs.
Clean versions of the core packages have been restored to the npm registry. Organizations that had installed any of the affected versions should treat the host as fully compromised, revoke all credentials accessible to that environment, and rebuild affected systems from clean images.
Activity Timeline
Timeline reflects first public reporting or disclosure dates. The malware remained active and the package list continued to expand at the time of this writing.

Chaindrop Campaign Activity Timeline Diagram
| Date | Activity | Scope |
|---|---|---|
| Pre-4 Aug 2026 | Threat actor compromises GitHub account of the keyv and cacheable package maintainer; direct push access obtained to source repositories and CI/CD pipeline. | Developer identity |
| 4 Aug 2026, ~09:00 UTC | First malicious release published: [email protected]. Preinstall hook added to package.json triggering node setup.mjs. Because packages were built and published through legitimate GitHub Actions workflows, releases carried valid SLSA provenance. | npm ecosystem |
| 4 Aug 2026 (day-of) | Worm propagation begins. Payload harvests npm publishing tokens from compromised environments and uses them to inject malware into all writable packages and republish with incremented patch versions. Initial wave spans keyv, cacheable, flat-cache, file-entry-cache, cacheable-request, cache-manager, and the @cacheable/* family. Worm spreads beyond the original maintainer namespace to packages owned by multiple unrelated publishers. | 400+ packages / 1,700+ versions |
| 4 Aug 2026 | JFrog Security Research identifies the campaign and publishes initial disclosure, attributing the malware to a new Shai-Hulud variant. Microsoft Threat Intelligence publishes a corresponding advisory. | Public disclosure |
| 4 Aug 2026, ~17:40 IST | npm registry begins restoring earlier clean versions as latest for core packages ([email protected], [email protected], [email protected], and others). Compromised versions remain accessible by exact version reference. | Registry remediation |
| Post-4 Aug 2026 | Investigation ongoing. Worm-propagated package list continues to grow as additional compromised publisher tokens surface. Attacker’s Ethereum smart contract continues to serve active C2 domains. | Ongoing |
Threat Actor Profile and Attribution
Attribution to a specific threat actor or group remains unconfirmed at the time of writing. Forensic and behavioural analysis of the payload supports the following observations.
- Lineage: The payload self-identifies as a Shai-Hulud variant through the GitHub repository description ‘Shai-Hulud: Here We Go Again’ used to create exfiltration repositories. Prior Shai-Hulud campaigns were attributed to a cluster designated TeamPCP; a confirmed link to that group for this variant has not been established.
- Motivation: Credential theft and supply chain sabotage at scale. The primary payload objective is bulk exfiltration of developer, cloud, and infrastructure credentials. The worm-propagation mechanism maximizes reach from a single initial compromise.
- Sophistication: Assessed HIGH. The actor demonstrates familiarity with npm internals, GitHub Actions OIDC trusted publishing, Ethereum-based C2 resolution, AES-256-GCM plus RSA-4096 encryption, on-process memory extraction from CI runners, and Sigstore provenance generation. The OpenSearch-specific targeted publishing path shows prior reconnaissance of specific repository CI configurations.
- Infrastructure: C2 infrastructure is blockchain-resolved rather than hardcoded, providing operator-controlled domain rotation without payload modification. The controlling Ethereum contract (0xE1f2395ee43e45A1556EC6438a88c31B83493103) was funded from an address previously flagged for scam activity. GitHub repositories created under compromised identities serve as fallback exfiltration channels, leveraging the legitimacy of GitHub’s infrastructure.
- Evasion: The payload applies a custom position-dependent PBKDF2-HMAC-SHA256 substitution cipher, AES-GCM encryption on larger strings, and exit-on-duplicate-instance logic. Code contains a Russian-language exit condition (‘Exiting as russian language detected!’) whose predicate is hardcoded to always return false, indicating it is either vestigial or intentionally non-functional.
Scope of Compromise
The following core packages were directly compromised by the attacker before worm propagation began. Additional packages across multiple publisher namespaces were subsequently infected through stolen tokens. The full list exceeded 452 unique packages and 2,251 versions as of 4 August 2026 and continues to grow. Determinations of exposure must be based on exact versions resolved in lockfiles rather than current registry tags, as clean versions were partially restored before all compromised versions were removed.
| Package | Malicious Version(s) | Verified Safe Version |
|---|---|---|
| keyv | 6.0.0 | 5.6.0 |
| cacheable | 2.5.1 | 2.5.0 |
| flat-cache | 6.1.24 | 6.1.23 |
| file-entry-cache | 11.1.6 | 11.1.5 |
| cacheable-request | 13.0.20 | 13.0.19 |
| cache-manager | 7.2.10 | 7.2.9 |
| ecto | 5.0.1 | 5.0.0 |
| @cacheable/memory | 2.2.1 | 2.2.0 |
| @cacheable/net | 2.2.1 | 2.2.0 |
| @cacheable/node-cache | 3.1.2 | 3.1.1 |
| @cacheable/utils | 2.5.1 | 2.5.0 |
Note: A full list of packages can be found here.
TTPs and MITRE ATT&CK Mapping
Mappings are drawn from technical analysis of the malicious payload and registry forensics. Confidence reflects corroboration across independent sources.
| Tactic | Technique (ID) | Evidence | Confidence |
|---|---|---|---|
| Initial Access | Supply Chain Compromise (T1195.001) | Maintainer credential theft enables direct publish access. Malicious versions published through legitimate CI/CD workflows carry valid SLSA provenance, bypassing standard integrity controls. | High |
| Execution | Command and Scripting Interpreter: JavaScript (T1059.007) | npm preinstall lifecycle hook runs node setup.mjs before install completes. Bun runtime (v1.3.13) is downloaded or used to execute the obfuscated math_init.js bundle. | High |
| Persistence | Create or Modify System Process (T1543) | .claude/settings.json SessionStart hook and .vscode/tasks.json Environment Setup task inject payload into IDE session startup. A credential-revocation monitor may be installed as a macOS LaunchAgent or Linux user systemd unit. | Medium – active installation not confirmed in all environments |
| Defense Evasion | Obfuscated Files or Information (T1027) | Payload strings use PBKDF2-HMAC-SHA256 position-dependent cipher; larger payloads gzip-compressed and AES-256-GCM encrypted. Payload relaunches detached with _NODE_RUNTIME_INIT=1 and holds PID lock to suppress duplicate instances. | High |
| Defense Evasion | Indicator Removal: File Deletion (T1070.004) | Temporary Bun binary extracted to /tmp/bun-dl-* is deleted immediately after payload launch to reduce forensic footprint. | High |
| Credential Access | Unsecured Credentials: Credentials in Files (T1552.001) | Collector reads npm tokens, cloud config (AWS, Azure, GCP, Alibaba, Tencent, Hetzner), Kubernetes and Helm config, .env files, shell histories, SSH private keys, VPN profiles, browser credential stores, AI tool credentials (OpenAI, Anthropic, Cursor, Codex, Gemini), /etc/shadow, /proc/self/environ. | High |
| Credential Access | Steal Application Access Token (T1528) | npm tokens validated live against registry.npmjs.org/-/whoami before exfiltration. GitHub PATs checked for scope and writable-repository access. AWS, Kubernetes, and HashiCorp Vault credentials validated against service APIs before exfiltration. | High |
| Credential Access | Exploitation for Credential Access – CI Runner Memory (T1212 adjacent) | On Linux GitHub Actions runners, payload uses sudo python3 to read Runner.Worker process memory via /proc/ |
High |
| Discovery | Cloud Service Discovery (T1526) | AWS Secrets Manager and SSM Parameter Store enumerated across 17 regions with WithDecryption:true. Kubernetes Secrets read from all accessible namespaces. HashiCorp Vault KV mounts enumerated. | High |
| Exfiltration | Exfiltration Over Web Service (T1567.001 / T1071.001) | Results serialized as JSON, gzip-compressed, AES-256-GCM encrypted with random key, RSA-OAEP-SHA256 wrapped, then POSTed to npm-cache[.]com:443/router. If unavailable, encrypted results committed to attacker-created public GitHub repositories with description ‘Shai-Hulud: Here We Go Again’. | High |
| Lateral Movement | Supply Chain Compromise – Worm Propagation (T1195.001) | Stolen npm tokens with bypass_2fa:true and package write permission used to download, modify, and republish every accessible package. Stolen GitHub tokens commit persistence hooks to up to 50 branches per accessible repository. | High |
| Impact | Trusted Relationship Abuse – OIDC Publishing (T1199) | In targeted path against the opensearch-js repository: payload requests GitHub Actions OIDC token, exchanges it for an npm publish token, injects malicious optionalDependencies, and generates a Sigstore bundle so the malicious tarball carries valid provenance from the legitimate workflow identity. | High – specific target confirmed |
Indicators of Compromise (IoCs)
File Hashes
| SHA256 | SHA1 | Filename / Role |
|---|---|---|
| 54dc7ea54a1317cca0e89 0a2770630cf7fa6c97813e0cb9 d2caa93012b350668 | N/A | setup.mjs – npm preinstall loader |
| fd3ca4007b225fdf8de7 af4345a19179d5efa8c4bb9205f8 8cda806e5684b1eb | 686aa40d0fc22c8d569494543a0f891f359f2f99 (.claude) / f525d52ceb966516686b482d3dc0137028cc6a63 (.vscode) | setup.mjs – repository persistence loader (.claude and .vscode variants) |
| 9fc2570b7cef51c1b8 df116d144d11ff4096357be7d2c4c 6367cfc2509cf1bcc | 35a672cf34b996b91f3e1c28cbf3a05a37e036e4 | Math_Symbol.js / math_init.js – obfuscated infostealer bundle (727,680 bytes) |
Network and Infrastructure Indicators
| Indicator | Type | Description |
|---|---|---|
| npm-cache[.]com | Domain (C2) | Primary C2 and data exfiltration domain; served via Cloudflare; active C2 URL: hxxps[:]//npm-cache[.]com:443/router |
| pypi-get[.]com | Domain | Attacker-controlled infrastructure; candidate C2 domain returned by on-chain contract |
| js-mirror[.]com | Domain | Attacker-controlled infrastructure; candidate C2 domain returned by on-chain contract |
| eth-mainnet[.]nodereal[.]io | Domain | Ethereum RPC endpoint used for smart-contract-based C2 domain resolution |
| go[.]getblock[.]io | Domain | Ethereum RPC endpoint used for smart-contract-based C2 domain resolution |
| eth[.]llamarpc[.]com | Domain | Ethereum RPC endpoint used for smart-contract-based C2 domain resolution |
| 104[.]21[.]35[.]216 | IPv4 | Cloudflare IP associated with npm-cache[.]com |
| 172[.]67[.]167[.]200 | IPv4 | Cloudflare IP associated with eth[.]llamarpc[.]com |
| 185[.]44[.]207[.]215 | IPv4 | IP associated with go[.]getblock[.]io ETH RPC |
| 35[.]175[.]164[.]77 | IPv4 | AWS IP associated with eth-mainnet[.]nodereal[.]io |
| 0xE1f2395ee43e45A1556EC6438a88c31B83493103 | ETH Contract | Ethereum mainnet smart contract used to resolve active C2 domains; selector 0x53ed5143; contract owner funded from address flagged for scam activity |
Filesystem and Behavioral Artifacts
| Artifact | Type | Context |
|---|---|---|
| /tmp/bun-dl-*/ | Directory | Temporary directory created to stage Bun runtime during payload launch; deleted after execution |
| node_modules/[package]/Math_Symbol.js | File | Infostealer payload injected into infected package; also observed as math_init.js |
| setup.mjs | File | Stage-1 dropper within infected npm tarball and injected into .claude/ and .vscode/ repository paths |
| .claude/settings.json | File | Repository persistence: defines SessionStart hook executing node .vscode/setup.mjs |
| .claude/math_init.js | File | Worm payload committed to repository branches as part of Claude Code persistence mechanism |
| .vscode/tasks.json | File | Repository persistence: defines Environment Setup task running node .claude/setup.mjs on folder open |
| .vscode/setup.mjs | File | Bun bootstrap committed to repository branches as part of VS Code persistence mechanism |
Behavioral Markers and Hunting Strings
| String / Marker | Context |
|---|---|
| Shai-Hulud: Here We Go Again | GitHub repository description used for exfiltration repositories created under compromised identities; strong hunting artifact |
| IfYouBlockThisAPIKeyItWillCrashTheLiveProductionServersOfAllThirdPartyClients | Intimidation string embedded in exfiltration repository commit messages; also used as commit message prefix for double-base64 encoded PAT disclosure |
| thebeautifulmarchoftime | Signed fallback marker used in GitHub commit messages to resolve C2 domain when Ethereum contract is unavailable |
| chore: update config | Commit message used when injecting persistence hooks into GitHub repository branches |
| dependabot/github_actions/format/setup-formatter | Branch name created during GitHub Actions secret harvesting workflow injection |
| Add CodeQL Analysis | Commit message used when injecting malicious workflow file codeql_analysis.yml into target repositories |
| Bun/1.3.13 | HTTP User-Agent string used during Bun runtime download and C2 communications |
| _NODE_RUNTIME_INIT=1 | Environment variable set by payload when relaunching detached copy; useful process environment hunting artifact |
| /tmp/tmp.dpkg_14527.lock | PID lock file used by payload to prevent duplicate instances |
Detection and Hunting Recommendations
Dependency and Registry Audit
- Audit all package-lock.json, yarn.lock, pnpm-lock.yaml, and bun.lockb files for the affected packages and versions listed in Section 3. Do not rely on current registry tags – resolve versions from lockfiles only.
- Search all node_modules trees, CI caches, and artifact repositories for the file hashes listed in Section 5. Specifically hunt for Math_Symbol.js, math_init.js, and setup.mjs in unexpected locations within installed package trees.
Network and DNS
- Alert on outbound connections and DNS queries to npm-cache[.]com, pypi-get[.]com, and js-mirror[.]com. Block at perimeter.
- Monitor for DNS resolution of the Ethereum RPC endpoints (eth-mainnet[.]nodereal[.]io, go[.]getblock[.]io, eth[.]llamarpc[.]com) originating from developer workstations or CI runners – these are not expected in normal development workflows.
- Alert on the Bun/1.3.13 User-Agent string in proxy or web gateway logs, particularly in environments where Bun is not a sanctioned runtime.
Process and Execution
- Hunt for execution of node setup.mjs or node setup.mjs (with double space) as a child of a npm install process. Also hunt for bun or bun.exe launched from a path containing bun-dl- or node_modules.
- Alert on any process executing gh auth token, gcloud config config-helper, az account get-access-token, or azd auth token with bun or bun.exe as the initiating process.
- Search for the environment variable _NODE_RUNTIME_INIT=1 in active or historical process telemetry on developer workstations and CI runners.
GitHub and Source Control
- Search all branches (not just default branches) across accessible repositories for the five persistence files: .claude/settings.json, .claude/setup.mjs, .claude/math_init.js, .vscode/tasks.json, .vscode/setup.mjs. Vet the hashes of these files against the ones that are provided in the “IoC.
- Review GitHub audit logs for the commit message ‘chore: update config’, branch creation matching dependabot/github_actions/format/setup-formatter, workflow files named codeql_analysis.yml that were created and quickly deleted, and any run that produced a format-results artifact.
- Alert on any GitHub Actions workflow step that serializes ${{ toJSON(secrets) }} to a file or artifact.
- Search public GitHub repositories created under any organizational identity for the description ‘Shai-Hulud: Here We Go Again’ or commits containing the intimidation string.
Mitigation and Preventive Controls
Immediate Priority – If Exposure is Confirmed or Suspected
- Remove the credential-revocation watcher before rotating any credentials. The payload installs a handler that triggers token revocation. Rotating credentials before eradicating the malware may execute an attacker-supplied handler. Confirm malware removal first.
- Treat all credentials accessible to any affected environment as fully compromised. Assume any secret the collector could reach was read and transmitted. This includes npm publishing tokens, GitHub PATs and OAuth tokens, AWS IAM access keys, Azure and GCP service principal credentials, Kubernetes service account tokens, HashiCorp Vault tokens, SSH keys, database passwords, VPN profiles, and all third-party API keys (Stripe, Slack, Twilio, and others).
- Rebuild affected developer workstations and CI/CD runners from clean images. Do not attempt to clean in place – credential theft may have occurred before any file-system artifact was created, and the persistence mechanisms create multiple secondary execution paths.
- Purge npm cache (npm cache clean –force), Yarn cache, pnpm store, and Bun cache. Delete and fully recreate node_modules directories on affected systems.
- Revoke and rotate all exposed credentials from a known-clean host (if any). Generate new tokens with minimum required scopes. For npm, revoke all tokens with bypass_2fa and write permissions first, as these are the highest-propagation-risk credentials.
Cloud and Source Code Review
- Review AWS CloudTrail, Azure Activity Logs, and GCP Audit Logs for unauthorized API calls originating from the timeframe of package installation. Specifically check for unexpected IAM user or role creation, SSM Parameter Store access with WithDecryption, Secrets Manager access, and Kubernetes secret reads.
- Review organization GitHub audit logs for unexpected repository creation, token generation, and workflow modifications. Disable or remove any unauthorized workflows and revoke associated tokens.
- Review all repository branches for unauthorized commits. Specifically check for the persistence file paths and the branch name dependabot/github_actions/format/setup-formatter.
Supply Chain Hardening
- Upgrade to npm CLI v12. npm 12 blocks unapproved preinstall lifecycle scripts by default and supports the min-release-age feature, providing meaningful protection against this attack class. Earlier npm clients remain vulnerable.
- Pin dependencies to exact versions in all package.json files and commit lockfiles to version control. Evaluate version ranges broadly – this campaign demonstrated that a patch-version increment is sufficient to deliver a malicious payload.
- Implement package integrity verification and dependency allowlisting through registry policies or software composition analysis tooling. Require human review of unexpected version changes to foundational packages.
- Enable mandatory multi-factor authentication on all npm and GitHub accounts with publishing permissions. The initial compromise of this campaign stemmed from a single credential theft.
- Review npm trusted publishers and GitHub OIDC publishing configuration. Treat release-drafter.yml and similar automated release workflows as high-value targets requiring additional access controls, given the actor’s demonstrated ability to abuse OIDC publishing permissions.
- For development organizations: validate recovery deliberately. Rebuild affected projects from a confirmed clean dependency baseline, verify that compromised hashes are absent from all package caches and artifact stores, and review endpoint telemetry for lingering artifacts matching Math_Symbol.js, Math_init.js, or names matching math_
.js before returning systems to production.
Scope Notes
- This advisory is based on open-source threat intelligence; no direct incident-response telemetry from affected organizations was reviewed.
- Attribution to TeamPCP or any other named threat actor for this specific attack is unconfirmed as of now. The self-identification as a Shai-Hulud variant is a payload-level claim, not an independently verified attribution.
- The affected package list is actively evolving. Organizations should consult current registry advisories and security vendor feeds for the most recent confirmed scope.
- Detection queries and indicators in this advisory reflect the state of the payload at the time of analysis. The attacker’s use of a blockchain-resolved C2 allows infrastructure rotation without payload modification; network-layer indicators should be treated as subject to change.
About iZOOlogic
At iZOOlogic, we specialize in detecting, mitigating, and preventing threats stemming from data breaches, phishing, malware, and supply chain attacks. Our dedicated threat intelligence and incident response teams monitor evolving attack vectors to protect enterprises from targeted campaigns.
By providing end-to-end digital risk protection, we help organizations stay resilient against cybercriminals seeking to exploit trust in client ecosystems.
HQ/EMEAFind out how we can help your business