alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Danabot CnC Checkin";
flow:established,to_server;
http.method;
content:"GET";
http.uri;
content:"/api/key?k="; depth:11;
pcre:"/^(?:[A-Z0-9+/]{4})*(?:[A-Z0-9+/]{2}==|[A-Z0-9+/]{3}=|[A-Z0-9+/]{4})$/Ri";
http.user_agent;
content:"Mozilla|20|4.0|20 2f 20|Chrome"; depth:20; fast_pattern; endswith;
http.content_type;
content:"application|2f|x-www-form-urlencoded";
pcre:"/^[^\x20-\x7e\r\n]{2}$/R";
reference:md5,7f5f7de558fd2ef2a195b3a507c11ff2;
classtype:command-and-control;
sid:2027497; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, created_at 2019_06_20, deployment Perimeter, malware_family Danabot, performance_impact Low, confidence High, signature_severity Major, updated_at 2020_09_17;
)