npm worm Shai-Hulud: Attack of the clones | heise online

npm worm Shai-Hulud: Attack of the clones

The malware authors behind the npm worm Shai-Hulud have released the source code. Now the first clones are appearing.

listen Print view

(Image: Imilian/Shutterstock.com)

3 min. read

This is a special open-source project: The masterminds behind the cyber gang TeamPCP have published the source code of the npm worm Shai-Hulud on GitHub. They have also launched a competition in the underground forum BreachForums, urging other criminals to get started with the code.

In a blog post, IT researchers from Mondoo write that just a few days later, the first clones appeared on npm. One individual, for example, uploaded four malicious packages, an almost identical copy of Shai-Hulud with its own command-and-control infrastructure, and three typo versions of “Axios”. They contain botnet malware functions that integrate infected systems into a DDoS network. The target is programmers with fat fingers, explain the IT researchers. The number of weekly downloads is currently around 2600, which is indeed low for npm packages. OXsecurity lists further copies. A flood of npm worm packages is to be expected, as many interested parties can now build on the source code.

This also fits with Microsoft's Threat Intelligence investigating an emerging mini-Shai-Hulud supply chain attack, as the group explains on Bluesky. The attackers are targeting “antv” – they were able to compromise an account of a project maintainer and have published infected versions of widely used packages, such as “antv/g2”. These packages are widely used as dependencies. The compromised packages propagated into libraries like “echarts-for-react”, affecting a large range of apps and build systems.

Here too, the malicious code is used to search for and exfiltrate credentials. Sought-after targets include personal GitHub access tokens, OpenID tokens, Amazon AWS credentials and security tokens, SSH keys, Kube configurations, or other Software-as-a-Service tokens, Microsoft writes. However, Microsoft does not mention a connection to the Shai-Hulud open-source code.

Videos by heise

The npm worm Shai-Hulud targets software developers. In so-called supply chain attacks, the malware is embedded in npm packages that programmers integrate into their projects. To achieve this, malware authors typically rely on name similarities to popular packages or on typo versions of the names of the real packages. As long as the malicious npm packages are integrated, the malware also runs. In November last year, Shai-Hulud 2 thus stole more than 27,000 credentials. This allows attackers to misuse costly resources from cloud providers, conduct espionage, or infect further packages.

(dmk)

Don't miss any news – follow us on Facebook, LinkedIn or Mastodon.

This article was originally published in German. It was translated with technical assistance and editorially reviewed before publication.