VeriKQL by Kaushik Saha

T1204 User Execution

Executionon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0478 User Execution – multi-surface behavior chain (documents/links → helper/unpacker → LOLBIN/child → egress)

AN1314 Windows

Cause→effect chain: (1) User-facing app (Office/PDF/archiver/browser) records an open/click or abnormal event, then (2) a downloaded file is created in a user-writable path and/or decompressed, (3) the parent user app spawns a living-off-the-land binary (e.g., powershell/cmd/mshta/rundll32/msiexec/wscript/expand/zip) or installer, and (4) immediate outbound HTTP(S)/DNS/SMB from the same lineage.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:ApplicationEventCode=1000
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Application") | where EventID in (1000)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Application") | where EventID in (1000)
WinEventLog:SysmonEventCode=11
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (11)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (11)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SecurityEventCode=4688
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4688)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonEventCode=3, 22
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (3, 22)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (3, 22)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN1315 Linux

Cause→effect chain: (1) User app/browser/archiver logs an open/click or abnormal exit, (2) new executable/script/archive extracted into $HOME/Downloads, /tmp, or ~/.cache, (3) parent app spawns shell/interpreter (bash/sh/python/node/curl/wget) or desktop file, and (4) new outbound connection(s) from the child lineage.

MITRE log sourceIn Microsoft Sentinel
linux:syslogopened document|clicked link|segfault|abnormal termination|sandboxNot mapped to Sentinel yet.
auditd:SYSCALLopenNot mapped to Sentinel yet.
auditd:SYSCALLcreatNot mapped to Sentinel yet.
auditd:SYSCALLrename,chmodNot mapped to Sentinel yet.
auditd:SYSCALLexecveNot mapped to Sentinel yet.
NSM:Flownew outbound connection from browser/office lineageNot mapped to Sentinel yet.

AN1316 macOS

Cause→effect chain: (1) unified logs show application open/click or crash for Safari/Chrome/Office/Preview/archiver, (2) file write/extraction into ~/Downloads, /private/var/folders/* or ~/Library, (3) parent app spawns osascript/bash/zsh/curl/python or opens a quarantined app with Gatekeeper prompts, (4) network egress from child.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogopened document|clicked link|EXC_BAD_ACCESS|abort|LSQuarantineNot mapped to Sentinel yet.
fs:fileeventscreate/write/rename in user-writable pathsNot mapped to Sentinel yet.
macos:osqueryexecNot mapped to Sentinel yet.
NSM:Flownew outbound connection from exploited lineageNot mapped to Sentinel yet.

AN1317 Containers

Cause→effect chain in CI/dev desktops: (1) user triggers container run/pull after opening a doc/link/script, (2) newly created image/container uses unexpected external registry or entrypoint, (3) container starts and immediately egresses to suspicious destinations.

MITRE log sourceIn Microsoft Sentinel
docker:eventscreated,started: new container from untrusted registry or unexpected entrypointNot mapped to Sentinel yet.
docker:eventsstartNot mapped to Sentinel yet.
NSM:Flowcontainer egress to unknown IPs/domainsNot mapped to Sentinel yet.

AN1318 IaaS

Cause→effect chain in cloud consoles: (1) user clicks link then invokes instance/image creation via API, (2) instance/image originates from external AMI or unknown image, (3) instance immediately egresses or retrieves payloads.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailRunInstances,CreateImageNot mapped to Sentinel yet.
AWS:CloudTrailStartInstancesNot mapped to Sentinel yet.
gcp:vpcflowfirst 5m egress to unknown ASNsNot mapped to Sentinel yet.

Content Hub rules tagged with it (111)

Showing 25 of 111.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1204 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

57 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Showing 25 of 57: stable rules first, then by level.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

Sub-techniques

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.