Part 1 · Foundations of 5G Security
1

Why 5G Security Matters

Thirty years of attacks, and the architecture they produced

“Every security mechanism in 5G exists because somebody, somewhere, successfully attacked an earlier generation.” — THE ONE-SENTENCE SUMMARY OF THIS CHAPTER

A 5G network carries your payments, your hospital’s telemetry, your country’s power-grid signaling, and two billion private conversations — across an air interface that anyone with a $300 software radio can listen to. That is the problem 3GPP security was built to solve. This chapter tells the story of how mobile security evolved, why 5G had to be fundamentally different, and introduces the six objectives that every later chapter serves.

🎯 Learning objectives
📘 Standards reference box — Chapter 1
SpecificationTitleRelease / version verified
TS 33.501Security architecture and procedures for 5G SystemRel-18, v18.11.0 (2026-04)
TS 33.401EPS (LTE) security architectureRel-18 edition
TS 33.1023G security architectureRel-17/18 edition
TS 23.501System architecture for the 5G SystemRel-19, v19.6.0

Versions checked June 2026 on the public 3GPP/ETSI portals. Rel-19 security work in SA3 is ongoing — always verify against the latest 3GPP version before relying on details in production.

1.1 A Short History of Trust: 2G to 5G

Think of mobile security as a door that gained one more lock with every generation — and every lock was added after a break-in.

2G (GSM, 1990s) had one lock, and it only worked one way. The network checked that you were a real subscriber — but your phone never checked that the network was real. Encryption (the A5 family) was weak by modern standards, and there was no integrity protection at all: nothing stopped an attacker from silently modifying messages. Worst of all, your permanent identity — the IMSI (International Mobile Subscriber Identity) — was regularly sent in cleartext over the air. This single design gap created an entire industry of IMSI catchers: fake base stations that harvest identities and downgrade calls.

3G (UMTS — TS 33.102) fixed the biggest hole. It introduced AKA — Authentication and Key Agreement — a challenge-response protocol where both sides prove themselves. The network proves freshness and authenticity through a token (AUTN) that only the real home network could have built, because it is computed from a secret key K stored in exactly two places: your USIM card and the home operator’s vault. 3G also added integrity protection for signaling. But the IMSI still leaked in cleartext in common scenarios.

4G (LTE/EPS — TS 33.401) industrialized the model. It built a proper key hierarchy — one master session key (KASME) fanning out into separate keys for signaling encryption, signaling integrity, and user-data encryption — and added elegant handover key chaining (NH/NCC) so that a compromised base station cannot unlock your past or future sessions. Yet two gaps survived: the IMSI could still be requested in cleartext, and user-plane traffic had encryption but no integrity protection — which researchers later exploited in the aLTEr attack to silently redirect victims’ DNS.

5G (TS 33.501) is the first generation designed assuming that every part of the system can be attacked — including the operator’s own infrastructure and its roaming partners. Its four signature upgrades:

#5G upgradeWhat it closes
1SUCI — identity encrypted with the home network’s public key before transmission25 years of IMSI catching
2Unified authentication (5G-AKA / EAP-AKA′), home network gets the final wordVisited-network fraud, access-type gaps
3User-plane integrity protectionaLTEr-class traffic manipulation
4SEPP — cryptographic guard on the roaming border (N32)SS7/Diameter interconnect abuse
FIGURE 1.1Evolution of Mobile Network Security — 2G to 5G
2G · GSM · 1991 ✓ Subscriber authentication ✓ Air encryption (A5 family) ✗ One-way authentication ✗ Weak / breakable ciphers ✗ No integrity protection ✗ IMSI sent in cleartext 3G · UMTS · 2001 TS 33.102 ✓ Mutual authentication (AKA) ✓ CK / IK key pair ✓ Signalling integrity ✗ IMSI still leaks ✗ No user-plane integrity 4G · LTE · 2009 TS 33.401 ✓ Key hierarchy (K_ASME) ✓ NH/NCC handover chaining ✓ EPS-AKA ✗ IMSI still leaks ✗ No user-plane integrity ✗ Weak interconnect (SS7/Dia.) 5G · NR · 2019 TS 33.501 ✓ SUCI — identity concealed ✓ Unified authentication ✓ User-plane integrity ✓ SBA: mTLS + OAuth core ✓ SEPP roaming guard ✓ Increased home control — blue arrows: weakness fixed by the next generation — 1991 2001 2009 2019 →
Purpose: the entire 30-year security story on one page. Read each column top-to-bottom (green = capability, red = weakness), then follow the gold arrows: every red item is closed by a green item one generation later.

The capability ladder

A second way to see the same story: security is cumulative. 5G keeps every rung below it and adds three of its own.

