Cheat sheet
Ports every SOC analyst should know
45 ports with the service, why it matters on shift, and what makes traffic on it suspicious. Interviewers nearly always ask about 22, 25, 53, 80, 443, 445, 3389.
45 ports
File sharing
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 20-21TCP | FTP (data / control) | FTP sends credentials and files in cleartext, so it is both a sniffing risk and an easy exfiltration channel. | Outbound FTP to an unfamiliar internet host, large STOR uploads, or anonymous login allowed on an internet-facing server. |
| 69UDP | TFTP | TFTP has no authentication and is used to push configs and firmware to network devices and PXE clients. | TFTP leaving the network or reaching device-config servers from user subnets, which can indicate config theft or malware staging. |
| 137-139TCP/UDP | NetBIOS (name 137, datagram 138, session 139) | NetBIOS is legacy Windows name resolution and file sharing, and its name service can be poisoned to capture NTLM hashes. | NetBIOS traffic crossing the internet boundary, or a host answering many name queries that are not its own (Responder-style poisoning). |
| 445TCPmust know | SMB | SMB carries Windows file shares, PsExec-style remote execution and many wormable exploits such as EternalBlue. | Outbound 445 to the internet (block and investigate, it can leak NTLM hashes), or one host connecting to ADMIN$/C$ on many machines. |
| 873TCP | rsync | rsync daemons often allow unauthenticated module listing and copying, so exposed instances leak backups and source code. | rsync reachable from the internet or large outbound rsync transfers to an unfamiliar host. |
| 2049TCP/UDP | NFS | NFS exports Unix file systems, and misconfigured exports (e.g. no_root_squash) allow data theft and privilege escalation. | NFS mounts from unexpected hosts or NFS reachable from outside the data centre. |
Remote access
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 22TCPmust know | SSH / SFTP | SSH is the standard encrypted admin channel for Linux and network gear, which makes it a top brute-force and lateral-movement target. | Hundreds of failed logins from one source in auth.log, a success after many failures, or long-lived outbound SSH sessions to cloud VPS addresses (possible tunnelling). |
| 23TCP | Telnet | Telnet is unencrypted remote shell access still found on old routers, cameras and OT devices, and is a favourite of IoT botnets like Mirai. | Any Telnet exposed to the internet, or inbound connection attempts from many sources trying default credentials. |
| 3389TCP/UDPmust know | RDP | RDP is the main interactive remote-access protocol for Windows and a leading ransomware entry point when exposed. | RDP exposed to the internet with 4625 brute-force bursts, a 4624 logon type 10 from an external IP, or one workstation RDPing into many others. |
| 5900TCP | VNC | VNC gives full graphical remote control, often with weak or no password, and is common in OT and helpdesk tooling. | VNC exposed to the internet or a new VNC server appearing on a workstation, which may be an attacker remote-access tool. |
| 5985-5986TCP | WinRM (HTTP 5985 / HTTPS 5986) | WinRM powers PowerShell Remoting, so attackers with admin credentials use it for quiet lateral movement. | A workstation connecting to WinRM on other workstations, or wsmprovhost.exe spawning unusual child processes. |
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 25TCPmust know | SMTP (server-to-server mail relay) | Port 25 carries mail between mail servers, so only your mail gateways should ever talk SMTP to the internet. | A workstation making direct outbound connections on 25 suggests spam-bot malware or an open relay being abused. |
| 110TCP | POP3 | POP3 downloads mailbox contents in cleartext and is a legacy protocol that often bypasses modern MFA. | POP3 logins to cloud mailboxes from unfamiliar IPs, a classic sign of password spraying against legacy authentication. |
| 143TCP | IMAP | IMAP gives clients full mailbox sync and, like POP3, is a legacy-auth path attackers use to read mail without MFA. | IMAP sign-ins from unfamiliar countries or bulk mailbox downloads shortly after a phishing click. |
| 465TCP | SMTPS (implicit TLS submission) | Port 465 is authenticated mail submission over TLS, which malware can use to send stolen data or spam via a real mailbox. | Non-mail-client processes on endpoints connecting to external 465, a common exfiltration path for infostealers and keyloggers. |
| 587TCP | SMTP submission (STARTTLS) | Port 587 is how mail clients and apps submit authenticated email, so it is also used by malware with stolen SMTP credentials. | Scripts or unknown binaries sending mail on 587 from a workstation, or one account suddenly sending to many external recipients. |
| 993TCP | IMAPS | IMAPS is IMAP over TLS and is still a legacy-auth path that attackers use to pull mailboxes with stolen passwords. | IMAPS sign-ins from hosting-provider IPs or many accounts failing from the same source (spraying). |
| 995TCP | POP3S | POP3S is POP3 over TLS, used by some clients and by attackers who want to download an entire mailbox quickly. | POP3S access to an account that never used it before, especially right after a suspicious sign-in. |
Name & directory
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 53TCP/UDPmust know | DNS | DNS uses UDP for normal queries and TCP for zone transfers and large responses, and nearly every intrusion touches DNS, making it a rich hunting source. | High volumes of long or random-looking subdomains, heavy TXT queries to one domain (tunnelling), clients bypassing internal resolvers, or AXFR zone-transfer requests from unknown hosts. |
| 88TCP/UDP | Kerberos | Kerberos is the default Active Directory authentication protocol, so ticket activity on domain controllers exposes Kerberoasting and ticket abuse. | One account requesting many service tickets with RC4 encryption (event 4769, type 0x17), or Kerberos traffic from a non-domain host. |
| 389TCP/UDP | LDAP | LDAP is how clients query Active Directory, so bulk LDAP queries reveal users, groups and computers to an attacker. | A single workstation issuing a burst of LDAP queries for all users, groups or SPNs, typical of BloodHound/SharpHound enumeration. |
| 636TCP | LDAPS | LDAPS is LDAP over TLS, so directory enumeration is encrypted and you depend on DC-side logging rather than packet inspection. | LDAPS exposed beyond internal networks or heavy LDAPS query volume from a non-admin workstation. |
| 3268TCP | AD Global Catalog (LDAP; 3269 for TLS) | The Global Catalog answers forest-wide directory queries, so enumeration tools often hit it to map an entire AD forest. | A non-admin workstation querying the Global Catalog heavily, especially alongside LDAP and SMB enumeration. |
Management
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 67-68UDP | DHCP (server 67 / client 68) | DHCP logs map an IP address to a MAC address and hostname at a given time, which is how you identify the device behind an alert IP. | DHCP offers from an unauthorised server (rogue DHCP for man-in-the-middle) or a flood of requests with random MACs (starvation). |
| 111TCP/UDP | RPCbind / portmapper | RPCbind tells clients which ports Unix RPC services like NFS use, so it leaks service information to scanners. | RPCbind reachable from the internet, or inbound rpcinfo style probes, which are common recon and DDoS-amplification activity. |
| 123UDP | NTP | Accurate time keeps logs correlatable and Kerberos working, since Kerberos rejects clocks more than five minutes apart by default. | Internet-exposed NTP servers answering monlist queries (amplification) or endpoints syncing to unexpected external time sources. |
| 135TCP | MS-RPC endpoint mapper | The RPC endpoint mapper underpins WMI, DCOM and remote service management, all of which attackers use for lateral movement. | A workstation making 135 connections to many other workstations, often followed by high dynamic ports, suggests remote WMI or DCOM execution. |
| 161-162UDP | SNMP (queries 161 / traps 162) | SNMP monitors network devices, and v1/v2c rely on community strings that are often left as public or private. | SNMP reachable from the internet, community-string guessing, or SET requests that change device configuration. |
| 514UDP | Syslog | Classic syslog ships device and Linux logs to the SIEM, usually unencrypted and unauthenticated over UDP. | A sudden drop in syslog volume from a device (logging disabled or broken) or syslog sent to an unknown external collector. |
Web
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 80TCPmust know | HTTP | Plain HTTP is fully visible in proxy logs, so it is where you see full URLs, user agents and downloaded file names. | Downloads of .exe, .dll, .hta or .ps1 files, scripted user agents like PowerShell or curl, and regular beacon-like requests to raw IPs. |
| 443TCP/UDPmust know | HTTPS (TLS; UDP for QUIC/HTTP3) | Most legitimate traffic and most modern C2 uses HTTPS, so you rely on SNI, certificates, JA3/JA4 and timing rather than content. | Regular low-volume beacons to a newly registered domain, self-signed or mismatched certificates, or large uploads to an unknown host. |
| 8080TCP | HTTP alternate / proxy | Port 8080 hosts web proxies, admin consoles and app servers like Tomcat and Jenkins, which are frequently exploited. | Internet-exposed admin consoles on 8080, or endpoints beaconing to external hosts on 8080 to dodge port-80 inspection. |
| 8443TCP | HTTPS alternate | Port 8443 serves management interfaces for firewalls, VPNs and app servers, many with recent critical CVEs. | Exploit attempts or unexpected logins against appliance admin pages on 8443, or C2 traffic using it to look like HTTPS. |
Malware & C2
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 1080TCP | SOCKS proxy | SOCKS proxies relay arbitrary traffic, and attackers and proxy-malware use them to pivot or to hide the true source of activity. | An internal host listening on 1080 or relaying connections for external clients, a sign of residential-proxy malware or pivoting. |
| 4444TCP | Metasploit default listener | Port 4444 is the default LPORT for Metasploit and many reverse shells, so lazy attackers and pentesters leave a clear fingerprint. | Any endpoint making outbound connections to 4444, or a process listening on it, deserves immediate investigation. |
| 6660-6669TCP | IRC | IRC was the classic botnet C2 channel and still appears in IoT botnets and older commodity malware. | Corporate endpoints or servers connecting to IRC ports, which have almost no business use today. |
| 9001TCP | Tor ORPort (default) | Port 9001 is the default Tor relay port, so traffic to it often means a Tor client is running on the endpoint. | Endpoints connecting to known Tor relays, which can indicate anonymised C2, ransomware tooling or policy violations. |
Database
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 1433TCP | Microsoft SQL Server | MSSQL holds business data and, through xp_cmdshell, can run OS commands, so it is a high-value target. | MSSQL exposed to the internet with brute-force attempts on the sa account, or sqlservr.exe spawning cmd.exe or powershell.exe. |
| 1521TCP | Oracle TNS listener | The Oracle listener fronts critical ERP and finance databases, making it a target for credential guessing and data theft. | Connections to 1521 from user workstations or the internet, or unusually large result sets leaving the database tier. |
| 3306TCP | MySQL / MariaDB | MySQL backs many web apps, so it is targeted after SQL injection or when exposed with weak root passwords. | MySQL reachable from the internet, brute-force against root, or the web server pulling far more rows than normal. |
| 5432TCP | PostgreSQL | PostgreSQL stores application data and can execute commands via COPY ... FROM PROGRAM when superuser access is gained. | PostgreSQL exposed to the internet with brute-force on postgres, or the database process spawning shells. |
| 6379TCP | Redis | Redis often runs without authentication, and attackers abuse it to write SSH keys or cron jobs and deploy cryptominers. | Redis reachable from the internet, CONFIG SET dir commands, or CPU spikes on the Redis host. |
| 9200TCP | Elasticsearch REST API | Elasticsearch clusters often run without authentication and have leaked huge datasets when exposed. | Port 9200 reachable from the internet, _search or _cat/indices requests from unknown IPs, or indices suddenly deleted (ransom notes). |
| 27017TCP | MongoDB | MongoDB instances exposed without authentication are routinely wiped and held to ransom by automated attackers. | MongoDB reachable from the internet, unknown clients dumping collections, or a new database containing a ransom note. |
Other
| Port | Service | Why the SOC cares | Suspicious when… |
|---|---|---|---|
| 5060TCP/UDP | SIP (VoIP signalling; 5061 for TLS) | SIP sets up VoIP calls, and exposed PBXs are scanned constantly for toll fraud and account takeover. | Floods of REGISTER or INVITE requests from scanners like SIPVicious, or calls to premium international numbers. |
Learn the concepts
Practise
Frequently asked questions
Which ports should a SOC analyst know for interviews?
At minimum know 21, 22, 23, 25, 53, 80, 88, 135, 139, 389, 443, 445, 3389 and 5985, plus what each looks like when abused. Interviewers care less about the number and more about the why: for example, 445 outbound to the internet should be blocked, and 3389 exposed to the internet invites brute force.
Is port 53 TCP or UDP?
Both. DNS uses UDP 53 for ordinary queries and falls back to TCP 53 for responses too large for UDP and for zone transfers (AXFR). Unexpected TCP 53 from a workstation, or a client sending DNS directly to the internet instead of your resolvers, is worth a look.
What port does RDP use?
RDP listens on TCP 3389 and modern clients also use UDP 3389 for better performance. In Windows logs a successful RDP logon is 4624 with logon type 10 (RemoteInteractive), and repeated 4625 failures against 3389 indicate brute force.
Why is outbound 445 suspicious?
SMB should stay inside the network, so a workstation connecting to an internet host on 445 is either malware spreading or a trick to make Windows send NTLM credentials to an attacker-controlled server. Most organisations block outbound 445 at the firewall, so seeing it allowed or attempted is a reason to investigate the host.