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