This rule detects the creation of an installation stub, a common precursor in supply chain attacks where adversaries embed malicious payloads within legitimate software installers to facilitate persistence or initial access. Proactively hunting for this behavior in Azure Sentinel allows the SOC to identify potential tampering or unauthorized deployment activities before the stub executes, thereby reducing the risk of compromised software entering the environment.
rule CreateInstallStubvxx
{
meta:
author="malware-lu"
strings:
$a0 = { 55 8B EC 81 EC 20 02 00 00 53 56 57 6A 00 FF 15 18 61 40 00 68 00 70 40 00 89 45 08 FF 15 14 61 40 00 85 C0 74 27 6A 00 A1 00 20 40 00 50 FF 15 3C 61 40 00 8B F0 6A 06 56 FF 15 38 61 40 00 6A 03 56 FF 15 38 61 40 00 E9 36 03 00 00 68 02 7F 00 00 33 F6 56 }
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.
Windows Installer Service Execution (msiexec.exe)
msiexec.exe) is frequently invoked by Group Policy Objects (GPOs), software distribution platforms (e.g., SCCM, Intune), or user-initiated installations to deploy or update applications. This process often creates temporary stubs or cache files in %TEMP% or C:\Windows\Installer that may match the “install stub” pattern.msiexec.exe and the file path contains \Windows\Installer\ or %TEMP%. Alternatively, exclude if the command line contains /i (install) or /a (admin) flags.Enterprise Software Deployment Agents (SCCM/Intune/BigFix)
C:\ProgramData\Microsoft\CCM\ or C:\Program Files\BigFix\.C:\ProgramData\Microsoft\CCM\, C:\Program Files\BigFix\, C:\Program Files (x86)\Microsoft Intune\).Java Runtime Environment (JRE/JDK) Temporary Files
%USERPROFILE%\.java\ directory or %TEMP%\ folder. This is common in legacy enterprise applications that rely on Java for business