incident_response: bugfixes across queries

This commit is contained in:
Thomas Stromberg 2023-02-23 21:24:52 -05:00
parent e50a84f382
commit 5fa706805e
Failed to extract signature
5 changed files with 26 additions and 14 deletions

View File

@ -5,4 +5,4 @@
SELECT
*
FROM
authorizations;
disk_events;

View File

@ -2,7 +2,11 @@
--
-- tags: postmortem
-- platform: posix
SELECT *
FROM file
JOIN hash ON file.path = hash.path
WHERE file.path LIKE "/dev/%%";
SELECT
file.*,
magic.data
FROM
file
JOIN magic ON file.path = magic.path
WHERE
file.path LIKE "/dev/%%";

View File

@ -1,8 +1,11 @@
-- Return the list of interface addresses
-- Return the list of open pipes per process
--
-- tags: postmortem
-- platform: posix
SELECT p.path AS p_path, p.name AS p_name,
pop.*
FROM process_open_pipes AS pop
LEFT JOIN processes p ON pop.pid = p.pid;
SELECT
p.path AS p_path,
p.name AS p_name,
pop.*
FROM
process_open_pipes AS pop
LEFT JOIN processes p ON pop.pid = p.pid;

View File

@ -2,7 +2,8 @@
--
-- tags: postmortem
-- platform: posix
SELECT pid,
SELECT
pid,
name,
path,
cmdline,
@ -13,7 +14,7 @@ SELECT pid,
gid,
euid,
egid,
seuid,
suid,
sgid,
on_disk,
start_time,
@ -22,4 +23,5 @@ SELECT pid,
threads,
nice,
cgroup_path
FROM processes
FROM
processes

View File

@ -2,4 +2,7 @@
--
-- tags: postmortem
-- platform: linux
SELECT * FROM seccomp_events;
SELECT
*
FROM
seccomp_events;