alert tcp $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Backdoor family PCRat/Gh0st CnC traffic (OUTBOUND) 14";
flow:established,to_server;
stream_size:server,<,5;
dsize:>11;
byte_extract:4,0,c_size,little;
byte_test:4,>,c_size,4,little;
content:"|08 01|"; offset:2; depth:2;
content:"|79 94|"; offset:13; depth:2;
pcre:"/^.{8}[\x20-\x7e]+?\x79\x94/s";
reference:url,www.securelist.com/en/descriptions/10155706/Trojan-GameThief.Win32.Magania.eogz;
reference:url,www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?Name=Backdoor%3AWin32%2FPcClient.ZR&ThreatID=-2147325231;
reference:md5,9fae15fa8ab6bb8d78d609bdceafe28e;
classtype:command-and-control;
sid:2017944; rev:6;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2014_01_08, deployment Perimeter, malware_family Gh0st, malware_family PCRAT, performance_impact Significant, confidence Medium, signature_severity Critical, tag PCRAT, tag Gh0st, tag RAT, updated_at 2021_09_09;
)