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