CPSA ยท Cryptography for testers
IPsec: AH, ESP, modes, IKE and SAs
AH vs ESP, transport vs tunnel mode, IKE and security associations.
Key points
- IPsec: network-layer IP security.
- AH: integrity and authentication, no encryption.
- ESP: confidentiality, integrity, authentication, anti-replay (RFC 4303).
- Transport mode: protects the payload, keeps the original IP header (host to host).
- Tunnel mode: new outer IP header around the whole packet (gateways, VPNs).
- IKE: authenticates peers, negotiates keys; yields one-way SAs with an SPI, so two-way traffic needs a pair.
Source: https://www.rfc-editor.org/rfc/rfc4303
Practice questions
Which IPsec protocol can provide confidentiality?
- AH
- ESP
- IKE only
- ARP
Show answer
Answer: B. ESP
ESP can encrypt the payload. AH provides integrity and authentication only, and IKE is the negotiation protocol that sets up the keys.
Which services can ESP provide?
- Confidentiality of the payload
- Data origin authentication
- Anti-replay protection
- DNS name resolution
- Application-level virus scanning
Show answer
Answer: A. Confidentiality of the payload, B. Data origin authentication, C. Anti-replay protection
ESP can provide confidentiality, origin authentication, integrity and anti-replay. Name resolution and antivirus scanning are unrelated to IPsec.
AH encrypts the packet payload so it cannot be read on the wire.
Show answer
Answer: False
False. AH authenticates and protects integrity but does not encrypt; the payload stays readable. Use ESP for confidentiality.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
