Hijack Execution Flow T1574

Tactics: Stealth, Execution

Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs. Hijacking execution flow can be for the purposes of persistence, since this hijacked execution may reoccur over time. Adversaries may also use these mechanisms to elevate privileges or evade defenses, such as application control or other restrictions on execution.

Events covered

42 catalog events are tagged with this technique by at least one rule.

ProviderEventTitle
SysmonEvent ID 1Process creation
SysmonEvent ID 7Image loaded
SysmonEvent ID 11FileCreate
SysmonEvent ID 12RegistryEvent (Object create and delete)
SysmonEvent ID 13RegistryEvent (Value Set)
SysmonEvent ID 14RegistryEvent (Key and Value Rename)
SysmonEvent ID 23FileDelete (File Delete archived)
SysmonEvent ID 26FileDeleteDetected (File Delete logged)
Security-AuditingEvent ID 4648A logon was attempted using explicit credentials.
Security-AuditingEvent ID 4657A registry value was modified.
Security-AuditingEvent ID 4663An attempt was made to access an object.
Security-AuditingEvent ID 4688A new process has been created.
Security-AuditingEvent ID 6416A new external device was recognized by the system.
Defender-DeviceFileCertificateInfoanyFile signing certificate information
Defender-DeviceFileEventsFileCreatedFile created
Defender-DeviceFileEventsFileModifiedFile modified
Defender-DeviceImageLoadEventsanyImage load
Defender-DeviceInfoanyDevice information
Defender-DeviceProcessEventsanyProcess activity
Defender-DeviceRegistryEventsRegistryValueSetRegistry value set
ESFexecProcess Execution
ESFwriteFile Write
Linux-AuditdEvent ID 1302PATH
Linux-AuditdEvent ID 1307CWD
Linux-AuditdEvent ID 1309EXECVE
DHCP-ServerEvent ID 1031[EVENT_SERVER_CALLOUT_UNHANDLED_EXCEPTION] The installed server callout .dll file has caused an exception.
DHCP-ServerEvent ID 1032[EVENT_SERVER_CALLOUT_LOAD_EXCEPTION] The installed server callout .dll file has caused an exception. The .dll file couldn't be loaded.
DHCP-ServerEvent ID 1033[EVENT_SERVER_CALLOUT_LOAD_SUCCESS] The DHCP service has successfully loaded one or more callout DLLs.
DHCP-ServerEvent ID 1034[EVENT_SERVER_READ_ONLY_GROUP_ERROR] The DHCP service has failed to load one or more callout DLLs.
DNS-Server-ServiceEvent ID 150The DNS server could not load or initialize the plug-in DLL Name.
DNS-Server-ServiceEvent ID 770A DNS server plugin DLL has been loaded from location param1 on server param2.
DNS-Server-ServiceEvent ID 771The V1 plugin interface has been implemented in server level plugin DLL.
PowerShellEvent ID 4103Payload Context: ContextInfo User Data: UserData.
PowerShellEvent ID 4104Creating Scriptblock text (MessageNumber of MessageTotal).
PrintServiceEvent ID 321File(s) param1 associated with printer param2 were added or updated.
PrintServiceEvent ID 354param1 initialization failed at param2.
PrintServiceEvent ID 808The print spooler failed to load a plug-in module PluginDllName, error code ErrorCode.
Security-MitigationsEvent ID 11Process 'ProcessPath' (PID ProcessId) would have been blocked from loading the non-Microsoft-signed binary 'ImageName'.
Security-MitigationsEvent ID 12Process 'ProcessPath' (PID ProcessId) was blocked from loading the non-Microsoft-signed binary 'ImageName'.
PowerShellEvent ID 800Event ID 800
Sysmon-for-LinuxEvent ID 1Process Create
Sysmon-for-LinuxEvent ID 11File created

Authoring guide

These 323 rules share fields, values, and exclusions.

