All cheat sheets

Common Ports & Protocols

The well-known TCP/UDP ports every analyst should know, grouped by service. 🔒 marks encrypted protocols.

Secure vs insecure pairs

Telnet 23SSH 22
HTTP 80HTTPS 443
FTP 21SFTP 22
LDAP 389LDAPS 636
IMAP 143IMAPS 993
POP3 110POP3S 995

Web

80TCPHTTPUnencrypted web traffic
443TCPHTTPS🔒Encrypted web (TLS)
8080TCPHTTP (alt)Proxies, dev servers, app servers
8443TCPHTTPS (alt)🔒Alt TLS, admin consoles

Email

25TCPSMTPMail relay between servers
587TCPSMTP (submission)Client mail submission (STARTTLS)
110TCPPOP3Retrieve mail (legacy)
995TCPPOP3S🔒POP3 over TLS
143TCPIMAPSync mail (unencrypted)
993TCPIMAPS🔒IMAP over TLS

File transfer & sharing

20TCPFTP (data)FTP file-transfer channel
21TCPFTP (control)FTP commands — cleartext
69UDPTFTPTrivial FTP — no authentication
139TCPNetBIOS SessionLegacy Windows file sharing
445TCPSMBWindows file sharing (modern)
2049TCP/UDPNFSUnix/Linux network file system
9418TCPGitGit protocol — unauthenticated

Remote access

22TCPSSH🔒Encrypted shell, tunneling, SFTP
23TCPTelnetLegacy remote shell — cleartext
135TCP/UDPMS RPCWindows RPC endpoint mapper
3389TCP/UDPRDP🔒Windows Remote Desktop
5900TCPVNCCross-platform remote desktop

Name, directory & auth

53TCP/UDPDNSName resolution (TCP for zone transfers)
43TCPWHOISDomain registration lookups
389TCP/UDPLDAPDirectory queries (unencrypted)
636TCPLDAPS🔒LDAP over TLS
49TCPTACACS+🔒Network device AAA (Cisco)

Core network services

67UDPDHCP (server)Hands out IP leases
68UDPDHCP (client)Receives IP leases
123UDPNTPTime synchronization
137UDPNetBIOS NameLegacy Windows name service
138UDPNetBIOS DatagramLegacy Windows datagrams
161UDPSNMPDevice monitoring / polling
162UDPSNMP TrapAsynchronous device alerts
514UDPSyslogCentralized logging
179TCPBGPInternet routing between AS
9100TCPJetDirectRaw network printing

Databases

1433TCPMicrosoft SQL ServerMSSQL
1521TCPOracleOracle Database listener
3306TCPMySQLMySQL / MariaDB
5432TCPPostgreSQLPostgreSQL
6379TCPRedisIn-memory key-value store
27017TCPMongoDBNoSQL document database
11211TCP/UDPMemcachedDistributed memory cache

VPN & tunneling

500UDPIKE / IPsec🔒IPsec key exchange (ISAKMP)
1194TCP/UDPOpenVPN🔒OpenVPN default
1701UDPL2TPTunneling (paired with IPsec)
1723TCPPPTPLegacy VPN — insecure
51820UDPWireGuard🔒Modern, fast VPN

Messaging, media & other

502TCPModbusICS / SCADA industrial control
554TCP/UDPRTSPStreaming media control
1883TCPMQTTIoT publish/subscribe messaging
4444TCPMetasploitCommon reverse-shell / C2 default
5060TCP/UDPSIPVoIP call signaling
6667TCPIRCInternet Relay Chat
9092TCPKafkaEvent-streaming broker

Reading a list won't stick. Drill these until they're instinct in Port Scan (spot the service) and Port Recall (type them from memory).