SELECT * FROM events WHERE devicetype=12 AND ((LOWER(Command) LIKE '%domainlist%' OR LOWER(Command) LIKE '%trustdmp%' OR LOWER(Command) LIKE '%dcmodes%' OR LOWER(Command) LIKE '%adinfo%' OR LOWER(Command) LIKE '% dclist %' OR LOWER(Command) LIKE '%computer_pwdnotreqd%' OR LOWER(Command) LIKE '%objectcategory=%' OR LOWER(Command) LIKE '%-subnets -f%' OR LOWER(Command) LIKE '%name="domain admins"%' OR LOWER(Command) LIKE '%-sc u:%' OR LOWER(Command) LIKE '%domainncs%' OR LOWER(Command) LIKE '%dompol%' OR LOWER(Command) LIKE '% oudmp %' OR LOWER(Command) LIKE '%subnetdmp%' OR LOWER(Command) LIKE '%gpodmp%' OR LOWER(Command) LIKE '%fspdmp%' OR LOWER(Command) LIKE '%users_noexpire%' OR LOWER(Command) LIKE '%computers_active%' OR LOWER(Command) LIKE '%computers_pwdnotreqd%') OR (LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=bca5675746d13a1f246e2da3c2217492%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=53e117a96057eaf19c41380d0e87f1c2%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=d144de8117df2beceaba2201ad304764%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=12ce1c0f3f5837ecc18a3782408fa975%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=4fbf3f084fbbb2470b80b2013134df35%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=49b639b4acbecc49d72a01f357aa4930%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=680dad9e300346e05a85023965867201%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=21aa085d54992511b9f115355e468782%') OR Filename='AdFind.exe') AND (NOT((LOWER("Process Path") LIKE '%\adfind.exe' OR LOWER("Process Name") LIKE '%\adfind.exe')))