alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE LokiBot Request for C2 Commands Detected M2";
flow:established,to_server;
http.method;
content:"POST";
http.content_type;
content:"application|2f|octet-stream";
http.header;
content:"Content-Encoding|3a 20|binary|0d 0a|Content-Key|3a 20|"; fast_pattern;
content:"|0d 0a|"; distance:8; within:2;
http.header_names;
content:!"|0d 0a|Referer|0d 0a|";
content:"|0d 0a|User-Agent|0d 0a|Host|0d 0a|Accept|0d 0a|Content-Type|0d 0a|Content-Encoding|0d 0a|Content-Key|0d 0a|Content-Length|0d 0a|Connection|0d 0a 0d 0a|";
http.request_body;
content:"|00 28 00|"; offset:1; depth:3;
pcre:"/^[\x00-\x01]\x00.\x00{3}/R";
classtype:command-and-control;
sid:2024318; rev:6;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2017_05_17, deployment Perimeter, malware_family lokibot, confidence High, signature_severity Critical, updated_at 2024_11_20;
)