alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Spark RAT CnC Checkin (POST)";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"|2f|api|2f|client|2f|update|3f|arch|3d|"; startswith; fast_pattern;
pcre:"/^(?:386|amd64)/R";
content:"&commit="; within:8;
pcre:"/^(?:[a-z0-9]{40})/R";
content:"&os="; within:4;
pcre:"/^(?:linux|windows)$/R";
http.host;
pcre:"/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/";
http.content_len;
content:"384"; bsize:3;
http.content_type;
content:"application|2f|octet|2d|stream"; bsize:24;
http.accept_enc;
content:"gzip"; bsize:4;
http.header;
content:"|0d 0a|Secret|3a 20|";
pcre:"/^(?:[a-z0-9]{40})/R";
http.header_names;
content:"|0d 0a|Host|0d 0a|User-Agent|0d 0a|Content-Length|0d 0a|Content-Type|0d 0a|Secret|0d 0a|Accept-Encoding|0d 0a 0d 0a|"; bsize:77;
reference:md5,9bcae60b3c1a483b8c233b575aad3f41;
reference:url,twitter.com/suyog41/status/1693563144617206147;
classtype:trojan-activity;
sid:2047681; rev:1;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, affected_product Linux, attack_target Client_Endpoint, created_at 2023_08_21, deployment Perimeter, malware_family SparkRAT, confidence High, signature_severity Critical, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2023_08_21, reviewed_at 2023_08_21;
)