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) M7";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:!".";
content:!"&";
content:!"-";
http.header;
content:"DNT|3a 20|1|0d 0a|";
http.user_agent;
content:"Mozilla/4.0 (compatible|3b 20|MSIE 7.0|3b 20|Windows NT 6."; startswith;
http.request_body;
content:!".";
content:"%2B"; fast_pattern;
http.content_len;
byte_test:0,<,1400,0,string,dec;
byte_test:0,>,300,0,string,dec;
http.start;
pcre:"/^POST\shttp\x3a\x2f\x2f[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(?:\x3a[0-9]{2,5})(?P<urivar>\/(?:[A-Z0-9a-z]{2,25}){1,5})\sHTTP\/1\.0\r\nReferer\x3a\x20http\x3a\x2f\x2f[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(?:\x3a[0-9]{2,5})?(?P=urivar)\r\n/";
http.header_names;
content:"|0d 0a|Referer|0d 0a|Content-Type|0d 0a|DNT|0d 0a|User-Agent|0d 0a|Host|0d 0a|Content-Length|0d 0a|"; depth:64;
classtype:command-and-control;
sid:2029279; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2020_01_14, deployment Perimeter, malware_family Emotet, performance_impact Significant, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_04_04;
)