This detection identifies potential adversary activity involving embedded Just-In-Time (JIT) compilation within the Thinstall process, which may indicate an attempt to execute obfuscated or dynamic code in memory. A SOC team should proactively hunt for this behavior in Azure Sentinel to uncover stealthy execution techniques that bypass traditional static analysis and could serve as a precursor to more complex runtime attacks.
rule ThinstallEmbedded2312Jitit
{
meta:
author="malware-lu"
strings:
$a0 = { 6A 00 FF 15 [4] E8 D4 F8 FF FF E9 E9 AD FF FF FF 8B C1 8B 4C 24 04 89 88 29 04 00 00 C7 40 0C 01 00 00 00 0F B6 49 01 D1 E9 89 48 10 C7 40 14 80 00 00 00 C2 04 00 8B 44 24 04 C7 41 0C 01 00 00 00 89 81 29 04 00 00 0F B6 40 01 D1 E8 89 41 10 C7 41 14 80 00 00 00 C2 04 00 55 8B EC 53 56 57 33 C0 33 FF 39 45 0C 8B F1 76 0C 8B 4D 08 03 3C 81 40 3B 45 0C 72 F4 8B CE E8 43 00 00 00 8B 46 14 33 D2 F7 F7 8B 5E 10 33 D2 8B F8 8B C3 F7 F7 89 7E 18 89 45 0C 33 C0 33 C9 8B 55 08 03 0C 82 40 39 4D 0C 73 F4 48 8B 14 82 2B CA 0F AF CF 2B D9 0F AF FA 89 7E 14 89 5E 10 5F 5E 5B 5D C2 08 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 4 specific false positive scenarios for the ThinstallEmbedded2312Jitit detection rule, along with recommended filters and exclusions:
Scenario: Microsoft Endpoint Manager (Intune) Application Deployment
Microsoft.Windows.Appx installer often triggers embedded JIT compilation events during the initial installation phase. This mimics the behavior detected by the rule as suspicious embedded code execution.Microsoft.IntuneManagementExtension.exe or filter based on the parent process C:\Program Files (x86)\Microsoft Intune Management Extension\*.exe. Additionally, exclude file paths containing \AppData\Local\Microsoft\IntuneManagementExtension\.Scenario: Scheduled Antivirus Engine Updates
ThinstallEmbedded logic due to dynamic code generation in memory.falcon.sys, rtvscan64.exe, or symantec_engine_service. Alternatively, exclude any event where the command line contains keywords like /update or /definition.Scenario: Visual Studio Build Server (TFS/Azure DevOps)