alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Win32/MagicRAT CnC Activity M1";
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=system"; distance:0; fast_pattern;
content:!"&"; distance:0;
reference:url,blog.talosintelligence.com/2022/09/lazarus-magicrat.html;
reference:md5,5c6f9c83426c6d33ff2d4e72c039b747;
classtype:trojan-activity;
sid:2038780; rev:2;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2022_02_10, deployment Perimeter, malware_family MagicRAT, performance_impact Low, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2022_09_09;
)