Event Triggered Execution T1546

Tactics: Privilege Escalation, Persistence

Adversaries may establish persistence and/or elevate privileges using system mechanisms that trigger execution based on specific events. Various operating systems have means to monitor and subscribe to events such as logons or other user activity such as running specific applications/binaries. Cloud environments may also support various functions and services that monitor and can be invoked in response to specific cloud events.

Events covered

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

ProviderEventTitle
SysmonEvent ID 1Process creation
SysmonEvent ID 3Network connection
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 19WmiEvent (WmiEventFilter activity detected)
SysmonEvent ID 20WmiEvent (WmiEventConsumer activity detected)
SysmonEvent ID 21WmiEvent (WmiEventConsumerToFilter activity detected)
SysmonEvent ID 23FileDelete (File Delete archived)
SysmonEvent ID 26FileDeleteDetected (File Delete logged)
Security-AuditingEvent ID 4624An account was successfully logged on.
Security-AuditingEvent ID 4656A handle to an object was requested.
Security-AuditingEvent ID 4657A registry value was modified.
Security-AuditingEvent ID 4662An operation was performed on an object.
Security-AuditingEvent ID 4663An attempt was made to access an object.
Security-AuditingEvent ID 4688A new process has been created.
Security-AuditingEvent ID 5136A directory service object was modified.
Defender-AlertEvidenceanyAlert evidence
Defender-DeviceEventsanyDefender event
Defender-DeviceFileEventsanyFile activity
Defender-DeviceNetworkEventsanyNetwork activity
Defender-DeviceNetworkEventsConnectionSuccessConnection succeeded
Defender-DeviceProcessEventsanyProcess activity
Defender-DeviceRegistryEventsRegistryValueSetRegistry value set
ESFexecProcess Execution
ESFcreateFile or Directory Create
ESFwriteFile Write
Linux-AuditdEvent ID 1302PATH
Linux-AuditdEvent ID 1307CWD
MSSQLSERVEREvent ID 8128Event ID 8128
PowerShellEvent ID 4103Payload Context: ContextInfo User Data: UserData.
PowerShellEvent ID 4104Creating Scriptblock text (MessageNumber of MessageTotal).
ProcessExitMonitorEvent ID 3000The process 'param1' exited with exit code param2.
WMI-ActivityEvent ID 5859Namespace = Operation_EssStarted.NamespaceName; NotificationQuery = Operation_EssStarted.Query; OwnerName = Operation_EssStarted.User; HostProcessID = Operation_EssStarted.Processid; Provider= Operation_EssStarted.Provider, queryID = Operation_EssStarted.queryid; PossibleCause = Operation_EssStarted.PossibleCause.
WMI-ActivityEvent ID 5861Namespace = Operation_ESStoConsumerBinding.Namespace; Eventfilter = Operation_ESStoConsumerBinding.ESS (refer to its activate eventid:5859); Consumer = Operation_ESStoConsumerBinding.CONSUMER; PossibleCause = Operation_ESStoConsumerBinding.PossibleCause.
PowerShellEvent ID 800Event ID 800
Sysmon-for-LinuxEvent ID 1Process Create
Sysmon-for-LinuxEvent ID 11File created

Authoring guide

These 245 rules share fields, values, and exclusions.

