Cheat sheet

Ports and services

Recognising a service from its port saves time, whether you are reading a scan, a firewall log or a network capture.

CJCACPTSDefence

The essentials

PortServiceKey point
21/tcpFTPCleartext credentials; check for anonymous login
22/tcpSSHEncrypted remote access; the banner often gives the version and OS
23/tcpTelnetEverything travels in cleartext
25/tcpSMTPSending email; 465 and 587 for the encrypted variants
53/tcp+udpDNSUDP for queries, TCP for zone transfers
67-68/udpDHCPIP address assignment
69/udpTFTPTransfer without authentication
80/tcpHTTPCleartext web; 8080 and 8000 are common variants
88/tcpKerberosAlmost certainly a domain controller
110/tcpPOP3Retrieving email; 995 for the encrypted version
111/tcprpcbindOften associated with NFS
135/tcpMSRPCWindows RPC endpoint mapper
137-139NetBIOSLegacy Windows sharing, NetBIOS names
143/tcpIMAPRetrieving email; 993 for the encrypted version
161/udpSNMPMonitoring; default communities “public” / “private”
389/tcpLDAPDirectory (Active Directory); 636 for LDAPS
443/tcpHTTPSThe certificate often reveals hostnames
445/tcpSMBWindows shares; a target and a lateral movement vector
514/udpSyslogSending logs to a collector
873/tcprsyncFile synchronisation, sometimes without authentication
1433/tcpMSSQLMicrosoft database
1521/tcpOracle TNSOracle database
2049/tcpNFSUnix network shares; check the exports
3268/tcpGlobal catalogLDAP across the whole AD forest
3306/tcpMySQLDatabase
3389/tcpRDPWindows Remote Desktop; logon type 10
5432/tcpPostgreSQLDatabase
5601/tcpKibanaElastic's interface
5985-5986WinRMRemote PowerShell administration (HTTP / HTTPS)
6379/tcpRedisKey-value store, sometimes exposed without a password
9200/tcpElasticsearchElastic's REST API

Recognising a machine's role

Port combinationMost likely
53, 88, 135, 389, 445, 636, 3268Active Directory domain controller
135, 139, 445, 3389Windows workstation or server
22 alone, or 22 + 80/443Linux server, often a web server
25, 110/995, 143/993Mail server
111, 2049NFS file server
5601, 9200Elastic stack (SIEM)
ReminderA port is only a convention: a service can listen anywhere. Version detection (banner, service response) is what counts.