Detection rules › Panther
Azure Storage Blob Anonymous Access Enabled
Detects when Azure storage account blob anonymous access is enabled at the account level or when container public access is configured. Enabling anonymous access allows unauthenticated users to read blob data and may lead to data exposure.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Collection | T1530 Data from Cloud Storage |
Rule body yaml
AnalysisType: rule
Filename: azure_storage_blob_anonymous_access_enabled.py
RuleID: "Azure.MonitorActivity.StorageAccount.BlobAnonymousAccessEnabled"
DisplayName: "Azure Storage Blob Anonymous Access Enabled"
Enabled: true
LogTypes:
- Azure.MonitorActivity
Severity: High
Description: >
Detects when Azure storage account blob anonymous access is enabled at the account level or when container public access is configured.
Enabling anonymous access allows unauthenticated users to read blob data and may lead to data exposure.
Reports:
MITRE ATT&CK:
- TA0010:T1530 # Exfiltration: Data from Cloud Storage
Tags:
- Exfiltration
- Data from Cloud Storage
Runbook: |
1. Query Azure Monitor Activity logs for all storage account operations by the callerIpAddress in the 6 hours before and after this alert to identify if this is part of a broader configuration change
2. Check if the source IP is associated with known cloud providers, VPN services, or corporate network ranges using threat intelligence
3. Search for data access patterns or blob download events from the affected storage account in the 24 hours after this configuration change to identify potential data exposure
Reference: https://hackingthe.cloud/azure/anonymous-blob-access/
SummaryAttributes:
- resourceId
- callerIpAddress
- correlationId
Tests:
- Name: Storage Account Anonymous Access Enabled
ExpectedResult: true
Log:
{
"time": "2024-12-17T10:30:00.0000000Z",
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
"operationName": "Microsoft.Storage/storageAccounts/write",
"operationVersion": "2021-04-01",
"category": "Administrative",
"resultType": "Success",
"callerIpAddress": "1.1.1.1",
"location": "eastus",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"properties": {
"requestbody": "{\"properties\":{\"allowBlobPublicAccess\":true}}"
},
"tenantId": "87654321-4321-4321-4321-111111111111"
}
- Name: Storage Account Anonymous Access Disabled
ExpectedResult: false
Log:
{
"time": "2024-12-17T11:00:00.0000000Z",
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/securestorageaccount",
"operationName": "Microsoft.Storage/storageAccounts/write",
"operationVersion": "2021-04-01",
"category": "Administrative",
"resultType": "Success",
"callerIpAddress": "2.2.2.2",
"location": "eastus",
"correlationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"properties": {
"requestbody": "{\"properties\":{\"allowBlobPublicAccess\":false}}"
},
"tenantId": "87654321-4321-4321-4321-111111111111"
}
- Name: Container Public Access Set to Blob
ExpectedResult: true
Log:
{
"time": "2024-12-17T12:00:00.0000000Z",
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/blobServices/default/containers/mycontainer",
"operationName": "Microsoft.Storage/storageAccounts/blobServices/containers/write",
"operationVersion": "2021-04-01",
"category": "Administrative",
"resultType": "Success",
"callerIpAddress": "3.3.3.3",
"location": "eastus",
"correlationId": "c3d4e5f6-a7b8-9012-cdef-444444444444",
"properties": {
"requestbody": "{\"properties\":{\"publicAccess\":\"Blob\"}}"
},
"tenantId": "87654321-4321-4321-4321-111111111111"
}
- Name: Container Public Access Set to Container
ExpectedResult: true
Log:
{
"time": "2024-12-17T13:00:00.0000000Z",
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/blobServices/default/containers/publiccontainer",
"operationName": "Microsoft.Storage/storageAccounts/blobServices/containers/write",
"operationVersion": "2021-04-01",
"category": "Administrative",
"resultType": "Success",
"callerIpAddress": "4.4.4.4",
"location": "westus",
"correlationId": "d4e5f6a7-b8c9-0123-def0-333333333333",
"properties": {
"requestbody": "{\"properties\":{\"publicAccess\":\"Container\"}}"
},
"tenantId": "87654321-4321-4321-4321-111111111111"
}
- Name: Container Public Access Set to None
ExpectedResult: false
Log:
{
"time": "2024-12-17T14:00:00.0000000Z",
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/securestorageaccount/blobServices/default/containers/privatecontainer",
"operationName": "Microsoft.Storage/storageAccounts/blobServices/containers/write",
"operationVersion": "2021-04-01",
"category": "Administrative",
"resultType": "Success",
"callerIpAddress": "5.5.5.5",
"location": "eastus",
"correlationId": "e5f6a7b8-c9d0-1234-ef01-222222222222",
"properties": {
"requestbody": "{\"properties\":{\"publicAccess\":\"None\"}}"
},
"tenantId": "87654321-4321-4321-4321-111111111111"
}
- Name: Different Operation
ExpectedResult: false
Log:
{
"time": "2024-12-17T16:00:00.0000000Z",
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
"operationName": "Microsoft.Storage/storageAccounts/delete",
"operationVersion": "2021-04-01",
"category": "Administrative",
"resultType": "Success",
"callerIpAddress": "7.7.7.7",
"location": "eastus",
"correlationId": "a7b8c9d0-e1f2-3456-0123-567890123456",
"tenantId": "87654321-4321-4321-4321-111111111111"
}
Detection logic
Condition
resultType in ["Success", "Succeeded"]
operationName eq "MICROSOFT.STORAGE/STORAGEACCOUNTS/WRITE" or operationName in ["MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES/WRITE", "MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES/CONTAINERS/WRITE"]
This rule also runs imperative logic the parser cannot express as a filter; the conditions above are the structured part it could extract.
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
operationName | eq |
|
operationName | in |
|
resultType | in |
|