This rule detects the presence of executable files packed with ASProtect v11, a commercial packer frequently abused by threat actors to obscure malicious code and evade static analysis. Proactively hunting for this signature allows the SOC to identify potentially compromised endpoints or staging areas where adversaries are using known packing techniques to hide their payloads within the Azure environment.
rule ASProtectv11MTE
{
meta:
author="malware-lu"
strings:
$a0 = { 60 E9 [4] 91 78 79 79 79 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.
Scenario: Legacy .NET Applications Compiled with ASProtect
C:\Program Files\*, C:\Program Files (x86)\*) where the file extension is .exe or .dll and the file size is less than 50MB. Additionally, exclude paths containing specific legacy application names (e.g., *LegacyApp*, *OldERP*) if identified during asset inventory.Scenario: Scheduled Backup or Maintenance Scripts
C:\Scripts or C:\Maintenance and executed via Task Scheduler under the SYSTEM or LocalService account.Task Scheduler (taskschd.msc or svchost.exe with specific service names) and the file path matches C:\Scripts\* or C:\Maintenance\*. Alternatively, whitelist specific file hashes (SHA256) of known maintenance scripts to avoid re-detecting them on every execution.Scenario: Third-Party Plugin or Add-on Binaries