← 返回列表

Binding.gyp Supply Chain Attack Enables CI/CD Worm Propagation Across npm Packages (Campaign)

单站 Cloud Threat Landscape 作者 threat.hunters@wiz.io (Wiz Threat Research) 发布 Thu, 04 Jun 2026 00:00:00 GMT 入库 2026-11-18T07:37:19

Researchers identified an active supply chain attack affecting multiple npm packages that leverages a novel abuse of the binding.gyp build mechanism to execute malicious code during package installation. Unlike traditional npm supply chain attacks that rely on preinstall or postinstall scripts, this campaign uses a malicious binding.gyp file to trigger code execution through node-gyp, bypassing many existing security controls and package review processes.

The attackers compromised npm maintainer accounts and published malicious package versions containing a small binding.gyp file. During package installation, npm automatically invokes node-gyp, which executes attacker-controlled commands embedded within the sources array through shell expansion functionality.

Unlike traditional supply chain attacks, the affected packages contain no suspicious preinstall or postinstall scripts. Instead, the malicious code is triggered through a lightweight binding.gyp file that launches an obfuscated JavaScript payload during installation.

原文链接:https://threats.wiz.io/all-incidents/bindinggyp-supply-chain-attack-enables-cicd-worm-propagation-across-npm-packages