VeriKQL by Kaushik Saha

T1574 Hijack Execution Flow

ExecutionStealthon attack.mitre.org

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

How MITRE detects it

DET0218 Detection Strategy for Hijack Execution Flow across OS platforms.

AN0609 Windows

Unusual modifications to service binary paths, registry keys, or DLL load paths resulting in alternate execution flow. Defender observes registry key modifications, suspicious file writes into system directories, and processes loading libraries from abnormal paths.

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

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

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

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

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

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

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.

AN0610 Linux

Adversary manipulation of shared library paths, environment variables, or replacement of service binaries. Defender observes suspicious modifications in /etc/ld.so.preload, service config changes, or file writes replacing existing executables.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLopen/write syscalls targeting /etc/ld.so.preload or binaries in /usr/binNot mapped to Sentinel yet.
linux:syslogService restart with modified executable pathNot mapped to Sentinel yet.
linux:osqueryProcess execution with LD_PRELOAD or modified library pathNot mapped to Sentinel yet.

AN0611 macOS

Abuse of DYLD_INSERT_LIBRARIES or hijacking framework paths for malicious libraries. Defender observes processes invoking abnormal dylibs, modified plist files, or persistence entries pointing to altered binaries.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogExecution of process with DYLD_INSERT_LIBRARIES setNot mapped to Sentinel yet.
macos:unifiedlogModified application plist or binary replacement in /ApplicationsNot mapped to Sentinel yet.
macos:unifiedlogDylib loaded from abnormal locationNot mapped to Sentinel yet.

Content Hub rules tagged with it (7)

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 T1574 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

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

Showing 25 of 121: 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.