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: * <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run</code> * <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce</code> * <code>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run</code> * <code>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce</code> Run keys may exist under multiple hives.23 The <code>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx</code> 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.4 For example, it is possible to load a DLL at logon using a "Depend" key with RunOnceEx: <code>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001\Depend /v 1 /d "C:\temp\evil[.]dll"</code>5 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 <code>C:\Users\\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup</code>. The startup folder path for all users is <code>C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp</code>. The following Registry keys can be used to set startup folder items for persistence: * <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders</code> * <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders</code> * <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders</code> * <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders</code> The following Registry keys can control automatic startup of services during boot: * <code>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce</code> * <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce</code> * <code>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices</code> * <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices</code> Using policy settings to specify startup programs creates corresponding values in either of two Registry keys: * <code>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run</code> * <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run</code> Programs listed in the load value of the registry key <code>HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows</code> run automatically for the currently logged-on user. By default, the multistring <code>BootExecute</code> value of the registry key <code>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager</code> is set to <code>autocheck autochk *</code>. 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.
- Microsoft Run Key
- Microsoft Wow6432Node 2018
- Malwarebytes Wow6432Node 2016
- Microsoft Run Key
- Oddvar Moe RunOnceEx Mar 2018
使用该技术的组织
| 组织 | 名称 | 国家 |
|---|---|---|
| grp_g0048 | RTM | — |
| grp_g0024 | Putter Panda | China |
| grp_g0100 | Inception | — |
| grp_g0051 | FIN10 | — |
| grp_g0019 | Naikon | — |
| grp_g1018 | TA2541 | — |
| grp_g0026 | APT18 | — |
| grp_g0021 | Molerats | — |
| grp_g0056 | PROMETHIUM | — |
| grp_g0012 | Darkhotel | South Korea |
| grp_g1014 | LuminousMoth | China |
| grp_g0070 | Dark Caracal | — |
| grp_g1043 | BlackByte | — |
| grp_g0128 | ZIRCONIUM | — |
| grp_g1056 | TeamPCP | — |
| grp_g0129 | Mustang Panda | China |
| grp_g0032 | Lazarus Group | DPRK |
| grp_g0078 | Gorgon Group | — |
| grp_g0064 | APT33 | Iran |
| grp_g0142 | Confucius | — |
| grp_g0112 | Windshift | — |
| grp_g0004 | Ke3chang | — |
| grp_g0037 | FIN6 | — |
| grp_g0080 | Cobalt Group | — |
| grp_g0126 | Higaisa | — |
| grp_g0035 | Dragonfly | Russia |
| grp_g1039 | RedCurl | Russia |
| grp_g0102 | Wizard Spider | Russia |
| grp_g1036 | Moonstone Sleet | DPRK |
| grp_g1052 | Contagious Interview | — |
| grp_g0069 | MuddyWater | — |
| grp_g1055 | VOID MANTICORE | — |
| grp_g0067 | APT37 | DPRK |
| grp_g0073 | APT19 | China |
| grp_g0082 | APT38 | DPRK |
| grp_g0081 | Tropic Trooper | — |
| grp_g0091 | Silence | — |
| grp_g1059 | NIMBUS MANTICORE | — |
| grp_g1046 | Storm-1811 | — |
| grp_g0065 | Leviathan | China |
| grp_g0046 | FIN7 | — |
| grp_g0087 | APT39 | — |
| grp_g0010 | Turla | Russia |
| grp_g0047 | Gamaredon Group | Russia |
| grp_g0022 | APT3 | China |
| grp_g0094 | Kimsuky | DPRK |
| grp_g0059 | Magic Hound | Iran |
| grp_g1016 | FIN13 | — |
| grp_g0139 | TeamTNT | — |
| grp_g0060 | BRONZE BUTLER | — |
| grp_g0140 | LazyScripter | — |
| grp_g0096 | APT41 | China |
| grp_g0106 | Rocke | — |
| grp_g0007 | APT28 | Russia |
| grp_g0016 | APT29 | Russia |
| grp_g0040 | Patchwork | — |
| grp_g0121 | Sidewinder | India |
| grp_g0027 | Threat Group-3390 | China |
| grp_g0050 | APT32 | Vietnam |
断言
尚无指向该技术的公开断言。
记录自动入库·未人工复核;置信度与有效期按引用读取。