Skip to main content
CertDrill
CertDrill
Study Guide6 min readUpdated 2026-12-04

CompTIA Security+ SY0-701 Common Ports & Protocols Guide

Every essential CompTIA Security+ SY0-701 port and protocol grouped by cleartext vs encrypted pairs, directory/auth services, SIEM logging, and firewall ACL triage.

Key Takeaways

  • Memorize insecure vs encrypted replacements: Telnet (23) -> SSH/SFTP (22); HTTP (80) -> HTTPS (443); LDAP (389) -> LDAPS (636); FTP (20/21) -> SFTP (22) or FTPS (989/990); Syslog (514 UDP) -> Syslog over TLS (6514 TCP).
  • Separate Auth & Monitoring Ports: Kerberos = TCP/UDP 88; RADIUS = UDP 1812 (Auth) / 1813 (Acct); TACACS+ = TCP 49; SNMP = UDP 161 (Polling) / 162 (Traps) — upgrade v1/v2c to SNMPv3.
  • Lateral Movement & Ransomware Red Flags in Logs: Watch for unexpected connections on TCP 445 (SMB), TCP/UDP 3389 (RDP), TCP 22 (SSH), and TCP 5985/5986 (WinRM).
  • Firewall ACL Rule Ordering: Firewalls evaluate rules top-down until first match; an early broad 'Deny Any' above a specific 'Permit 443' breaks production traffic.

1. Cleartext vs Encrypted Protocol Pairs (Top Remediation Pattern)

When a vulnerability scan flags plaintext credentials in transit or an auditor demands encryption-in-transit remediation, CompTIA expects you to recognize the vulnerable port and select its exact encrypted replacement.

  • Port 23 (Telnet) -> Port 22 (SSH / SCP / SFTP): Replaces cleartext remote CLI and insecure file transfers with encrypted SSH tunneling.
  • Ports 20/21 (FTP) -> Port 22 (SFTP over SSH) or Ports 989/990 (FTPS over TLS): Secures file transfer control and data channels.
  • Port 80 (HTTP) -> Port 443 (HTTPS / TLS 1.3): Encrypts web traffic and prevents session cookie/credential sniffing (enforce HTTP-to-HTTPS redirect + HSTS).
  • Port 389 (LDAP) -> Port 636 (LDAPS over TLS): Protects Active Directory bind credentials and directory queries against on-path interception.
  • Email Encryption Upgrades: SMTP (25) -> SMTPS / Submission with TLS (465 / 587); POP3 (110) -> POP3S (995); IMAP (143) -> IMAPS (993).
  • Logging Upgrade: Plain Syslog (514 UDP) -> Syslog over TLS (6514 TCP) prevents log spoofing, packet loss, and eavesdropping on sensitive event streams.

2. Directory, Identity, Time & Core Infrastructure Ports

Authentication failures and telemetry blind spots in SY0-701 troubleshooting scenarios trace directly to blocked infrastructure ports.

  • Port 53 (DNS — UDP/TCP) & 853 (DoT) / 443 (DoH): UDP 53 serves standard name queries; TCP 53 handles zone transfers (AXFR) and large responses (DNSSEC). Long random hexadecimal subdomains hitting port 53 indicate DNS tunneling / C2 exfiltration.
  • Ports 67/68 (DHCP — UDP): Dynamic IP assignment (vulnerable to rogue DHCP spoofing; mitigated by DHCP snooping on switches).
  • Port 88 (Kerberos — TCP/UDP): Active Directory ticket-based authentication (KDC, TGT, Service Tickets). Requires synchronized clocks—if Port 123 (NTP) drifts >5 minutes, Kerberos logins and SIEM log correlation break.
  • Port 123 (NTP — UDP): Synchronizes timestamps across firewalls, domain controllers, and SIEM collectors.
  • Ports 1812/1813 (RADIUS — UDP) vs Port 49 (TACACS+ — TCP): RADIUS encrypts only the password and combines authentication/authorization (widely used for 802.1X Wi-Fi/VPN); TACACS+ encrypts the ENTIRE payload and separates AAA functions (common for network router/switch admin).

