cd

5 min read

2025-01-05: Azure Storage Account - Mass Download

Description

This query will detect when a mass download of unique blob files occurs, use the blob_threshold value to define when to generate an alert or return results. Adversaries access and exfiltrate blob data after through bypassing storage account controls or a misconfiguration of the storage account access controls. This query can help to identify suspicious behavior, alert on exfiltration of sensitive data from a given storage account, or uncover unknown access.

Query

let blob_threshold = 50;
StorageBlobLogs
| where OperationName == "GetBlob"
| summarize TotalUniqueDownloads = dcount(ObjectKey) by bin(TimeGenerated, 1h), AccountName, CallerIpAddress
| where TotalUniqueDownloads > blob_threshold

MITRE ATT&CK

IDTechniqueTactic
T1530Data from Cloud StorageCollection

Analytic Rule

Notes

As an analytic rule, you can tune results based on the CallerIpAddress value and remove known safe IPs or filter out any storage accounts, AccountName, that are intended to be accessed and contents downloaded.