APT_MAL_ASP_DLL_HAFNIUM_Mar21_1
Description
Detects HAFNIUM compiled ASP.NET DLLs dropped on compromised servers
Query · yara
strings:
$s1 = "Page_Load" ascii fullword
$sc1 = { 20 00 3A 00 20 00 68 00 74 00 74 00 70 00 3A 00
2F 00 2F 00 (66|67) 00 2F 00 00 89 A3 0D 00 0A 00 }
$op1 = { 00 43 00 58 00 77 00 30 00 4a 00 45 00 00 51 7e 00 2f }
$op2 = { 58 00 77 00 30 00 4a 00 45 00 00 51 7e 00 2f 00 61 00 }
$op3 = { 01 0e 0e 05 20 01 01 11 79 04 07 01 12 2d 04 07 01 12 31 02 }
$op4 = { 5e 00 03 00 bc 22 00 00 00 00 01 00 85 03 2b 00 03 00 cc }
condition:
uint16(0) == 0x5a4d and
filesize < 50KB and
all of ($s*) or all of ($op*)