Command Center · Reference 06

Ports, Protocols & Services

Fast recognition for common TCP and UDP ports, service purpose, Windows and Linux listener checks, and the reasoning needed to decide whether a network service is expected.

Memorize the common associations, but never treat a port number as proof of the application or as proof of a vulnerability.

Service Rule

PortHint
ProcessIdentity
Host roleContext
DecisionEvidence-based

Important

Ports are associations, not conclusions

The same application can use a different port, and a different application can bind to a familiar port. Always identify the owning process or service and compare it with the host's required role.

Transport

TCP

Connection-oriented.
Provides ordered delivery and retransmission.
Uses a handshake before normal data transfer.
Common for web, SSH, RDP, SMB, database, and mail sessions.

Transport

UDP

Connectionless.
No built-in delivery guarantee or ordering.
Lower overhead for many request/response and real-time uses.
Common for DNS, DHCP, NTP, SNMP, and some logging traffic.

Port reference

Core Infrastructure

20/TCPFTP Data

Legacy file-transfer data channel.

Context

FTP is unencrypted and should be reviewed carefully.

21/TCPFTP Control

Legacy file-transfer control channel.

Context

Credentials and data may be exposed without protection.

22/TCPSSH

Secure shell and secure remote administration.

Context

Confirm whether remote administration is required.

23/TCPTelnet

Legacy remote terminal access.

Context

Traffic is unencrypted; replace or disable when not required.

25/TCPSMTP

Mail transfer between servers.

Context

Do not confuse mail transport with user mailbox access.

53/TCP+UDPDNS

Name resolution and zone-transfer related traffic.

Context

DNS is critical infrastructure; investigate before changing it.

67/UDPDHCP Server

Server-side DHCP traffic.

Context

DHCP availability may be essential for clients.

68/UDPDHCP Client

Client-side DHCP traffic.

Context

Do not block if clients depend on dynamic addressing.

Port reference

Web & Application

80/TCPHTTP

Unencrypted web traffic.

Context

An open HTTP port is not automatically a vulnerability if required by the scenario.

443/TCPHTTPS

Encrypted web traffic using TLS.

Context

HTTPS still requires valid configuration and secure application behavior.

8080/TCPAlternate HTTP

Common alternate web/application port.

Context

Port 8080 does not guarantee the application is HTTP.

8443/TCPAlternate HTTPS

Common alternate TLS web/application port.

Context

Confirm the actual listening process.

Port reference

Windows & File Sharing

135/TCPRPC Endpoint Mapper

Windows RPC service discovery.

Context

Common on Windows systems; evaluate with host role and firewall scope.

137/UDPNetBIOS Name Service

Legacy Windows name resolution.

Context

May be unnecessary in modern environments.

138/UDPNetBIOS Datagram

Legacy Windows datagram service.

Context

Review whether legacy compatibility is required.

139/TCPNetBIOS Session Service

Legacy SMB/session traffic.

Context

SMB can also operate directly over TCP 445.

445/TCPSMB

Windows file sharing, named pipes, and related services.

Context

Required on many file servers and domain environments.

Port reference

Remote Access & Management

22/TCPSSH

Encrypted remote shell.

Context

Strong authentication and access scope still matter.

23/TCPTelnet

Unencrypted remote shell.

Context

Avoid when secure alternatives are available.

3389/TCPRDP

Windows Remote Desktop.

Context

Check whether RDP is required before disabling it.

5900/TCPVNC

Remote graphical desktop on many implementations.

Context

Authentication and encryption vary by product.

5985/TCPWinRM HTTP

Windows Remote Management over HTTP.

Context

HTTP transport can still use message-level security depending on configuration.

5986/TCPWinRM HTTPS

Windows Remote Management over TLS.

Context

Certificate and trust configuration matter.

Port reference

Directory & Authentication

88/TCP+UDPKerberos

Authentication protocol used heavily in Active Directory.

Context

Critical in domain environments.

389/TCP+UDPLDAP

Directory queries and updates.

Context

Plain LDAP may expose data unless protected.

636/TCPLDAPS

LDAP over TLS.

Context

Certificate configuration matters.

3268/TCPGlobal Catalog

Active Directory global catalog queries.

Context

Expected on domain controllers providing GC services.

3269/TCPGlobal Catalog TLS

