LS-NUGET-001: NuGet API Key¶
| Severity | HIGH |
| Blast radius | Package registry supply-chain compromise |
| Rotate at | https://www.nuget.org/account/apikeys |
If this leaks¶
Allows pushing and unlisting packages the key is scoped to.
What to do¶
- Rotate or revoke the credential at https://www.nuget.org/account/apikeys.
- 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¶
\boy2[a-z0-9]{43}\b
Suppress¶
On one line: # leakscan:ignore LS-NUGET-001. For the whole project:
disable_rules: [LS-NUGET-001]