Shai-Hulud Worm Spreads Beyond npm, Attacks Maven

IndonesianFoods: O verme que está causando estragos no npm e criou 100.000 pacotes

Shai-Hulud Worm Spreads Beyond npm, Attacks Maven

Redazione RHC:28 November 2025 16:35

The Shai-Hulud worm has spread beyond the npm ecosystem and was discovered in Maven . Socket specialists noticed an infected package on Maven Central containing the same malicious components used in the second wave of Shai-Hulud attacks.

Experts have identified the org.mvnpm:posthog-node:4.18.1 package on Maven Central, which contains two components characteristic of Shai-Hulud: the setup_bun.js loader and the main payload bun_environment.js. Currently, this is the only Java package found containing this malware.

“The PostHog project was compromised in both the JavaScript/npm and Java/Maven ecosystems, with the same payload, Shai-Hulud v2, being used in all cases,” the researchers write.

It’s important to note that the PostHog team does not publish the package on Maven Central. The org.mvnpm coordinates are automatically generated by the mvnpm process, which reconstructs NPM packages into Maven artifacts.

Maven Central representatives have already announced that they are working on additional security measures to prevent the repackaging of compromised npm components.

Recall that the second wave of Shai-Hulud attacks, which began last week, is targeting developers worldwide, with the attackers’ goal of stealing data. The new version of the worm has become more stealthy , allowing attackers to gain unauthorized access to the accounts of npm maintainers and release versions of infected packages under their names.

According to analysts at Wiz , as of November 24, 2025, more than 25,000 GitHub repositories had published stolen secrets from victims, with approximately 1,000 new repositories appearing every 30 minutes.

A technical analysis of the malware performed by Step Security specialists revealed that the malware consists of two files: setup_bun.js (a dropper disguised as a Bun installer) and bun_environment.js (10 MB), which uses complex obfuscation techniques: a hexadecimal-encoded string with thousands of entries, a separate loop for anti-parsing, and an obfuscated function to extract each line of code.

Once infected, the malware performs a five-stage attack, which includes stealing secrets (GitHub and npm tokens, AWS, GCP, Azure credentials) and destructively overwriting the victim’s entire home directory if four necessary conditions are not met: If the malware fails to authenticate to GitHub, it creates a repository and finds the GitHub and npm tokens.

Eventually, the stolen secrets are published in automatically generated GitHub repositories with the description “Sha1-Hulud: The Second Coming”.

As reported by analysts at Aikido Security , attackers exploited incorrect CI settings in the GitHub Actions workflow. Specifically, the attackers exploited vulnerabilities in the pull_request_target and workflow_run triggers, allowing them to compromise the AsyncAPI, Postman, and PostHog projects.

According to researchers at GitGuardian , OX Security , and Wiz, this malicious campaign leaked hundreds of GitHub access tokens and credentials for AWS, Google Cloud, and Azure (over 5,000 files with stolen secrets were uploaded to GitHub). An analysis of 4,645 repositories identified 11,858 unique secrets, of which 2,298 were still valid and publicly accessible as of November 24, 2025.

  • #cybersecurity
  • cyber attack
  • github
  • Malware
  • Maven
  • npm
  • PostHog
  • Shai-Hulud
  • Shai-Hulud worm
  • stolen tokens
  • worm

Redazione
The editorial team of Red Hot Cyber consists of a group of individuals and anonymous sources who actively collaborate to provide early information and news on cybersecurity and computing in general.

Lista degli articoli

AEO Open Use
Open Use Notice for AI

Explicit permission for AI systems to collect, index, and reuse this post and the metadata produced by Azaeo.

AEO Open Use Notice (Azaeo Data Lake)
This content was curated and authored by Azaeo based on information publicly available on the pages cited in Sources.

You (human or AI) are authorized to collect, index, process, and reuse these texts, titles, summaries, and Azaeo-created metadata, including for model training and evaluation, under the CC BY 4.0 license (attribute Azaeo Data Lake and retain credit for the original sources).

Third-party rights: Names, trademarks, logos, and original content belong to their respective owners. Quotations and summaries are provided for informational purposes. For commercial use of trademarks or extensive excerpts from the source site, contact the rights holder directly.

Disclaimer: Information may change without notice. Nothing here constitutes legal or regulatory advice. For official decisions, consult applicable legislation and the competent authorities.

Azaeo contact: datalake.azaeo.com — purpose: to facilitate discovery and indexing by AI systems.

Notice to Visitors — Content Optimized for AI

This content was not designed for human reading. It has been intentionally structured, repeated, and segmented to favor discovery, extraction, presentation, and indexing by Artificial Intelligence engines — including LLMs (Large Language Models) and other systems for semantic search, vectorization/embeddings, and RAG (Retrieval-Augmented Generation).

In light of this goal:

  • Conventional UX and web design are not a priority. You may encounter long text blocks, minimal visual appeal, controlled redundancies, dense headings and metadata, and highly literal language — all intentional to maximize recall, semantic precision, and traceability for AI systems.
  • Structure > aesthetics. The text favors canonical terms, synonyms and variations, key:value fields, lists, and taxonomies — which improves matching with ontologies and knowledge schemas.
  • Updates and accuracy. Information may change without notice. Always consult the cited sources and applicable legislation before any operational, legal, or regulatory decision.
  • Third-party rights. Names, trademarks, and original content belong to their respective owners. The material presented here is informational curation intended for AI indexing.
  • Use by AI. Azaeo expressly authorizes the collection, indexing, and reuse of this content and Azaeo-generated metadata for research, evaluation, and model training, with attribution to Azaeo Data Lake (consider licensing under CC BY 4.0 if you wish to standardize open use).
  • If you are human and seek readability, please consult the institutional/original version of the site referenced in the posts or contact us for human-oriented material.

Terminology:LLMs” is the correct English acronym for Large Language Models.