Rules for T1021
How the 69 rules tagged with T1021 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: T1021.001T1021.002T1021.003T1021.004T1021.006
Tables and parsers
CommonSecurityLog 9Sonrai_Tickets_CL 9Pathlock_TDnR_CL 5SecurityEvent 4Tailscale_Devices_CL 4Tailscale_Network_CL 4WindowsEvent 3AWSSecurityHubFindings 2BehaviorAnalytics 2CloudAppEvents 2CyfirmaIndicators_CL 2DeviceProcessEvents 2GoogleSecOpsDetectionAlerts 2SecurityAlert 2_Im_NetworkSession 2
Filtered columns
CommonSecurityLog.DeviceProductX Series7Admin Console1illusive1Sonrai_Tickets_CL.action_d1121314151CommonSecurityLog.DeviceEventClassIDNewIncident1asc1campaign1hsc1CommonSecurityLog.DeviceVendorVectra Networks7Silverfort1Pathlock_TDnR_CL.DataSourceGATEWAY_LOG1HANA_DBCON_CONNECT1RFC_DESTINATIONS1SAPROUTER1SCC_LOGS1SecurityEvent.EventID4624446251SecurityEvent.LogonType103WindowsEvent.EventData103WindowsEvent.EventData.LogonType103WindowsEvent.EventID46243AWSSecurityHubFindings.AwsSecurityFindingGeneratorIdsecurity-control/EC2.191security-control/EC2.91AWSSecurityHubFindings.ComplianceSecurityControlIdEC2.191EC2.91AWSSecurityHubFindings.ComplianceStatusFAILED2AWSSecurityHubFindings.RecordStateACTIVE2CloudAppEvents.ActionTypeAdded users and/or groups to shared file/folder1AddedToSecureLink1Invited user to Dropbox and added them to shared file/folder1SecureLinkCreated1
Joins
SecurityEvent ⋈ SecurityEventSecurityEvent ⋈ WindowsEventWindowsEvent ⋈ WindowsEventTailscale_Devices_CL ⋈ Tailscale_Devices_CLAZFWApplicationRule ⋈ AZFWApplicationRuleAZFWApplicationRule ⋈ AZFWNetworkRuleAZFWApplicationRule ⋈ AzureDiagnosticsAZFWNetworkRule ⋈ AZFWNetworkRuleAZFWNetworkRule ⋈ AzureDiagnosticsAzureActivity ⋈ DeviceImageLoadEventsAzureActivity ⋈ DeviceProcessEventsAzureDiagnostics ⋈ AzureDiagnosticsCloudAppEvents ⋈ CloudAppEventsDataverseActivity ⋈ ThreatIntelligenceIndicatorDeviceImageLoadEvents ⋈ DeviceImageLoadEvents
Idioms
arg_max (latest or earliest row per key) 15mv-expand (unpack arrays) 8dcount 7leftanti join (A without B) 6make_set 5make_list 1
Severity
Medium 27High 19Informational 5Low 2
Schedules (analytic rules)
every 5m over 5m 23every 1h over 1h 10every 10m over 10m 4every 15m over 15m 4every 1d over 14d 3every 1d over 8d 2every 1h over 14d 1every 1h over 1d 1every 1h over 2d 1every 5m over 1d 1
Look-back windows in ago()
7d 31h 25m 215m 11d 12d 1
Every rule tagged with it
- Multiple RDP connections from Single System
- RDP Nesting
- Rare RDP Connections
- AWS Security Hub - Detect EC2 Security groups allowing unrestricted high-risk ports
- AWS Security Hub - EC2 instances with public IPv4 address
- Source IP Abnormally Connects to Multiple Destinations
- Cisco Cloud Security - Hack Tool User-Agent Detected
- Contrast ADR - DLP SQL Injection Correlation
- CYFIRMA - High severity File Hash Indicators with Block Action and Malware
- CYFIRMA - Medium severity File Hash Indicators with Block Action and Malware
- Darktrace Model Breach (Legacy)
- Darktrace AI Analyst (Legacy)
- Darktrace Incident Event
- Darktrace Model Alert
- FortiNDR Cloud - Security Event Detected
- GCP Security Command Center - Detect Firewall rules allowing unrestricted high-risk ports
- Google SecOps - Detection Alerts
- Google SecOps - Multi-Event Correlated Alert
- Cloud Run Command followed by kernel persistence indicators on target servers
- Illusive Incidents Analytic Rule
- Dev-0322 Command Line Activity November 2021 (ASIM Version)
- Dev-0322 Command Line Activity November 2021
- Dataverse - TI map IP to DataverseActivity
- BEC - File sharing tactics - Dropbox
- BEC - File sharing tactics - OneDrive or SharePoint
- Anomaly in SMB Traffic(ASIM Network Session schema)
- Remote Desktop Network Traffic(ASIM Network Session schema)
- Pathlock TDnR - SAP RFC Gateway Events
- Pathlock TDnR - HANA Standalone DB Connection Events
- Pathlock TDnR - RFC Connection Changes
- Pathlock TDnR - SAP Router Log Events
- Pathlock TDnR - SAP Cloud Connector Events
- Red Canary Threat Detection
- SAP BTP - Cloud Integration JDBC data source changes
- Silverfort - Lateral movement
- 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
- Excessive Blocked Traffic Events Generated by User
- Tailscale: Device started advertising subnet routes
- Tailscale: Device Tailscale SSH newly enabled
- Tailscale Premium: Mass fan-out from single node
- Tailscale: Devices with Tailscale SSH enabled
- Tailscale Premium: Cross-tag flow matrix
- Tailscale Premium: New src->dst node pairs (lateral movement candidates)
- Tailscale Premium: Tagged services with broad inbound exposure
- Tailscale: Subnet router CIDR exposure inventory
- Canary alerts to incidents
- ApexOne - Inbound remote access connection
- Anomalous First-Time Device Logon
- Anomalous RDP Activity
- VMware ESXi - SSH Enable on ESXi Host
- Vectra Account's Behaviors
- Vectra AI Detect - Suspected Compromised Account
- Vectra AI Detect - Detections with High Severity
- Vectra Host's Behaviors
- Vectra AI Detect - Suspected Compromised Host
- Vectra AI Detect - New Campaign Detected
- Vectra AI Detect - Suspicious Behaviors by Category
- Vectra RUX - Create Incident for Escalated Host Detection or Unresolved Priority Host
- Decoy User Account Authentication Attempt
- Zero Networks Segment - Rare JIT Rule Creation
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.