Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
- ID
- T1547.001
- Tactics
- TA0003 Persistence, TA0004 Privilege Escalation
- Sub-technique of
- T1547 Boot or Logon Autostart Execution
- Platforms
- Windows
- Data sources
- Process Creation, Windows Registry Key Modification, File Creation
- Source
- attack.mitre.org
- MITRE last modified
- 12 May 2026
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.[1] These programs will be executed under the context of the user and will have the account's associated permissions level.
The following run keys are created by default on Windows systems:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnceHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
Run keys may exist under multiple hives.[2][3] The HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx is also available but is not created by default on Windows Vista and newer. Registry run key entries can reference programs directly or list them as a dependency.[1] For example, it is possible to load a DLL at logon using a "Depend" key with RunOnceEx: reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001\Depend /v 1 /d "C:\temp\evil[.]dll" [4]
Placing a program within a startup folder will also cause that program to execute when a user logs in. There is a startup folder location for individual user accounts as well as a system-wide startup folder that will be checked regardless of which user account logs in. The startup folder path for the current user is C:\Users\\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. The startup folder path for all users is C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp.
The following Registry keys can be used to set startup folder items for persistence:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell FoldersHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell FoldersHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell FoldersHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
The following Registry keys can control automatic startup of services during boot:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnceHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnceHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices
Using policy settings to specify startup programs creates corresponding values in either of two Registry keys:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RunHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
Programs listed in the load value of the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows run automatically for the currently logged-on user.
By default, the multistring BootExecute value of the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager is set to autocheck autochk *. This value causes Windows, at startup, to check the file-system integrity of the hard disks if the system has been shut down abnormally. Adversaries can add other programs or processes to this registry value which will automatically launch at boot.
Adversaries can use these configuration locations to execute malware, such as remote access tools, to maintain persistence through system reboots. Adversaries may also use Masquerading to make the Registry entries look as if they are associated with legitimate programs.
Detection
- DET0365 Detect Registry and Startup Folder Persistence (Windows)
Data components: Process Creation, Windows Registry Key Modification, File Creation
Groups (59)
- G0004 Ke3chang
- G0007 APT28
- G0010 Turla
- G0012 Darkhotel
- G0016 APT29
- G0019 Naikon
- G0021 Molerats
- G0022 APT3
- G0024 Putter Panda
- G0026 APT18
- G0027 Threat Group-3390
- G0032 Lazarus Group
- G0035 Dragonfly
- G0037 FIN6
- G0040 Patchwork
- G0046 FIN7
- G0047 Gamaredon Group
- G0048 RTM
- G0050 APT32
- G0051 FIN10
- G0056 PROMETHIUM
- G0059 Magic Hound
- G0060 BRONZE BUTLER
- G0064 APT33
- G0065 Leviathan
- G0067 APT37
- G0069 MuddyWater
- G0070 Dark Caracal
- G0073 APT19
- G0078 Gorgon Group
- G0080 Cobalt Group
- G0081 Tropic Trooper
- G0082 APT38
- G0087 APT39
- G0091 Silence
- G0094 Kimsuky
- G0096 APT41
- G0100 Inception
- G0102 Wizard Spider
- G0106 Rocke
- G0112 Windshift
- G0121 Sidewinder
- G0126 Higaisa
- G0128 ZIRCONIUM
- G0129 Mustang Panda
- G0139 TeamTNT
- G0140 LazyScripter
- G0142 Confucius
- G1014 LuminousMoth
- G1016 FIN13
- G1018 TA2541
- G1036 Moonstone Sleet
- G1039 RedCurl
- G1043 BlackByte
- G1046 Storm-1811
- G1052 Contagious Interview
- G1055 VOID MANTICORE
- G1056 TeamPCP
- G1059 NIMBUS MANTICORE
Software (205)
- S0004 TinyZBot
- S0011 Taidoor
- S0012 PoisonIvy
- S0013 PlugX
- S0015 Ixeshe
- S0018 Sykipot
- S0028 SHIPSHAPE
- S0030 Carbanak
- S0031 BACKSPACE
- S0032 gh0st RAT
- S0034 NETEAGLE
- S0035 SPACESHIP
- S0036 FLASHFLOOD
- S0044 JHUHUGIT
- S0045 ADVSTORESHELL
- S0046 CozyCar
- S0053 SeaDuke
- S0058 SslMM
- S0062 DustySky
- S0070 HTTPBrowser
- S0074 Sakula
- S0080 Mivast
- S0081 Elise
- S0082 Emissary
- S0085 S-Type
- S0087 Hi-Zor
- S0088 Kasidet
- S0089 BlackEnergy
- S0090 Rover
- S0093 Backdoor.Oldrea
- S0094 Trojan.Karagany
- S0113 Prikormka
- S0115 Crimson
- S0124 Pisloader
- S0127 BBSRAT
- S0128 BADNEWS
- S0131 TINYTYPHON
- S0136 USBStealer
- S0137 CORESHELL
- S0139 PowerDuke
- S0141 Winnti for Windows
- S0144 ChChes
- S0145 POWERSOURCE
- S0147 Pteranodon
- S0148 RTM
- S0152 EvilGrab
- S0153 RedLeaves
- S0159 SNUGRIDE
- S0167 Matryoshka
- S0168 Gazer
- S0170 Helminth
- S0172 Reaver
- S0178 Truvasys
- S0182 FinFisher
- S0186 DownPaper
- S0192 Pupy
- S0194 PowerSploit
- S0196 PUNCHBUGGY
- S0198 NETWIRE
- S0199 TURNEDUP
Showing 60 of 205. Full list on attack.mitre.org.
