This rule detects the presence of Thinstall-compressed executables, which adversaries often use to obfuscate malicious payloads and reduce file size for easier transfer or execution. Proactively hunting for these embedded Thinstall signatures helps the SOC identify potentially hidden or disguised malware that may be evading standard static analysis in the Azure Sentinel environment.
rule ThinstallEmbedded22X2308Jitit
{
meta:
author="malware-lu"
strings:
$a0 = { B8 EF BE AD DE 50 6A 00 FF 15 [4] E9 B9 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.
Scenario: A legacy internal application (e.g., LegacyERPClient.exe) is distributed using Thinstall 2.2.2308 to reduce file size and improve startup time. The YARA rule matches the embedded Thinstall header in the binary during a full disk scan or endpoint detection scan.
C:\Program Files\LegacyERP\Client\LegacyERPClient.exe or add a condition to ignore files where the Thinstall version string matches 2.2.2308 if the parent process is a known trusted service (LegacyERPService.exe).Scenario: An IT administrator manually installs a small utility tool (e.g., NetDiagTool.exe) that was packaged with Thinstall 2.2.2308 via a GPO or manual copy to the C:\ProgramData\Temp\ directory for temporary use. The rule triggers on the newly copied binary before it is moved to its final location.
C:\ProgramData\Temp\, C:\Users\*\AppData\Local\Temp\) if the file age is less than 24 hours, or whitelist the specific hash of the known utility tool.Scenario: A scheduled maintenance job (BackupAgent.exe) uses a Thinstall-embedded helper script or small executable (ThinstallHelper22X2308.exe) to compress or extract backup archives. The YARA rule detects the embedded Thinstall signature in the helper binary during the nightly backup window.
BackupAgent.exe and the file path matches C:\Program Files\BackupSuite\Helpers\ThinstallHelper22X2308.exe.