This room examined three common attacks against network protocols:

  1. Sniffing Attack
  2. MITM Attack
  3. Password Attack

For each of these, the focus was on both the attack mechanics and the mitigation steps. Understanding these fundamental attacks is essential because they form the basis for more sophisticated techniques encountered in advanced penetration testing.

Key Takeaways

The central theme of this room is that cleartext protocols are inherently insecure. Any protocol that transmits data without encryption is vulnerable to sniffing and MITM attacks. The solution is to use encrypted alternatives:

  • Use HTTPS instead of HTTP.
  • Use SSH instead of Telnet.
  • Use SFTP or FTPS instead of FTP.
  • Use IMAPS/POP3S/SMTPS instead of their cleartext counterparts.

Even with encryption, password-based authentication remains a weak point. Strong passwords, account lockout policies, rate limiting, and multi-factor authentication are essential defences. Where possible, passwordless authentication using passkeys or certificate-based authentication provides stronger security.

The Modern Landscape

Most internet-facing services use TLS encryption by default. However, you will still encounter cleartext protocols in:

  • Legacy systems that have not been updated
  • Internal corporate networks where encryption was never implemented
  • IoT devices and embedded systems with limited capabilities
  • Misconfigured services where TLS is available but not enforced
  • Development and testing environments

As a penetration tester, identifying these weaknesses and demonstrating their impact is a valuable skill. As a defender, ensuring all services use encryption and strong authentication is a fundamental security control.

Related Learning Paths

Many other attacks can be conducted against specific servers and protocols. The following modules will help you build on what you learned here:

  • Vulnerability Research: Provides more information about vulnerabilities and exploits.
  • Metasploit: Trains you on how to use Metasploit to exploit target systems.
  • Burp Suite: Teaches you how to use Burp Suite to intercept HTTP traffic and launch attacks related to the web.
  • Network Security: Covers network security concepts, including Nmap and firewallevasion.

Protocol and Port Reference

The services covered in this room are listed in the following table, sorted by alphabetical order.

ProtocolTCPPortApplication(s)Data Security
FTP21File TransferCleartext
FTPS990File TransferEncrypted (implicit TLS)
HTTP80Worldwide WebCleartext
HTTPS443Worldwide WebEncrypted (implicit TLS)
IMAP143Email (MDA)Cleartext
IMAPS993Email (MDA)Encrypted (implicit TLS)
POP3110Email (MDA)Cleartext
POP3S995Email (MDA)Encrypted (implicit TLS)
SFTP22File TransferEncrypted (SSH)
SMTP25Email (MTA)Cleartext
SMTP Submission587Email (MTA, client submission)STARTTLS*
SMTPS465Email (MTA)Encrypted (implicit TLS)
SSH22Remote Access and File TransferEncrypted
Telnet23Remote AccessCleartext

*STARTTLS means the connection starts unencrypted on the standard port and is then upgraded to TLS after the client issues a STARTTLS command. This differs from implicit TLS, where encryption begins immediately upon connection. STARTTLS is common on port 587 for email submission and can also be used on ports 25, 110, and 143.

Hydra Quick Reference

Hydra remains a very efficient tool for password attacks against network services. Its main options are summarised in the following table.

OptionExplanation
-l usernameProvide a single login name
-L users.txtProvide a file containing usernames
-p passwordProvide a single password to try
-P wordlist.txtSpecify the password list to use
server serviceSet the server address and service to attack
-s PORTUse in case of non-default service port number
-V or -vVShow the username and password combinations being tried
-t nNumber of parallel connections (threads)
-w nWait time between connections in seconds
-fStop after the first valid credential found
-dDisplay debugging output if verbose output is not helping

Additional Tools to Explore

Beyond Hydra, consider learning these tools that complement what this room covered:

ToolPurpose
Wireshark / tcpdumpNetwork packet capture and analysis
BettercapMITM attacks, ARP spoofing, and network reconnaissance
mitmproxyInteractive HTTPS proxy for inspecting and modifying traffic
testssl.shTesting TLS/SSL configuration and vulnerabilities
NmapPort scanning, service detection, and scripting
CrackMapExec / NetExecPassword spraying and lateral movement in Windows environments
Hashcat / John the RipperOffline password hash cracking
Burp SuiteWeb application security testing

Defensive Checklist

When assessing or securing systems, verify the following:

  1. All services use TLS 1.2 or TLS 1.3 with strong cipher suites.
  2. Cleartext protocols (Telnet, FTP, HTTP) are disabled or restricted to isolated networks.
  3. SSH uses key-based authentication with password authentication disabled.
  4. Strong password policies are enforced with breached password detection.
  5. Account lockout or rate limiting is implemented for all authentication endpoints.
  6. Multi-factor authentication is enabled for sensitive systems.
  7. Network segmentation limits the impact of sniffing attacks.
  8. Certificate validation is properly implemented to prevent MITM attacks.
  9. HSTS (HTTP Strict Transport Security) is enabled for web applications to prevent SSL stripping.
  10. Logging and monitoring detect authentication anomalies.

Understanding both the attack and defence perspectives makes you a more effective security professional, whether you are conducting penetration tests or building secure systems.