alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Win32/Grimagent CnC Activity";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/gate.php"; endswith; fast_pattern;
http.header;
content:"|0d 0a|Keep-Alive|3a 20|";
content:"|0d 0a|Connection|3a 20|keep-alive|0d 0a|Referer|3a 20|https|3a 2f 2f|www."; distance:3; within:50;
pcre:"/^(?:(?:youtub|googl)e|microsoft|amazon|ebay).com\x0d\x0a/Rsi";
http.request_body;
content:!"&";
pcre:"/^[A-Za-z0-9]{3,25}=[a-f0-9]{28,}$/s";
reference:md5,d0ef174669abc7d6358531002e458df1;
classtype:trojan-activity;
sid:2034179; rev:1;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2020_10_29, deployment Perimeter, malware_family Win32_Grimagent, confidence High, signature_severity Major, updated_at 2020_10_29;
)