3. Remote Administration, File Sharing & Database Ports

Attack scenarios—especially ransomware propagation and insider lateral movement—regularly reference Windows file sharing, remote desktop, and database ports exposed across improper subnet boundaries.

  • Port 3389 (RDP — TCP/UDP): Graphical Windows remote desktop. Never expose 3389 directly to the public internet—place behind ZTNA/VPN/Jump Host and enforce Network Level Authentication (NLA) + MFA.
  • Port 445 (SMB — TCP): Windows file/printer sharing and administrative shares (C$, ADMIN$). Primary vector for lateral movement and wormable ransomware; block inbound/outbound 445 at network perimeter firewalls.
  • Port 1433 (Microsoft SQL Server) & Port 3306 (MySQL): Back-end database listeners that should reside strictly in an internal database tier reachable only by authorized app servers—never directly from the internet or DMZ.

4. Network Monitoring: SNMP Port 161 vs 162 & SNMPv3 Security

CompTIA loves testing the two-port split in Simple Network Management Protocol (SNMP) alongside version hardening.

  • UDP 161 (Polling / Requests): Used by the Network Management Station (NMS) to query switches, routers, and servers for CPU, interface, or status metrics.
  • UDP 162 (SNMP Traps): Used by managed devices to push asynchronous event alerts TO the management station.
  • Version Hardening Trap: SNMPv1 and SNMPv2c send community strings (passwords) in cleartext—always select SNMPv3 (specifically authPriv mode using SHA authentication and AES encryption) on hardening questions.

5. Applying Ports to Firewall ACL & Log Analysis Questions

In both multiple-choice log snippets and PBQ firewall tables, walk through four checks before choosing an ACL edit or attack classification.

  • Check 1 — Direction & Source/Destination: Inbound internet -> Web Server in DMZ should permit TCP 443 only; Web Server -> Internal DB permits TCP 1433/3306 only; block external -> internal DB directly.
  • Check 2 — Top-Down First-Match Order: Place specific Permit rules ABOVE broad Deny rules (remember the implicit Deny Any at the bottom of every ACL).
  • Check 3 — Spot Port Scans vs Active Compromise: One external IP sweeping ports 21, 22, 23, 80, 443, 3389 in milliseconds = reconnaissance scan; an internal workstation hammering outbound TCP 445 across an entire /24 subnet = active worm/lateral movement.
  • Check 4 — VPN Protocols Context: IPsec uses UDP 500 (IKE), Protocol 50 (ESP encryption + integrity), Protocol 51 (AH auth/integrity only), and UDP 4500 (NAT-T).

Frequently Asked Questions

What is the difference between SNMP Port 161 and Port 162 on Security+ SY0-701?

Port 161 (UDP) is used by the monitoring server to poll network devices for metrics, whereas Port 162 (UDP) receives unsolicited SNMP Traps pushed from devices back to the monitoring server. Use SNMPv3 for encrypted authentication and payload protection.

Why does Port 123 (NTP) matter in a security log analysis question?

Accurate SIEM event correlation across firewalls, endpoints, and identity servers depends on synchronized clocks via NTP (UDP 123). Out-of-sync clocks also break Kerberos (Port 88) ticket authentication.

How does RADIUS (1812/1813) differ from TACACS+ (49)?

RADIUS runs on UDP (1812 authentication, 1813 accounting) and encrypts only the password, making it standard for 802.1X Wi-Fi and VPN user access. TACACS+ runs on TCP 49, encrypts the entire packet, and separates AAA for fine-grained network device command authorization.

Should FTP (Port 21) be replaced by FTPS or SFTP?

Either SFTP (Port 22 over SSH, single port, firewall-friendly) or FTPS (Ports 989/990 over TLS) secures cleartext FTP transfers. SFTP is preferred in most firewall scenarios because it avoids separate passive data port ranges.

Ready to test your exam readiness?

Take the 15-question free diagnostic with syllabus citations and distractor breakdowns.

Start 15-Q Free Diagnostic