CatalogLOLBAS

LOL · Binary

Regedit.exe

2 techniquesWindowsLOLBASGPL-3.0

ADS

Defense EvasionFile WriteWindows

Export the target Registry key to the specified .REG file.

Use Hide registry data in alternate data stream

regedit /E {PATH_ABSOLUTE}:regfile.reg HKEY_CURRENT_USER\MyCustomRegKey
Evidence
Upstream reference
Environment
Local host
Context
user
Native
ADS
Detection
IOC: regedit.exe reading and writing to alternate data stream
IOC: regedit.exe should normally not be executed by end-users

ADS

Defense EvasionFile WriteWindows

Import the target .REG file into the Registry.

Use Import hidden registry data from alternate data stream

regedit {PATH_ABSOLUTE}:regfile.reg
Evidence
Upstream reference
Environment
Local host
Context
user
Native
ADS
Detection
IOC: regedit.exe reading and writing to alternate data stream
IOC: regedit.exe should normally not be executed by end-users