alert tcp any any -> $HOME_NET 3306 (
msg:"ET EXPLOIT Possible MySQL cnf overwrite CVE-2016-6662 Attempt";
flow:established,to_server;
content:"|03|"; offset:4;
content:"global_log_dir"; nocase; distance:0;
content:".cnf"; nocase; distance:0;
content:"nmalloc_lib"; fast_pattern;
reference:cve,2016-6662;
reference:url,legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html;
classtype:attempted-admin;
sid:2023202; rev:2;
metadata:affected_product MySQL, attack_target Server, created_at 2016_09_13, cve CVE_2016_6662, deployment Datacenter, confidence Medium, signature_severity Major, updated_at 2019_10_08;
)