Fields filtered most (115 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
Image114ends_with 62, starts_with 28, eq 15, contains 12, is_not_null 12, wildcard 9, in 2, is_null 1, regex_match 1, \sc.exe, /boot/*, /dev/shm/*, ./*
EventType90eq 59, in 22, ne 9, starts_with 2exec, start, creation, ProcessRollup2, rename
ImageLoaded87ends_with 59, starts_with 41, contains 19, wildcard 10, eq 9, in 2C:\Program Files (x86)\, C:\Program Files\, C:\Windows\SysWOW64\, C:\Windows\System32\, C:\Windows\WinSxS\
process_basename66eq 45, in 18, starts_with 4, wildcard 3, is_not_null 2, ne 1bash, csh, dash, dllhost.exe, awk
event.type63eq 57, in 3, ne 3start, creation, change, deletion, process_started
TargetFilename55wildcard 24, starts_with 10, contains 8, in 7, ends_with 6, eq 3, is_not_null 1, match 1, regex_match 1/etc/ld.so.preload, .dll, /*GCONV_PATH*, /boot/efi/EFI/*/grub.cfg, /boot/grub/grub.cfg
CommandLine37contains 33, ends_with 3, starts_with 2, is_null 1, match 1, regex_match 1, wildcard 1config, /config, /serverlevelplugindll, DCLCWPDTSD, REG ADD
parent_process_basename31eq 23, in 8, is_not_null 1, starts_with 1bash, csh, dash, apt, mmc.exe
process.args26eq 16, in 8, starts_with 8, wildcard 6, contains 3-c, --install, -D, -i, .git/hooks/*
dll.Ext.relative_file_creation_time22le 15, lt 7500, 5000, 3600, 86400, 900
OriginalFileName19eq 18, in 1, is_not_null 1, is_null 1sc.exe, , -, RUNDLL32.EXE, AddInProcess.exe
dll.Ext.relative_file_name_modify_time18le 12, lt 6500, 5000, 3600, 172800, 900
SignatureStatus17eq 14, ne 3Valid, trusted, Expired, Unavailable, unavailable
Signed16eq 16true, false
ParentImage15ends_with 5, is_not_null 5, eq 3, contains 2, starts_with 2, wildcard 1, /var/lib/dpkg/info/*, ?:\Users\*\AppData\Local\Temp\*\DismHost.exe, ?:\Windows\Explorer.exe, ?:\Windows\System32\services.exe

Top indicator values (5408 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
391036
EventTypeeq
start
20388
EventTypeeq
exec
18547
EventTypeeq
connection_attempted
772
EventTypein
exec
12180
EventTypein
start
12157
EventTypein
ProcessRollup2
11119
EventTypein
exec_event
8135
Imageis_not_null
12155
EventIDeq
7
1139
Signedeq
true
102
ImageLoadedstarts_with
C:\Windows\SysWOW64\
9
ImageLoadedstarts_with
C:\Windows\System32\
9
ImageLoadedstarts_with
C:\Windows\WinSxS\
9
ImageLoadedstarts_with
C:\Program Files (x86)\
8
ImageLoadedstarts_with
C:\Program Files\
8
EventTypene
deletion
890
Hashesis_not_null
822
file.Ext.header_bytesstarts_with
4d5a*
845
process.code_signature.trustedeq
true
814
process_basenameeq
dllhost.exe
819
process_basenamein
bash
8181
process_basenamein
csh
8148
process_basenamein
dash
8150
process_basenamein
fish
8151
process_basenamein
ksh
8149
process_basenamein
sh
8180
process_basenamein
tcsh
8145
process_basenamein
zsh
8180
dll.Ext.relative_file_creation_timele
500
711

Exclusions (2301 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
process.code_signature.trustedeq
true
14
Imagein
/usr/bin/dockerd
12
Imagein
/usr/bin/podman
12
Imagein
./usr/bin/podman
11
Imagein
/bin/podman
11
Imagein
/usr/bin/dnf
11
Imagein
/usr/sbin/dockerd
11
Imagein
/bin/dnf
10
Imagein
/bin/dnf-automatic
10
Imagein
/bin/dockerd
10
Imagein
/bin/microdnf
10
Imagein
/bin/rpm
10
Imagein
/bin/snapd
10
dll.code_signature.statuswildcard
errorCode_endpoint*
12
dll.code_signature.statuswildcard
trusted
11

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 134 rules

Elastic 146 rules

Splunk 37 rules

Kusto 6 rules