alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Possible Malicous Macro DL EXE Jul 01 2016 (userdir dotted quad)";
flow:established,to_server;
http.uri;
content:"/~"; depth:2;
pcre:"/^\/\~[a-z]+\/(?:[a-z]+\/)*[a-z]+\.exe$/i";
http.host;
pcre:"/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?:\x3a\d{1,5})?$/";
http.request_line;
content:".exe HTTP/1."; fast_pattern;
http.header_names;
content:!"Referer|0d 0a|";
content:!"Cookie|0d 0a|";
reference:md5,a27bb6ac49f890bbdb97d939ccaa5956;
classtype:trojan-activity;
sid:2022940; rev:6;
metadata:affected_product MS_Office, attack_target Client_Endpoint, created_at 2016_07_01, deployment Perimeter, malware_family MalDocGeneric, performance_impact Moderate, confidence Medium, signature_severity Major, tag MalDoc, updated_at 2024_04_08;
)