LIVE · cybersecurity feed
Live wire
security

ChainDrop: Inside a Self-Propagating npm Worm

A self-propagating npm worm, dubbed "ChainDrop," has infected over 400 packages, including widely used ones like `keyv` and `cacheable-request`, which collectively see hundreds of millions of downloads weekly. The worm is designed to steal various sensitive developer data and credentials, potentially exposing developer workstations, continuous integration (CI) pipelines, cloud environments,…

ZeroDay News ·

Source: Unit 42 (Palo Alto)

A self-propagating npm worm, dubbed "ChainDrop," has infected over 400 packages, including widely used ones like `keyv` and `cacheable-request`, which collectively see hundreds of millions of downloads weekly. The worm is designed to steal various sensitive developer data and credentials, potentially exposing developer workstations, continuous integration (CI) pipelines, cloud environments, and downstream software users across numerous organizations.

Once installed, ChainDrop targets cloud credentials, npm and GitHub tokens, SSH keys, and other sensitive developer information. It can also extract temporary credentials from GitHub Actions runner memory. The stolen npm publishing tokens are then used to infect and republish additional packages, maintaining their original functionality while embedding the worm.

Researchers observed 453 public GitHub repositories across five accounts matching the worm’s exfiltration patterns, and detected ChainDrop execution in 10 distinct environments. These repositories have since been removed. The malware achieves persistence through developer and AI coding tools and uses blockchain-based command-and-control (C2) resolution. On August 4, 2026, the attackers reconfigured the worm's entire C2 infrastructure through a single Ethereum transaction, bypassing the need for malware updates.

The infection mechanism is subtle: an infected npm package's `package.json` file is modified with a `preinstall` command. This command points to `setup.mjs`, a dropper that checks for the presence of Bun, a lightweight JavaScript runtime. If Bun 1.3.13 is not found, it is downloaded from the legitimate Oven GitHub repository. Bun is then used to execute a 727 KB obfuscated JavaScript payload, `math_init.js`, which is compressed into two source lines.

The payload spawns a detached background process and sets `_NODE_RUNTIME_INIT=1` to prevent recursive relaunch, allowing the package installation to complete without errors or warnings. In CI environments, the worm runs inline, making its debug output visible in workflow logs, which can serve as an indicator for defenders. Before engaging in data collection, the worm performs a locale check; if a Russian-language host is detected, it exits cleanly, printing "Exiting as russian language detected!"

The worm harvests a wide array of credentials and system information. This includes temporary identity and access management (IAM) role credentials from cloud infrastructure platforms by querying metadata and token endpoints of compute instances and container services. It also targets Docker and Helm configurations, Git credentials, mount listings, Poetry and PyPI credentials, RubyGems tokens, SSH keys, Terraform state, and Vault tokens.

Beyond developer tooling, ChainDrop seeks credentials from AI-assisted coding tools, cloud-based development platforms, and open-source coding assistant configurations. It also collects data from `.env` files, `.netrc` files, application configurations, Bitcoin and Electrum wallet files, Jenkins encrypted credential material, Kubernetes service-account tokens and kubeconfigs, and shell histories. Crucially, the npm and GitHub tokens it finds are essential for its continued propagation.

An embedded Python helper within the payload is responsible for scraping GitHub Actions runner memory. This helper, hidden in an encrypted blob, locates the `Runner.Worker` process, opens `/proc/pid/maps` and `/proc/pid/mem`, and searches for OpenID Connect (OIDC) tokens and runner secrets.

To mitigate such threats, it is recommended to identify and remove affected npm package versions, investigate developer workstations and CI runners for signs of compromise, and review unexpected npm publishing and GitHub repository activity. Additionally, potentially exposed npm, GitHub, cloud, SSH, and automation credentials should be revoked and rotated, identified persistence mechanisms removed, and both domain-based and GitHub-based exfiltration channels blocked.

ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.