alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Win32/MagicRAT CnC Activity M2";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:".php"; endswith;
http.content_type;
content:"application/x-www-form-urlencoded"; bsize:33;
http.request_body;
content:"session="; startswith;
content:"&type=windows"; distance:0; fast_pattern;
content:"&id=";
content:!"&"; distance:0;
threshold:type limit, count 1, seconds 300, track by_src;
reference:url,blog.talosintelligence.com/2022/09/lazarus-magicrat.html;
reference:md5,5c6f9c83426c6d33ff2d4e72c039b747;
classtype:trojan-activity;
sid:2038797; rev:1;
metadata:attack_target Client_Endpoint, created_at 2022_02_10, deployment Perimeter, malware_family MagicRAT, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2022_09_09;
)