FIGURE 1.2What Each Generation Fixed — the Security Capability Ladder
Subscriberauthentication Air-interfaceencryption Mutual auth(AKA) Signallingintegrity Key hierarchy +HO chaining Identityconcealment · SUCI User-planeintegrity Core + roamingSBA · SEPP 2G 2G 3G 3G 4G 5G 5G 5G each generation keeps every step below it
Purpose: security as a cumulative ladder. The three dark steps are 5G’s own additions — identity concealment, user-plane integrity, and core/roaming security.
💡 Key idea
Mobile security is cumulative and reactive. 5G did not start from a blank page — it kept the AKA core invented for 3G, kept the key hierarchy invented for 4G, and added exactly the protections whose absence had been exploited in the field.

Why one-way authentication was fatal

In GSM, the network sends a random challenge (RAND); the SIM computes a response (SRES) from K; the network verifies it. Done. At no point does the network prove anything. Any device that can transmit a GSM carrier can claim to be a cell of any operator — and phones obey it, because phones were designed to trust the strongest signal.

3G’s AKA closed this with the AUTN token: a value containing a sequence number and a message authentication code computed from K. A fake base station cannot fabricate AUTN. The UE verifies it before responding. Chapter 5 dissects this machinery in full.

FIGURE 1.3One-Way vs Mutual Authentication
2G — ONE-WAY UE / SIM Network RAND SRES = A3(K, RAND) ✗ The UE never verifies the network 3G / 4G / 5G — MUTUAL (AKA) UE / USIM Network RAND + AUTN verify AUTN (MAC + SQN check) RES ✓ Both sides prove knowledge of K
Purpose: the single most important authentication concept in this book. On the right, the UE checks the network’s token AUTN before revealing anything — a fake base station cannot fabricate it.

The IMSI catcher: the attack that shaped 5G privacy

The IMSI catcher (false base station, “stingray”) is the canonical legacy attack — and it worked, essentially unchanged, for 25 years across three generations:

  1. The attacker broadcasts as a high-power cell of the victim’s operator.
  2. Phones reselect to it — strongest signal wins.
  3. The fake cell sends an Identity Request — a legitimate, unauthenticated legacy message.
  4. The phone replies with its IMSI in cleartext.
  5. The attacker tracks the subscriber, or downgrades them to 2G to attack the weak cipher.

5G’s answer — SUCI, where the identity is encrypted to the home operator’s public key so even the serving network cannot read it off the air — is the subject of Chapter 4.

FIGURE 1.4The Classic IMSI-Catcher Attack on Legacy Networks
UE FALSE BASE STATION real network (ignored — weaker signal) ① high-power broadcast (spoofed PLMN) ② UE reselects to strongest cell ③ Identity Request (unauthenticated) ④ IMSI IN CLEARTEXT ⑤ downgrade to 2G · track subscriber This worked for 25 years across three generations — closed by 5G’s SUCI (Chapter 4)
Purpose: the concrete attack that motivates SUCI and false-base-station detection. Note step ③ — a perfectly legitimate legacy message; the protocol itself was the vulnerability.

1.2 Why 5G Needs Stronger Security

If 5G were only a faster radio, LTE security plus a coat of paint would have sufficed. It is not — for five structural reasons:

ChangeWhat it meansSecurity consequence
1 · The core became a web appSBA: NFs are services talking HTTP/2 + JSON over RESTInherits internet attack classes → mandates mTLS + OAuth 2.0 (Ch 10)
2 · The core left the buildingContainers on Kubernetes, shared/public cloud, edge sitesInfrastructure trust must be engineered, not assumed (Ch 22, 29)
3 · The network opened on purposeNEF exposes location, QoS, slicing to external appsExposure is a feature; uncontrolled exposure is a breach (Ch 12)
4 · One network, many tenantsSlices sold to enterprises, public safety, industryA slice boundary is a security boundary (Ch 20)
5 · Clients multiplied ×100Massive IoT: cheap, unattended, unpatched devicesEach device a potential bot; together, a signaling weapon (Ch 23)
⚠️ Warning
The most dangerous 5G security mindset is “we secured LTE, and 5G is similar.” The radio procedures are similar. The core, the trust model, the exposure surface, and the operational environment are not.

And the stakes rose. 4G carried consumers’ internet. 5G is designed to also carry society’s control plane: factory automation (URLLC), power-grid teleprotection, remote healthcare, public safety, ports, railways. When the network becomes critical infrastructure, its failure modes become national-security events — which is why regulators (EU 5G Toolbox, national telecom security acts) now legally compel much of what this book describes.

