SUSP_AES_Key_in_MySql_History
Description
Detects AES key outside of key management in .mysql_history
Query · yara
strings:
$c1 = /\bAES_(DE|EN)CRYPT\(.{1,128}?,.??('|").{1,128}?('|")\)/ ascii
$c2 = /\baes_(de|en)crypt\(.{1,128}?,.??('|").{1,128}?('|")\)/ ascii
condition:
filename == ".mysql_history" and
any of ($c*)