LOLBAS. GitHub
LIVING OFF THE LAND / OS BINARIES

Runonce.exe

View source

Executes a Run Once Task that has been configured in the registry

01COMMAND EXAMPLES
01ATT&CK TECHNIQUES
03DETECTION RESOURCES
01CAPABILITIES
01 / TRADECRAFT

Command reference

1 examples

Execute1

EXAMPLE 01T1218

Executes a Run Once Task that has been configured in the registry.

COMMAND
Runonce.exe /AlternateShellStartup
USE CASE
Persistence, bypassing defensive counter measures
PRIVILEGES
Administrator
OPERATING SYSTEM
Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Execute · CMD
02 / ON DISK

Known paths

C:\Windows\System32\runonce.exe
C:\Windows\SysWOW64\runonce.exe
03 / DEFENSIVE INTELLIGENCE

Detection & indicators

3 resources

Indicators & detection notes

  • IOC

    Registy key add - HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\YOURKEY

FURTHER READING

Research & resources

COMMUNITY RESEARCH

Acknowledgements

Pierre-Alexandre Braeken@pabraeken