FIGURE 1.5The 5G Attack Surface Map
OAM / management controls everything Partner PLMN via IPX UE gNB · cell site transport backhaul 5G CORE — SBA AMF SMF UPF UDM NRF NEF SEPP Internet N6 External AF / apps northbound APIs Cloud / Kubernetes layer underlies every NF Uu N3 N6 N32 (roaming) 1 2 3 4 5 6 7 8 9 UE malware/credential theft false base station, jamming cell-site physical access transport tap SBA lateral movement API abuse at NEF roaming/interconnect attacks container escape / cloud layer insider / compromised OAM
Purpose: the master “where can we be hit” picture — nine numbered entry points spanning device, radio, transport, core, exposure, roaming, cloud, and management. Chapter 24 expands every branch into a full threat model.
FIGURE 1.65G as Critical Infrastructure — Dependency Map
regulatory oversight: EU 5G Toolbox · national telecom security acts · NIS2 5G NETWORK ⚡ Energy grid teleprotection fails 🏥 Healthcare remote monitoring fails 🚆 Transport rail signalling · V2X stops 🏭 Manufacturing URLLC motion control halts 🚓 Public safety mission-critical PTT down 💳 Finance payments · ATMs offline
Purpose: why availability is a first-class security objective. Six sectors now place their control traffic on the mobile network — its failure modes are their failure modes.

1.3 The Six Security Objectives

Everything in TS 33.501 serves one of six objectives. Learn these six words and every later mechanism will have an obvious “why.”

FIGURE 1.7The Six Security Objectives of 5G
5G SECURITY OBJECTIVES 🔒 CONFIDENTIALITY can anyone read it? NEA ciphering · TLS on SBA 🛡️ INTEGRITY was it modified? NIA — incl. user plane (new!) 🤝 AUTHENTICATION is each side who it claims? 5G-AKA / EAP-AKA′ · mTLS 🎫 AUTHORIZATION is it allowed to do this? OAuth 2.0 tokens · NSSAA 🎭 PRIVACY can the person be tracked? SUCI · 5G-GUTI reallocation 💓 AVAILABILITY is it up under attack? overload control · redundancy
Purpose: the book’s organizing framework. Each card pairs the objective with the question it answers and its flagship 5G mechanism.

Three nuances worth fixing in memory:

1.4 The 3GPP Security Domain Model

TS 33.501 organizes all of 5G security into domains — a structure inherited from TS 33.102. The book’s parts map onto it:

DomainProtectsBook part
I · Network access securityUE ↔ network attachment: authentication, NAS/AS protection, identity concealmentPart 2
II · Network domain securityTraffic between network nodes: NDS/IP, TLS, SEPPParts 3–4
III · User domain securityAccess to the device itself: USIM ↔ ME binding, PINCh 4
IV · Application domain securityApplications riding the network: AKMA, exposureCh 12, 22
V · SBA domain securityNF-to-NF authentication, transport, authorization — new in 5GPart 3
VI · Visibility & configurabilityThe user/UE knowing which protections are activeCh 19
FIGURE 1.83GPP Security Domains (TS 33.501 View)
IV · application domain security (UE ↔ application) USIM K 🔑 ME UE gNB Serving 5GC AMF · SMF · … SEPP N32 Home 5GC AUSF · UDM · … AF / app server I · network access security II · network domain security — node-to-node links incl. SEPP/N32 III · user domain V · SBA domain V · SBA domain VI · visibility & configurability (UE)
Purpose: connect the spec’s formal domain structure to the physical network. Domain V (SBA security) is 5G’s addition — the others evolved from 3G’s model in TS 33.102.

1.5 The Trust Triangle: UE, Serving Network, Home Network

5G security choreography always involves three parties:

This triangle explains otherwise-puzzling design choices throughout the book: why SUCI is encrypted to the home key, why KSEAF derivation includes the serving network name, why SEPPs authenticate PLMN-to-PLMN.

FIGURE 1.9The 5G Trust Triangle
shared secret K SUCI readable only by home SEPP / N32 · SN-name binding home confirms every auth result mutual AKA over the air session keys derived from anchor 🏠 HOME NETWORK AUSF · UDM · ARPF · SIDF holds K + SUCI private key decides the final auth verdict 📱 UE + USIM holds K · home public key conceals identity as SUCI 🌐 SERVING NETWORK SEAF / AMF — possibly roaming gets K_SEAF bound to its name
Purpose: the three-party trust model behind every authentication chapter. Note the highlighted verdict line: the home network — not the visited one — has the final word.

1.6 Defense in Depth: How the Layers Stack

No single 5G mechanism is the security. Protection comes from nine independent layers, so one failure does not collapse the system:

