alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE LokiBot Keylogger Data Exfiltration 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 2b 00|"; offset:1; depth:3;
pcre:"/^[\x00-\x01]\x00.\x00[\x00-\x01]\x00.\x00.{4}\x01\x00.\x00{3}.{48}\x05\x00{3}/R";
classtype:trojan-activity;
sid:2024319; rev:5;
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 Major, updated_at 2024_03_11;
)