This rule detects the presence of Thinstall, a commercial executable compression tool frequently abused by adversaries to obfuscate malware payloads and evade signature-based detection. Proactively hunting for this artifact in Azure Sentinel allows the SOC team to identify potentially hidden or compressed executables that may be staging for execution or persistence, reducing the risk of missed low-severity threats.
rule ThinstallV27XJitit
{
meta:
author="malware-lu"
strings:
$a0 = { 9C 60 E8 00 00 00 00 58 BB [4] 2B C3 50 68 [4] 68 [4] 68 [4] E8 [4] E9 }
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.
Legitimate Application Installer Execution: Many commercial software packages (e.g., Adobe Creative Cloud, AutoCAD, or legacy enterprise applications) use Thinstall or similar packers to compress installers. When an administrator runs a standard setup.exe or installer.exe from a shared network drive or local temp folder, the YARA rule may match the packed binary structure.
C:\Program Files\, C:\Program Files (x86)\) or specific known-good vendor paths (e.g., C:\Program Files\Adobe\, C:\Program Files\Autodesk\). Additionally, whitelist processes initiated by msiexec.exe or setup.exe with a known parent process like explorer.exe or cmd.exe from an admin workstation.Scheduled Maintenance Job for Legacy Tools: Some legacy internal tools or third-party utilities (e.g., old versions of WinRAR, 7-Zip, or specific backup agents) may be packed with Thinstall to reduce size. If these are executed via a scheduled task (e.g., Task Scheduler running legacy_tool.exe nightly for log rotation or backup), the rule triggers on the packed executable.
svchost.exe (specifically the Task Scheduler service) or Taskeng.exe, and the file path matches known legacy tool directories (e.g., C:\Tools\, C:\Apps\). Consider whitelisting specific MD5/SHA256 hashes of known packed binaries used in scheduled jobs.Developer Testing in Isolated Environments: Developers or QA engineers may test new builds or third-party libraries that are packed with Thinstall during development cycles. These tests often run from non-standard directories like `C:\Users