This rule detects the presence of the Petitev14 YARA signature, which identifies a specific variant of the Petite packer often used by adversaries to compress and obfuscate malicious payloads to evade static analysis. Proactively hunting for this indicator in Azure Sentinel allows the SOC to identify potentially compromised endpoints or files that may be leveraging this packing technique to hide their true nature before execution or lateral movement occurs.
rule Petitev14
{
meta:
author="malware-lu"
strings:
$a0 = { B8 [4] 66 9C 60 50 8B D8 03 00 68 [4] 6A 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.
Petitev14 signature, especially if the installer is a self-extracting archive or uses a specific packing algorithm.
C:\Program Files\, C:\Program Files (x86)\) or specific known-good installer executables (e.g., setup.exe, install.exe, uninstall.exe) from specific vendor folders.jpackage tool or certain JRE components can produce executables that are packed in a manner similar to the Petite packer, triggering this rule during application builds or runtime updates.
.jar or executables named java.exe, jpackage.exe, or jlink.exe located within the JAVA_HOME directory or standard JDK installation paths.Petitev14 YARA rule, particularly in older or custom-built Electron apps.
resources\app\ or resources\app.asar (indicative of Electron apps) or specific known-good Electron app names (e.g., slack.exe, code.exe, discord.exe).