Cybercriminals Open-Source npm Malware for $5,000 Competition, Critical Flaw Limits Impact

The JavaScript and npm ecosystems have recently faced heightened security threats, marked by a series of sophisticated supply chain attacks. A cybercriminal group identified as “Team PCP” escalated these concerns by openly publishing the source code for their “Shai-Hulud” worm malware on GitHub. The malware, developed in TypeScript, was made available in two public repositories, complete with comprehensive execution instructions. This move was part of an audacious $5,000 competition, launched in partnership with the “Bridge” forum, challenging participants to execute the largest possible attack using the provided malware. The GitHub repositories, which quickly sparked controversy and calls for their removal due to the inherent security risks, were eventually taken down after remaining public for a notable period.

Despite the alarming nature of the open-sourced malware and the incentive for widespread attacks, its potential impact was fortunately curtailed by a critical programming flaw. The ” Shai-Hulud” worm contained an implementation error where it attempted to execute tstacrunner.js but erroneously wrote router-init.js, preventing its full malicious payload from deploying effectively. This oversight largely limited the malware’s effect to merely installing van 1.3.13 in many cases, sparing numerous systems, including those that installed compromised npm packages like “Mistral.” In direct response to the escalating threat landscape and the “one bad apple” risk, projects like Nuxt, a popular framework with 2.5 million weekly downloads, have implemented proactive security measures, temporarily closing pull requests from external contributors. This incident underscores ongoing concerns about software supply chain security and has reignited discussions around package managers offering “security by default” features, such as Minimum Release age and block Exotic SubDPS, which are designed to enhance project integrity against such evolving threats.