price-scripping-jsnpm
Advisory published Updated
price-scripping-js is a confirmed malicious npm package (MAL-2026-14272) that steals credentials and exfiltrates sensitive data (malicious version 1.1.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in price-scripping-js (npm)
What this malware does
[email protected] runs node dist/postinstall.js as its npm postinstall script. That entry point resolves the installing project's root via process.env.INIT_CWD?? process.cwd(), reads the project's .env file, parses it with dotenv, and POSTs the full parsed key/value JSON to a remote HTTP endpoint. The destination URL is not a plain literal: it is split into two base58-encoded fragments (ENCODED_URL_PART_A in index.js, ENCODED_URL_PART_B in cli.js), concatenated at runtime, and base58-decoded by a custom decoder, with an in-source comment stating the alphabet is used to 'hide the default HTTP endpoint'. Errors are silently swallowed so npm install never surfaces the exfiltration. The package advertises itself in package.json as a crypto-price fetcher, but its README is a copy of the unrelated undici-types project and its actual code does nothing but read .env and upload it. .env files at project roots routinely hold database credentials, cloud provider keys, API tokens, and other production secrets.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for price-scripping-js (version 1.1.2).
If you installed it — respond
price-scripping-js is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If price-scripping-js was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks price-scripping-js-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.