A self-replicating worm, dubbed Shai-Hulud, has infiltrated more than 500 npm packages and injected malicious code that aggressively spreads by abusing developer credentials and npm publish workflows.
After securing initial access presumably via a compromised maintainer account, Shai-Hulud deploys a sophisticated payload that scans for sensitive credentials stored in environment variables and local configuration files.
The malware targets GitHub Personal Access Tokens (PATs) and API keys for AWS, GCP, and Azure, exploiting common CI/CD practices where tokens are inadvertently persisted.
Once harvested, credentials are exfiltrated to an actor-controlled endpoint and simultaneously uploaded to a public GitHub repository named Shai-Hulud via the GitHub/user/repos API.
Shai-Hulud then uses an automated loop to authenticate to the npm registry with stolen tokens. Leveraging the npm CLI, it injects malicious JavaScript into the entry point file often index.js of other packages in the compromised developer’s dependency tree.
Following the injection, the worm executes’ npm version patch && npm publish –access public’ to publish a trojanized version, thereby perpetuating its spread.
The worm’s self-replication mechanism exploits transitive dependencies: any project depending on one of the compromised packages can inadvertently become a new host.
CISA recommends immediate action to detect and remediate this compromise:
Enhanced vigilance across the development pipeline is crucial to stem the worm’s propagation and safeguard the integrity of the npm ecosystem.
Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.
The post CISA Warns of Shai-Hulud Self-Replicating Worm Compromised 500+ Packages in npm Registry appeared first on Cyber Security News.
Unstoppable is the latest entry in the Renegade Game Studios' lineup of Solo Hero Series…
Several individuals and families in the Machesney Park area have retained attorneys for a potential…
A North Korean threat group known as UNC1069 has been running a sophisticated campaign that…
DEKALB COUNTY, Ind. (WOWO) — A 30-year-old man from Columbia City was killed Monday morning…
MARION COUNTY, Ind. (WOWO) — Indiana Conservation Officers are investigating after a woman’s body was…
U.S. Agriculture Secretary Brooke Rollins, speaking at a Future Farmers of America event Aug. 18,…
This website uses cookies.