Rules for T1059.001
How the 12 rules tagged with T1059.001 are built: the tables they read, what they filter, how they join, and when they run. The most used of each; every rule is listed below.
Tables and parsers
SecurityEvent 6CyfirmaIndicators_CL 2DeviceEvents 2AzureActivity 1AzureDiagnostics 1Cisco_Umbrella 1DeviceFileEvents 1DeviceProcessEvents 1W3CIISLog 1WindowsEvent 1
Filtered columns
SecurityEvent.CommandLineirm1iwr1sbt1-[Ee^]{1,2}[NnCcOoDdEeMmAaPpHh^`]+\s+"?[a-zA-Z0-9+/=]{6,}1-b64exec1SecurityEvent.NewProcessNamepowershell.exe3pwsh.exe2bcdedit.exe1cmd.exe1meshagent.exe1CyfirmaIndicators_CL.ConfidenceScoreCyfirmaIndicators_CL.RecommendedActionsBlock2CyfirmaIndicators_CL.RolesMalware2CyfirmaIndicators_CL.patternfile:hashes2AzureActivity.AuthorizationvirtualMachines1AzureActivity.OperationNameValueMicrosoft.Compute/virtualMachines/runCommand/action1AzureDiagnostics.CategorySQLSecurityAuditEvents1AzureDiagnostics.action_id_sBCM1RCM1Cisco_Umbrella.EventTypeproxylogs1Cisco_Umbrella.HttpUserAgentOriginalWindowsPowerShell1DeviceEvents.InitiatingProcessCommandLine-File1DeviceFileEvents.InitiatingProcessFileNameRunCommandExtension.exe1DeviceProcessEvents.InitiatingProcessFileNamecmd.exe1powershell.exe1
Joins
AzureActivity ⋈ AzureActivityAzureActivity ⋈ DeviceEventsAzureActivity ⋈ DeviceFileEventsAzureDiagnostics ⋈ AzureDiagnosticsDeviceEvents ⋈ DeviceEventsDeviceEvents ⋈ DeviceFileEventsDeviceFileEvents ⋈ DeviceFileEvents
Idioms
dcount 1make_list 1make_set 1
Severity
Medium 6High 1
Schedules (analytic rules)
every 1d over 1d 2every 5m over 5m 2every 12h over 12h 1every 15m over 15m 1every 1h over 14d 1
Look-back windows in ago()
7d 3
Every rule tagged with it
- Azure VM Run Command operations executing a unique PowerShell script
- Exchange Worker Process Making Remote Call
- Powershell Empire Cmdlets Executed in Command Line
- Execution attempts stateful anomaly on database
- Cisco Cloud Security - Windows PowerShell User-Agent Detected
- Potential Maldoc Execution Chain Observed
- Powershell Encoded Command Execution
- CYFIRMA - High severity File Hash Indicators with Block Action and Malware
- CYFIRMA - Medium severity File Hash Indicators with Block Action and Malware
- MeshAgent Suspicious Child Process - Potential Malicious RMM Tool Usage
- Methods for Downloading Files with PowerShell
- PowerShell Encoded Command Execution
Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.