alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE W32/Qakbot.Bot Version 8 CnC Beacon";
flow:established,to_server;
urilen:7<>32;
content:"|0d 0a 0d 0a|v="; fast_pattern;
http.method;
content:"POST";
http.uri;
content:".php"; endswith;
pcre:"/^\/[b-u][A-Za-z0-9]{6,25}\.php$/";
http.header_names;
content:!"Referer|0d 0a|";
http.request_body;
content:"&c=";
reference:url,www.anubisnetworks.com/the-return-of-qakbot/;
reference:md5,e9201c8b126ac40229e9ce3f82f5c608;
reference:md5,749a7bf2ad84212bd78e46d240a4f434;
classtype:command-and-control;
sid:2018204; rev:4;
metadata:attack_target Client_Endpoint, created_at 2014_03_04, deployment Perimeter, signature_severity Major, tag c2, updated_at 2020_04_28, mitre_tactic_id TA0010, mitre_tactic_name Exfiltration, mitre_technique_id T1041, mitre_technique_name Exfiltration_Over_C2_Channel;
)