Detect certutil downloading files (KQL)
certutil.exe is a signed Windows certificate utility that attackers abuse to pull payloads from the internet with -urlcache or -verifyctl, bypassing controls that watch for curl, wget or PowerShell downloads. This DeviceProcessEvents query matches certutil command lines that combine a download-capable switch with a URL scheme.
Legitimate administrative use of certutil to download files is rare, which makes this a comparatively clean command-and-control / tool-transfer signal.
The query
DeviceProcessEvents
| where Timestamp > ago(7d)
| where FileName =~ "certutil.exe"
| where ProcessCommandLine has_any ("urlcache", "verifyctl", "-split")
| where ProcessCommandLine has_any ("http://", "https://", "ftp://")
| project Timestamp, DeviceName, AccountName,
InitiatingProcessFileName, InitiatingProcessCommandLine, ProcessCommandLine
| sort by Timestamp descLine-by-line explanation
| where FileName =~ "certutil.exe"Scopes to certutil, the signed binary being abused.
| where ProcessCommandLine has_any ("urlcache", "verifyctl", "-split")These switches turn certutil into a downloader; -urlcache and -verifyctl fetch a URL, -split can recombine a staged file.
| where ProcessCommandLine has_any ("http://", "https://", "ftp://")Requires a remote URL on the command line, confirming a download rather than a local certificate operation.
Required tables and columns
FileNameThe image; certutil.exe.ProcessCommandLineCommand line holding the download switch and target URL.InitiatingProcessFileNameThe parent process that launched certutil.DeviceNameThe affected host.
MITRE ATT&CK mapping
- Tactic
- Command and ControlTA0011
- Technique
- T1105· Ingress Tool Transfer
Tuning and false positives
- Allow-list internal update URLs or PKI endpoints that administrators fetch with certutil, scoped by domain.
- Correlate with DeviceFileEvents for the file certutil wrote, and DeviceNetworkEvents for the connection, to confirm the transfer.
Limitations
- Attackers can decode local files with certutil (no URL) for staging; this query intentionally focuses on network downloads and will miss that.
- Other LOLBin downloaders (bitsadmin, mshta, curl) need their own queries.
Related queries
References
Last reviewed 2026-11-18.