📝 Application layer security protocols (6 MCQs)
Protecting Services Used by Network Applications
Application-layer security protocols protect particular network services, user identities, or application messages. HTTPS uses TLS to secure web communication, SSH protects remote terminal and file-transfer sessions, and DNSSEC authenticates DNS data. Kerberos supports network authentication through tickets. These mechanisms solve different problems, so protocol choice depends on the application, threat model, and required security service. The security function depends on the data being protected.
Security Mechanisms at the Application Boundary
A secure application protocol may authenticate users or servers, encrypt exchanged data, verify message integrity, or authorize requested operations. Some protocols establish a secure channel beneath application messages, while others attach signatures or authentication data to the messages themselves. Certificates, shared secrets, tickets, and cryptographic keys provide different ways to establish trust.
How an Application Uses a Security Protocol
A client selects a service and begins its security exchange before sending sensitive application commands. The peers authenticate using certificates, passwords, tickets, or keys as supported. They then establish protected communication or validate signed data. The application processes a request only after relevant authentication and authorization checks succeed. according to the selected protocol.
HTTPS Protecting an Online Account Login
A user visits an HTTPS banking page. The browser negotiates TLS, validates the web server certificate, and establishes traffic keys before submitting login information. TLS protects the request in transit, but the bank must still verify the credentials and enforce account permissions. This example separates channel security from application authentication and authorization.
Selecting Protocols for Different Application Needs
HTTPS protects web sessions, SSH secures remote administration, Kerberos provides ticket-based authentication within managed environments, and DNSSEC protects DNS data origin and integrity. DNSSEC does not encrypt DNS queries. Application protocols often depend on TLS, IPsec, or lower-layer services, but none removes the need for secure software and access-control policies.
Confusing Different Application Security Services
‘DNSSEC hides DNS queries’ is incorrect; it validates DNS data rather than encrypting it. ‘HTTPS proves a user is authorized’ confuses server authentication with application permissions. ‘SSH and TLS are the same protocol’ is false; both can protect communication, but SSH defines its own connection and user-authentication architecture. rather than from the user identity alone.
Protocol Selection and Layer-Mapping Questions
Identify each protocol’s purpose and layer relationship: HTTPS for web traffic, SSH for secure remote access, Kerberos for authentication, and DNSSEC for signed DNS data. Distinguish encryption from integrity checking and peer authentication from user authorization. Trace which security mechanism protects a channel and which validates the application’s own request or message.
Application Security Protocol and Service Terms
- HTTPS - HTTP protected by TLS.
- SSH - Secures remote login and file transfer.
- Kerberos - Authenticates users with tickets.
- DNSSEC - Authenticates DNS data origin and integrity.
- Authorization - Controls which actions are permitted.
- Ticket - Credential used during Kerberos authentication.
📝 All Application layer security protocols MCQs
Q1. Which statement accurately describes IPSec transport mode?
📖 Explanation: Transport mode inserts the IPSec header and trailer around the data received from the transport layer, then the original IP header is placed afterward. Consequently, only the transport‑layer payload is encrypted or authenticated, while the original IP header remains visible. This matches the definition given in the standard.
Q2. If an attacker can modify the outer IP header in a transport‑mode IPSec packet, which consequence is most likely?
📖 Explanation: In transport mode the outer IP header is not covered by IPSec integrity checks, so an adversary can alter fields such as the destination address. Because authentication applies only to the payload, the modification is not detected, allowing the packet to be redirected without triggering a drop.
Q3. Compare transport mode and tunnel mode in terms of the network layers they protect. Which statement is correct?
📖 Explanation: Tunnel mode encapsulates the whole original IP packet—header plus payload—within a new IP header and then applies ESP or AH, so both the original header and data are protected. Transport mode, by contrast, leaves the original IP header untouched and secures only the payload. Therefore the statement in option D correctly captures the layer‑level protection differences.
Q4. A host behind a NAT wants to communicate with a remote server over the public Internet. Which IPSec mode should be used to ensure confidentiality of both payload and original IP headers, and why?
📖 Explanation: When a host behind NAT communicates across the Internet, the original source address is replaced by the NAT’s public address, and the internal IP header may reveal private topology. Tunnel mode wraps the entire original packet, including its private header, inside a new outer header, providing confidentiality for both payload and original header.
Q5. Assume a standard IPv4 header is 20 bytes and an IPSec ESP trailer adds 24 bytes in tunnel mode. If the original packet payload is 500 bytes, what is the total size of the transmitted packet after IPSec processing?
📖 Explanation: The original packet consists of a 20‑byte IPv4 header and a 500‑byte payload, totaling 520 bytes. IPSec ESP adds a 24‑byte trailer, bringing the size to 544 bytes. Tunnel mode then adds a new 20‑byte IP header, resulting in a final transmitted size of 564 bytes.
Q6. A company needs to secure communication between its remote branch office and the central data center over the public Internet. Which IPSec mode provides the strongest defense against traffic analysis and why?
📖 Explanation: Traffic analysis can infer communication patterns from observable header fields. Tunnel mode encrypts the entire original IP header along with the payload, hiding source, destination, and protocol information from eavesdroppers. Transport mode leaves the original IP header exposed, making it vulnerable to analysis. Hence tunnel mode offers the strongest protection against traffic‑analysis attacks.