Mini Shai-Hulud FAQ on the TeamPCP npm and PyPI supply-chain...#290
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://www.tenable.com/blog/mini-shai-hulud-frequently-asked-questions Content Categories: Based on the analysis, this content was categorized under "Pentesting CI/CD -> Github Security -> Abusing Github Actions, especially Gh Actions - Cache Poisoning / pull_request_target abuse / OIDC federation and provenance bypass". 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
Mini Shai-Hulud is a TeamPCP self-propagating open-source supply-chain worm targeting the npm and PyPI ecosystems. The campaign compromised more than 170 npm and PyPI packages, affecting packages with more than 518 million cumulative weekly downloads. Tenable’s core guidance is that any developer workstation, build host, or CI/CD runner that installed a compromised package version must be treated as f...
🔧 Technical Details
Self-propagating package-manager worm: A compromised npm or PyPI package can execute attacker code during installation or initialization. In npm, this commonly abuses lifecycle hooks such as
preinstall, which run before dependency installation completes. The malware harvests registry, developer, cloud, and CI/CD credentials from environment variables and common filesystem paths, exfiltrates them, and uses package-registry credentials to publish trojanized versions of other packages accessible to the victim. This turns every infected developer workstation or CI/CD runner into a new propagation node.npm lifecycle hook execution as the initial code-execution primitive: In the npm attack chain, trojanized packages include a
preinstallhook that downloads the Bun JavaScript runtime and executes an obfuscated credential stealer. This does not require exploiting memory corruption in npm itself; it abuses legitimate pac...🤖 Agent Actions
Done.
Updated:
src/pentesting-ci-cd/github-security/abusing-github-actions/README.mdAdded:
pull_request_target/ low-trust workflow abuseACTIONS_ID_TOKEN_REQUEST_*or runner memory/cache)I did not create new files because the existing GitHub Actions page was already the best fit, and most other blog techniques were already covered elsewhere in HackTricks.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.