This rule identifies the presence of BitSum Technologies’ PeCompact 2xx Slim Loader, a common executable compression tool that adversaries frequently use to reduce the size of malware payloads and evade basic static analysis. Proactively hunting for this specific loader in Azure Sentinel allows the SOC to detect potentially obfuscated binaries early in the kill chain, ensuring that compressed executables are inspected for hidden malicious code before they can execute or spread across the environment.
rule PeCompact_2xx_Slim_Loader_BitSum_Technologies_additional: PEiD
{
strings:
$a = { B8 ?? ?? ?? 02 50 64 FF 35 00 00 00 00 64 89 25 00 00 00 00 33 C0 89 08 50 45 43 6F 6D 70 61 63 74 32 00 }
condition:
$a at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
C:\Builds\, C:\Src\, D:\Projects\) or exclude processes initiated by known build tools like MSBuild, Jenkins, or TeamCity agents.LegacyApp.exe) using the PECompact GUI or command-line tool to optimize performance on older endpoints, saving the compressed file to a shared network drive or local C:\Tools\ directory.
.exe or .dll located in administrative tool directories (e.g., C:\Tools\, C:\Admin\, C:\Apps\) or exclude events where the source process is explorer.exe or cmd.exe interacting with paths containing Tools or Admin.Nightly_Compress_Apps) runs a PowerShell script or batch file that invokes pecompact.exe to compress a set of application binaries as part of a disk space optimization routine.
schtasks.exe, taskschd.msc, or powershell.exe and the command line contains pecompact or pecompact. Additionally, exclude files modified within the last 24 hours if the task runs daily.