This hypothesis targets the presence of the Mingw32 Dev-C++ v4991 compiler header file, which may indicate the use of a specific, potentially outdated or legacy development toolchain on a host. Proactively hunting for this artifact helps the SOC team identify systems where adversaries might be compiling custom payloads or using known development environments to stage malicious code, thereby reducing the risk of undetected binary generation or persistence mechanisms.
rule MingWin32_Dev_Cpp_v4991_h: PEiD
{
strings:
$a = { 55 89 E5 83 EC 08 C7 04 24 01 00 00 00 FF 15 ?? ?? ?? 00 E8 C8 FE FF FF 90 8D B4 26 00 00 00 00 55 89 E5 83 EC 08 C7 04 24 02 00 00 00 FF 15 ?? ?? ?? 00 E8 A8 FE FF FF 90 8D B4 26 00 00 00 00 55 8B 0D ?? ?? ?? 00 89 E5 5D FF E1 8D 74 26 00 55 8B 0D ?? ?? ?? 00 89 E5 5D FF E1 90 90 90 90 55 89 E5 5D E9 ?? ?? 00 00 90 90 90 90 90 90 90 }
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.
v4991.h header file in a text editor (e.g., Notepad++, VS Code) or compile a small utility using the Dev-C++ IDE.
notepad.exe, code.exe, notepad++.exe) or the Dev-C++ compiler (g++.exe, gcc.exe) located in the Dev-C++ installation directory.C:\Builds\, C:\Temp\, C:\Users\Public\Builds\) or exclude processes associated with packaging tools (e.g., wix.exe, makensis.exe, ISCC.exe).v4991.h header from developer workstations or build servers.
wbadmin.exe, veeam.exe, 7z.exe, winrar.exe) and exclude file paths ending in common archive extensions (.zip, .rar, .7z, .tar).