alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET EXPLOIT SUSPICIOUS Possible CVE-2017-0199 IE7/NoCookie/Referer HTA dl";
flow:to_server,established;
http.uri;
content:".hta"; nocase; fast_pattern;
pcre:"/\.hta(?:[?&]|$)/i";
http.user_agent;
content:"Mozilla/4.0 (compatible|3b 20|MSIE 7.0|3b|"; depth:34;
http.header_names;
content:!"Referer|0d 0a|";
content:!"Cookie|0d 0a|";
reference:md5,66a42e338e32fb6c02c9d4c56760d89d;
classtype:attempted-user;
sid:2024449; rev:4;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2017_07_07, cve CVE_2017_0199, deployment Perimeter, confidence Medium, signature_severity Major, tag CISA_KEV, updated_at 2020_11_05;
)