port-scan

Enumerate listening TCP/UDP ports and compare them against a baseline.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/abzhaw/juliaz_agents --skill port-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: port-scan
Source: https://github.com/abzhaw/juliaz_agents/tree/main/meta/agents/security-agent/skills/01-port-scan
Command: npx skills add https://github.com/abzhaw/juliaz_agents --skill port-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps sysadmins and developers quickly identify ports on the host that are listening and detect unexpected listeners across services, reducing attack surface and misconfiguration risk.

Core Features & Use Cases

  • Port discovery: enumerate all listening ports (TCP/UDP) and highlight deviations from baseline.
  • Baseline comparison: compare current listeners against the approved port baseline for core services (e.g., backend, bridge, frontend, database) and flag mismatches.
  • Use Case: ensure a development workstation is not exposing internal services to the network by running a quick port audit.

Quick Start

Run the port-scan to enumerate all listening ports and compare them to the baseline.

Frequently Asked Questions about port-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check for unexpected listening ports on my local development machine?

To check for unexpected listening ports, run a port scan to enumerate all TCP and UDP listeners and compare them against a baseline of approved core services, flagging any mismatches or unknown ports.

How do I audit network exposure in a container or test environment?

Auditing network exposure involves running a port scan to enumerate all listening ports and compare them against a known baseline, flagging any unknown ports or missing baseline services to reduce attack surface.

Can I use lsof to detect misconfigurations and external exposure on a host?

Yes, you can use lsof to enumerate listening ports and detect unexpected listeners. The scan identifies external exposure by comparing active ports against an approved port policy baseline.

What is port baseline comparison and when do I need it for network security?

Port baseline comparison checks current listening ports against an approved list of core services. You need it for network security to detect missing services, unknown listeners, and unexpected external exposure.

Does port scanning work without predefined dependencies or components?

Yes, port scanning works without external dependencies or components, relying solely on lsof to enumerate listening ports and compare them directly against a known baseline to flag mismatches.