Return the list of open sockets per process


Query · osquery

-- Return the list of open sockets per process
--
-- tags: postmortem
-- platform: posix
SELECT
  p.path AS p_path,
  p.name AS p_name,
  p.start_time AS p_time,
  p.euid AS p_euid,
  p.uid AS p_uid,
  p.cmdline AS p_cmdline,
  pos.*
FROM
  process_open_sockets AS pos
  LEFT JOIN processes p ON pos.pid = p.pid;
Raw source Return the list of open sockets per process · osquery SQL
Esc
Published by chainguard-dev/osquery-defense-kit ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
-- Return the list of open sockets per process
--
-- tags: postmortem
-- platform: posix
SELECT
  p.path AS p_path,
  p.name AS p_name,
  p.start_time AS p_time,
  p.euid AS p_euid,
  p.uid AS p_uid,
  p.cmdline AS p_cmdline,
  pos.*
FROM
  process_open_sockets AS pos
  LEFT JOIN processes p ON pos.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.