alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Win32/Datper CnC Activity";
flow:established,to_server;
http.method;
content:"GET";
http.uri;
content:".php?";
content:"="; within:9;
pcre:"/\.php\?[a-z]{3,8}=[a-f0-9]{16}[01][a-z]+$/i";
http.user_agent;
content:"Mozilla/5.0 (Windows NT 6.1|3b 20|WOW64|3b 20|Trident/7.0|3b 20|rv|3a|11.0) like Gecko"; fast_pattern; startswith;
http.header_names;
content:!"Referer|0d 0a|";
reference:md5,eae5b16bef5f7dc37909ec91367fa807;
reference:url,blog.jpcert.or.jp/2017/08/detecting-datper-malware-from-proxy-logs.html;
classtype:command-and-control;
sid:2024601; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2017_08_22, deployment Perimeter, malware_family Datper, performance_impact Moderate, confidence High, signature_severity Major, updated_at 2020_08_11;
)