Retrieves the list of all the currently logged in users in the target system.


Query · osquery

-- 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.start_time,
  p.root
FROM
  logged_in_users liu,
  processes p
WHERE
  liu.pid = p.pid;
Raw source Retrieves the list of all the currently logged in users in the target system. · osquery SQL
Esc
Published by chainguard-dev/osquery-defense-kit ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
-- 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.start_time,
  p.root
FROM
  logged_in_users liu,
  processes p
WHERE
  liu.pid = p.pid;

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.