LTE AKA Authentication Synchronization Failure โ€“ Wireshark Analysis

While analyzing an LTE Attach procedure in Wireshark, I came across an interesting case of Authentication Synchronization Failure during the EPS AKA authentication procedure.

๐—™๐—น๐—ผ๐˜„ ๐—ผ๐—ฏ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ฑ
:small_blue_diamond: UE โ†’ MME: Attach Request + PDN Connectivity Request
:small_blue_diamond: MME โ†’ UE: Authentication Request (RAND + AUTN)
:small_blue_diamond: UE โ†’ MME: Authentication Failure โ€“ Synch failure (Cause 21), with AUTS for re-synchronization
:small_blue_diamond: MME โ†’ UE: Authentication Request (Retry, with corrected vector)
:small_blue_diamond: UE โ†’ MME: Authentication Response (RES)

๐—ช๐—ต๐—ฎ๐˜ ๐—ต๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ป๐˜€ ๐—ฑ๐˜‚๐—ฟ๐—ถ๐—ป๐—ด ๐—ฆ๐˜†๐—ป๐—ฐ๐—ต ๐—™๐—ฎ๐—ถ๐—น๐˜‚๐—ฟ๐—ฒ?
During LTE AKA authentication, the UE/USIM validates the AUTN received from the network. One of the key parameters involved in this validation is the Sequence Number (SQN).

If the SQN embedded in AUTN falls outside the UEโ€™s acceptable window, the USIM rejects the vector and the UE responds with:
Authentication Failure โ†’ Synch failure (21)

Along with this, the UE includes AUTS (SQN_MS โŠ• AK, and MAC-S), which the network forwards to the HSS for SQN re-synchronization. Once resynced, the MME retries authentication with a fresh vector, and the UE responds normally.

๐—ช๐—ต๐—ฎ๐˜ ๐—œ ๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ๐—ฒ๐—ฑ ๐—ถ๐—ป ๐—ช๐—ถ๐—ฟ๐—ฒ๐˜€๐—ต๐—ฎ๐—ฟ๐—ธ
:check_mark: Authentication Request
:check_mark: RAND
:check_mark: AUTN
:check_mark: SQN โŠ• AK
:check_mark: AMF
:check_mark: Authentication Failure Cause
:check_mark: AUTS
:check_mark: SQN_MS โŠ• AK
:check_mark: MAC-S
:check_mark: Authentication Response / RES

๐—ž๐—ฒ๐˜† ๐˜๐—ฎ๐—ธ๐—ฒ๐—ฎ๐˜„๐—ฎ๐˜†
A packet-level view makes it much easier to understand where authentication is failing and whether the issue is related to SQN synchronization between the UE/USIM and the networkโ€™s authentication context.

This was a good practical example of using Wireshark + NAS message analysis for LTE protocol troubleshooting.

LinkedIn: :backhand_index_pointing_down: