NPM Worm Compromises Hundreds of Popular npm Packages - #402
Open
carlospolop wants to merge 1 commit into
Open
carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://securitylabs.datadoghq.com/articles/npm-worm-compromises-popular-npm-packages Content Categories: Based on the analysis, this content was categorized under "Pentesting CI/CD → Github Security → Abusing Github Actions → GH Actions - npm Supply Chain Abuse". 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
Incident, scope, and severity
Datadog reported on August 4, 2026, and updated the article on August 5, 2026, that a threat actor compromised hundreds of npm packages, including packages with more than 150 million weekly downloads. The attacker injected a self-propagating backdoor similar to the Shai-Hulud npm worm. The first identified malicious change was commit
174f6a5in the...🔧 Technical Details
npm lifecycle-script supply-chain backdoor: An attacker can publish or modify a package so its manifest adds or replaces a lifecycle command such as
preinstall: node setup.mjs. Package managers that execute dependency lifecycle scripts run the loader during installation, before the application imports the package, providing code execution under the installing user's, CI runner's, or build environment's privileges.Cross-platform runtime staging: A small loader can test for an installed
bunwithbun --version, accept any successfully exiting executable, or download a platform-specific Bun archive for Linux glibc or musl, macOS, or Windows. Weak controls such as following redirects, omitting response-size limits, failing to restrict redirect origins, not verifying the archive cryptographically, and using a temporary directory can make the staging process difficult to trust. Running the second stage under Bu...🤖 Agent Actions
Updated:
src/pentesting-ci-cd/github-security/abusing-github-actions/gh-actions-npm-supply-chain-abuse.mdAdded concise technical coverage of:
[18].Validation passed:
git diff --check, citation/reference integrity, balanced code fences, and correct footer.mdbookwas unavailable locally.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.