osquery-defense-kit/incident_response/shared_memory.sql

16 lines
288 B
MySQL
Raw Normal View History

2023-02-23 14:35:38 +00:00
-- Return shared memory info
--
-- tags: postmortem
-- platform: linux
2023-05-08 17:20:47 +00:00
SELECT
shm.*,
p.path AS p_path,
2023-05-08 17:20:47 +00:00
p.name AS p_name,
p.start_time AS p_time,
p.euid AS p_euid,
p.uid AS p_uid,
p.cmdline AS p_cmdline
2023-05-08 17:20:47 +00:00
FROM
shared_memory AS shm
LEFT JOIN processes p ON shm.pid = p.pid;