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) M3";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:!".";
content:!"&";
content:!"-";
content:"/"; endswith;
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.1|3b 20|"; depth:51;
pcre:"/^(?:WOW64\x3b\s)?Trident\/[457]\.0\x3b\s*SLCC2\x3b\s\.NET\sCLR\s2\.0\.50727\x3b\s\.NET\sCLR\s3\.5\.30729\x3b\s(?:\x20\.NET\x20CLR\x203\.5\.30729\x3b\s)?\.NET\sCLR\s3\.0\.30729\x3b\sMedia\sCenter\sPC\s6\.0\x3b\s\.NET4\.0C\x3b\s\.NET4\.0E(?:\.NET4\.0E(?:\x3b\s)?)?(?:\x3b\sInfoPath\.3)?\)$/Rs";
http.request_body;
content:!".zip";
content:!".png";
content:!".jp";
content:!".exe";
content:"%2B"; fast_pattern;
http.content_len;
byte_test:0,<,675,0,string,dec;
byte_test:0,>,415,0,string,dec;
http.start;
pcre:"/^POST\s(?P<urivar>\/(?:[a-z]{2,25}\/){1,5})\sHTTP\/1\.1\r\nReferer\x3a\x20http\x3a\x2f\x2f[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(?P=urivar)\r\n/";
content:"/|20|HTTP/1.1|0d 0a|Referer|3a 20|";
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|Connection|0d 0a|Cache-Control|0d 0a 0d 0a|"; depth:93;
reference:md5,bda5b754bb079eec4389a9f43d16c903;
classtype:command-and-control;
sid:2035058; rev:4;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2019_03_27, deployment Perimeter, malware_family Emotet, performance_impact Moderate, confidence High, signature_severity Major, updated_at 2020_09_17;
)