alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE LokiBot Application/Credential Data Exfiltration Detected M2";
flow:established,to_server;
http.method;
content:"POST";
http.content_type; bsize:24;
content:"application|2f|octet-stream";
http.header;
content:"Content-Encoding|3a 20|binary|0d 0a|Content-Key|3a 20|";
content:"|0d 0a|"; distance:8; within:2;
http.header_names; bsize:75;
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 0d 0a|"; fast_pattern;
http.request_body;
content:"|00 27 00|"; offset:1; depth:3;
pcre:"/^[\x00-\x01]\x00.\x00{3}/R";
classtype:trojan-activity;
sid:2024317; 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;
)