osquery-defense-kit/incident_response/shell_history.sql

12 lines
261 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.
--
-- interval: 86400
-- platform: posix
-- value: Identify actions taken. Useful for compromised hosts.
-- version: 1.4.5
2022-10-17 23:06:17 +00:00
select
*
from
users
join shell_history using (uid);