alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Locky CnC Checkin";
flow:to_server,established;
urilen:14;
http.method;
content:"POST";
http.uri;
content:"/imageload.cgi"; fast_pattern;
http.header;
content:"x-requested-with|3a 20|XMLHttpRequest|0d 0a|";
content:"www-form-urlencoded|0d 0a|";
http.request_body;
pcre:"/^[A-Za-z]{1,10}=[^&]+(?:&[A-Za-z]{1,10}=[^&]+){10,}$/s";
reference:md5,40ebefdec6870263827ce6425702e785;
classtype:command-and-control;
sid:2026517; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2018_10_17, deployment Perimeter, confidence High, signature_severity Major, tag Locky, updated_at 2020_11_04;
)