alert tcp $EXTERNAL_NET any -> $SQL_SERVERS 3306 (
msg:"ET EXPLOIT MySQL Server for Windows Remote SYSTEM Level Exploit (Stuxnet Techique DUMP INTO executable)";
flow:to_server,established;
content:"|03|"; offset:3; depth:4;
content:"SELECT data FROM"; nocase; distance:0;
content:"INTO DUMPFILE"; nocase; distance:0;
content:"c|3a|/windows/system32/"; nocase; fast_pattern;
content:".exe"; nocase; distance:0;
pcre:"/SELECT data FROM [^\x20]+?\x20INTO DUMPFILE [\x27\x22]c\x3a\/windows\/system32\/[a-z0-9_-]+?\.exe[\x27\x22]/i";
reference:url,seclists.org/fulldisclosure/2012/Dec/att-13/;
classtype:attempted-user;
sid:2015995; rev:4;
metadata:created_at 2012_12_06, signature_severity Major, updated_at 2019_07_26;
)