This detection identifies adversaries leveraging legitimate digital certificates to sign malicious executables, thereby evading signature-based security controls and establishing trust with endpoints. Proactively hunting for this behavior in Azure Sentinel is critical because attackers increasingly abuse valid certificates to bypass initial threat scans, allowing malware to execute undetected before triggering broader incident response workflows.
rule cert_blocklist_0c0f {
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 "Dmitry Vasilev" and
pe.signatures[i].serial == "0c:0f" and
1386719999 <= pe.signatures[i].not_after
)
}
This YARA rule can be deployed in the following contexts:
Here are 3-5 specific false positive scenarios for the rule “Certificate used for digitally signing malware,” along with suggested filters or exclusions:
Scenario: Antivirus/EDR Self-Signing and Update Mechanisms
Publisher field matching known security vendor names (e.g., Microsoft Corporation, CrowdStrike Holdings, Inc.) and restrict the rule to only trigger when the file path is outside standard security installation directories (e.g., exclude paths starting with C:\Program Files\Microsoft Defender Antivirus\).Scenario: Scheduled Administrative Scripts and Patch Management
Process Name and User Context. Exclude events where the process is Task Scheduler (SchTasks.exe) or PowerShell.exe running under a specific service account (e.g., `DOMAIN\svc-patch-de