osquery-defense-kit/incident_response/shell_history.sql

10 lines
180 B
MySQL
Raw Normal View History

2022-10-13 13:11:17 +00:00
-- Retrieves the command history, per user, by parsing the shell history files.
--
-- tags: postmortem
2022-10-13 13:11:17 +00:00
-- platform: posix
SELECT
2022-10-17 23:06:17 +00:00
*
FROM
2022-10-17 23:06:17 +00:00
users
JOIN shell_history USING (uid);