critical · M2 · MASVS-CODE-3 · PTKD-SUPPLY-MALICIOUS
Known malicious package
A dependency is listed in OpenSSF's malicious-packages database (OSV MAL-*): it was published to steal data or credentials.
How it is exploited
A typosquatted package runs a postinstall script that uploads ~/.npmrc, .env files and CI tokens to the attacker, then behaves like the real library.
Why it matters
Stolen secrets from developer machines and CI, and possibly a backdoor inside the shipped app.
How to fix it
- Remove the package and reinstall from a clean lockfile.
- Rotate npm, GitHub, cloud and API keys used on machines that installed it.
- Check CI logs for unexpected network calls during install.
Does your app have this?
PTKD checks your build or your source project for PTKD-SUPPLY-MALICIOUS and every other check in this knowledge base.
Scan your app