This YARA rule targets specific executable file characteristics associated with the EXEStealth malware family, which often employs stealthy packing or obfuscation techniques to evade standard signature-based detection. Proactively hunting for these indicators in Azure Sentinel allows the SOC to identify potentially compromised endpoints or malicious artifacts before they execute lateral movement or establish persistence within the environment.
rule EXEStealthv274
{
meta:
author="malware-lu"
strings:
$a0 = { EB 00 EB 17 53 68 61 72 65 77 61 72 65 20 2D 20 45 78 65 53 74 65 61 6C 74 68 00 60 90 E8 00 00 00 00 5D 81 ED C4 27 40 00 B9 15 00 00 00 83 C1 04 83 C1 01 EB 05 EB FE 83 C7 56 EB 00 83 E9 02 81 C1 78 43 27 65 EB 00 81 C1 10 25 94 00 81 E9 63 85 00 00 B9 }
condition:
$a0
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
%TEMP% or %LOCALAPPDATA% which may match generic stealth patterns.
C:\Users\*\AppData\Local\Temp\ and C:\ProgramData\Package Cache\ where the parent process is a known installer service (e.g., msiexec.exe, setup.exe, or install.exe)..exe wrappers or launchers in the user’s temp directory to execute JAR files or native libraries, which can appear as suspicious standalone executables.
C:\Users\*\AppData\Local\Temp\ if the parent process is java.exe, javaw.exe, or jrebin\javaw.exe.bin\, obj\, target\) that are not yet signed or registered in the software inventory.
\bin\, \obj\, \target\, or \build\ if the parent process is a known IDE or build tool (e.g., devenv.exe, idea64.exe, mvn.cmd, gradle.bat).