Encrypted global catalog queries.

Context

Requires appropriate certificate support.

Port reference

Email

25/TCPSMTP

Server-to-server mail transfer.

Context

Not usually used for end-user mailbox retrieval.

110/TCPPOP3

Legacy mailbox retrieval.

Context

Plain POP3 is unencrypted.

143/TCPIMAP

Mailbox access and synchronization.

Context

Plain IMAP is unencrypted unless upgraded.

465/TCPSMTPS

SMTP over implicit TLS on many services.

Context

Usage varies by provider.

587/TCPSMTP Submission

Authenticated client mail submission.

Context

Common for user-to-mail-server sending.

993/TCPIMAPS

IMAP over TLS.

Context

Common secure mailbox access.

995/TCPPOP3S

POP3 over TLS.

Context

Secure transport does not guarantee secure credentials or server policy.

Port reference

Monitoring & Time

123/UDPNTP

Network time synchronization.

Context

Accurate time is critical for logs and authentication.

161/UDPSNMP

Network monitoring and management queries.

Context

SNMPv1/v2 community strings can be weak if poorly configured.

162/UDPSNMP Trap

Asynchronous monitoring alerts.

Context

Check destination and community/security configuration.

514/UDPSyslog

Traditional syslog transport.

Context

UDP syslog is not encrypted or guaranteed delivery.

6514/TCPSyslog over TLS

Encrypted syslog transport.

Context

Certificate and collector configuration matter.

Port reference

Databases

1433/TCPMicrosoft SQL Server

Common SQL Server database port.

Context

Confirm the actual process and whether remote access is required.

3306/TCPMySQL / MariaDB

Common MySQL-family database port.

Context

Database exposure should be limited to required hosts.

5432/TCPPostgreSQL

Common PostgreSQL database port.

Context

Check listen addresses and access-control rules.

Interpretation

How to reason about a port correctly

01

A port number is a clue, not proof of the application.

02

A listening socket means a process is waiting for connections; it does not prove remote reachability.

03

A firewall rule that allows a port does not prove anything is actually listening.

04

An established connection proves communication occurred, not whether that communication was legitimate.

05

A standard service can run on a nonstandard port.

06

A nonstandard port can still host an ordinary service.

07

Always map the port to the owning process or service when possible.

08

Always consider the host's assigned role before deciding whether a service is unnecessary.

Windows

Listener and process checks

Get-NetTCPConnection -State Listen

Shows listening Windows TCP sockets.

Get-NetTCPConnection

Shows TCP endpoints, states, and owning PIDs.

Get-NetUDPEndpoint

Shows Windows UDP endpoints.

netstat -ano

Classic socket view with PID mapping.

Get-Process -Id <pid>

Maps a PID to a process.

Get-CimInstance Win32_Service | Select Name,State,StartName,PathName

Maps service configuration and executable paths.

Linux

Listener and process checks

ss -tulpn

Shows listening TCP/UDP sockets and processes when permissions allow.

ss -tpn

Shows active TCP connections and processes.

sudo lsof -i -P -n

Shows network sockets and owning processes where lsof is available.

ps -fp <pid>

Shows process details for one PID.

systemctl status <service>

Shows service state and recent logs.

journalctl -u <service> --since "1 hour ago"

Shows recent journal entries for one service.

Service decision check

Ask these before disabling a service or blocking a port

01

Is this service required by the scenario?

02

Which process owns the port?

03

Which account runs that process or service?

04

What executable path is associated with it?

05

Is the port bound to localhost, one interface, or all interfaces?

06

Does the firewall allow inbound access?

07

Is the service actually reachable from the required network?

08

Is there log evidence showing recent use?

09

What will break if I disable or remove it?

10

How will I verify required functionality after the change?

Common mistakes

Port mistakes that break working systems

01

Disabling every unfamiliar port without checking the host role.

02

Assuming port 80 means a web server is insecure simply because it is HTTP.

03

Assuming port 443 means the service is automatically safe.

04

Blocking DNS, DHCP, Kerberos, or SMB on systems that depend on them.

05

Treating a firewall allow rule as proof that a service is running.

06

Treating a listening socket as proof that it is reachable from another host.

07

Forgetting that services can run on nonstandard ports.

08

Changing several firewall or service settings at once and losing the cause of the result.