← Back to SOC feed Coverage →

Gootkit File Delivery

kql MEDIUM Azure-Sentinel
AlertEvidenceDeviceNetworkEvents
huntingmicrosoftofficialransomware
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-05-25T11:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may be using Gootkit to deliver ransomware via command and control channels, leveraging compromised systems to exfiltrate data and deploy malicious payloads. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate potential ransomware attacks before significant damage occurs.

KQL Query

AlertInfo | where Title =~ "Suspected delivery of Gootkit malware" 
// Below section is to surface active follow-on Command and Control as a result of the above behavior. Comment out the below joins to see 
// only file create events where the malware may be present but has not yet been executed. 
//// 
// Get alert evidence 
| join AlertEvidence on $left.AlertId == $right.AlertId 
// Look for C2 
| join DeviceNetworkEvents on $left.DeviceId == $right.DeviceId 
| where InitiatingProcessFileName =~ "wscript.exe" and InitiatingProcessCommandLine has ".zip" and InitiatingProcessCommandLine has ".js" 
| summarize by RemoteUrl, RemoteIP , DeviceId, InitiatingProcessCommandLine, Timestamp, InitiatingProcessFileName, AlertId, Title, AccountName

Analytic Rule Definition

id: 11d725f5-93d8-4b34-a64f-bf8450cdb184
name: Gootkit File Delivery
description: |
  This query surfaces alerts related to Gootkit and enriches with command and control information, which has been observed delivering ransomware.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - AlertInfo
  - AlertEvidence
  - DeviceNetworkEvents
tactics:
- Ransomware
query: |
  AlertInfo | where Title =~ "Suspected delivery of Gootkit malware" 
  // Below section is to surface active follow-on Command and Control as a result of the above behavior. Comment out the below joins to see 
  // only file create events where the malware may be present but has not yet been executed. 
  //// 
  // Get alert evidence 
  | join AlertEvidence on $left.AlertId == $right.AlertId 
  // Look for C2 
  | join DeviceNetworkEvents on $left.DeviceId == $right.DeviceId 
  | where InitiatingProcessFileName =~ "wscript.exe" and InitiatingProcessCommandLine has ".zip" and InitiatingProcessCommandLine has ".js" 
  | summarize by RemoteUrl, RemoteIP , DeviceId, InitiatingProcessCommandLine, Timestamp, InitiatingProcessFileName, AlertId, Title, AccountName

Required Data Sources

Sentinel TableNotes
AlertEvidenceEnsure this data connector is enabled
DeviceNetworkEventsEnsure this data connector is enabled

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Ransomware/Gootkit File Delivery.yaml