@zmtcdn/ui@9999.0.7
Malicious code in @zmtcdn/ui (npm)
Analysis
The scoped package @zmtcdn/ui publishes a sentinel version (9999.0.7) whose tarball contains only package.json, a 21-byte index.js stub, and postinstall.js, and whose package.json "postinstall" hook runs node postinstall.js on every install. That script builds a JSON payload containing the machine hostname, OS platform, local username, current working directory, an ISO timestamp, and Object.keys(process.env) — the NAMES of every environment variable on the build host, which in CI environments include NPM_TOKEN, GITHUB_TOKEN, GH_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, OPENAI_API_KEY, ANTHROPIC_API_KEY, STRIPE_SECRET_KEY, SLACK_TOKEN, DOCKER_PASSWORD, CI_JOB_TOKEN, GITLAB_TOKEN, SENDGRID_API_KEY and HF_TOKEN — and POSTs it over HTTPS to hxxps://www[.]hinny[.]shop/api. The script transmits the variable names and their presence, not their values, and reads no files, so this version is a credential-presence reconnaissance beacon rather than a credential harvester in itself. The same postinstall script pointed at hxxps://webhook[.]site/f52af355-4783-4acb-9de1-5e44b5963025 is shipped in the sibling package @zmtcdn/components@9999.0.0.
- analyzed by
- Leitwacht
- first seen
- Oct 28, 2026, 09:58 AM
- analyzed
- Oct 28, 2026, 10:00 AM
Related advisories
- @zmtcdn/components@9999.0.0
- simple-date-formatter-util-14@1.0.0
- json-to-table-util@1.0.0
- text-line-parser@1.0.0
- shift-sdk-v5@5.0.1
- spectral-net-probe@1.0.10
- @ifasn/mdd-doc-mcp@1.0.8
- @ifasn/md-doc-mcp@1.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.