This detection identifies adversaries leveraging valid digital certificates to sign malicious executables, thereby evading signature-based defenses by masquerading as trusted software. Proactive hunting in Azure Sentinel is essential to uncover these stealthy threats that bypass standard security controls and establish persistence within the environment through legitimate-looking artifacts.
rule cert_blocklist_6767def972d6ea702d8c8a53af1832d3 {
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 "Guangzhou typical corner Network Technology Co., Ltd." and
pe.signatures[i].serial == "67:67:de:f9:72:d6:ea:70:2d:8c:8a:53:af:18:32:d3" and
1361750400 <= 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 suggested filters and exclusions:
Scenario: Scheduled Antivirus Definition Updates
MsMpEng.exe (Microsoft Defender) or Cfsensr.exe (CrowdStrike) when they are executing update tasks from trusted vendor domains (e.g., *.microsoft.com, *.crowdstrike.com). Add a filter to ignore alerts where the parent process is the OS Update service (usoc.dll) running as SYSTEM.Scenario: Legitimate Software Deployment via Configuration Management
System or dedicated Service Accounts (e.g., svc-sccm, svc-ansible) on the domain controller or distribution point servers. Filter out alerts where the file path matches known deployment directories, such as C:\Windows\CCM\Logs or C:\ProgramData\Ansible.Scenario: Internal CI/CD Pipeline Artifact Signing