alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE TA398 AresRAT CnC Exfil (POST)";
flow:established,to_server;
urilen:<38;
http.method;
content:"POST";
http.uri;
content:"/root_"; fast_pattern;
pcre:"/^\x2f(?:api|uploads?)\x2froot_\d{10,18}\x2f(?:hello|letter|upload)$/";
http.request_body;
content:"name|3d 22|uploaded|22 3b 20|filename|3d 22|list|2e|txt|22|";
content:"|2e 2f 2e|bashrc"; distance:0;
content:"|2e 2f 2e|profile"; distance:0;
content:"|2e 2f 2e|viminfo"; distance:0;
reference:url,x.com/Cyberteam008/status/1920423302683623728;
reference:url,pastebin.com/xG0rWi9J;
reference:md5,c8e319f97724c8b3b5ed27ca28849fd2;
classtype:command-and-control;
sid:2062173; rev:1;
metadata:affected_product Linux, attack_target Client_Endpoint, tls_state plaintext, created_at 2025_05_08, deployment Perimeter, malware_family AresRAT, performance_impact Low, confidence High, signature_severity Major, tag c2, tag TA398, updated_at 2025_05_08, mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1071, mitre_technique_name Application_Layer_Protocol;
target:src_ip;
)