ELI5: What are Open Service Ports?

Every open port on a computer is like an open window in your house. The more windows you leave open, the more ways someone can climb in. Close the ones you don’t actually need.

Definition

Open service ports represent network-accessible entry points into a system—each service listening on a port is a potential attack vector. Unnecessary services that are running and accessible from the network unnecessarily expand the attack surface, providing attackers with additional opportunities to find vulnerabilities. Closing unnecessary ports is one of the most fundamental hardening steps.

Key Details

  • Each open port represents a service that could have vulnerabilities, be attacked via credential brute-force, or be misconfigured.
  • Principle of least function: Systems should only run and expose the services required for their intended purpose.
  • Discovery via port scanning (nmap): attackers enumerate open ports before selecting their attack approach.
  • Mitigation: host-based and network firewalls to block access to ports that must remain open, disable unnecessary services, use network access control.
  • Common unnecessary open ports in enterprise environments: Telnet (23), FTP (21), TFTP (69), unnecessary RPC services.

Connections