COMP 6660 · Lesson 4.3 Network Security Protocols

Module 2 · Unit 4 · Lesson 4.3

COMP 6660 · Enterprise Cybersecurity Network Security Protocols

Lesson 4.2 established defence-in-depth as the architectural principle. This lesson examines the specific protocols — TLS, IPsec, SSH, and DNSSEC — through which the network layer of that defence is implemented, and the legacy protocols whose continued use creates enterprise-scale risk.

Reading time: ~105 minutes Activities: 3 Unit 4 · Lesson 3 of 7

00 Introduction

Lesson 4.2 established defence-in-depth as the principle of placing multiple, independent controls at different layers. This lesson examines the specific protocols through which the network layer of that defence is implemented in practice.

Network security protocols are the mechanisms through which enterprises protect data in transit, authenticate communicating parties, and verify the integrity of the network services on which everything else depends. They are the operational expression of the cryptographic foundations from Module 1: TLS, IPsec, SSH, and DNSSEC all build on the encryption, authentication, and integrity mechanisms examined in Unit 2. They are also the specific protocols that enterprise security programmes evaluate, configure, and monitor — where the abstract principles of architecture become concrete engineering decisions.

The protocols examined in this lesson are ubiquitous. Almost every enterprise connection — web traffic, API calls, remote administration, VPN connectivity, DNS resolution — depends on one or more of them. Their correct configuration determines whether the enterprise's traffic is genuinely protected or merely appears to be; their misconfiguration is a recurring source of enterprise exposure. And the legacy protocols that enterprises continue to carry — protocols that have been superseded but remain in use for compatibility — create risk that is frequently invisible until it is exploited.

This lesson examines network security protocols in detail. It establishes why protocol security matters and how protocols map to the layers of the OSI and TCP/IP models. It examines the four principal protocols — TLS, IPsec, SSH, and DNSSEC — their purposes, their mechanisms, and their configuration considerations. It examines other protocols relevant to specific contexts. It examines the legacy protocol risk that enterprises continue to carry. It examines protocol configuration and hardening as an operational discipline. And it closes with enterprise practice and the pitfalls that recur across organisations.

How to read this lesson

Sections 1–2 establish the framing. Sections 3–7 examine the protocols one at a time. Sections 8–10 address legacy risk, configuration, and practice. If you are short on time, read Sections 3, 6, and 8 carefully — TLS configuration, DNS security, and the legacy protocol problem are the most consequential material for enterprise practice and for the assessment.

01 Learning objectives

By the end of this lesson you should be able to:

Lesson objectives

  • Explain why network security protocols matter and how they map to the layers of the network stack.
  • Describe the purpose, mechanisms, and configuration considerations of TLS, IPsec, SSH, and DNSSEC.
  • Identify the security properties each protocol provides and the objectives each serves.
  • Analyse common protocol misconfigurations and the exposure they create.
  • Explain the legacy protocol risk that enterprises carry and the practices that reduce it.
  • Evaluate enterprise protocol configuration and hardening practices.
  • Identify common enterprise pitfalls in protocol configuration and management.

These objectives contribute to Unit 4 outcomes U4.1 (architecture design) and U4.2 (technology evaluation), and to Module 2 outcomes M2.5 and M2.6. See the Unit 4 learning outcomes page for the full mapping.

02 Why network protocols matter

Network security protocols are the operational mechanisms through which the enterprise's communication is protected. They matter for several reasons.

They protect data in transit

  • Enterprise data moves continuously — between users and applications, between services, between the enterprise and its partners, and between workloads in cloud environments.
  • Every movement of data is an opportunity for interception, modification, or forgery. Network security protocols provide confidentiality, integrity, and authenticity for data in transit.
  • Without them, enterprise communications are exposed to anyone with the ability to observe network traffic.

They establish trust between parties

  • Communicating parties must be able to verify each other's identity — a user connecting to a server, a service connecting to a database, a device connecting to a management platform.
  • Network security protocols establish this trust through authentication mechanisms — certificates, keys, credentials — that bind identity to cryptographic material.
  • The trust established by these protocols is the foundation on which enterprise architecture depends.

They are ubiquitous and therefore consequential

  • Almost every enterprise connection depends on one or more security protocols. A weakness in TLS affects every web and API connection; a weakness in SSH affects every administrative session; a weakness in DNS affects every resolution.
  • Because the protocols are ubiquitous, their correct configuration determines the enterprise's exposure across a wide range of attack vectors.
  • A single misconfiguration in a widely-used protocol can have enterprise-scale consequences.

They implement the network layer of defence-in-depth

  • The network layer of defence-in-depth is realised through protocols that encrypt traffic, authenticate parties, and verify integrity.
  • Protocols are the specific controls through which the abstract principles of defence-in-depth are made operational.
  • An architecture without proper protocol configuration is a defence-in-depth design without the controls that implement it.

The evolution of network security

The protocols examined in this lesson have evolved substantially over decades. Early protocols — Telnet, FTP, HTTP — were designed for a trusted network environment and provided no confidentiality or integrity. Their successors — SSH, SFTP, HTTPS — layer security protocols on top of the original application protocols. This evolution is ongoing: TLS 1.0 and 1.1 have been deprecated; TLS 1.3 has replaced them. SSH has moved to modern key exchange and encryption. DNSSEC, though still incompletely deployed, is increasingly expected.

Enterprises that have kept pace with this evolution have substantially more secure communication than enterprises that have not. The gaps between them are frequently measured in decades of protocol development.

The most useful framing

Network security protocols are the operational expression of the enterprise's security architecture at the network layer. When evaluating an enterprise's network security, the relevant questions are: which protocols are used, at which versions, with what configuration, and for which traffic? The answers determine whether the enterprise's network layer provides the protection the architecture assumes.

03 Protocol layers and security placement

Network security protocols operate at different layers of the network stack. Understanding which layer each protocol operates at clarifies what it protects and what it does not.

The layered network model

