SELECT DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS event_time, LOGSOURCENAME(logsourceid) AS log_source, sourceip, username, "Process Path", "Process Name", "Command" FROM events WHERE (("Process Path" ILIKE '%\certutil.exe' OR "Process Name" ILIKE '%certutil.exe') AND ("Command" ILIKE '%urlcache%' OR "Command" ILIKE '%verifyctl%') AND "Command" ILIKE '%http%') AND LOGSOURCETYPENAME(devicetype) IN ('Microsoft Windows Security Event Log') LAST 7 DAYS