alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE TA402/Molerats Pierogi Backdoor Activity";
flow:established,to_server;
http.method;
content:"POST";
http.request_body;
content:"cname="; depth:6;
pcre:"/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})/R";
content:"&av="; within:40;
content:"&osversion="; within:50;
content:"&aname="; within:50; fast_pattern;
content:"&ver=";
pcre:"/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/R";
http.header_names;
content:!"Referer|0d 0a|";
content:!"User-Agent|0d 0a|";
reference:url,www.cybereason.com/blog/new-cyber-espionage-campaigns-targeting-palestinians-part-2-the-discovery-of-the-new-mysterious-pierogi-backdoor;
classtype:targeted-activity;
sid:2029431; rev:2;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2020_02_13, deployment Perimeter, malware_family Molerats, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2020_10_29;
)