The images in this article were generated with artificial intelligence. How we publish
Filtered copy of malware known as Shai-Hulud He has already jumped from the public repository to real life: security researchers have found malicious packages published in the npm record containing code designed to steal credentials, secrets and data from cryptographic wallets, and in one case turn the infected machine into an agent for DDoS attacks.
The mechanism used by the attackers combines old but effective techniques: typosquating (names similar to legitimate packages) to attract accidental downloads and repackaging of filtered code without even obuscarso. This facilitates the recognition by other criminals and, in turn, reduces the need for advanced skills to deploy mass exfiltration campaigns.

The real risk here is not only the number of downloads - which can be reduced in a particular lot - but the impact on supply chains: a developer who incorporates a compromised dependency in a construction environment or CI can expose keys with publication permits, APIs or tokens that are then automatically published in public repositories controlled by the attacker. This "automatic publication" behavior amplifies the gap by converting stolen secrets into accessible and traceable information.
From the operational point of view, malicious packages combine two types of threat. On the one hand, information theft functions that explore directories, configuration files and processes to extract credentials. On the other hand, modules that implement attack capabilities: HTTP saturation, TCP / UDP floods and TCP resets to form a bots network. The coexistence of both functionalities transforms an incident of the escape of secrets into a platform for continuous offensive actions.
If you manage projects that use npm, the first priority is to assume that any unverified dependence can be a vector. You must immediately remove any suspicious package, revoke and rotate associated credentials and tokens, and check if your systems have uploaded artifacts or secrets to public repositories. It is also appropriate to proactively block the command and control domains and hosts identified by the researchers to limit exfiltration.
In terms of detection, look for Node processes, unusual outgoing connections and self-created repositories in GitHub that contain files with credentials names. Independencies analysis tools and code secret scanning are useful, but not infallible: it adds controls on your pipelines that prevent the execution of postinstall third party scripts without approval and uses white list policies for critical packages.
To reduce the attack surface sustainably, it is essential to apply minimum privilege principles to tokens and keys, activate multifactor authentication in critical accounts, and use automatic rotation mechanisms. It is also recommended to use signature version and verification locks where possible, and to enrich your CI / CD telemetry to detect package facilities in unplanned phases.

The community and platforms have responsibilities: public repositories must improve the mechanisms for automatic detection of typosquatting patterns and exfilter behaviour, and maintainers must document procedures for the management of dependency incidents. Meanwhile, development teams must operate under the premise that third-party software is a risk that should be mitigated with additional control layers.
If you want to read the technical analysis that motivated these recommendations, the findings of the researchers are published in the security blog that detected the malicious loads: OXsecurity - Shai-Hulud report. For a practical guide on good safety practices when using npm, see official documentation: NPM - safety and good practice.
The lesson is clear: malicious code leaks do not stay on paper. They replicate and integrate into development ecosystems that depend on thousands of packages. The only effective defense combines the hygiene of credentials, strict control of dependencies and continuous visibility of what is performed in your construction and production environments.
Related
More news on the same subject.

Campaign at Hugging Face Spaces and GitHub uses game traps to steal passwords and sessions
A massive campaign has used Hugging Face Spaces pages and GitHub repositories to attract players with supposed traps and bots and push them to install malware that steals browse...

Canada detects NEXCOL intrusion and suspension of export permits
The Canadian government confirmed that its online system to manage permits for the export of military material and strategic goods, known as NEXCOL, suffered an intrusion detect...

CertiK shows Weight2Shell: identical weights, different outputs by inference environment
CertiK security researchers have demonstrated a technique - called Weight2Shell in their report - that allows two instances of the same artificial intelligence model, carrying i...

RabbitMQ: critical failure in the management interface exposes tokens OAuth2; patches 4.4.1 / 4.3.8
A critical vulnerability in RabbitMQ allows an attacker who has access to the management interface to get tokens OAuth2 signed by the identity provider without credentials and t...

Critical Vulnerability in Erlang / OTP client TLS allows MITM without certificate (CVE-2026-124286)
A critical vulnerability to the client implementation of TLS within Erlang / Open Telecom Platform (OTP) allows a malicious server to complete a TLS 1.2 handshake without presen...

pCloud Pass: cyber attack exposes emails from few users; undecipher encrypted vaults
This week pCloud Pass, the password manager integrated into the Swiss pCloud service, confirmed that it was the target of a "cyber attack" after several users reported early log...

SOCRadar identifies WeaveLotus / RedOps campaign in intrusions to Thailand and the Philippines
SOCRadar has published an analysis that attributes a series of intrusions to military, government and legislative institutions in South-East Asia to a set of tools and activitie...