Cyberstudy
4.5 In progress

Secure Protocols

11 flashcards

Summary

Many older protocols send data, including passwords, in plaintext. Secure versions add encryption and authentication, usually with TLS or SSH. Choosing and deploying them takes planning for certificates, ports and compatibility, but it protects sensitive data in transit.

In plain words

Insecure protocols such as HTTP and Telnet send everything, including passwords, in clear text. Secure versions such as HTTPS, SSH and SFTP encrypt it. They're harder to run (certificates, keys, harder troubleshooting), so choose protocols through a formal process: assess risk and data sensitivity, compare security features, decide on ports and TCP or UDP, check that existing security equipment supports them, and document the decision.

Detailed explanation

  • Insecure protocol: A protocol that sends data or credentials unencrypted, such as Telnet, FTP, HTTP, POP3, IMAP, SNMPv1/v2c and LDAP simple bind without TLS.
  • Secure protocol: A protocol that encrypts and authenticates traffic, such as SSH, SFTP, HTTPS, IMAPS, SNMPv3 and LDAPS.

Common replacements

  • Telnet (23) to SSH (22): Remote command-line access.
  • HTTP (80) to HTTPS (443): Web traffic.
  • FTP (20/21) to SFTP (22) or FTPS (989/990): File transfer.
  • POP3 (110) to POP3S (995) and IMAP (143) to IMAPS (993): Mailbox access.
  • LDAP (389) to LDAPS (636): Directory access.
  • SNMPv1/v2c to SNMPv3: Network management.

Choosing and deploying

  • Data sensitivity: The more sensitive the data, the stronger the protection required.
  • Certificate management: Most secure protocols need certificates issued, renewed and trusted.
  • Port configuration: Firewalls must allow the secure ports and block the insecure ones.
  • Existing equipment: Encrypted traffic may need TLS inspection for IDS and DLP to see it.

Important terms

taken from the text above
Insecure protocol
A protocol that sends data or credentials unencrypted, such as Telnet, FTP, HTTP, POP3, IMAP, SNMPv1/v2c and LDAP simple bind without TLS.
Secure protocol
A protocol that encrypts and authenticates traffic, such as SSH, SFTP, HTTPS, IMAPS, SNMPv3 and LDAPS.
Data sensitivity
The more sensitive the data, the stronger the protection required.
Certificate management
Most secure protocols need certificates issued, renewed and trusted.
Port configuration
Firewalls must allow the secure ports and block the insecure ones.
Existing equipment
Encrypted traffic may need TLS inspection for IDS and DLP to see it.

Examples & real-world scenarios

  • Replacing Telnet with SSH for device management.
  • Moving an internal web app from HTTP to HTTPS.
  • Documenting why SFTP was chosen over FTP.

Scenario

A packet capture on an internal network shows admin passwords in clear text from Telnet sessions. Switching to SSH encrypts the sessions and removes that exposure.

Common mistakes

  • Assuming internal traffic doesn't need encryption.
  • Forgetting certificate renewal, which causes outages when certificates expire.

Practical skills

  • Map insecure protocols to their secure replacements.

What I should remember

  • Telnet: Plaintext; replace with SSH.
  • HTTPS: Port 443; HTTP on port 80 is unencrypted.
  • LDAPS: Port 636.
  • SNMPv3: The only SNMP version with encryption and authentication.