Network layers and the security protocols that operate at each
Layer Purpose Security protocols
Application Applications and their protocols — web, email, file transfer, remote administration. TLS (as a layer between application and transport), SSH (application-level security), DNSSEC (DNS security), S/MIME, HTTPS, SFTP, SMTPS, IMAPS.
Transport End-to-end communication between applications — TCP, UDP. TLS (for TCP-based applications), DTLS (for UDP-based applications).
Network Addressing and routing between hosts — IP, ICMP. IPsec (for network-layer tunnelling and encryption).
Data link Communication within a local network — Ethernet, Wi-Fi. WPA2/WPA3 (Wi-Fi), MACsec (Ethernet).
Physical The physical medium — cables, fibre, radio. Physical security controls; encrypted physical transmission.

Where security protocols are placed

The placement of a security protocol determines what it protects and what it does not:

  • Application-layer security. The protocol protects a specific application's traffic. SSH protects SSH sessions; S/MIME protects email; HTTPS protects web traffic. Application-layer protocols are specific to the applications they protect.
  • Transport-layer security. The protocol protects communication between applications, independent of the application itself. TLS is the dominant example — it protects any application that uses it, without requiring the application to understand the protection.
  • Network-layer security. The protocol protects traffic between hosts or networks, independent of the applications. IPsec is the dominant example — it protects all traffic between two endpoints, whether that traffic is web, email, file transfer, or anything else.
  • Data-link-layer security. The protocol protects traffic on a specific link — Wi-Fi, Ethernet. These protocols protect against interception or modification on the local network.

Implications of placement

The placement of security protocols has several implications:

  • Coverage. A network-layer protocol protects everything that traverses it, but it cannot distinguish between different applications. An application-layer protocol protects only the specific application.
  • Visibility. Network-layer encryption hides traffic from any intermediate inspection — including security monitoring. This is why IPsec deployment requires careful consideration of what inspection is lost.
  • Complexity. Application-layer protocols are typically simpler to deploy and configure; network-layer protocols are more complex but provide broader coverage.
  • Overlap. Multiple protocols may be used in the same connection — TLS for the web session, IPsec for the tunnel carrying that session, WPA3 for the Wi-Fi link. Each layer provides its own protection.

The most useful framing

When evaluating a network security design, ask: what security protocols are used at each layer, and what does each protect? A design that provides TLS for application traffic and IPsec for site-to-site connectivity is layered; a design that relies on TLS alone, without considering the network layer, is more limited. The layering of security protocols is itself a form of defence-in-depth.

04 TLS — Transport Layer Security

Overview

TLS (Transport Layer Security) is the dominant protocol for protecting data in transit on the internet. It provides confidentiality, integrity, and authenticity for communication between applications — primarily those that use TCP. It is the protocol behind HTTPS, secure email (SMTPS, IMAPS), secure APIs, and much of the enterprise's modern application traffic.

What TLS provides

  • Confidentiality. Traffic between client and server is encrypted, preventing interception and reading.
  • Integrity. Traffic is protected against modification in transit; the recipient can detect whether the content has been altered.
  • Authenticity. The server (and optionally the client) is authenticated through digital certificates, providing assurance of the parties' identity.
  • Forward secrecy. In modern configurations, TLS provides forward secrecy — compromise of a long-term key does not compromise past sessions.

