Catalog LOLBAS

LOL · Binary

Sc.exe

2 techniques WindowsLOLBAS GPL-3.0

ADS

Defense EvasionFile Write Windows

Creates a new service and executes the file stored in the ADS.

Use Execute binary file hidden inside an alternate data stream

sc create evilservice binPath="\"c:\\ADS\\file.txt:cmd.exe\" /c echo works > \"c:\ADS\works.txt\"" DisplayName= "evilservice" start= auto\ & sc start evilservice
Context
user
Native
ADS
Detection
IOC: Unexpected service creation
IOC: Unexpected service modification

ADS

Defense EvasionFile Write Windows

Modifies an existing service and executes the file stored in the ADS.

Use Execute binary file hidden inside an alternate data stream

sc config {ExistingServiceName} binPath="\"c:\\ADS\\file.txt:cmd.exe\" /c echo works > \"c:\ADS\works.txt\"" & sc start {ExistingServiceName}
Context
user
Native
ADS
Detection
IOC: Unexpected service creation
IOC: Unexpected service modification