LS-NPM-001: NPM Access Token¶
| Severity | HIGH |
| Blast radius | Package registry supply-chain compromise |
| Rotate at | https://www.npmjs.com/settings/~/tokens |
--verify |
GET https://registry.npmjs.org/-/npm/v1/user |
If this leaks¶
Allows publishing new versions of any package the token has access to, a common supply-chain attack vector affecting every downstream consumer.
What to do¶
- Rotate or revoke the credential at https://www.npmjs.com/settings/~/tokens.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
\bnpm_[A-Za-z0-9]{36}\b
Suppress¶
On one line: # leakscan:ignore LS-NPM-001. For the whole project:
disable_rules: [LS-NPM-001]