Rules for T1059
How the 120 rules tagged with T1059 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.
Sub-techniques: T1059.001T1059.003T1059.004T1059.005T1059.006T1059.007
Tables and parsers
SecurityEvent 13Sonrai_Tickets_CL 9DeviceProcessEvents 7Syslog 7CyfirmaIndicators_CL 6AzureActivity 4CyfirmaVulnerabilities_CL 4DeviceEvents 4Pathlock_TDnR_CL 4WindowsEvent 4AzureDiagnostics 3ContrastADRAttackEvents_CL 3DynatraceSecurityProblems 3MorphisecAlerts_CL 3_Im_NetworkSession 3
Filtered columns
SecurityEvent.EventID46889Sonrai_Tickets_CL.action_d1121314151SecurityEvent.CommandLine.decode('base64')2.decode64(2TVqQAAMAAAAEAAA2base64 --decode2(.*)>(.*)1DeviceProcessEvents.InitiatingProcessFileName(?i)^(php-fpm[\d.]*|php[\d.]*|lsphp[\d]*|apache2|httpd)$1beasvc.exe1excel.exe1explorer.exe1httpd.exe1CyfirmaIndicators_CL.ConfidenceScoreCyfirmaIndicators_CL.RecommendedActionsBlock4Monitor2CyfirmaIndicators_CL.RolesMalware6CyfirmaIndicators_CL.patternfile:hashes2DeviceProcessEvents.FileNamecmd.exe2powershell.exe2arp.exe1ash1bash1DeviceEvents.ActionTypePowerShellCommand2AmsiScriptContent1ExploitGuardNonMicrosoftSignedBlocked1DeviceProcessEvents.ProcessCommandLine%temp%1.jse1/bin/bash1/bin/sh1base64 -d1Pathlock_TDnR_CL.DataSourceBATCH_JOBS1FUNCTION_MODULE_TEST1OS_CMD_CHANGES1TRANSPORT_LOG1Syslog.Facilitycron2user2Syslog.SyslogMessageAUOMS_EXECVE3CMD1corba1dns1iiop1WindowsEvent.EventData-encodedCommand1.decode('base64')1.decode64(1TVqQAAMAAAAEAAA1\Microsoft\Windows\CurrentVersion1
Joins
AzureDiagnostics ⋈ AzureDiagnosticsAzureActivity ⋈ AzureActivitySyslog ⋈ Syslog_Im_NetworkSession ⋈ _Im_ProcessEvent(derived) ⋈ (derived)AGWFirewallLogs ⋈ AGWFirewallLogsAWSGuardDuty ⋈ GCPAuditLogsAlertEvidence ⋈ AlertInfoAlertEvidence ⋈ DeviceLogonEventsAlertInfo ⋈ DeviceLogonEventsContrastADRAttackEvents_CL ⋈ ContrastADRIncidents_CLGCPAuditLogs ⋈ SecurityAlertSecurityEvent ⋈ SecurityEventThreatIntelIndicators ⋈ _Im_FileEventThreatIntelIndicators ⋈ imFileEvent
Idioms
arg_max (latest or earliest row per key) 15make_set 15mv-expand (unpack arrays) 12dcount 7join with no kind= (innerunique: duplicate left keys collapse) 3arg_min (latest or earliest row per key) 1leftanti join (A without B) 1make-series (time series, anomaly) 1make_list 1
Severity
Medium 50High 40Low 6Informational 2
Schedules (analytic rules)
every 5m over 5m 32every 1h over 1h 21every 1d over 1d 20every 15m over 15m 3every 10m over 10m 2every 12h over 12h 2every 6h over 6h 2every 15m over 1d 1every 1d over 14d 1every 1h over 14d 1every 30m over 1d 1every 30m over 1h 1every 30m over 30m 1every 5m over 1d 1
Look-back windows in ago()
1h 324h 35m 37d 310m 114d 11d 12d 1
Every rule tagged with it
- SUNBURST and SUPERNOVA backdoor hashes (Normalized File Events)
- SUNBURST suspicious SolarWinds child processes (Normalized Process Events)
- Base64 encoded Windows process command-lines (Normalized Process Events)
- PHP Worker Process Spawning Shell/Recon Tool
- Midnight Blizzard - Script payload stored in Registry
- AWS Security Hub - Detect SSM documents public sharing enabled
- AWSCloudTrail - EC2 Startup Shell Script Changed
- AWSCloudTrail - EC2 Instance Launched Without Key Pair
- Possible exploitation of Apache log4j component detected
- Suspicious Base64 download activity detected
- Suspicious Shell script detected
- Powershell Empire Cmdlets Executed in Command Line
- Azure Machine Learning Write Operations
- New CloudShell User
- Azure Machine Learning Write Operations
- Rare Custom Script Extension
- Execution attempts stateful anomaly on database
- Front Door Premium WAF - SQLi Detection
- App Gateway WAF - SQLi Detection
- CiscoISE - Command executed with the highest privileges from new IP
- CiscoISE - Command executed with the highest privileges by new user
- Cisco Cloud Security - Hack Tool User-Agent Detected
- Contrast ADR - EDR Alert Correlation
- Contrast ADR - Exploited Attack Event
- Contrast ADR - Exploited Attack in Production
- IdiraEPM - Powershell downloads
- IdiraEPM - Powershell scripts execution parameters
- Cyble Vision Alerts Malicious Ads Detected
- Potential Maldoc Execution Chain Observed
- CYFIRMA - Attack Surface - Configuration High Rule
- CYFIRMA - Attack Surface - Configuration Medium Rule
- CYFIRMA - High severity File Hash Indicators with Block Action and Malware
- CYFIRMA - Medium severity File Hash Indicators with Block Action and Malware
- CYFIRMA - High severity Malicious Network Indicators Associated with Malware - Block Recommended Rule
- CYFIRMA - Medium severity Malicious Network Indicators Associated with Malware - Block Recommended Rule
- CYFIRMA - High severity Malicious Network Indicators Associated with Malware - Monitor Recommended Rule
- CYFIRMA - Medium severity Malicious Network Indicators Associated with Malware - Monitor Recommended Rule
- CYFIRMA - High Severity Asset based Vulnerabilities Rule Alert
- CYFIRMA - Medium Severity Asset based Vulnerabilities Rule Alert
- CYFIRMA - High Severity Attack Surface based Vulnerabilities Rule Alert
- CYFIRMA - Medium Severity Attack Surface based Vulnerabilities Rule
- Darktrace Model Breach (Legacy)
- Darktrace AI Analyst (Legacy)
- Darktrace Incident Event
- Darktrace Model Alert
- Dynatrace Application Security - Attack detection
- Dynatrace Application Security - Code-Level runtime vulnerability detection
- Dynatrace Application Security - Non-critical runtime vulnerability detection
- Dynatrace Application Security - Third-Party runtime vulnerability detection
- Dynatrace - Problem detection
- Suspicious Powershell Commandlet Executed
- Windows Binaries Executed from Non-Default Directory
- Windows Binaries Lolbins Renamed
- Base64 encoded Windows process command-lines
- Process executed from binary hidden in Base64 encoded file
- Execution of File with One Character in the Name
- Suspicious Powershell Commandlet Execution
- Field Effect MDR Alert: ARO Alert
- FortiNDR Cloud - Security Event Detected
- Google Threat Intelligence - Threat Hunting Hash
- Google SecOps - Single-Event Alert
- Kubernetes secret enumeration followed by pod exec
- Azure VM web process to IMDS token theft chain
- Web service child process with egress
- Browser Spawning Suspicious Applications - Potential Exploit or Social Engineering
- Potential Maldoc Execution Chain Observed
- Remote Atera Agent Download - Command Line
- Process Creation with Suspicious CommandLine Arguments
- PowerShell or non-browser mailbox login activity
- Deimos Component Execution
- Java Executing cmd to run Powershell
- Doppelpaymer Stop Services
- Detect Suspicious Commands Initiated by Webserver Processes
- Office Apps Launching Wscipt
- Potential Ransomware activity related to Cobalt Strike
- Qakbot Discovery Activies
- SUNBURST and SUPERNOVA backdoor hashes
- SUNBURST network beacons
- TEARDROP memory-only dropper
- SUNBURST suspicious SolarWinds child processes
- Critical Severity Incident
- Device Alert Surge
- Process-Level Anomaly
- Cross-Cloud Suspicious Compute resource creation in GCP
- Cross-Cloud Suspicious user activity observed in GCP Envourment
- Detect Outbound LDAP Traffic(ASIM Network Session schema)
- Pathlock TDnR - SAP Batch Job Events
- Pathlock TDnR - Function Module Tested in Production
- Pathlock TDnR - Logical OS Command Changes
- Pathlock TDnR - TMS Transport and Import Events
- RecordedFuture Threat Hunting Hash All Actors
- Red Canary Threat Detection
- Critical Risks
- Vulerabilities
- SAP BTP - Cloud Integration artifact deployment
- SonicWall - Allowed SSH, Telnet, and RDP Connections
- New Sonrai Ticket
- Sonrai Ticket Assigned
- Sonrai Ticket Closed
- Sonrai Ticket Escalation Executed
- Sonrai Ticket Escalation Executed
- Sonrai Ticket Reopened
- Sonrai Ticket Risk Accepted
- Sonrai Ticket Snoozed
- Sonrai Ticket Updated
- Crypto currency miners EXECVE
- Rare process running on a Linux host
- Linux scheduled task Aggregation
- Editing Linux scheduled tasks through Crontab
- ApexOne - Suspicious commandline arguments
- TrendAI Vision One - Create Incident for Workbench Alerts
- Anomalous Code Execution on a Virtual Machine
- Vaikora - Behavioral anomaly detected
- Vaikora - High severity AI agent action detected
- Detect Local File Inclusion(LFI) in web requests (ASIM Web Session)
- Detect Kali Linux UserAgent (ASIM Web Session)
- NRT Base64 Encoded Windows Process Command-lines
- NRT Process executed from binary hidden in Base64 encoded file
- Process Execution Frequency Anomaly
- Suspicious Enumeration using Adfind Tool
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.