MAL_Sophos_XG_Pygmy_Goat_AES_Key
Description
Detects Pygmy Goat - a native x86-32 ELF shared object that was discovered on Sophos XG firewall devices, providing backdoor access to the device. This detection rule is based on the Pygmy Goat AES key built on the stack or in data
Query · yara
strings:
$dword_1 = { 59 4b 6e 77 }
$dword_2 = { 51 6a 6d 41 }
$dword_3 = { 54 62 41 6e }
$dword_4 = { 52 6f 5a 6d }
$dword_5 = { 30 66 47 37 }
$dword_6 = { 55 5a 57 62 }
$dword_7 = { 32 59 55 78 }
$dword_8 = { 55 51 50 77 }
condition:
uint32(0) == 0x464c457f and all of them
// due to FPs - but I don't know the file size of the implant
and filesize < 4MB