This detection identifies adversaries leveraging valid digital certificates to sign malicious executables, a technique often employed to bypass signature-based defenses and establish trust within the environment. Proactively hunting for this behavior in Azure Sentinel is critical because attackers increasingly abuse legitimate certificate authorities to evade initial security controls, requiring analysts to validate the legitimacy of signed binaries beyond their cryptographic validity.
rule cert_blocklist_77019a082385e4b73f569569c9f87bb8 {
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 "AND LLC" and
pe.signatures[i].serial == "77:01:9a:08:23:85:e4:b7:3f:56:95:69:c9:f8:7b:b8" and
1308182400 <= pe.signatures[i].not_after
)
}
This YARA rule can be deployed in the following contexts:
Here are 4 specific false positive scenarios for the “Certificate used for digitally signing malware” detection rule, including suggested filters and exclusions:
Scenario: Legitimate Antivirus Engine Updates
C:\Program Files\Microsoft Defender\MsMpEng.exe, C:\ProgramData\CrowdStrike\fsqa.exe) and filter out file paths containing “Definitions” or “Updates”.Scenario: Scheduled Patch Deployment via Configuration Management
SYSTEM or specific service accounts (e.g., DOMAIN\SCCM-Deploy-Svc) running scheduled tasks between 02:00 and 04:00 AM, specifically targeting processes like ccmsetup.exe or Ansible-runner.Scenario: Internal DevOps Build Pipeline Execution