alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE DarkHotel Payload Uploading to CnC";
flow:established,to_server;
http.method;
content:"POST";
http.user_agent;
content:"|29 20|A"; endswith;
http.request_body;
content:"filename=|22|";
content:"|3a 5c|Windows|5c|"; distance:1; within:10;
pcre:"/^[A-F0-9]{8}_[A-F0-9]{8}\.sql/Ri";
content:"|00|.|00|i|00|n|00|k|00|"; distance:0; fast_pattern;
http.request_line;
content:".php|20|HTTP/1.0";
reference:url,blogs.jpcert.or.jp/ja/2019/05/darkhotel_lnk.html;
classtype:targeted-activity;
sid:2027398; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, created_at 2019_05_30, deployment Perimeter, malware_family DarkHotel, performance_impact Low, confidence High, signature_severity Major, tag APT, tag DarkHotel, updated_at 2020_09_17;
)