alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET MALWARE Linux Backdoor Linux/Cdorked.A Redirect 1";
flow:from_server,established;
http.stat_code;
content:"302";
http.location;
content:"/index.php?";
content:"JnN1cmk9"; distance:0; fast_pattern;
pcre:"/^https?\:\/\/[a-f0-9]{16}\.[^\r\n]+?\/index\.php\?[a-z]=(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$/i";
reference:url,welivesecurity.com/2013/04/26/linuxcdorked-new-apache-backdoor-in-the-wild-serves-blackhole/;
classtype:trojan-activity;
sid:2016793; rev:6;
metadata:created_at 2013_04_27, signature_severity Major, updated_at 2020_04_24;
)