The Shai-Hulud supply chain malware, known for targeting npm packages and GitHub repositories, has resurfaced on npm despite a crackdown by law enforcement.
The campaign uses the same payload as the previous campaign, carrying an identical hash, highlighting the limitations of existing analysis tools, Aikido Security said.
The company uncovered the latest activity after the attackers behind the campaign, dubbed Mini Shai-Hulud, uploaded four malicious packages on Monday Sept 7.
npm introduced malware scanning tools in July, two months after the May campaign. The four packages uploaded on Monday were not caught, and Aikido Security said they carried the same hash as 319 package versions from May.
“We’re not saying the scanner should catch everything,” Aikido Security said. “That’s the floor of what publish-time scanning is supposed to catch, and it got missed. This specific sample should be in the testing corpus of anybody doing supply chain scanning.”
The May campaign and the TeamPCP arrests
In May, the attackers compromised hundreds of @antv packages along with others. Once the malicious packages were installed, the attackers scraped plaintext secrets from continuous integration and continuous deployment memory, stole local cloud and Secure Shell credentials, and planted backdoors in VS Code and Claude Code configurations.
Using the exfiltrated credentials, the attackers then created 2,700 GitHub repos for further compromise.
Although the malicious hash used in the May campaign was previously detected, the hash remained out of circulation for 111 days before reappearing in packages npm’s new scanner failed to flag. The issue highlights the existing gaps in registry-level scanning and signature-matching scanning used by defenders to detect gaps in registry-level signature matching, which checks packages against known-malicious artifacts rather than monitoring behaviour at the endpoint.
“Signature matching against known-malicious artifacts is the single easiest bar to clear in this industry, and it’s the bar we should all be most alarmed to see missed,” Aikido Security said. “If this is what gets through on the easy case, it’s worth asking what a payload that bothered to change a single byte would have done.”
The Mini Shai-Hulud campaign has been attributed to a threat group tracked as TeamPCP. The group is known for carrying out supply chain attacks by compromising developer tools, CI/CD pipelines, and open-source ecosystems.
Last month, the Australian Federal Police arrested two suspected TeamPCP members. Authorities charged them with a combined 14 offences.