alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Kimsuky APT Related Host Data Exfil M5";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
pcre:"/^\/\?m=[abcde]&p1=[a-f0-9-]{8,40}(?:&p2=[^&]+)?(?:&p3=[^&]+)?$/i";
http.uri.raw;
content:"//?m="; depth:5; fast_pattern;
content:"&p1="; distance:1; within:4;
http.header_names;
content:!"Referer|0d 0a|";
reference:md5,0684d80e91581730f814e831f703bf5b;
reference:url,twitter.com/s1ckb017/status/1507316584079142915;
classtype:trojan-activity;
sid:2035611; rev:2;
metadata:created_at 2022_03_25, malware_family Kimsuky, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2022_05_03;
)