osquery-defense-kit/incident_response/files-downloads.sql
Thomas Stromberg 08d0235608
Fix bug
2023-05-12 16:26:44 -04:00

16 lines
338 B
SQL

-- Returns a list of file information from Downloads directories
--
-- tags: postmortem
-- platform: posix
SELECT
file.*,
magic.data,
hash.sha256
FROM
file
LEFT JOIN magic ON file.path = magic.path
LEFT JOIN hash ON file.path = hash.path
WHERE
file.path LIKE "/home/%/Downloads/%"
OR file.path LIKE "/Users/%/Downloads/%"