osquery-defense-kit/process/hidden-parent-pid.sql

15 lines
270 B
SQL

-- Works well for revealing boopkit, so long as boopkit has a child process.
SELECT
pp.*
FROM
processes
JOIN processes pp ON processes.parent = pp.pid
WHERE
processes.parent NOT IN (
SELECT
pid
FROM
processes
)
AND processes.parent != 0;