Trust Model & Core Architecture Shift
The fundamental security paradigm shift from 4G to 5G represents a move from perimeter-based implicit trust to zero-trust architecture with explicit authorization.
EPC Architecture
EPC Trust Assumption
EPC assumes network honesty, not network compromise. Physical security boundaries are the primary defense.
{
"iss": "nrf.5gc.mnc001.mcc001.3gppnetwork.org",
"sub": "amf-001",
"aud": "udm.5gc.mnc001.mcc001.3gppnetwork.org",
"scope": "nudm-uecm nudm-sdm",
"exp": 1704931200,
"claims": {
"nfType": "AMF",
"nfInstanceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"allowedPlmns": [{ "mcc": "001", "mnc": "01" }]
}
}
Identity Privacy: IMSI vs SUCI (ECIES)
5G introduces cryptographic identity protection using ECIES to eliminate IMSI exposure vulnerabilities that enable subscriber tracking and surveillance attacks.
IMSI Exposure
Cleartext Transmission
IMSI sent in cleartext during Attach Request if GUTI is unavailable or rejected by network.
// IMSI: 310150123456789 MCC: 310 // Mobile Country Code (USA) MNC: 150 // Mobile Network Code MSIN: 123456789 // Subscriber ID (CLEARTEXT)
USIM Storage
USIM stores Home Network Public Key (HNPK) provisioned by operator. Profile A uses Curve25519, Profile B uses secp256r1.
Ephemeral Key Generation
UE generates fresh ephemeral key pair (ePK, eSK) for each SUCI computation. Ensures unlinkability between sessions.
ECDH Key Agreement
Shared secret derived: SS = ECDH(eSK, HNPK). Used to derive encryption key (EK) and MAC key (MK) via KDF.
MSIN Encryption
MSIN encrypted using AES-128-CTR with EK. MAC computed over ciphertext using HMAC-SHA-256 with MK.
SUCI Output
SUCI = MCC || MNC || Routing Ind || Protection Scheme || ePK || Ciphertext || MAC. Only SIDF can decrypt.
3GPP TS 33.501 Section 6.12
SUCI concealment is mandatory for 5G SA. The SIDF (Subscription Identifier De-concealing Function) resides in UDM and is the only entity capable of de-concealing SUPI from SUCI.
What Comes After 5G Security?
Explore post-quantum cryptography, zero-trust 6G architectures & AI-native threat detection in our 6G Vision Course.
Authentication & Key Hierarchy
5G introduces a split anchor key model that prevents serving network compromise from exposing home network key material, fundamentally changing the trust boundary.
EPS-AKA Key Hierarchy
5G-AKA
Primary method for SIM-based devices. Enhanced EPS-AKA with home network confirmation and concealed identity support.
EAP-AKA'
EAP framework method enabling WLAN interworking and non-3GPP access. Binds to access network name for serving network authentication.
EAP-TLS
Certificate-based authentication for non-SIM IoT devices and enterprise deployments. Mutual authentication via X.509 certificates.
5G-AKA Extensions
Extensibility for future authentication methods including AKMA (Authentication and Key Management for Applications) per TS 33.535.
// K_AUSF derivation (in UDM/ARPF) K_AUSF = KDF(CK || IK, "6A" || SN_name || SQN ^ AK) // K_SEAF derivation (in AUSF) K_SEAF = KDF(K_AUSF, "6C" || SN_name) // K_AMF derivation (in SEAF/AMF) K_AMF = KDF(K_SEAF, "6D" || SUPI || ABBA) // NAS keys derivation K_NASint = KDF(K_AMF, "69" || alg_type || alg_id) K_NASenc = KDF(K_AMF, "69" || alg_type || alg_id) // K_gNB derivation K_gNB = KDF(K_AMF, "6E" || NAS_UL_COUNT || Access_Type)
6G Vision: The Future of Wireless Networks
Go beyond 5G security — explore THz communications, AI-native networks, reconfigurable intelligent surfaces, and the next generation of telecom architecture.
Radio Interface Security (PDCP Layer)
5G NR introduces mandatory user plane integrity protection and 256-bit algorithm support to address bit-flip attacks and provide quantum-resistant cryptographic options.
4G LTE Algorithms
5G NR Algorithms
Quantum Resistance Considerations
256-bit symmetric algorithms provide defense against Grover's algorithm, which effectively halves the security of symmetric keys. AES-256 provides ~128-bit post-quantum security.
4G LTE - No UPIP
// User Plane Integrity Protection MAC calculation MAC-I = NIA(K_UP-int, COUNT, BEARER, DIRECTION, MESSAGE) // Where: K_UP-int = User Plane Integrity Key (derived from K_gNB) COUNT = 32-bit PDCP COUNT (HFN || PDCP SN) BEARER = 5-bit Radio Bearer ID DIRECTION = 1-bit (0=UL, 1=DL) MESSAGE = PDCP PDU (Header + Data) // MAC-I appended to PDCP PDU for receiver verification
Roaming & Interconnect Security
5G replaces vulnerable SS7/Diameter interconnects with SEPP-based N32 interface, providing end-to-end protection against IPX-based attacks.
SS7/Diameter Roaming
Home PLMN (HPLMN)
Visited PLMN (VPLMN)
// N32-f message with PRINS protection { "n32fContextId": "ctx-12345", "dataToIntegrityProtectBlock": { "metaData": { // Visible to IPX (routing) "n32fPeerId": "hsepp.mnc001.mcc001.3gppnetwork.org" }, "requestLine": { "method": "POST", "uri": "/nudm-uecm/v1/imsi-001010123456789/registrations/amf-3gpp-access" }, "payload": "<JWS-protected JSON>" // Integrity protected }, "dataToIntegrityProtectAndCipherBlock": { "payload": "<JWE-encrypted JSON>" // Confidential + Integrity } }
PRINS Modes (TS 33.501 Section 13.2)
TLS-only: Transport layer protection only. PRINS: Application layer protection using JWS (integrity) and JWE (confidentiality). PRINS enables sensitive IEs to remain protected even when IPX proxies terminate TLS.
Master 5G Core Architecture
Complete training on 5G SA/NSA, AMF, SMF, UPF and service-based architecture — the foundation behind this security article.
Anti-Bidding Down Protection
5G implements cryptographic detection of capability downgrade attacks that allow MITM attackers to force null encryption or legacy RAT fallback.
Vulnerable to Downgrade
Attack Vector
UE capabilities sent unencrypted in Attach Request. MITM can modify to remove strong algorithms, forcing NEA0 (null encryption) or legacy RAT downgrade to 2G/3G.
Hash Match = Secure Session Established
Capabilities verified, no downgrade detected. Proceed with selected algorithms.
Hash Mismatch = Attack Detected
Session terminated. Security event logged. UE may attempt re-registration.
// ABBA parameter in K_AMF derivation (TS 33.501 Annex A.7) K_AMF = KDF(K_SEAF, "6D" || SUPI || ABBA) // ABBA value indicates security features supported ABBA = { // Bit 0: 5G-AKA vs EAP-AKA' // Bit 1: Serving network authentication supported // Bits 2-15: Future extensions } // If ABBA is modified by MITM, K_AMF will differ between UE and AMF // -> Security Mode Complete verification will fail
Technical Comparison Summary
| Security Domain | 4G (LTE/EPC) | 5G (SA/SBA) | 3GPP Reference |
|---|---|---|---|
| Identity Protection | IMSI (Cleartext) | SUCI (ECIES) | TS 33.501 Section 6.12 |
| Trust Model | Perimeter-based | Zero Trust | TS 33.501 Section 13 |
| Core Protocol | Diameter / GTP | HTTP/2 + REST + OAuth | TS 29.500 |
| NF Authorization | Implicit trust | OAuth 2.0 (NRF) | TS 33.501 Section 13.3 |
| Key Exposure | K_ASME in MME | K_SEAF only | TS 33.501 Section 6.2 |
| UP Integrity | Not supported | Mandatory UPIP | TS 33.501 Section 5.6.3 |
| 256-bit Crypto | Not available | AES-256, SNOW-256, ZUC-256 | TS 33.501 Section 5.6.4 |
| Roaming Security | IPX trust | SEPP + PRINS | TS 33.501 Section 13.2 |
| Anti-Downgrade | Vulnerable | ABBA + Hash verification | TS 33.501 Section 6.4 |
| Authentication | EPS-AKA only | 5G-AKA, EAP-AKA', EAP-TLS | TS 33.501 Section 6.1 |
Key Takeaway for Architects
5G SA security is designed for cloud-native, multi-vendor, sliced, and roaming-heavy environments with zero-trust assumptions. The protocol changes are not incremental improvements -- they represent a fundamental architectural shift to address threats that EPC security was not designed to handle.
Recommended Courses
🛰 6G Vision Course 10 Modules • THz, RIS, AI-Native, NTN • $2.99 📡 5G Core Network Architecture Bestseller • SA/NSA, AMF, SMF, UPF, SBA • FREE 📡 O-RAN & Open Networks New • O-RAN Architecture, RIC, xApps • FREETest Your Knowledge
1. What is the primary function of SIDF in 5G identity privacy?
2. How does the ABBA parameter prevent downgrade attacks?
3. What vulnerability does 5G UPIP address that 4G LTE cannot?