Malicious package: npm/antsrcsrctest (preinstall cloud-metadata + env stealer)#1364
Open
akyroslabs wants to merge 1 commit into
Open
Malicious package: npm/antsrcsrctest (preinstall cloud-metadata + env stealer)#1364akyroslabs wants to merge 1 commit into
akyroslabs wants to merge 1 commit into
Conversation
… stealer, exfil to raw IP) Signed-off-by: Sascha Klein <akyroslabs@gmail.com>
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.
antsrcsrctest@1.0.0(npm) is a supply-chain credential/environment stealer disguised as a date utility (index.js exports a benign formatDate()).A
preinstallhook (node preinstall.js) runs automatically onnpm install, before import. It fingerprints host/container, runs recon (id,whoami,ps aux) via child_process.execSync, queries the cloud instance-metadata servicehttp://100.100.100.200/latest/meta-data/ram/security-credentials/(Alibaba Cloud IMDS → temporary RAM/IAM credentials), dumps the entireprocess.env, and exfiltrates everything via HTTP POST to the hardcoded IPhttp://101.35.44.248(paths / and /env). The name targets an internalantsrc*namespace (dependency confusion).Detected independently by codelake Research from the live npm feed on 2026-07-09; still live on npm and not in OSV/GHSA at time of reporting.
IOCs: 101.35.44.248 · sha256 b4a1a62c75f239d8201c65cdcda5a21e90eff76a41562a2a1902403ccd4c5f9d
Advisory: https://research.codelake.dev/advisories/clr-2026-2999-antsrcsrctest