This rule detects the presence of eXPressor, a commercial .NET obfuscator frequently used by adversaries to hide malicious code logic and evade static analysis. Proactively hunting for this indicator allows the SOC to identify potentially compromised .NET applications or payloads that rely on obfuscation to mask their intent within the Azure environment.
rule eXPressor12CGSoftLabs
{
meta:
author="malware-lu"
strings:
$a0 = { 55 8B EC 81 EC D4 01 00 00 53 56 57 EB 0C 45 78 50 72 2D 76 2E 31 2E 32 2E 2E }
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.
bin\Debug, bin\Release, obj\) or exclude processes named MSBuild.exe, dotnet.exe, or csc.exe that are writing the executable.eXPressor.exe to obfuscate the final artifact before packaging.
jenkins.exe, vstsagent.exe, runner.exe) or where the working directory matches the pipeline workspace path (e.g., C:\agent\_work\).svchost.exe (Task Scheduler) or bash.exe/cmd.exe and the command line contains specific keywords like obfuscate or eXPressor in a known maintenance script path.eXPressor to obfuscate a one-off diagnostic tool or a small internal API client for distribution to support teams.
powershell.exe or `pwsh.exe