This rule detects adversaries leveraging valid digital certificates to sign malicious executables, a technique designed to bypass signature-based defenses and evade initial detection by security tools. Proactively hunting for this behavior in Azure Sentinel is critical because it allows analysts to identify trusted identities that have been compromised or abused to deliver malware, ensuring early intervention before the threat spreads across the environment.
rule cert_blocklist_0c15 {
meta:
author = "ReversingLabs"
source = "ReversingLabs"
status = "RELEASED"
sharing = "TLP:WHITE"
category = "INFO"
description = "Certificate used for digitally signing malware."
condition:
uint16(0) == 0x5A4D and
for any i in (0..pe.number_of_signatures): (
pe.signatures[i].subject contains "William Richard John" and
pe.signatures[i].serial == "0c:15" and
1387324799 <= pe.signatures[i].not_after
)
}
This YARA rule can be deployed in the following contexts:
Here are 5 specific false positive scenarios for the “Certificate used for digitally signing malware” detection rule, including targeted filters and exclusions:
Antivirus Engine Updates
C:\Program Files\CrowdStrike\csagent.exe or MsMpEng.exe) combined with a whitelist of known vendor certificate thumbprints.Scheduled Patch Deployment Jobs
NT SERVICE\CCMExec or IvantiAgent) during defined maintenance windows (e.g., 02:00–04:00 UTC) where patching occurs.CI/CD Pipeline Artifact Signing
msbuild.exe or dotnet.exe) may trigger alerts during release cycles.