This detection identifies adversaries leveraging valid digital certificates to sign malicious executables, a tactic designed to evade signature-based defenses and establish trust with endpoint security tools. Proactively hunting for this behavior in Azure Sentinel is critical because attackers increasingly abuse legitimate certificate authorities to bypass initial alerts, requiring analysts to validate the provenance of signed binaries that may otherwise be overlooked due to their low severity classification.
rule cert_blocklist_32665079c5a5854a6833623ca77ff5ac {
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 "Ohanae" and
pe.signatures[i].serial == "32:66:50:79:c5:a5:85:4a:68:33:62:3c:a7:7f:f5:ac" and
1381967999 <= 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, along with suggested filters and exclusions:
Scenario: Antivirus Engine Updates via Scheduled Tasks
MpCmdRun.exe, Cfsensservice.exe) and restrict the rule to trigger only when the process is not running under the context of a known update service account (e.g., NT SERVICE\AntivirusService).Scenario: Legitimate Software Deployment via Configuration Management Tools
CcmExec.exe, Ansible-Runner) and the User Account belongs to the “System” or a dedicated “Deployment Admin” group, rather than an interactive user session.Scenario: CI/CD Pipeline Artifact Execution on Build Servers