WARNINGEditing the registry carries risks — proceed with caution. Incorrect changes can cause serious system failures, or even require a full system reinstall.
NOTEThanks to Disa for the additions.
Auto-start
- Run: runs at every boot.
- RunOnce: runs only once, then deletes itself after execution.
User-level
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnceHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce\SetupHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnceHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RunHKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\loadSystem-level
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\SetupHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesOnceHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\RunHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserinitHKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\RunHKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\RunOnceImage File Execution Options
Image hijacking
When you launch the target program, the hijacking program runs instead of the original one.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution OptionCreate a subkey named after the target process, and inside it add a debugger value set to the hijacking program.
SilentProcessExit
When ReportingMode is set to 1, the system runs the program specified in MonitorProcess when the monitored process exits.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SilentProcessExitCreate a subkey named after the target process, add a MonitorProcess value set to the hijacking program, and a ReportingMode value set to 1.
MinimumStackCommitInBytes
Setting MinimumStackCommitInBytes to a large enough value makes the specified program crash with a stack overflow.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\[Target Process]\MinimumStackCommitInBytesScheduled Tasks
Hierarchy information
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\TreeIf the index is 0, the task is not visible in taskschd.msc.
Task details
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\TasksDeleting Files After Reboot
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperationsEach operation consists of a pair of strings:
- The first string is the path of the source file or directory.
- The second string is the path of the target file or directory (empty for a delete operation).
For example:
\??\C:\OldFile.txt\??\C:\NewFile.txtThis renames C:\OldFile.txt to C:\NewFile.txt.