alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Draytek recvCMD Command Injection Attempt (CVE-2024-41585)";
flow:established,to_server;
http.uri;
content:"/cgi-bin/"; startswith;
content:".cgi|3f|"; distance:0;
pcre:"/^.*?\x26{5,}/R";
content:"set_linux_time"; fast_pattern; distance:0;
pcre:"/^[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R";
reference:url,www.forescout.com/resources/draybreak-draytek-research;
reference:cve,2024-41585;
classtype:attempted-admin;
sid:2065413; rev:1;
metadata:affected_product DrayTek, attack_target Networking_Equipment, tls_state plaintext, created_at 2025_10_27, cve CVE_2024_41585, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, tag Exploit, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2025_10_27, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)