Skip to content

LS-AZ-001: Azure Storage Key

Severity CRITICAL
Blast radius Full Azure Storage account compromise
Rotate at https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage

If this leaks

Grants full read, write, and delete access to every blob, queue, table, and file share in the storage account, plus the ability to generate SAS tokens.

What to do

  1. Rotate or revoke the credential at https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage.
  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

DefaultEndpointsProtocol=https;AccountName=[^;]+;AccountKey=[A-Za-z0-9+/]{86}==

Suppress

On one line: # leakscan:ignore LS-AZ-001. For the whole project:

disable_rules: [LS-AZ-001]