GlossaryOptimize port security

April 25, 2024

Description

Before discussing port security, let’s briefly explain what a port actually is. In networking, a port is similar to the door of an apartment in a multi-unit building. Each port is assigned to a specific service or application on a computer and enables data exchange between different devices within the network.

A high number of open and externally exposed ports increases the attack surface and often indicates misconfigurations. In many cases, ports intended for internal services such as SMB, RPC, or databases are mistakenly or unintentionally exposed to the internet.

Recommended Actions

  • Replace unencrypted protocols: Replace HTTP, FTP, Telnet & similar protocols with HTTPS, FTPS/SFTP, or SSH.

  • Limit to necessary ports (default deny): Only open ports that are operationally required; strictly block internal services (SMB, RPC, DB, RDP/SSH) from external access or allow them only via VPN/bastion host.

  • Harden firewall rules: Prefer allowlists over blacklists, filter ingress/egress traffic, and enforce rate limits and connection limits for exposed services.

  • Network segmentation: Isolate critical systems using VLANs/ACLs; allow east-west traffic only with explicit rules.

  • Don’t forget IPv6: Apply the same policies as for IPv4; disable unused IPv6 stacks.

  • Automate port monitoring: Conduct regular internal and external scans (e.g., nmap) and trigger alerts when changes occur.

  • Harden exposed services: Use a reverse proxy/WAF, hide banners/versions, enforce TLS.

  • Change control: Allow port openings only via a ticket including an expiration date; conduct regular reviews.

Contact

E-mail: office@checkfix.io

Phone: +43 660 77 24 524

secinto

secinto GmbH

Poststraße 3

8530 Deutschlandsberg

Austria

E-mail: office@checkfix.com

*Studie KPMG zur Cybersecurity in Österreich 2023