Skip to content
SOC Analyst Prep
  • Loading index…

↑↓ navigate · ↵ open · Esc close

en

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

PortServiceWhy the SOC caresSuspicious when…
20-21TCPFTP (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.
69UDPTFTPTFTP 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/UDPNetBIOS (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 knowSMBSMB 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.
873TCPrsyncrsync 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/UDPNFSNFS 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

PortServiceWhy the SOC caresSuspicious when…
22TCPmust knowSSH / SFTPSSH 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).
23TCPTelnetTelnet 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 knowRDPRDP 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.
5900TCPVNCVNC 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-5986TCPWinRM (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.

Email

PortServiceWhy the SOC caresSuspicious when…
25TCPmust knowSMTP (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.
110TCPPOP3POP3 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.
143TCPIMAPIMAP 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.
465TCPSMTPS (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.
587TCPSMTP 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.
993TCPIMAPSIMAPS 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).
995TCPPOP3SPOP3S 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

PortServiceWhy the SOC caresSuspicious when…
53TCP/UDPmust knowDNSDNS 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/UDPKerberosKerberos 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/UDPLDAPLDAP 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.
636TCPLDAPSLDAPS 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.
3268TCPAD 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

PortServiceWhy the SOC caresSuspicious when…
67-68UDPDHCP (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/UDPRPCbind / portmapperRPCbind 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.
123UDPNTPAccurate 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.
135TCPMS-RPC endpoint mapperThe 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-162UDPSNMP (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.
514UDPSyslogClassic 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

PortServiceWhy the SOC caresSuspicious when…
80TCPmust knowHTTPPlain 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 knowHTTPS (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.
8080TCPHTTP alternate / proxyPort 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.
8443TCPHTTPS alternatePort 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

PortServiceWhy the SOC caresSuspicious when…
1080TCPSOCKS proxySOCKS 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.
4444TCPMetasploit default listenerPort 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-6669TCPIRCIRC 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.
9001TCPTor 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

PortServiceWhy the SOC caresSuspicious when…
1433TCPMicrosoft SQL ServerMSSQL 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.
1521TCPOracle TNS listenerThe 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.
3306TCPMySQL / MariaDBMySQL 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.
5432TCPPostgreSQLPostgreSQL 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.
6379TCPRedisRedis 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.
9200TCPElasticsearch REST APIElasticsearch 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).
27017TCPMongoDBMongoDB 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

PortServiceWhy the SOC caresSuspicious when…
5060TCP/UDPSIP (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

The Networking & ports module covers the TCP handshake, TCP vs UDP, DNS and IDS vs IPS with interview answers.

Practise

Spot exposed RDP in the brute-force mission and outbound SMB in shift mode.

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.