Fields filtered most (138 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventType63eq 39, in 16, ne 6, starts_with 3exec, creation, modification, start, connection_attempted
event.type57eq 49, in 4, ne 4start, change, creation, deletion, process_started
Image52ends_with 26, is_not_null 10, eq 7, starts_with 6, contains 5, wildcard 3, /boot/*, /dev/shm/*, \cmd.exe, \reg.exe
TargetObject45contains 17, ends_with 16, wildcard 13, eq 1, regex_match 1, starts_with 1\SOFTWARE\Microsoft\NetSh, HKEY_USERS\*Classes\*\DelegateExecute\, HKEY_USERS\*Classes\*\InprocServer32\, HKEY_USERS\*Classes\*\TreatAs\, HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image...
TargetFilename44wildcard 20, contains 11, ends_with 9, starts_with 9, eq 1, in 1, match 1*site-packages*, /Library/Fonts/*, /Library/Graphics/*, /Library/Managed Preferences/*, /System/Library/Preferences/*
CommandLine41contains 30, regex_match 8, in 3, ends_with 2, wildcard 2, is_null 1, ne 1(?i)(vi|vim|nano|visudo|edit|copy\s+con|cat|more|gc|get-c..., (?i)Debugger.+\x5c(cmd|pwsh|powershell)\.exe, (?i)(sethc|utilman|osk|Magnify|Narrator|DisplaySwitch|atb..., * install *, DisplaySwitch.exe
process_basename39eq 17, in 16, wildcard 9, starts_with 2, is_not_null 1bash, csh, dash, cp, mv
Details33contains 12, eq 10, is_not_null 9, length_compare 3, regex_match 2, ge 1, is_null 1, wildcard 1, (Empty), %temp%, %tmp%, 0
EventID31eq 29, in 24688, 1, 13, 4104, 11
parent_process_basename22eq 16, in 7, wildcard 2, starts_with 1bash, csh, dash, ScreenSaverEngine, apt
process.args22eq 10, starts_with 7, in 6, wildcard 3, contains 1, ends_with 1-c, --install, -i, .git/hooks/*, * /dev/shm/*
OriginalFileName16eq 15, starts_with 1Cmd.Exe, reg.exe, RUNDLL32.EXE, pwsh.dll, sdbinst.exe
file.name12eq 4, in 4, wildcard 2, is_not_null 1, starts_with 1.bash_login, .bash_profile, .bashrc, com.apple.screensaver.*.plist, release_agent
ParentImage11ends_with 6, eq 2, contains 1, starts_with 1, wildcard 1\winlogon.exe, ., /dev/shm/*, /etc/profile.d/*, /usr/sbin/sshd
file.extension9eq 5, in 3, is_null 1pth, service, , app, command

Top indicator values (1808 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
301036
event.typeeq
change
1189
event.typeeq
creation
548
EventTypeeq
exec
16547
EventTypeeq
connection_attempted
672
EventTypeeq
modification
672
process_basenamein
bash
12181
process_basenamein
sh
12180
process_basenamein
zsh
12180
process_basenamein
csh
10148
process_basenamein
dash
9150
process_basenamein
fish
9151
process_basenamein
ksh
9149
process_basenamein
tcsh
9145
Imageis_not_null
10155
Detailsis_not_null
989
EventIDeq
4688
7284
process_basenamewildcard
python*
751
process_basenamewildcard
osascript
531
EventTypein
creation
632
EventTypein
exec
6180
EventTypein
rename
525
EventTypein
start
5157
EventTypene
deletion
690
process.code_signature.existseq
false
6118
process.code_signature.trustedeq
false
6114
Imageends_with
\cmd.exe
5132
parent_process_basenamein
bash
560
parent_process_basenamein
sh
560
parent_process_basenamein
zsh
560

Exclusions (1070 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
Imagein
/usr/bin/podman
12
Imagein
/usr/bin/dockerd
11
Imagein
./usr/bin/podman
10
Imagein
/bin/podman
10
Imagein
/bin/yum
10
Imagein
/usr/bin/dnf
10
Imagein
/usr/bin/yum
10
Imagein
/usr/sbin/dockerd
10
Imagein
/bin/autossl_check
9
Imagein
/bin/chef-client
9
Imagein
/bin/dnf
9
Imagein
/bin/dnf-automatic
9
Imagein
/bin/dockerd
9
Imagein
/bin/microdnf
9
Imagein
/bin/puppet
9

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 77 rules

Elastic 94 rules

Splunk 43 rules

Kusto 29 rules

Panther 2 rules