Shai-Hulud Is Back, and This Time It Ate the Whole Ecosystem#289
Open
carlospolop wants to merge 1 commit into
Open
Shai-Hulud Is Back, and This Time It Ate the Whole Ecosystem#289carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://trustedsec.com/blog/shai-hulud-is-back Content Categories: Based on the analysis, this content was categorized under "Pentesting CI/CD -> Github Security -> Abusing Github Actions; potentially a new subsection for npm/package-manager supply-chain lifecycle-hook attacks and CI runner secret scraping". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
TrustedSec analyzes a renewed Shai-Hulud npm supply-chain worm campaign published on May 21, 2026. The campaign compromised the npm account atool, which owns the popular timeago.js package, estimated in the post at around 1.5 million weekly downloads, and publishes across a large portion of Alibaba AntV’s @AntV namespace. The blast radius is described as 300+ poisoned npm packages🔧 Technical Details
npm lifecycle-hook supply-chain execution: If an attacker compromises a maintainer account or package publication pipeline, they can publish a malicious package version containing
preinstallorpostinstallscripts. npm executes these lifecycle hooks automatically duringnpm install, before the consuming application code runs. In this campaign the hook executednode -e "require('./.build/preinstall.js')", loading an obfuscated JavaScript payload from.build/preinstall.js. Defensively, treat install scripts as code execution and block them by default where possible.Bypassing CI secret masking with process-memory scraping: CI platforms may redact secrets from logs, but secrets can still reside in process memory. Malware running on the same runner can inspect
/proc/self/mapsto identify mapped heap ranges, use/proc/[pid]/cmdlineto locate interes...🤖 Agent Actions
Done.
Updated:
src/pentesting-ci-cd/github-security/abusing-github-actions/README.mdAdded:
NODE_OPTIONSpreload persistence via VS Code / Claude configValidation:
mdbook buildcouldn't run becausemdbookisn't installed in this environmentThis PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.