This rule identifies executable files compiled with MinGW GCC that exhibit characteristics of the PseudoSigner tool, a utility frequently used by adversaries to generate fake code-signing certificates to bypass security controls. Proactively hunting for these artifacts in Azure Sentinel allows the SOC team to detect potentially compromised binaries or malicious payloads that leverage weak or forged signatures to evade trust-based detection mechanisms.
rule PseudoSigner_02_MinGW_GCC_2x: PEiD
{
strings:
$a = { 55 89 E5 E8 02 00 00 00 C9 C3 90 90 45 58 45 }
condition:
$a at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
.exe for cross-platform testing.
C:\Builds\, C:\Projects\) or exclude processes where the parent process is gcc.exe, g++.exe, or mingw32-make.exe.workspace\, agent\, builds\) or where the process tree includes known CI/CD orchestrator binaries (e.g., java.exe for Jenkins, node.exe for GitLab runners).C:\Program Files\GPG4Win\, C:\Program Files (x86)\Wireshark\) or exclude files with a specific hash known to be the legitimate vendor binary.cygwin or msys2 (which often bundles MinGW GCC) to compile a