alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Android/AhMyth RAT WebSocket Session";
flow:to_server,established;
http.method;
content:"GET";
http.uri;
content:"/socket.io/?release="; startswith; fast_pattern;
content:"&model="; distance:0;
content:"&EIO="; distance:0;
content:"&id="; distance:0;
content:"&transport=websocket&manf="; distance:0;
content:"&sid="; distance:0;
http.header_names;
content:!"Referer";
reference:url,www.stratosphereips.org/blog/2021/5/6/dissecting-a-rat-analysis-of-the-ahmyth;
classtype:trojan-activity;
sid:2034165; rev:1;
metadata:affected_product Android, attack_target Client_Endpoint, created_at 2021_10_11, deployment Perimeter, malware_family AhMyth, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2021_10_11;
)