Retrieves all the listening ports in the target system.


Query · osquery

-- Retrieves all the listening ports in the target system.
--
-- tags: postmortem
-- platform: posix
SELECT
  lp.*,
  p.name AS p_name,
  p.start_time AS p_time,
  p.path AS p_path,
  p.euid AS p_euid
FROM
  listening_ports AS lp
  LEFT JOIN processes p ON lp.pid = p.pid;
Raw source Retrieves all the listening ports in the target system. · osquery SQL
Esc
Published by chainguard-dev/osquery-defense-kit ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
-- Retrieves all the listening ports in the target system.
--
-- tags: postmortem
-- platform: posix
SELECT
  lp.*,
  p.name AS p_name,
  p.start_time AS p_time,
  p.path AS p_path,
  p.euid AS p_euid
FROM
  listening_ports AS lp
  LEFT JOIN processes p ON lp.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.