How TLS works (conceptually)

  • Handshake initiation

    The client sends a ClientHello with supported protocol versions, cipher suites, and a key share for key agreement. The server responds with its own parameters.

  • Server authentication

    The server presents its certificate. The client verifies the certificate against trusted certificate authorities, checking validity, hostname match, and revocation status (Module 1, Lesson 2.4).

  • Key agreement

    The client and server use key agreement (typically ECDHE) to establish a shared secret. Forward secrecy is provided because the key is ephemeral.

  • Session key derivation

    Session keys are derived from the shared secret and used for symmetric encryption and integrity protection of application data.

  • Data exchange

    Application data is encrypted and authenticated using the session keys. In TLS 1.3, most of the handshake is encrypted as well.

  • TLS versions

    TLS versions and their status
    Version Status Notes
    SSL 2.0, 3.0BrokenShould not be used under any circumstances
    TLS 1.0DeprecatedNo longer considered secure; should be disabled
    TLS 1.1DeprecatedNo longer considered secure; should be disabled
    TLS 1.2AcceptableStill widely used; acceptable when configured with modern cipher suites
    TLS 1.3PreferredCurrent standard; improved security and performance; should be enabled wherever supported

    TLS configuration considerations

    TLS is straightforward in concept and complex in configuration. Enterprises frequently deploy TLS without considering the configuration choices that determine its actual security. Key configuration decisions include:

    • Protocol versions. Enable TLS 1.2 and 1.3. Disable TLS 1.0 and 1.1, and SSL entirely.
    • Cipher suites. Choose modern, strong cipher suites. Disable suites using weak algorithms (RC4, 3DES), suites without forward secrecy, and suites that do not provide authenticated encryption.
    • Certificate configuration. Use strong keys (RSA 2048+ or ECDSA P-256+), correct hostname configuration, and certificate chains that include all required intermediates.
    • Forward secrecy. Prefer ECDHE key exchange for forward secrecy.
    • Certificate validation. Ensure clients validate certificates correctly — including hostname, chain, expiry, and revocation.
    • HSTS. Use HTTP Strict Transport Security to prevent downgrade attacks and cookie hijacking.
    • Session resumption. If enabled, configure session resumption securely (session tickets, session IDs) to avoid compromising forward secrecy.

    Common TLS misconfigurations

    • Support for deprecated versions. TLS 1.0 or 1.1 enabled for compatibility with legacy clients, exposing connections to downgrade attacks.
    • Weak cipher suites. Suites using RC4, 3DES, or other weak algorithms enabled for compatibility.
    • Missing or expired certificates. Certificates that have expired, or that do not include required intermediate certificates, causing connection failures or browsers bypassing validation.
    • Weak key lengths. RSA keys below 2048 bits, or elliptic-curve keys on curves no longer recommended.
    • Certificate validation bypass. Applications that disable certificate validation for convenience — a recurring source of vulnerability.
    • Self-signed certificates in production. Often indicating that certificate management has been neglected.
    • Unmanaged certificate expiry. Certificates allowed to expire, producing service outages and requiring reactive remediation.
    • Mixed content. Web applications that serve some content over HTTPS and some over HTTP, exposing the HTTP content to interception.

    The most consequential TLS failure

    The most consequential TLS failure in enterprise practice is the continued support of deprecated protocol versions and cipher suites for compatibility with legacy clients. Enterprises frequently enable TLS 1.0, TLS 1.1, RC4, and 3DES because some clients cannot support modern protocols — and thereby expose every connection to downgrade attacks and to weaknesses in the deprecated algorithms. The correct approach is to identify and remediate the legacy clients, not to accept the risk for every connection.

    05 IPsec — Internet Protocol Security

    Overview

    IPsec (Internet Protocol Security) is a suite of protocols for securing IP communications at the network layer. It provides confidentiality, integrity, and authenticity for traffic between hosts, networks, or gateways — independent of the applications that generate the traffic. It is the foundation for most enterprise VPNs and for site-to-site connectivity between networks.

    What IPsec provides

    • Confidentiality. Traffic is encrypted at the network layer, protecting it from interception.
    • Integrity. Traffic is protected against modification; the recipient can verify that it has not been altered.
    • Authenticity. Communicating parties are authenticated through certificates, pre-shared keys, or other mechanisms.
    • Replay protection. Duplicate packets are detected and discarded.
    • Coverage across applications. Because IPsec operates at the network layer, it protects all traffic between the endpoints — regardless of which applications are involved.

    IPsec components

    IPsec components
    Component Function
    AH (Authentication Header) Provides integrity and authentication — but not confidentiality. Rarely used in modern deployments.
    ESP (Encapsulating Security Payload) Provides confidentiality, integrity, and authentication. The principal IPsec protocol in modern deployments.
    IKE (Internet Key Exchange) Negotiates the security associations between peers — the algorithms, keys, and parameters. IKEv2 is the modern version.
    Transport mode Protects only the payload of IP packets; used primarily for host-to-host communication.
    Tunnel mode Encapsulates the entire IP packet within a new IP packet; used primarily for VPNs and site-to-site connectivity.

    IPsec applications

    IPsec is used in several enterprise contexts:

    • Site-to-site VPNs. Connecting enterprise networks — offices, data centres, cloud environments — across public networks.
    • Remote access VPNs. Connecting remote users to the enterprise network — though SSL VPNs and zero-trust access increasingly compete with IPsec for this application.
    • Cloud connectivity. Connecting enterprise networks to cloud environments through IPsec tunnels.
    • Host-to-host security. Protecting communication between specific hosts — less common than in the past but still used in some contexts.

    IPsec configuration considerations

    • IKE version. Use IKEv2 in preference to IKEv1. IKEv2 provides better security, performance, and feature support.
    • Authentication method. Prefer certificate-based authentication to pre-shared keys. Pre-shared keys are easier to configure but harder to manage at scale and frequently shared across many endpoints.
    • Encryption algorithms. Use modern algorithms — AES-GCM, AES-CBC with HMAC-SHA-2. Avoid DES, 3DES, and weak cipher suites.
    • Key exchange. Use Diffie-Hellman with adequate group sizes or elliptic-curve Diffie-Hellman (ECDH).
    • Perfect forward secrecy (PFS). Enable PFS in the IKE configuration to ensure that compromise of a key does not compromise past or future sessions.
    • Lifetime parameters. Configure reasonable lifetimes for IKE security associations and IPsec security associations.
    • Dead peer detection. Enable detection of failed peers so that tunnels are re-established promptly.

    IPsec deployment challenges

    • Inspection visibility. IPsec encryption hides traffic from network inspection — including security monitoring. The enterprise loses visibility into the traffic within the tunnel.
    • NAT traversal. IPsec traffic frequently conflicts with NAT, requiring NAT-Traversal (NAT-T) configuration.
    • Interoperability. Different IPsec implementations may have subtle incompatibilities, particularly with configuration parameters and extensions.
    • Complexity. IPsec configuration is substantially more complex than TLS configuration; misconfigurations are more common and harder to diagnose.
    • Performance. IPsec encryption adds processing overhead, particularly for high-throughput tunnels.
    • Monitoring. Tunnel status, throughput, and errors require specific monitoring, distinct from the monitoring of unencrypted traffic.

    When to use IPsec

    IPsec is well-suited to site-to-site connectivity, cloud connectivity, and contexts where all traffic between two networks must be protected. It is less well-suited to modern remote access, where SSL VPNs and zero-trust access typically provide better flexibility, better visibility, and better integration with identity-based controls.

    06 SSH — Secure Shell

    Overview

    SSH (Secure Shell) is a protocol for secure remote administration and secure file transfer. It provides encrypted and authenticated communication between a client and a server, and it is the dominant protocol for administrative access to Unix-like systems, network devices, and cloud infrastructure.

    What SSH provides

    • Encrypted remote access. Interactive sessions and command execution are encrypted, protecting credentials and commands from interception.
    • Server authentication. The client verifies the server's identity through host keys, protecting against man-in-the-middle attacks.
    • Client authentication. The server verifies the client's identity through passwords, keys, or certificates.
    • Secure file transfer. SFTP and SCP provide encrypted file transfer over SSH.
    • Tunnelling. SSH can tunnel other protocols, providing a secure channel for otherwise-insecure traffic.
    • Port forwarding. SSH can forward ports locally or remotely, enabling access to otherwise-inaccessible services.

    SSH authentication methods

    SSH authentication methods
    Method Characteristics
    Password authentication The user provides a password. Simple but vulnerable to brute-force attacks and to credential theft. Should be disabled where alternatives are available.
    Key-based authentication The user proves possession of a private key. Substantially more secure than passwords. Requires careful key management — keys must be protected, rotated, and removed when no longer needed.
    Certificate-based authentication SSH certificates signed by a trusted CA bind identity to keys, simplifying key management at scale. Enables short-lived credentials and central revocation.
    Multi-factor authentication Combining SSH keys with a second factor (TOTP, hardware token). Increases assurance for privileged access.
    Kerberos / GSSAPI SSH authentication integrated with Kerberos, common in enterprise environments that use Kerberos.

    SSH configuration considerations

    • Disable password authentication. Where feasible, require key-based or certificate-based authentication. This eliminates the most common SSH attack — credential guessing.
    • Disable root login. Require administrators to authenticate as themselves and use privilege escalation (sudo) rather than logging in directly as root.
    • Restrict access by user and source. Limit which users can connect, and from which networks, to reduce exposure.
    • Use modern key exchange and encryption algorithms. Disable outdated algorithms (SSHv1, DSA, SHA-1, weak ciphers) and configure modern algorithms (Curve25519, Ed25519, AES-GCM).
    • Host key management. Manage host keys securely; establish a mechanism for host key verification that resists man-in-the-middle attacks.
    • Session timeout and inactivity limits. Configure timeouts to limit the window during which an abandoned session remains accessible.
    • Logging and monitoring. Log SSH activity — successful and failed authentication, command execution, session duration — and monitor for anomalies.
    • Privileged access management. Integrate SSH access with PAM controls — vaulting, session recording, just-in-time access — for administrative access to production systems.

    Common SSH risks

    • Exposed SSH ports. SSH services exposed to the internet, providing an attack surface for brute-force and exploitation attempts.
    • Weak or shared credentials. Passwords that can be guessed; keys shared across administrators or across systems.
    • Unmanaged authorized_keys files. SSH public keys accumulated over time in authorized_keys files, including keys for departed employees or unused systems.
    • Disabled host key verification. Clients configured to ignore host key changes, allowing man-in-the-middle attacks.
    • Weak key types. SSH keys using weak algorithms — DSA, RSA keys below 2048 bits, keys with weak passphrases.
    • Exposed private keys. SSH private keys stored without passphrases, in shared locations, or committed to code repositories.

    The most consequential SSH risk

    The most consequential SSH risk is the accumulation of unmanaged public keys in authorized_keys files. SSH keys are frequently added but rarely removed — resulting in files containing keys for departed employees, retired systems, and forgotten automation, each providing continuing access to the system. Enterprises that do not actively manage SSH keys discover, during incident investigation or audit, that their systems have access paths that no one is aware of and no one is accountable for.

    07 DNSSEC and DNS security

    Overview

    DNSSEC (Domain Name System Security Extensions) is a set of extensions to DNS that provide cryptographic authentication of DNS responses. It addresses the fundamental weakness of DNS — that responses are not authenticated — by enabling resolvers to verify that responses come from authoritative sources and have not been modified.

    Why DNS security matters

    DNS is the address book of the internet, and of the enterprise's internal networks. Every connection begins with a DNS resolution — a query that maps a name to an address. If that resolution is manipulated, the connection goes somewhere else — to an attacker's server, or to a service that the attacker controls.

    DNS was designed in an era when the internet was trusted, and it lacks the authentication mechanisms that modern security requires. The result is that DNS is a target for several classes of attack:

    • Cache poisoning. The attacker injects false DNS records into a resolver's cache, redirecting subsequent queries to attacker-controlled addresses.
    • DNS spoofing. The attacker responds to DNS queries with forged responses, redirecting the querying system.
    • DNS hijacking. The attacker compromises the DNS configuration of a domain, redirecting traffic.
    • DNS tunnelling. The attacker uses DNS queries and responses as a covert channel for command-and-control or exfiltration.
    • DDoS via DNS. DNS is used for amplification attacks — the attacker sends queries with spoofed source addresses, and the responses are sent to the victim.

    What DNSSEC provides

    DNSSEC provides cryptographic authentication of DNS responses. Authoritative DNS servers sign their responses; resolvers verify the signatures using a chain of trust that begins at the DNS root. This protects against cache poisoning and DNS spoofing — because forged responses cannot be signed with the domain's key.

    DNSSEC does not provide confidentiality — DNS queries and responses remain readable. It does not protect against all DNS attacks — DNS tunnelling and DDoS are not addressed by DNSSEC. And it does not protect against compromise of the DNS server itself, if the attacker obtains the signing keys.

    DNSSEC deployment

    DNSSEC deployment has been slow, for several reasons:

    • Complexity. DNSSEC configuration is more complex than standard DNS, and errors can produce resolution failures.
    • Key management. DNSSEC requires cryptographic key management — signing keys, key rotation, key rollover procedures — that adds operational burden.
    • Incomplete adoption. DNSSEC provides protection only when the entire chain from root to domain is signed and validated. Domains that do not sign, or resolvers that do not validate, break the chain.
    • Breakage risk. Misconfigured DNSSEC can produce resolution failures that are difficult to diagnose, discouraging adoption.

    Despite these challenges, DNSSEC adoption is increasing, particularly for government domains, financial services, and other high-value targets. The trend is clear: DNSSEC is becoming a baseline expectation for enterprise domains.

    Other DNS security mechanisms

    Beyond DNSSEC, several mechanisms improve DNS security:

    DNS security mechanisms
    Mechanism What it provides
    DNSSEC Cryptographic authentication of DNS responses; protects against cache poisoning and spoofing.
    DNS over HTTPS (DoH) Encrypts DNS queries between the client and the resolver; protects against observation and manipulation on the local network.
    DNS over TLS (DoT) Encrypts DNS queries between the client and the resolver, similar to DoH but using a dedicated port.
    Response Rate Limiting (RRL) Limits the rate at which an authoritative server responds to identical queries; reduces DDoS amplification.
    DNS filtering Blocks resolution of known-malicious domains; used in enterprise environments to reduce exposure to phishing and malware.
    DNS monitoring Detects anomalous DNS activity — unusual queries, large volumes, unusual destinations — that may indicate compromise.

    The most useful enterprise posture

    The most useful enterprise posture for DNS security is layered: DNSSEC for authentication of responses where the enterprise controls the authoritative DNS; DNSSEC validation at resolvers where supported; DNS filtering to block known-malicious domains; DNS monitoring to detect anomalous activity; and, where appropriate, encrypted DNS (DoH or DoT) to protect queries in transit. The combination provides substantially more protection than any single mechanism.

    08 Other security protocols

    Beyond the four principal protocols, several other security protocols are relevant to enterprise environments.

    Application-specific security protocols

    Application-specific security protocols
    Protocol Purpose
    S/MIME Secure/Multipurpose Internet Mail Extensions — signs and encrypts email messages using certificates.
    PGP / GPG Email encryption using a web-of-trust model; less common in enterprises than S/MIME but used in some contexts.
    STARTTLS Upgrades plaintext email protocols (SMTP, IMAP, POP3) to TLS.
    FTPS / SFTP Secure file transfer — FTPS uses TLS; SFTP uses SSH.
    Kerberos Network authentication protocol; foundation of many enterprise environments; uses symmetric cryptography and a trusted third party.
    LDAPS LDAP over TLS — secures directory queries and authentication.
    RADIUS / Diameter over TLS Secures authentication, authorization, and accounting protocols used for network access.
    SNMPv3 Secures network management, adding authentication and encryption to SNMP.

    Link-layer security protocols

    Link-layer security protocols
    Protocol Purpose
    WPA2 / WPA3 Wi-Fi security — WPA3 is the current standard, replacing WPA2; protects wireless traffic from interception.
    802.1X Port-based network access control — enforces authentication before a device can use a network port.
    MACsec Ethernet link encryption — protects traffic on Ethernet links between devices.

    Modern application protocols

    Modern application protocols and their security characteristics
    Protocol Security characteristics
    HTTPS (HTTP over TLS) The secure version of HTTP; the standard for web and API traffic.
    QUIC / HTTP/3 Modern transport protocol with integrated TLS 1.3; used increasingly for web traffic.
    gRPC over TLS Modern RPC framework using HTTP/2 and TLS; increasingly common in microservices architectures.
    MQTT over TLS Protocol used for IoT communication, secured with TLS where feasible.

    The most useful approach

    The most useful approach to protocol selection is to use modern protocols and modern configurations wherever feasible, and to identify and address legacy protocols as explicit technical debt. Enterprises that have not reviewed their protocol portfolio in years are frequently carrying protocols that are no longer secure — and may not be aware of the exposure until it is exploited.

    09 Legacy protocol risk

    Enterprises carry legacy protocols — protocols that have been superseded but remain in use. The reasons for their persistence are understandable: compatibility with legacy systems, operational convenience, cost of migration. The consequences are frequently underestimated.

    Common legacy protocols and their risks

    Common legacy protocols and their risks
    Protocol Risk
    Telnet Unencrypted remote access — credentials and commands transmitted in the clear. Superseded by SSH; should not be used.
    FTP Unencrypted file transfer — credentials and content transmitted in the clear. Superseded by SFTP and FTPS.
    HTTP (without TLS) Unencrypted web traffic — content and sometimes credentials transmitted in the clear. Superseded by HTTPS.
    SMTP / IMAP / POP3 (without TLS) Unencrypted email — credentials and content transmitted in the clear. Superseded by the TLS-secured versions.
    SNMPv1 / SNMPv2c Unencrypted network management, often with default community strings. Superseded by SNMPv3.
    SSL / TLS 1.0 / TLS 1.1 Deprecated TLS versions with known weaknesses. Should be disabled; migration to TLS 1.2 or 1.3 is required.
    SSHv1 Obsolete SSH version with known weaknesses. Should be disabled; SSHv2 is required.
    IKEv1 Older IKE version with known weaknesses. Superseded by IKEv2.
    WEP / WPA (original) Obsolete Wi-Fi security; should be replaced with WPA2 or WPA3.
    SMBv1 Obsolete file-sharing protocol with well-known vulnerabilities. Should be disabled; SMBv2 or SMBv3 required. WannaCry and NotPetya exploited SMBv1.
    NTLMv1 Obsolete authentication protocol with weak cryptography. Superseded by NTLMv2 and Kerberos.
    MD5 and SHA-1 Deprecated hash algorithms with known collisions. Should be replaced with SHA-256 or stronger.

    Why legacy protocols persist

    • Legacy systems. Systems that do not support modern protocols — old devices, old applications, old operating systems.
    • Compatibility requirements. Interoperability with partners, suppliers, or customers who use legacy protocols.
    • Operational convenience. The effort of migrating to modern protocols, and the perceived risk of disruption.
    • Visibility gaps. Enterprises frequently do not know which legacy protocols are in use — the protocols are embedded in systems, configurations, and integrations that have not been reviewed for years.
    • Lack of ownership. Legacy protocols may not have a clear owner — they persist because no one is accountable for their remediation.

    Managing legacy protocol risk

    Managing legacy protocol risk requires a structured approach:

    1. Inventory Identify which protocols are in use across the enterprise estate — including in systems, applications, integrations, and configurations that have not been reviewed recently.
    2. Assess For each protocol, assess the risk — what data does it protect, who has access to it, and what is the consequence if it is exploited?
    3. Prioritise Prioritise remediation by risk — protocols protecting sensitive data or providing access to critical systems warrant the highest priority.
    4. Remediate Migrate to modern protocols where feasible. Where migration is not feasible, apply compensating controls — network segmentation, monitoring, access restrictions.
    5. Monitor Monitor for legacy protocol use — both to detect unauthorised use and to track progress of remediation.
    6. Review Review the protocol portfolio periodically. The threat landscape evolves; protocols that were acceptable yesterday may not be acceptable today.

    The most consequential legacy protocol risk

    The most consequential legacy protocol risk is not a single protocol but the pattern of unmanaged legacy protocols — protocols that remain in use because no one is tracking them. Enterprises that do not maintain a protocol inventory frequently discover, during incident investigation or audit, that they carry protocols they did not know about, protecting data they did not realise was exposed. The inventory is the foundation of management; without it, legacy protocol risk is invisible.

    10 Protocol configuration and hardening

    Configuring protocols correctly is an operational discipline. The difference between a secure protocol configuration and an insecure one is frequently a small number of settings — but those settings determine whether the protocol provides the protection it is capable of providing.

    Configuration principles

    Modern versions and algorithms

    • Use modern protocol versions — TLS 1.3 in preference to 1.2; IKEv2 in preference to IKEv1; SSHv2; SMBv3.
    • Use modern algorithms — AES-GCM, SHA-256, ECDHE, Ed25519, Curve25519.
    • Avoid deprecated algorithms — DES, 3DES, RC4, MD5, SHA-1, DSA.
    • Enable what is modern and disable what is not; do not retain deprecated options "just in case".

    Forward secrecy

    • Prefer configurations that provide forward secrecy — ECDHE for TLS, PFS for IPsec.
    • Forward secrecy ensures that compromise of a long-term key does not compromise past sessions.
    • Modern configurations should provide forward secrecy by default; configurations without it should be remediated.

    Strong authentication

    • Prefer certificate-based authentication to pre-shared keys and passwords.
    • Use phishing-resistant authentication for administrative access.
    • Manage credentials securely — vaulting, rotation, and revocation.

    Validation on the client side

    • Client validation is as important as server configuration. Certificate validation, host key verification, and protocol version enforcement must be configured on the client side.
    • Clients that disable validation — for convenience or compatibility — undermine the protection regardless of server configuration.
    • Applications that use TLS libraries must use them correctly; incorrect use is a recurring source of vulnerability.

    Visibility and monitoring

    • Configure protocols to support logging and monitoring — session logs, authentication events, error events.
    • Monitor for anomalies — unusual connections, unusual destinations, unusual volumes — that may indicate compromise.
    • Balance visibility against confidentiality; where encryption hides traffic from inspection, consider compensating controls.

    Centralised configuration management

    • Manage protocol configurations centrally where feasible — through configuration management tools, policy definitions, or standards.
    • Centralised management reduces inconsistency, simplifies review, and reduces the risk of misconfiguration.
    • Where centralised management is not feasible, establish standards and audit compliance.

    Hardening benchmarks

    Several organisations publish hardening benchmarks for protocols and systems:

    • CIS (Center for Internet Security) Benchmarks. Detailed configuration guidance for operating systems, applications, and network devices, including protocol configuration.
    • NIST Guidelines. NIST publishes guidance on TLS configuration, IPsec configuration, SSH configuration, and DNSSEC deployment.
    • Vendor hardening guides. Most major vendors publish hardening guidance for their products, including recommended protocol configurations.
    • Mozilla SSL Configuration Generator. A widely used tool for generating modern TLS configurations for common server software.
    • SSL Labs / testssl.sh. Tools that assess TLS configurations against industry best practice.

    Continuous assessment

    Protocol configuration is not a one-time activity. Protocols evolve, vulnerabilities are discovered, and configurations drift over time. Enterprises should assess their protocol configurations continuously — through automated scanning, periodic review, and integration with vulnerability management.

    Worked example — assessing an enterprise's TLS configuration

    An enterprise is reviewing the TLS configuration of its public-facing web application.

    Initial assessment:

    • Protocol versions: TLS 1.0, 1.1, 1.2, and 1.3 all supported. TLS 1.0 and 1.1 are deprecated but enabled for compatibility with legacy clients.
    • Cipher suites: Includes modern suites (AES-GCM with ECDHE) alongside deprecated suites (RC4, 3DES).
    • Forward secrecy: Supported but not enforced — configurations without ECDHE are also supported for compatibility.
    • Certificate: RSA 2048-bit certificate, valid chain, from a commercial CA. Acceptable.
    • HSTS: Not enabled.

    Issues identified:

    • Deprecated protocol versions (TLS 1.0 and 1.1) should be disabled.
    • Deprecated cipher suites (RC4, 3DES) should be disabled.
    • Forward secrecy should be required, not optional.
    • HSTS should be enabled to prevent downgrade attacks.

    Remediation:

    • Identify which clients require TLS 1.0 and 1.1; where possible, upgrade those clients to modern protocols.
    • Where legacy clients cannot be upgraded, isolate their access to a separate endpoint with compensating controls.
    • Reconfigure the primary endpoint to support only TLS 1.2 and 1.3, with modern cipher suites and required forward secrecy.
    • Enable HSTS with a reasonable max-age and includeSubDomains directive.

    The example illustrates the pattern of protocol remediation: identify legacy support, assess the impact of disabling it, remediate where feasible, and isolate where remediation is not feasible. The result is a configuration that provides modern protection for the majority of traffic, with controlled exceptions where necessary.

    11 Enterprise practice and pitfalls

    Enterprise network protocol programmes fail in predictable ways. Recognising the pitfalls accelerates improvement.

    Pitfall 1 — Configuration without assessment

    Configuring protocols with default settings, or with settings chosen for compatibility rather than security, without assessing what the configuration actually provides.

    Mitigation: Assess protocol configurations against published guidance (CIS, NIST, vendor). Test configurations with tools like SSL Labs or testssl.sh.

    Pitfall 2 — Legacy support without justification

    Retaining deprecated protocol versions, algorithms, and cipher suites for compatibility without examining whether the compatibility is necessary or what it exposes.

    Mitigation: Identify what requires legacy support; assess whether the requirement can be addressed through client upgrades, isolation, or compensating controls. Justify each exception explicitly.

    Pitfall 3 — Unmanaged certificates

    Certificates that are unmanaged — no inventory, no monitoring for expiry, no process for renewal — producing outages and creating exposure.

    Mitigation: Maintain certificate inventory; monitor for expiry; automate renewal where feasible (ACME and similar protocols).

    Pitfall 4 — Disabled validation

    Applications and clients configured to skip certificate validation, ignore host key changes, or accept any certificate — undermining the protection regardless of server configuration.

    Mitigation: Audit client configurations for validation bypasses. Address the underlying reasons for the bypasses (often certificate management issues) rather than allowing the bypasses to persist.

    Pitfall 5 — Unmanaged SSH keys

    SSH public keys accumulated in authorized_keys files without management — keys for departed employees, retired systems, and forgotten automation, each providing continuing access.

    Mitigation: Inventory SSH keys; review authorized_keys files periodically; remove keys that are no longer needed; prefer certificate-based authentication over long-lived keys.

    Pitfall 6 — DNSSEC without operational readiness

    Deploying DNSSEC without the operational capability to manage the keys correctly — producing outages, breakage, and a reputation for DNSSEC as problematic.

    Mitigation: Ensure key management capability before deploying DNSSEC. Use established tooling. Test carefully. Monitor validation.

    Pitfall 7 — No protocol inventory

    Not knowing which protocols are in use across the enterprise estate — producing invisible risk and preventing effective management.

    Mitigation: Build and maintain a protocol inventory. Scan for protocol use; review configurations; track what is in use and where.

    Pitfall 8 — No continuous assessment

    Treating protocol configuration as a one-time activity — without monitoring for drift, without responding to new vulnerabilities, without updating for new best practice.

    Mitigation: Establish continuous assessment for protocol configuration. Integrate with vulnerability management. Review periodically.

    Network protocol pitfalls and mitigations
    Pitfall Primary mitigation
    Configuration without assessmentAssess configurations against published guidance; test with appropriate tools.
    Legacy support without justificationIdentify the requirement; address through upgrades, isolation, or compensating controls.
    Unmanaged certificatesMaintain inventory; monitor expiry; automate renewal.
    Disabled validationAudit for bypasses; address underlying causes.
    Unmanaged SSH keysInventory keys; review authorized_keys; remove what is not needed.
    DNSSEC without operational readinessEnsure key management capability before deploying.
    No protocol inventoryBuild and maintain a protocol inventory.
    No continuous assessmentEstablish continuous assessment; integrate with vulnerability management.

    The most useful principle

    The most useful principle for enterprise protocol management is: know what you have, assess it against what is achievable, and manage the gaps deliberately. Enterprises frequently know some of what they have and assess some of it against some standard; the gaps are where risk accumulates. Building the inventory, assessing against current best practice, and remediating the gaps produces a protocol posture that matches the enterprise's exposure.

    12 Key concepts

    The terms below are used throughout Unit 4. Capture them in your own words as you work through the lesson.

    TLS (Transport Layer Security)
    The dominant protocol for protecting data in transit. Provides confidentiality, integrity, and authenticity for application communication, primarily over TCP.
    Forward secrecy
    The property that compromise of a long-term private key does not allow decryption of past sessions. Provided by ephemeral key agreement (ECDHE in TLS, PFS in IPsec).
    HSTS (HTTP Strict Transport Security)
    A mechanism that instructs browsers to use HTTPS for all connections to a domain, preventing downgrade attacks and cookie hijacking.
    IPsec (Internet Protocol Security)
    A suite of protocols for securing IP communications at the network layer. Provides confidentiality, integrity, authenticity, and replay protection independent of applications.
    IKE (Internet Key Exchange)
    The protocol through which IPsec peers negotiate security associations — algorithms, keys, and parameters. IKEv2 is the modern version.
    Tunnel mode / Transport mode
    IPsec modes. Tunnel mode encapsulates the entire IP packet and is used for VPNs; transport mode protects only the payload and is used for host-to-host communication.
    Perfect Forward Secrecy (PFS)
    The IPsec equivalent of forward secrecy — ensures that compromise of a key does not compromise past or future sessions.
    SSH (Secure Shell)
    A protocol for secure remote administration and secure file transfer. Provides encrypted and authenticated communication between client and server.
    authorized_keys
    The file on an SSH server that lists public keys authorised to authenticate. Frequently accumulates unmanaged keys over time.
    DNSSEC (Domain Name System Security Extensions)
    A set of extensions to DNS that provide cryptographic authentication of DNS responses — protecting against cache poisoning and spoofing.
    DNS over HTTPS (DoH) / DNS over TLS (DoT)
    Protocols that encrypt DNS queries between client and resolver, protecting against observation and manipulation on the local network.
    Cache poisoning
    An attack in which the adversary injects false DNS records into a resolver's cache, redirecting subsequent queries to attacker-controlled addresses. DNSSEC protects against this.
    Legacy protocol
    A protocol that has been superseded by a more secure version but remains in use for compatibility. Legacy protocols are a recurring source of enterprise exposure.
    Cipher suite
    A set of algorithms for key exchange, authentication, encryption, and integrity used by a security protocol. Cipher suites are negotiated during connection establishment.
    Protocol version
    The specific version of a protocol in use. Protocol versions are deprecated as weaknesses are discovered; deprecated versions should be disabled.
    Hardening benchmark
    Published guidance on secure configuration for systems, applications, or protocols — typically from CIS, NIST, or vendors.
    Configuration drift
    The tendency for configurations to change over time from the intended state — through manual changes, updates, or neglect. Continuous assessment detects drift.

    13 Activities

    The activities below help you test your understanding and prepare for the unit discussion and Assignment 2. They are not graded, but completing them will substantially improve your preparation.

    Activity 1 — TLS configuration assessment

    Choose a public website — preferably one related to a familiar enterprise or sector — and assess its TLS configuration using a tool such as SSL Labs (ssllabs.com/ssltest) or testssl.sh:

    • which TLS versions does the site support?
    • which cipher suites are enabled?
    • is forward secrecy supported and required?
    • what is the certificate configuration — key type, key length, chain?
    • is HSTS enabled?
    • what overall grade does the tool assign, and what issues does it identify?

    Write up your assessment (350–450 words). Identify the most significant issue and describe how it would be remediated.

    Activity 2 — Legacy protocol inventory

    For an enterprise context you know well, produce a legacy protocol inventory:

    • which legacy protocols are likely in use — Telnet, FTP, HTTP, SMBv1, SNMPv1/2c, SSL/TLS 1.0/1.1, NTLMv1, MD5/SHA-1, others?
    • what data or access does each protect?
    • what is the consequence if each is exploited?
    • what prevents migration to a modern alternative?
    • what compensating controls could reduce the risk while migration is in progress?

    Write up your inventory and assessment (400–500 words). Identify the highest-priority remediation and describe how it would be achieved.

    Activity 3 — Preparing for Forum 4 and Assignment 2

    Forum 4 includes discussion of security architecture patterns and cloud security architectures. Assignment 2 includes a secure cloud-migration architecture and a defence-in-depth strategy for a financial institution — both of which depend on the protocol configuration reasoning developed in this lesson.

    Review the Forum 4 prompts and the Assignment 2 brief, and note where the material from this lesson — particularly TLS configuration, IPsec deployment, SSH key management, and legacy protocol risk — will strengthen your analysis.

    14 Self-check

    Answer the questions below before moving to Lesson 4.4. If you cannot answer a question confidently, revisit the corresponding section.

    Question 1
    Which of the following best describes the security properties that TLS provides?
    Reveal answer

    B. TLS provides confidentiality (encryption), integrity (protection against modification), and authenticity (server and optionally client authentication through certificates). Modern configurations also provide forward secrecy. A, C, and D are incomplete or incorrect.

    Question 2
    Which of the following best describes the difference between TLS and IPsec?
    Reveal answer

    A. TLS operates at the transport layer, protecting communication between applications. IPsec operates at the network layer, protecting all traffic between hosts or networks, independent of applications. The two are complementary — both may be used in the same architecture.

    Question 3
    Which of the following best describes why DNSSEC is important for enterprise security?
    Reveal answer

    B. DNSSEC provides cryptographic authentication of DNS responses — protecting against cache poisoning and spoofing, which can redirect users to attacker-controlled servers. It does not provide confidentiality (A) — that requires DoH or DoT. It does not address all DNS attacks (C and D).

    Question 4
    Why do legacy protocols persist in enterprise environments, despite their known weaknesses?
    Reveal answer

    B. Legacy protocols persist for a combination of reasons: legacy systems, compatibility requirements, operational convenience, visibility gaps (enterprises frequently do not know which legacy protocols are in use), and lack of clear ownership for remediation. A, C, and D misstate the reasons.

    Question 5
    A security review finds that an enterprise's SSH servers have large authorized_keys files containing keys for departed employees and retired systems. Which of the following best describes this situation?
    Reveal answer

    B. Unmanaged SSH keys are a significant vulnerability. Each key in authorized_keys represents an access path — and for departed employees and retired systems, that path is not monitored, not accountable, and may still be usable. An adversary who obtains the private key corresponding to any of these entries can authenticate to the system. A, C, and D understate the risk.

    15 Summary

    This lesson has examined network security protocols — the specific mechanisms through which the network layer of defence-in-depth is implemented. The essential points are:

    • Network security protocols protect data in transit, establish trust between parties, and are ubiquitous in enterprise environments. Their correct configuration determines the enterprise's exposure across a wide range of attack vectors.
    • Protocols operate at different layers of the network stack. Application-layer protocols (SSH, S/MIME), transport-layer protocols (TLS), network-layer protocols (IPsec), and link-layer protocols (WPA3, MACsec). Placement determines what each protects.
    • TLS is the dominant protocol for protecting data in transit. Provides confidentiality, integrity, and authenticity; forward secrecy in modern configurations. TLS 1.2 and 1.3 are the modern versions; earlier versions are deprecated. Configuration considerations include protocol versions, cipher suites, certificates, and client validation.
    • IPsec secures IP communications at the network layer. Used for site-to-site VPNs and cloud connectivity. Configuration considerations include IKE version, authentication method, algorithms, and forward secrecy. The principal limitation is that encryption hides traffic from inspection.
    • SSH is the dominant protocol for remote administration. Configuration considerations include disabling password authentication, disabling root login, restricting access, and managing host keys and authorized_keys. The most consequential risk is the accumulation of unmanaged keys.
    • DNSSEC provides cryptographic authentication of DNS responses. Protects against cache poisoning and spoofing. Deployment has been slow due to complexity and key management requirements, but is increasing. Other DNS mechanisms include DoH, DoT, filtering, and monitoring.
    • Legacy protocols are a recurring source of enterprise exposure. Telnet, FTP, HTTP, SMBv1, SSL/TLS 1.0/1.1, NTLMv1, MD5/SHA-1. They persist for understandable reasons; the consequences are frequently underestimated.
    • Protocol configuration is an operational discipline. Modern versions and algorithms; forward secrecy; strong authentication; client-side validation; visibility and monitoring; centralised configuration management. Hardening benchmarks (CIS, NIST) provide guidance.
    • Common pitfalls recur. Configuration without assessment; legacy support without justification; unmanaged certificates; disabled validation; unmanaged SSH keys; DNSSEC without operational readiness; no protocol inventory; no continuous assessment.

    These ideas prepare for Lesson 4.4, which examines virtual private networks — the mechanisms through which enterprises extend their networks across public infrastructure using protocols such as IPsec and TLS.

    Before moving on

    Make sure you can describe TLS, IPsec, SSH, and DNSSEC, explain their security properties, identify the principal configuration considerations for each, and explain why legacy protocol risk matters. If you cannot yet do all four, revisit Sections 3, 4, 5, 6, and 8.

    Next lesson

    Lesson 4.4 — Virtual Private Networks examines site-to-site and remote-access VPNs, tunnel design, and the shift toward zero-trust access as the perimeter model weakens.

    👤