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 SELECT
* *
FROM FROM
authorizations; disk_events;

View File

@ -2,7 +2,11 @@
-- --
-- tags: postmortem -- tags: postmortem
-- platform: posix -- platform: posix
SELECT * SELECT
FROM file file.*,
JOIN hash ON file.path = hash.path magic.data
WHERE file.path LIKE "/dev/%%"; 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 -- tags: postmortem
-- platform: posix -- platform: posix
SELECT p.path AS p_path, p.name AS p_name, SELECT
p.path AS p_path,
p.name AS p_name,
pop.* pop.*
FROM process_open_pipes AS pop FROM
process_open_pipes AS pop
LEFT JOIN processes p ON pop.pid = p.pid; LEFT JOIN processes p ON pop.pid = p.pid;

View File

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

View File

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