This detection identifies potential supply chain compromises where malicious code is embedded within legitimate installer executables to facilitate post-installation persistence or lateral movement. Proactive hunting for this pattern in Azure Sentinel is essential to uncover stealthy threats that evade standard signature-based defenses by leveraging trusted installation processes as a vector for initial access.
rule ThinstallEmbedded19XJitit
{
meta:
author="malware-lu"
strings:
$a0 = { 55 8B EC 51 53 56 57 6A 00 6A 00 FF 15 [4] 50 E8 87 FC FF FF 59 59 A1 [4] 8B 40 10 03 05 [4] 89 45 FC 8B 45 FC FF E0 5F 5E 5B C9 C3 00 00 00 }
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.
Here are 5 specific false positive scenarios for the ThinstallEmbedded19XJitit detection rule, including suggested filters and exclusions tailored for an enterprise environment:
Scenario: Microsoft Visual Studio Installer Background Updates
devenv.exe or Setup.exe process within the Microsoft Visual Studio installation suite frequently embeds JIT (Just-In-Time) compilation logic during background updates or component repairs, which mimics the signature of embedded JIT execution.C:\Program Files\Microsoft Visual Studio\* and the parent process is msiexec.exe.file.path matches ".*\\Microsoft Visual Studio\\.*" AND process.parent.name in ("msiexec.exe", "setup.exe").Scenario: Scheduled Java Runtime (JRE) Maintenance Tasks
java.exe with embedded JIT compilers to optimize bytecode, triggering this rule during peak business hours.C:\Program Files\Java\jre*) where the process name is java.exe and the command line contains -server or -Xcomp.file.path matches ".*\\Program Files\\Java\\jre.*" AND process.command_line contains "-Xcomp".Scenario: Endpoint Antivirus Heuristic Scanning (e.g., CrowdStrike/Carbon Black)