Detection rules › Kusto Query Language
Ingress Tool Transfer - Certutil
This detection addresses most of the known ways to utilize this binary for malicious/unintended purposes. It attempts to accommodate for most detection evasion techniques, like commandline obfuscation and binary renaming.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Defense Evasion | T1027 Obfuscated Files or Information, T1140 Deobfuscate/Decode Files or Information, T1564.004 Hide Artifacts: NTFS File Attributes |
| Command & Control | T1105 Ingress Tool Transfer |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
| Security-Auditing | 4688 | A new process has been created. |
| Defender-DeviceProcessEvents | 9001000 | Process activity (any) |
Stages and Predicates
Stage 1: source
DeviceProcessEvents
Stage 2: where
macro "(Timestamp >= ago(Timeframe))"
Stage 3: where
or
FileName eq "certutil.exe"
ProcessCommandLine match "certutil"
SHA1 eq "CertUtilFESha1"
SHA1 eq "CertUtilPESha1"
Stage 4: extend
Stage 5: where
CleanProcessCommandLine match ["decode", "encode", "verify", "url"]
Stage 6: sort
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CleanProcessCommandLine | match |
|
FileName | eq |
|
ProcessCommandLine | match |
|
SHA1 | in |
|