Boot or Logon Autostart Execution T1547

Tactics: Persistence, Privilege Escalation

Adversaries may configure system settings to automatically execute a program during system boot or logon to maintain persistence or gain higher-level privileges on compromised systems. Operating systems may have mechanisms for automatically running a program on system boot or account logon. These mechanisms may include automatically executing programs that are placed in specially designated directories or are referenced by repositories that store configuration information, such as the Windows Registry. An adversary may achieve the same goal by modifying or extending features of the kernel.

Events covered

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

ProviderEventTitle
SysmonEvent ID 1Process creation
SysmonEvent ID 5Process terminated
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 4622A security package has been loaded by the Local Security Authority.
Security-AuditingEvent ID 4648A logon was attempted using explicit credentials.
Security-AuditingEvent ID 4656A handle to an object was requested.
Security-AuditingEvent ID 4657A registry value was modified.
Security-AuditingEvent ID 4660An object was deleted.
Security-AuditingEvent ID 4663An attempt was made to access an object.
Security-AuditingEvent ID 4664An attempt was made to create a hard link.
Security-AuditingEvent ID 4688A new process has been created.
Security-AuditingEvent ID 4689A process has exited.
Security-AuditingEvent ID 5136A directory service object was modified.
Security-AuditingEvent ID 5145A network share object was checked to see whether client can be granted desired access.
Security-AuditingEvent ID 6416A new external device was recognized by the system.
Defender-DeviceRegistryEventsRegistryKeyDeletedRegistry key deleted
Defender-DeviceRegistryEventsRegistryValueSetRegistry value set
Defender-DeviceRegistryEventsRegistryValueDeletedRegistry value deleted
Defender-DeviceRegistryEventsRegistryKeyRenamedRegistry key renamed
ESFwriteFile Write (NOTIFY)
Linux-AuditdEvent ID 1300SYSCALL
PowerShellEvent ID 4103Payload Context: ContextInfo User Data: UserData.
PowerShellEvent ID 4104Creating Scriptblock text (MessageNumber of MessageTotal).
PrintServiceEvent ID 316Printer driver param1 for param2 param3 was added or updated.
PrintServiceEvent ID 808The print spooler failed to load a plug-in module PluginDllName, error code ErrorCode.
PrintServiceEvent ID 4909Print Service event 4909 (manifest stub).
PowerShellEvent ID 800Event ID 800
Service-Control-ManagerEvent ID 7045A service was installed in the system.

Authoring guide

