osquery-defense-kit/process/hidden-parent-pid.sql
2022-09-11 15:07:54 -04:00

6 lines
237 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;