↳ Source GitHubRègle analytiqueHigh
CertUtil Used for File Download (Living off the Land)
Description
Detects certutil.exe being used to download files from remote URLs via the
-urlcache or -verifyctl flags. CertUtil is a signed Windows binary (LOLBin)
that attackers abuse to download payloads while bypassing application
whitelisting and network controls.
Tune AllowlistedDomains to match your PKI/CA infrastructure.
- Type de règle
- Scheduled
- Version
- 1.0.0
- Statut déclaré
- Available
- Fréquence
- 1h
- Période analysée
- 1h
- Déclenchement
- gt 0
Couverture MITRE déclarée
Sources déclarées
Métadonnées du fichier source. Aucune dépendance déduite du KQL.
Connecteurs
Types de données
Requête KQL
Requête originale, sans modification.
let Lookback = 1h;
let AllowlistedDomains = dynamic([
"windowsupdate.microsoft.com",
"download.microsoft.com",
"dl.delivery.mp.microsoft.com",
"ctldl.windowsupdate.com"
]);
let MDE_Results =
DeviceProcessEvents
| where Timestamp >= ago(Lookback)
| where FileName =~ "certutil.exe"
| where ProcessCommandLine has_any ("-urlcache", "-verifyctl", "-decode", "-decodehex")
| where ProcessCommandLine has_any ("http://", "https://", "ftp://")
| where not(ProcessCommandLine has_any (AllowlistedDomains))
| extend
AccountName = InitiatingProcessAccountName,
AccountDomain = InitiatingProcessAccountDomain,
HostName = DeviceName,
EventTime = Timestamp
| project EventTime, HostName, AccountName, AccountDomain,
ProcessCommandLine, InitiatingProcessFileName;
let SecEvent_Results =
SecurityEvent
| where TimeGenerated >= ago(Lookback)
| where EventID == 4688
| where NewProcessName endswith "\\certutil.exe"
| where CommandLine has_any ("-urlcache", "-verifyctl", "-decode", "-decodehex")
| where CommandLine has_any ("http://", "https://", "ftp://")
| where not(CommandLine has_any (AllowlistedDomains))
| extend
AccountName = SubjectUserName,
AccountDomain = SubjectDomainName,
HostName = Computer,
EventTime = TimeGenerated,
ProcessCommandLine = CommandLine,
InitiatingProcessFileName = ParentProcessName
| project EventTime, HostName, AccountName, AccountDomain,
ProcessCommandLine, InitiatingProcessFileName;
union MDE_Results, SecEvent_Results
| sort by EventTime desc
Entités déclarées
Contenus associés
Liens établis à partir des identifiants déclarés et des manifests des solutions.
Traçabilité de la source
GitHubLes valeurs affichées proviennent des fichiers du dépôt Azure/Azure-Sentinel. Elles décrivent le modèle publié, pas la configuration de votre workspace.
- Fichier
- Solutions/Endpoint Threat Protection Essentials/Analytic Rules/Certutil-Download-Abuse.yaml ↗
- Commit
7ca9800↗- Identifiant source
4a9d3c2e-7f1b-4e58-9a0c-2d5b8e3f1a7c
GSTEP / SUIVI DU CATALOGUE
Ajouté au catalogue : 16 sept. 2026 · 05:49 UTC
Dernier changement observé : 16 sept. 2026 · 05:49 UTC