alert http $HOME_NET any -> $EXTERNAL_NET [7080,8080,443,80,4143,995,21,50000,20,8090,8443,990,22] (
msg:"ET MALWARE Win32/Emotet CnC Activity (POST) M9";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:!".";
content:!"&";
content:!"-";
http.user_agent;
content:"Mozilla/4.0 (compatible|3b 20|MSIE 7.0|3b 20|Windows NT 6."; startswith;
content:"|3b 20|"; distance:1; within:2;
http.request_body;
content:!".zip";
content:!".png";
content:!".jp";
content:!".exe";
content:"--|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|"; fast_pattern;
http.content_len;
byte_test:0,<,9000,0,string,dec;
byte_test:0,>,500,0,string,dec;
http.header_names;
content:"|0d 0a|Content-Type|0d 0a|User-Agent|0d 0a|Host|0d 0a|Content-Length|0d 0a|Connection|0d 0a|Cache-Control|0d 0a 0d 0a|"; depth:96;
reference:md5,73f8864c7dfee8445205d0d233f20707;
classtype:trojan-activity;
sid:2035076; rev:8;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2020_05_04, deployment Perimeter, malware_family Emotet, confidence High, signature_severity Major, updated_at 2023_05_22;
)