Registry AutoRun
Introduction - AutoRun Registry
Autorun and run keys are registry entries in Windows that allow programs to run automatically when a device is connected or a user logs in
Since we are only interested in the machine startup keys, these are the default keys we want to query:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
Query Registry
Powershell
SharPersist & Cobalt Strike
AutoRun values in HKCU and HKLM allow applications to start on boot. You commonly see these to start native and 3rd party applications such as software updaters, download assistants, driver utilities and so on.
Where:
-k
is the registry key to modify.-v
is the name of the registry key to create.
\
Last updated