Back to library
Defensive Intermediate Free

Find unusual listening ports.

Find unusual listening ports.

Osquery / Endpoint Security

Log in to save

Command

osqueryi "select * from listening_ports where port not in (80,443,22);"

Syntax

osqueryi "select * from listening_ports where port not in (80,443,22);"

Use case

Use during authorized defensive operations, lab simulations, or audit preparation to understand expected telemetry and command structure.

Explanation

Find unusual listening ports. This reference is stored in the database and rendered dynamically for safe education, audit, and simulation workflows.

Example output

SIMULATED OUTPUT
status=ok
records=12
note="Database seeded command reference."

More examples

Expanded library example

osqueryi "select * from listening_ports where port not in (80,443,22);"

Find unusual listening ports.

windows linux macos osquery endpoint-security expanded-library

Related

Defensive Advanced Premium

Run a local Velociraptor information query.

Run a local Velociraptor information query.

velociraptor query "SELECT * FROM info()"
velociraptor endpoint-security expanded-library
Velociraptor / Endpoint Security Open
Defensive Advanced Premium

List Windows-focused artifacts.

List Windows-focused artifacts.

velociraptor artifacts list | grep Windows
velociraptor endpoint-security expanded-library
Velociraptor / Endpoint Security Open
Defensive Advanced Premium

Inspect running process telemetry.

Inspect running process telemetry.

velociraptor query "SELECT Name, CommandLine FROM pslist()"
velociraptor endpoint-security expanded-library
Velociraptor / Endpoint Security Open