alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE ELF/Chacha.DDoS/Xor.DDoS Stage 2 CnC Checkin";
flow:established,to_server;
http.method;
content:"POST";
http.user_agent;
content:"LuaSocket|20|"; depth:10; fast_pattern;
http.request_body;
content:"macaddress="; depth:11;
content:"&device="; distance:0;
content:"&type="; distance:0;
content:"&version="; distance:0;
http.connection;
content:"close,|20|TE"; depth:9;
http.header_names;
content:"TE|0d 0a 0d 0a|";
content:!"Referer";
reference:url,www.welivesecurity.com/2018/10/18/new-linux-chachaddos-malware-distributed-servers-vestacp-installed/;
classtype:command-and-control;
sid:2026523; rev:2;
metadata:affected_product Linux, created_at 2018_10_18, deployment Perimeter, malware_family ChaChaDDoS, malware_family XorDDoS, performance_impact Low, confidence High, signature_severity Major, tag DDoS, updated_at 2020_08_26;
)