osquery-defense-kit/detection/evasion/hidden-parent-pid.sql
2022-10-14 14:19:13 -04:00

23 lines
394 B
SQL

-- Works well for revealing boopkit, so long as boopkit has a child process.
--
-- references:
-- * https://github.com/krisnova/boopkit
--
-- false positives:
-- * None observed
--
-- tags: daemon
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;