alert tcp $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET MALWARE MoonRise CnC Commands Inbound via WebSocket";
flow:established,to_client;
content:"|81|"; startswith;
content:"|7b 22|type|22 3a 22|"; within:15;
content:"|7b 22|type|22 3a 22|command|22 2c 22|command|22 3a 22|"; fast_pattern;
content:"|22|data|22 3a 7b|"; distance:0;
threshold:type limit,count 1,seconds 300,track by_src;
reference:url,x.com/anyrun_app/status/2024124064311222489;
reference:url,app.any.run/tasks/d3e5e733-3b0d-4cf7-a7a8-ea1553cd16b9;
classtype:command-and-control;
sid:2067862; rev:1;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, tls_state plaintext, created_at 2026_02_20, deployment Perimeter, malware_family MoonRise, confidence High, signature_severity Critical, tag c2, updated_at 2026_02_20, mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1071, mitre_technique_name Application_Layer_Protocol;
target:dest_ip;
)