CPSA ยท VPN, VoIP, wireless and device configuration
IPsec enumeration and fingerprinting
Detecting IKE responders, main vs aggressive mode, and what fingerprinting reveals.
Key points
- IPsec VPN gateways answer IKE on UDP 500 (UDP 4500 with NAT traversal).
- Enumeration: send IKE handshake probes and see who replies; ike-scan automates this.
- Main mode: six messages, protects the peer identity.
- Aggressive mode: three messages, identity in the clear, flagged when used with a pre-shared key.
- Fingerprinting: compare vendor ID payloads, accepted transforms and retransmission (backoff) timing with known patterns.
Source: https://github.com/royhills/ike-scan/blob/master/README.md
Practice questions
Which transport port does a scanner probe first to find IKE responders on an IPsec gateway?
- TCP 500
- UDP 500
- UDP 1701
- TCP 4500
Show answer
Answer: B. UDP 500
IKE runs over UDP 500 (UDP 4500 only after NAT traversal is negotiated). TCP ports are not used for the IKE handshake, and 1701 is L2TP.
Which observations can feed IKE fingerprinting of a gateway?
- Vendor ID payloads in the reply
- Retransmission (backoff) timing
- The gateway's web page title
- Which transforms it accepts or rejects
- The colour of the status LED
Show answer
Answer: A. Vendor ID payloads in the reply, B. Retransmission (backoff) timing, D. Which transforms it accepts or rejects
Vendor ID payloads, retransmission timing and the set of accepted transforms differ between implementations. The TTL of an ICMP reply and the gateway's marketing name are not part of IKE handshake analysis.
True or false: IKE main mode sends the peer identity in clear text, which is why aggressive mode is considered the safer choice.
Show answer
Answer: False
Reversed. Main mode protects the identity (it is sent after the key exchange); aggressive mode sends it in the clear in fewer messages.
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.
