Azure Storage Account HTTPS-Only Traffic Disabled
Description
Detects when Azure storage account HTTPS-only traffic requirement is disabled. Disabling HTTPS-only allows unencrypted HTTP connections, which is a security downgrade that may expose data in transit.
Query · python
from panther_azureactivity_helpers import (
azure_activity_alert_context,
azure_activity_success,
azure_parse_json_string,
extract_resource_name_from_id,
)
STORAGE_ACCOUNT_WRITE = "MICROSOFT.STORAGE/STORAGEACCOUNTS/WRITE"
def rule(event):
requestbody = azure_parse_json_string(event.deep_get("properties", "requestbody", default=None))
return all(
[
event.get("operationName", "").upper() == STORAGE_ACCOUNT_WRITE,
requestbody.get("properties", {}).get("supportsHttpsTrafficOnly") is False,
requestbody.get("location") is None,
azure_activity_success(event),
]
)
def title(event):
resource_id = event.get("resourceId", "")
storage_account = extract_resource_name_from_id(
resource_id, "storageAccounts", default="<UNKNOWN_ACCOUNT>"
)
return f"Azure Storage Account HTTPS-only traffic disabled on [{storage_account}]"
def alert_context(event):
context = azure_activity_alert_context(event)
return context
Analyst notes
- Query Azure Monitor Activity logs for all storage account operations by the callerIpAddress in the 6 hours before and after this alert to identify patterns
- Check if the source IP is associated with known cloud providers, VPN services, or corporate network ranges using threat intelligence
- Search for other Azure storage account security downgrades or suspicious configuration changes from the same user or IP in the past 7 days