PoisonIvy_RAT_ssMUIDLL
Description
Detects PoisonIvy RAT DLL mentioned in Palo Alto Blog in April 2016
Query · yara
strings:
$s1 = "ssMUIDLL.dll" fullword ascii
// 0x10001f81 6a 00 push 0
// 0x10001f83 c6 07 e9 mov byte ptr [edi], 0xe9
// 0x10001f86 ff d6 call esi
$op1 = { 6a 00 c6 07 e9 ff d6 } // sample=e9ccf4e139bbbd114b67cc3cee260d1cb638c9d0 address=0x10001f81
// 0x100012a9 02 cb add cl, bl
// 0x100012ab 6a 00 push 0
// 0x100012ad 88 0f mov byte ptr [edi], cl
// 0x100012af ff d6 call esi
// 0x100012b1 47 inc edi
// 0x100012b2 ff 4d fc dec dword ptr [ebp - 4]
// 0x100012b5 75 ?? jne 0x10001290
$op2 = { 02 cb 6a 00 88 0f ff d6 47 ff 4d fc 75 } // sample=e9ccf4e139bbbd114b67cc3cee260d1cb638c9d0 address=0x100012a9
// 0x10001f93 6a 00 push 0
// 0x10001f95 88 7f 02 mov byte ptr [edi + 2], bh
// 0x10001f98 ff d6 call esi
$op3 = { 6a 00 88 7f 02 ff d6 } // sample=e9ccf4e139bbbd114b67cc3cee260d1cb638c9d0 address=0x10001f93
condition:
( uint16(0) == 0x5a4d and filesize < 20KB and ( all of ($op*) ) ) or ( all of them )