Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder T1547.001

Tactics: Persistence, Privilege Escalation

Adversaries may achieve persistence by adding a program to a startup folder or referencing it with a Registry run key. Adding an entry to the "run keys" in the Registry or startup folder will cause the program referenced to be executed when a user logs in. These programs will be executed under the context of the user and will have the account's associated permissions level.

Events covered

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

Authoring guide

Patterns shared across the 87 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 (36 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
TargetObject42contains 31, ends_with 14, wildcard 6, eq 1, regex_match 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
Details34eq 14, contains 13, is_null 8, ends_with 6, is_not_null 5, starts_with 3, length_compare 2, regex_match 1(Empty), -encodedcommand , -noni , -noninteractive , %appdata%
Image25ends_with 18, eq 11, starts_with 7, contains 3, regex_match 2, is_null 1, wildcard 1\reg.exe, \appdata\roaming\spotify\spotify.exe, \officeclicktorun.exe, \powershell.exe, \pwsh.exe
EventID17eq 174104, 4688, 4103, 1, 13
TargetFilename14wildcard 8, contains 6, ends_with 3, starts_with 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...
event.type13eq 8, ne 4, in 2change, deletion, creation, start
CommandLine11contains 10, match 1, regex_match 1 add , /cfg, /configure, /db, /y
process_name9eq 6, match 2, in 1(?i)\qmicrosoft\windows\start menu\programs\startup\e, cscript.exe, cmd.exe, eqnedt32.exe, explorer.exe
OriginalFileName6eq 5, in 1reg.exe, cscript.exe, installutil.exe, msbuild.exe, northstarstager.exe
Type4eq 4
parent_process_name4match 2, eq 1, in 1(?i)\QMicrosoft\Windows\Start Menu\Programs\StartUp\E, cmd.exe, excel.exe, explorer.exe, powerpnt.exe
EventType3eq 3DeleteValue, RegistryValueSet, creation, modification
registry_path3ends_with 2, contains 1, in 1*SYSTEM\\CurrentControlSet\\Control\\SafeBoot\\Minimal\\*, *SYSTEM\\CurrentControlSet\\Control\\SafeBoot\\Network\\*, \\\\classes\\\\htmlfile\\\\shell\\\\open\\\\command, \\\\currentversion\\\\policies\\\\explorer\\\\run, \\\\currentversion\\\\run
registry_value_name3eq 3*\\Common Files\\*.dll, *\\Common Files\\*.exe, *\\Temp\\*.dll, Common Startup, Remcos
TargetDomainName2ne 2NT AUTHORITY

Top indicator values (941 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)
132
EventIDeq
4104
6268
EventIDeq
4688
5313
EventIDeq
4103
3105
Imageends_with
\officeclicktorun.exe
5
Imageends_with
\reg.exe
358
Imagestarts_with
c:\program files\common files\microsoft shared\clicktorun\
5
Imagestarts_with
c:\program files\common files\microsoft shared\clicktorun\updates\
4
event.typeeq
change
577
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\poqexec.exe
3
TargetObjectcontains
\software\microsoft\windows\currentversion\policies\explorer\run
44
TargetObjectcontains
\software\microsoft\windows\currentversion\run
44
TargetObjectcontains
\software\wow6432node\microsoft\windows\currentversion\run
33
event.typene
deletion
428
CommandLinecontains
add
314
CommandLinecontains
\software\microsoft\windows\currentversion\policies\explorer\run
33
CommandLinecontains
\software\microsoft\windows\currentversion\run
33
CommandLinecontains
\software\wow6432node\microsoft\windows\currentversion\run
33
CommandLinecontains
/cfg
22
CommandLinecontains
/configure
22
Detailscontains
powershell
310
TargetFilenamecontains
\start menu\programs\startup\
35
TargetFilenamewildcard
?:\programdata\microsoft\windows\start menu\programs\startup\*
34
TargetFilenamewildcard
?:\users\*\appdata\roaming\microsoft\windows\start menu\programs\startup\*
34
TargetFilenamewildcard
c:\programdata\microsoft\windows\start menu\programs\startup\*
33
TargetFilenamewildcard
c:\users\*\appdata\roaming\microsoft\windows\start menu\programs\startup\*
33
TargetObjectwildcard
hkey_users\*\software\microsoft\windows\currentversion\policies\explorer\run\*
33
TargetObjectwildcard
hklm\software\microsoft\windows\currentversion\policies\explorer\run\*
33

Exclusions (401 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)
16
Detailseq
ctfmon.exe /n
3
Detailseq
{472083B0-C522-11CF-8763-00608CC02F24}
3
Detailseq
CutePDF Writer
2
Detailseq
VNCpm.dll
2
Detailseq
cpwmon64_v40.dll
2
Detailseq
{472083B1-C522-11CF-8763-00608CC02F24}
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\poqexec.exe
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 39 rules

Elastic 14 rules

Splunk 24 rules

Kusto 2 rules

YARA-L 8 rules