This rule identifies artifacts associated with the legacy Microsoft Visual C++ 6.0 Self-Extracting Archive (SFX) format, which adversaries may leverage to deliver payloads or stage tools within memory or on disk. Proactively hunting for these indicators helps the SOC team uncover low-fidelity staging techniques or older build artifacts that could serve as precursors to malicious execution or persistence in the Azure Sentinel environment.
rule Microsoft_Visual_Cpp_60_SFX_Custom: PEiD
{
strings:
$a = { E8 21 48 00 00 E9 16 FE FF FF 51 C7 01 08 B4 00 30 E8 A4 48 00 00 59 C3 56 8B F1 E8 EA FF FF FF F6 ?? ?? ?? ?? 74 07 56 E8 F6 04 00 00 59 8B C6 5E C2 04 00 8B 44 24 04 83 C1 09 51 83 C0 09 50 }
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.
Legacy Application Deployment via Group Policy
C:\Windows\Temp or a specific deployment folder and executed by the Group Policy client on multiple endpoints during the morning patch cycle.gpupdate.exe or svchost.exe (specifically the gpupdate service) and the file path contains \Temp\ or a known deployment directory like \Deployments\. Additionally, whitelist the specific SHA256 hash of the known SFX wrapper if it remains consistent across deployments.Third-Party Installer Service (e.g., Chocolatey or Ninite)
C:\ProgramData\chocolatey\ or C:\Users\<User>\AppData\Local\Temp\) and execute them. If the installer is an SFX, it will match the YARA signature.choco.exe, ninite.exe, or winget.exe. Alternatively, exclude file paths under C:\ProgramData\chocolatey\ or C:\Users\<User>\AppData\Local\Temp\ if the parent process is a known package manager.Scheduled Maintenance Job for Legacy Tools