mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2024-12-12 17:14:37 +00:00
16 lines
247 B
SQL
16 lines
247 B
SQL
-- Retrieves the list of all the currently logged in users in the target system.
|
|
--
|
|
-- tags: postmortem
|
|
-- platform: posix
|
|
SELECT
|
|
liu.*,
|
|
p.name,
|
|
p.cmdline,
|
|
p.cwd,
|
|
p.root
|
|
FROM
|
|
logged_in_users liu,
|
|
processes p
|
|
WHERE
|
|
liu.pid = p.pid;
|