This rule identifies executable files that have been converted from COM objects to standard PE executables, a technique often used by adversaries to bypass file extension-based filtering or to obscure the true nature of a payload. Proactively hunting for these artifacts in Azure Sentinel allows the SOC to detect low-severity persistence or execution mechanisms that may slip past traditional signature-based detections and reveal hidden malicious activity within the environment.
rule ExeToolsCOM2EXE
{
meta:
author="malware-lu"
strings:
$a0 = { E8 [2] 5D 83 ED ?? 8C DA 2E 89 96 [2] 83 C2 ?? 8E DA 8E C2 2E 01 96 [2] 60 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
.com file to .exe using the command-line interface of ExeTools (e.g., exetools.exe /c2e legacy_app.com) on a build server or developer workstation.
cmd.exe or powershell.exe and the command line arguments contain specific ExeTools flags like /c2e or /e2c, or restrict the rule to non-interactive user sessions if the tool is primarily used for automation.NT SERVICE\... or a dedicated svc-ci account) or exclude paths located within known CI/CD workspace directories (e.g., C:\Jenkins\workspace\, C:\AzureDevOps\).setup.exe, install.exe, or a specific vendor’s installer binary) and exclude if the parent process signature is trusted or if the execution occurs within a known vendor installation directory.C:\Windows\Temp\, `C:\Users<user>\AppData