MAL_EarthWorm_Socks_Proxy_ID_Generation
Description
Detects EarthWorm - a reverse socks proxy used by the threat group that deployed Pygmy Goat malware on Sophos XG firewall devices. The detection is based on the pool num generation x86 assembly.
Query · yara
strings:
$chartoi = {
8b 45 ?? // MOV EAX,dword ptr [EBP + ??]
c1 e0 07 // SHL EAX,0x7
89 c1 // MOV ECX,EAX
8b 55 ?? // MOV EDX,dword ptr [EBP + ??]
8b 45 ?? // MOV EAX,dword ptr [EBP + ??]
01 d0 // ADD EAX,EDX
0f b6 00 // MOVZX EAX,byte ptr [EAX]
0f be c0 // MOVSX EAX,AL
01 c8 // ADD EAX,ECX
89 45 ?? // MOV dword ptr [EBP + ??],EAX
83 6d ?? 01 // SUB dword ptr [EBP + ??],0x1
}
condition:
uint32(0) == 0x464c457f and all of them