alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE FOX-SRT ShimRat check-in (php)";
flow:established,to_server;
threshold:type limit, track by_src, count 1, seconds 600;
content:"|0d 0a 0d 0a|php"; fast_pattern;
http.method;
content:"POST";
http.uri;
content:".php"; endswith;
http.request_body;
pcre:"/^php.{0,500}[\x80-\xff]/s";
http.header_names;
content:!"|0d 0a|Content-Type|0d 0a|";
content:!"|0d 0a|Referer|0d 0a|";
content:!"|0d 0a|Cookie|0d 0a|";
reference:url,blog.fox-it.com/2016/06/15/mofang-a-politically-motivated-information-stealing-adversary/;
classtype:trojan-activity;
sid:2022901; rev:6;
metadata:created_at 2016_06_15, signature_severity Major, updated_at 2024_03_24;
)