FIGURE 1.10Defense in Depth Across the 5G System
K 1 2 3 4 5 6 7 8 9 1 · Hardware root of trust USIM / HSM — Ch 4, 29 2 · Cryptographic identity SUCI — Ch 4, 19 3 · Mutual authentication 5G-AKA — Ch 5–6 4 · Air-interface security NAS + AS — Ch 8–9 5 · Transport security IPsec / TLS — Ch 14–15 6 · Service authorization OAuth on SBA — Ch 10–11 7 · Border control SEPP · NEF — Ch 12–13 8 · Platform security cloud / K8s — Ch 22, 29 9 · Operations SOC · monitoring · audit — Ch 24–28
Purpose: the layered model and the book’s chapter map in one picture. The red core is the long-term key K — every ring exists to keep an attacker further from it, and from your subscribers.
💡 Key idea
When you evaluate any 5G security question, ask: which layer is supposed to catch this — and which layer catches it if the first one fails? If the answer to the second question is “nothing,” you have found a real risk.

1.7 The Practical Operator View

What does this chapter mean on Monday morning?

Common misconfiguration risks (preview of Chapter 25)

1.8 Threats and Mitigations Summary

ThreatExploits5G mitigationCh.
IMSI catching / tracking2G–4G cleartext identitySUCI, GUTI reallocation4, 19
Fake base station MitM2G one-way authMutual AKA, AS integrity5, 9
Cipher downgrade2G/3G weak algorithmsAlgorithm policy, replayed-capability check8
User-plane modification (aLTEr)4G missing UP integrityUP integrity protection9
Roaming interconnect fraudSS7 / Diameter opennessSEPP, N32 protection13
Core lateral movementnew in 5G (SBA)mTLS + OAuth on SBA10
API abusenew in 5G (exposure)NEF / CAPIF controls12
Cloud platform compromisenew in 5G (CNF)CNF hardening, zero trust29–30

1.9 3GPP Terminology Introduced in This Chapter

TermMeaning
UE / ME / USIMUser Equipment = Mobile Equipment + the USIM application holding the long-term key K (on the UICC smart card)
IMSI / SUPI / SUCIPermanent identity (≤4G / 5G) and its concealed over-the-air form
AKAAuthentication and Key Agreement — the mutual challenge-response family
SBA / SBIService-Based Architecture / Interface — the HTTP/2 core design
SEPPSecurity Edge Protection Proxy — guards the roaming border (N32)
NEFNetwork Exposure Function — the controlled API doorway
Serving vs home networkWhere you are vs who holds your subscription

1.10 Real Network Example

A European operator launching 5G SA in 2023 ran a pre-launch red-team exercise. Findings, in order of severity:

  1. SBA in plaintext HTTP between NFs “inside the trusted zone” — one compromised lab VM could read authentication vectors crossing the bus. Fix: mandatory mTLS, two-week PKI sprint.
  2. SUCI null-scheme still active from integration testing — subscribers had been sending IMSI-equivalent identities in cleartext for four months. Fix: home-network key provisioning + scheme enforcement, plus a KPI alarm on null-scheme registrations (Chapter 26).
  3. UP integrity “not needed” on all slices — copied from an eMBB template into the enterprise slice sold to a utility company. Fix: per-slice UP security policy.
⚠️ The recurring theme of this book
None of these were standards gaps. All were operational gaps — the standard offered the protection; the deployment had switched it off.

1.11 Troubleshooting Checklist

When you suspect a “security generation” problem in a live network:

Chapter Summary

? Review Questions

  1. Why was one-way authentication in GSM sufficient for its designers in 1990, and what changed?
  2. Name the two security gaps that survived from 2G all the way through 4G, and the 5G mechanism that closed each.
  3. An NF presents a valid TLS client certificate to the UDM. Is it authorized to read subscriber data? Explain the distinction this tests.
  4. Explain why encrypting all NAS messages does not, by itself, give a subscriber privacy.
  5. Your CTO says: “We hardened LTE; 5G NSA reuses the LTE anchor, so we’re covered.” Give three specific things this misses.
  6. In the trust triangle, why is KSEAF bound to the serving network name? What attack does this prevent?
  7. Which of the six security objectives is least addressed by cryptography, and what addresses it instead?
  8. Map each finding from the real network example (1.10) to one of the six security objectives.
🧪 Mini lab / thought experiment — the downgrade hunt

No equipment needed. Take your own phone for a one-day field observation. Note every time the indicator changes between 5G, 4G and 3G/2G (elevators, parking garages, trains, rural areas). For each transition, write one line: which security properties did I just lose? (Use Figure 1.2.)

Then answer: if you were an attacker with a false base station, where in your day would you position it — and which generation would you force the phone onto? Keep your notes: in Chapter 19 you will revisit them knowing exactly what an IMSI catcher can and cannot do against 5G SA, and in Chapter 33 you will reproduce the legitimate parts in an Open5GS lab.