Patterns shared across the 202 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (95 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
TargetObject59contains 37, ends_with 20, wildcard 10, regex_match 3, eq 1\software\microsoft\windows\currentversion\run, \software\microsoft\windows\currentversion\policies\explorer\run, \\software\\microsoft\\windows\\currentversion\\policies\..., \\software\\microsoft\\windows\\currentversion\\run, \\software\\wow6432node\\microsoft\\windows\\currentversion\\run
Details43eq 19, contains 13, ends_with 10, is_null 8, is_not_null 5, starts_with 4, length_compare 2, regex_match 1(Empty), .dll, -encodedcommand , -noni , -noninteractive
Image43ends_with 27, eq 17, starts_with 10, contains 4, is_not_null 2, is_null 2, regex_match 2, wildcard 1\reg.exe, \appdata\roaming\spotify\spotify.exe, \net.exe, \net1.exe, \officeclicktorun.exe
EventID38eq 384104, 4688, 4103, 13, 1
TargetFilename33wildcard 15, contains 13, ends_with 5, starts_with 4, eq 2, regex_match 1?:\programdata\microsoft\windows\start menu\programs\startup\*, ?:\users\*\appdata\roaming\microsoft\windows\start..., \start menu\programs\startup\, c:\programdata\microsoft\windows\start menu\programs\startup\*, c:\users\*\appdata\roaming\microsoft\windows\start...
process_name32eq 23, in 4, match 2, wildcard 2, ne 1, starts_with 1kmod, kernel, modprobe, (?i)\qmicrosoft\windows\start menu\programs\startup\e, bash
event.type31eq 22, ne 6, in 4start, change, deletion, creation, process_started
EventType28eq 19, in 9exec, exec_event, ProcessRollup2, modification, RegistryValueSet
host.os.type27eq 27
CommandLine26contains 22, regex_match 2, wildcard 2, in 1, match 1 add , /cfg, /configure, /db, execute
process.args10eq 5, in 3, starts_with 3, wildcard 3, contains 2.ko, *.EndpointSecurity, +x, --, --exec
registry_path9contains 6, ends_with 2, in 2*SYSTEM\\CurrentControlSet\\Control\\SafeBoot\\Minimal\\*, *SYSTEM\\CurrentControlSet\\Control\\SafeBoot\\Network\\*, *\\CurrentControlSet\\Services\\NTDS\\DirectoryServiceExtPt, *\\CurrentControlSet\\Services\\NTDS\\LsaDbExtPt, \\\\classes\\\\htmlfile\\\\shell\\\\open\\\\command
OriginalFileName8eq 7, in 1reg.exe, cscript.exe, installutil.exe, msbuild.exe, northstarstager.exe
Type8eq 8
parent_process_name8eq 2, in 2, match 2, regex_match 2(?i)\QMicrosoft\Windows\Start Menu\Programs\StartUp\E, (?i)winlogon\.exe, ash, bash, cmd.exe

Top indicator values (1952 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
Detailseq
(Empty)
142
EventIDeq
4104
10268
EventIDeq
4688
10313
EventIDeq
4103
6105
EventIDeq
13
422
event.typeeq
start
10606
event.typeeq
change
977
EventTypein
exec
6171
EventTypein
exec_event
6139
EventTypein
start
6134
EventTypein
ProcessRollup2
5117
EventTypein
executed
488
EventTypein
process_started
474
event.typene
deletion
628
Detailsends_with
.dll
58
Imageends_with
\officeclicktorun.exe
5
Imageends_with
\reg.exe
458
Imagestarts_with
c:\program files\common files\microsoft shared\clicktorun\
5
Imagestarts_with
c:\program files\common files\microsoft shared\clicktorun\updates\
4
event.categoryeq
file
531
EventTypeeq
modification
415
Imageeq
c:\program files (x86)\microsoft office\root\integration\integrator.exe
4
Imageeq
c:\program files\microsoft office\root\integration\integrator.exe
4
TargetObjectcontains
\software\microsoft\windows\currentversion\policies\explorer\run
44
TargetObjectcontains
\software\microsoft\windows\currentversion\run
44
sourcetypeeq
auditd
456
typeeq
SYSCALL
422
CommandLinecontains
add
314
CommandLinecontains
\software\microsoft\windows\currentversion\policies\explorer\run
33
CommandLinecontains
\software\microsoft\windows\currentversion\run
33

Exclusions (827 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
Detailseq
(Empty)
17
Detailseq
cpwmon64_v40.dll
3
Detailseq
ctfmon.exe /n
3
Detailseq
{472083B0-C522-11CF-8763-00608CC02F24}
3
Detailseq
C:\Windows\SYSTEM32\w32time.DLL
2
Imageends_with
\officeclicktorun.exe
5
Imagestarts_with
c:\program files\common files\microsoft shared\clicktorun\
5
Imagestarts_with
c:\program files\common files\microsoft shared\clicktorun\updates\
4
Imageeq
c:\program files (x86)\microsoft office\root\integration\integrator.exe
4
Imageeq
c:\program files\microsoft office\root\integration\integrator.exe
4
Imageeq
c:\windows\system32\msiexec.exe
3
Imageeq
c:\windows\system32\poqexec.exe
3
user.ideq
S-1-5-18
3
Detailscontains
rundll32.exe
2
Detailsends_with
.exe" /burn.runonce
2

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 72 rules

Elastic 50 rules

Splunk 61 rules

Kusto 9 rules

YARA-L 9 rules

Panther 1 rule