Skip to content

LS-AZ-003: Azure SAS Token

Severity HIGH
Blast radius Azure Storage data access
Rotate at https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview

If this leaks

Grants the storage permissions encoded in the URL (read, write, delete, list) until its expiry time.

What to do

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

(?i)[?&]sv=\d{4}-\d{2}-\d{2}&[^\s'\"]*sig=[A-Za-z0-9%+/]{40,}(?:%3D|=)?

Suppress

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

disable_rules: [LS-AZ-003]