SELECT * FROM events WHERE devicetype=12 AND (((((LOWER("Process Path") LIKE '%\ntdsdump.exe' OR LOWER("Process Path") LIKE '%\ntdsdumpex.exe') OR (LOWER("Process Name") LIKE '%\ntdsdump.exe' OR LOWER("Process Name") LIKE '%\ntdsdumpex.exe')) OR (LOWER(Command) LIKE '%ntds.dit%' AND LOWER(Command) LIKE '%system.hiv%') OR LOWER(Command) LIKE '%ntdsgrab.ps1%') OR (LOWER(Command) LIKE '%ac i ntds%' AND LOWER(Command) LIKE '%create full%') OR (LOWER(Command) LIKE '%/c copy %' AND LOWER(Command) LIKE '%\windows\ntds\ntds.dit%') OR (LOWER(Command) LIKE '%activate instance ntds%' AND LOWER(Command) LIKE '%create full%') OR (LOWER(Command) LIKE '%powershell%' AND LOWER(Command) LIKE '%ntds.dit%')) OR (LOWER(Command) LIKE '%ntds.dit%' AND ((LOWER("Parent Process Path") LIKE '%\apache%' OR LOWER("Parent Process Path") LIKE '%\tomcat%' OR LOWER("Parent Process Path") LIKE '%\appdata\%' OR LOWER("Parent Process Path") LIKE '%\temp\%' OR LOWER("Parent Process Path") LIKE '%\public\%' OR LOWER("Parent Process Path") LIKE '%\perflogs\%') OR ((LOWER("Process Path") LIKE '%\apache%' OR LOWER("Process Path") LIKE '%\tomcat%' OR LOWER("Process Path") LIKE '%\appdata\%' OR LOWER("Process Path") LIKE '%\temp\%' OR LOWER("Process Path") LIKE '%\public\%' OR LOWER("Process Path") LIKE '%\perflogs\%') OR (LOWER("Process Name") LIKE '%\apache%' OR LOWER("Process Name") LIKE '%\tomcat%' OR LOWER("Process Name") LIKE '%\appdata\%' OR LOWER("Process Name") LIKE '%\temp\%' OR LOWER("Process Name") LIKE '%\public\%' OR LOWER("Process Name") LIKE '%\perflogs\%')))))