Skip to main content
Lab Verified: 2026-09-28

Storm-3168 Abuses Leaked Azure SPNs to Delete Cloud Resources Hunt Query

Initial access originated from Azure Service Principal credentials (client ID, secret, tenant ID) leaked in a public GitHub issue comment and recovered through revision edit history.

// Microsoft Sentinel - Azure Activity Log Hunting for Storm-3168 Cloud Destruction
// Identifies rapid resource deletion bursts and sensitive configuration reads by Service Principals
let DeletionThreshold = 5;
AzureActivity
| where TimeGenerated >= ago(24h)
| where OperationNameValue in~ (
    "Microsoft.Storage/storageAccounts/delete",
    "Microsoft.KeyVault/vaults/delete",
    "Microsoft.Web/sites/delete",
    "Microsoft.Sql/servers/databases/delete",
    "Microsoft.Authorization/locks/delete"
)
| extend CallerAppId = tostring(parse_json(Claims).appid)
| where isnotempty(CallerAppId)
| summarize 
    DeletionCount = count(),
    TargetedResources = make_set(Resource),
    TargetedResourceGroups = make_set(ResourceGroup),
    Operations = make_set(OperationNameValue),
    FirstSeen = min(TimeGenerated),
    LastSeen = max(TimeGenerated)
    by CallerAppId, Caller, SubscriptionId, bin(TimeGenerated, 15m)
| where DeletionCount >= DeletionThreshold
| extend DurationMinutes = datetime_diff('minute', LastSeen, FirstSeen)
| project FirstSeen, LastSeen, CallerAppId, Caller, SubscriptionId, DeletionCount, Operations, TargetedResources, TargetedResourceGroups
| sort by DeletionCount desc
Need to defang indicators or test triage logs?
Use our zero-telemetry client-side parser to extract, defang & format indicators.
Open SOC Defanger Workbench
Target Log Sources & Tables
DeviceProcessEvents

Ensure telemetry connector is actively ingesting this table into your Sentinel workspace or Defender XDR.

False Positives & Tuning Guidance

Legitimate administrative software deployment scripts, authorized security testing, or system maintenance tasks.

Source Incident Analysis

Storm-3168 Abuses Leaked Azure SPNs to Delete Cloud Resources

Disclosed: 2026-09-28

Read Attack Chain
DETECTION_ENGINEERING_FEEDBACK

Have tuning recommendations, encounter false positives in your environment, or want to contribute rule improvements?

Submit Feedback →