Skip to content

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

  1. Rotate or revoke the credential at https://www.nuget.org/account/apikeys.
  2. Check the provider's audit logs for use you don't recognise.
  3. 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]