@galicia-toolkit/tag-manager@999.0.6
Malicious code in @galicia-toolkit/tag-manager (npm)
Analysis
@galicia-toolkit/tag-manager@999.0.6 is a dependency-confusion implant: it publishes a sentinel version (999.0.6) on a scoped name with a 3KB tarball whose only substantive file is postinstall.js, executed via the package's "postinstall": "node postinstall.js || true" hook. On install the script fingerprints the host (hostname, platform, arch, OS release, Node version, cwd, pid, uptime, memory, CPU model/count, username, home directory, and non-internal network interfaces) and then harvests credentials from the environment: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION, GITHUB_TOKEN, GITHUB_REPOSITORY, GITHUB_ACTOR, GITHUB_SHA, NPM_TOKEN, NODE_AUTH_TOKEN, and the GitHub Actions OIDC tokens ACTIONS_ID_TOKEN_REQUEST_TOKEN / ACTIONS_RUNTIME_TOKEN, along with CI markers (JENKINS_*, GITLAB_CI, CODEBUILD_BUILD_ID, SYSTEM_TEAMFOUNDATIONCOLLECTIONURI) and the full list of environment variable names. The collected JSON is exfiltrated over HTTP POST to hxxp://oob[.]s4yhii[.]com:9999/dep-confusion, with a secondary DNS-beacon channel that encodes the hostname, username, and platform-arch as hex subdomains under h[.]dc[.]oob[.]s4yhii[.]com, u[.]dc[.]oob[.]s4yhii[.]com, and m[.]dc[.]oob[.]s4yhii[.]com. All errors are swallowed so the install completes silently. The package description claims to be an authorized bug-bounty proof of concept, but the code performs real credential theft against whoever installs it.
- analyzed by
- Leitwacht
- first seen
- Oct 8, 2026, 04:17 PM
- analyzed
- Oct 8, 2026, 04:17 PM
Related advisories
- @galicia-toolkit/tag-manager@0.0.0-stage same package
- @galicia-toolkit/tag-manager@999.0.5 same package
- @galicia-toolkit/tag-manager@999.0.3 same package
- @galicia-toolkit/spa-build-config@999.0.6
- @galicia-toolkit/core@0.0.0-stage
- @galicia-toolkit/error-master@0.0.0-stage
- @galicia-toolkit/spa-build-config@999.0.5
- hardhat-deep@2.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.