Security transition from 4G to 5G: are we secure enough?
Altaf Shaik (Principal Security Researcher · Kaitiaki Labs), Ravishankar Borgaonkar (Research Scientist · SINTEF Digital)
BruCON 0x0B · Day 1
Overview
In this BruCON 2019 presentation, "Security transition from 4G to 5G: are we secure enough?", Altaf Shaik and Ravishankar Borgaonkar delve into the evolving security landscape of mobile networks as they transition from 4G to 5G. The talk, an expanded version of their Black Hat presentation, goes beyond radio protocols to address the broader implications of 5G's new architecture, the controversies surrounding its deployment, and critical vulnerabilities they discovered in both radio and authentication layers. They highlight how 5G's fundamental shift towards cloud-native, service-based core networks introduces unprecedented attack surfaces and trust challenges.

Key moments
- 0:00 Introduction and 5G network types
- 8:30 5G core network: service-based architecture and hypervisor trust
- 14:00 Network slicing and hypervisor security challenges
- 22:00 5G device capabilities fingerprinting attack
- 35:00 Man-in-the-middle attacks: downgrading capabilities
- 42:00 Authentication protocol vulnerability for user tracking
- 52:00 5G as a signal intelligence platform (NATO report)
- 54:00 Q&A: Hypervisor trust and multi-vendor strategy
Security transition from 4G to 5G: are we secure enough?
Speakers: Altaf Shaik (Principal Security Researcher, Kaitiaki Labs); Ravishankar Borgaonkar (Research Scientist, SINTEF Digital)
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=rFE9H5ZK_Zs
Overview
In this BruCON 2019 presentation, "Security transition from 4G to 5G: are we secure enough?", Altaf Shaik and Ravishankar Borgaonkar delve into the evolving security landscape of mobile networks as they transition from 4G to 5G. The talk, an expanded version of their Black Hat presentation, goes beyond radio protocols to address the broader implications of 5G's new architecture, the controversies surrounding its deployment, and critical vulnerabilities they discovered in both radio and authentication layers. They highlight how 5G's fundamental shift towards cloud-native, service-based core networks introduces unprecedented attack surfaces and trust challenges.
The speakers, seasoned researchers in mobile communication, systematically unpack the technical underpinnings of 5G, differentiating between Non-Standalone (NSA) 5G (utilizing existing 4G core networks) and the more transformative Standalone (SA) 5G (featuring a dedicated 5G core). Their research exposes practical attacks that can compromise user privacy, degrade service quality, and even drain the batteries of Internet of Things (IoT) devices, despite 5G's touted security improvements. This article provides a comprehensive analysis of their findings, offering insights into the technical details, defensive strategies, and broader geopolitical concerns associated with 5G security.
The significance of this talk lies in its timely examination of 5G's security posture at a pivotal moment of global deployment. As 5G is poised to become a national critical infrastructure, carrying data for everything from personal devices to smart cities and autonomous vehicles, understanding its vulnerabilities is paramount. Shaik and Borgaonkar's work underscores that while 5G introduces advancements like encrypted user identities, its new architectural paradigms and persistent legacy issues present complex challenges that demand immediate attention from operators, vendors, and policymakers alike.
Background
▶ Watch: Introduction and 5G network types (0:00)
The transition from 4G to 5G is not merely an upgrade in speed and latency; it represents a fundamental paradigm shift in mobile network architecture. Initially, 5G deployments are largely Non-Standalone (NSA) 5G, where new 5G gNodeB base stations connect to existing 4G core networks. While this offers some performance enhancements, the true transformative potential of 5G, characterized by ultra-low latency and massive connectivity, resides in Standalone (SA) 5G, which utilizes a completely new 5G Core Network. This SA 5G is the focus of much of the security concern and controversy.
Historically, mobile core networks (until 4G) were largely closed, hardware-centric environments, offering a degree of physical isolation and controlled access. However, the 5G Core Network embraces a Service-Based Architecture (SBA), leveraging cloud computing, Network Function Virtualization (NFV), and Software-Defined Networking (SDN) principles. This means traditional network functions, once dedicated hardware appliances, are now virtualized software components running on commercial off-the-shelf servers within data centers. This move introduces new disciplines of IT security, including hypervisor security, cloud security, and third-party API security, all of which have their own inherent challenges. The speakers highlight the critical reliance on hypervisor trust, questioning whether current hypervisor security is robust enough for such a vital infrastructure.
Furthermore, 5G abandons the legacy SS7 signaling protocol, which has been notorious for its vulnerabilities (enabling tracking, SMS interception, and even call decryption). In its place, 5G adopts web-based protocols, specifically REST-based Java APIs protected over HTTP/TLS. While this aligns with modern internet standards, it shifts the security burden to proper certificate management and secure API configurations, introducing a new set of attack vectors familiar to web developers but potentially new to traditional telco engineers.
The speakers also briefly touch upon the evolution of encryption endpoints in mobile networks. In 2G and 4G, encryption typically terminates at the base station, leaving the traffic unencrypted within the operator's private network. 3G was an outlier, with encryption extending to the Radio Network Controller (RNC), an additional hop deeper into the network. In 5G, after significant debate, encryption again ends at the base station (gNodeB). While IPSec tunnels can be optionally used from the base station to the core, many operators, believing their internal network is secure, often do not deploy them, leaving internal traffic in plaintext. This architectural shift, combined with the increasing reliance on 5G for all forms of digital communication (from personal banking to industrial IoT and autonomous vehicles), positions 5G as a national critical infrastructure, making its security paramount. The expanded attack surface, from virtualized core functions to new radio capabilities, demands a re-evaluation of traditional mobile security paradigms.
Key Findings
▶ Watch: Network slicing and hypervisor security challenges (14:00)
The talk presents several critical findings concerning 5G security, primarily focusing on vulnerabilities in radio access and authentication protocols:
- Passive Device Fingerprinting via Capabilities: The researchers discovered that device capabilities (modem-specific parameters detailing supported features like security algorithms, frequency bands, and IoT functionalities) are transmitted in plaintext during initial network registration, before any security mode command is established. By operating a rogue base station, an attacker can passively collect these capabilities and, using a database of known device fingerprints, accurately identify the device's manufacturer, model, operating system, and even specific applications (e.g., distinguishing between an iPhone, an Android device, an IoT sensor, or a car modem). This "MN Map" attack allows for detailed intelligence gathering without any authentication.
- Man-in-the-Middle (MITM) Attacks on Capabilities: Building on the previous finding, the researchers demonstrated active MITM attacks where a rogue base station intercepts and modifies these plaintext capabilities during the registration process. Since the network saves these modified capabilities at the core, the device operates with the attacker-defined parameters until a restart. This enables:
- Service Degradation: Downgrading device categories (e.g., from Cat 16 to Cat 1), disabling high-speed features like Carrier Aggregation and MIMO, or removing support for LTE frequencies, forcing the device to fall back to slower, less secure 2G/3G networks.
- Voice Call Denial: Disabling Voice over LTE (VoLTE) capabilities, preventing secure voice calls on 4G/5G and forcing them onto vulnerable 2G/3G networks.
- IoT Battery Drain: For Narrowband IoT (NB-IoT) devices, disabling the Power Saving Mode (PSM) capability, which is crucial for their multi-year battery life. This forces the device to remain active, draining its battery in as little as 13 days instead of the expected 10 years.
- Authentication Protocol Vulnerabilities (User Tracking): Despite 5G's improvement of encrypting the IMSI (International Mobile Subscriber Identity) to thwart traditional IMSI catchers, the researchers identified a flaw in the 5G authentication protocol that allows for persistent user tracking. The random number (Rand) and Authentication Token (AUTN), crucial components of the authentication challenge, are still sent in plaintext. By repeatedly replaying the same Rand/AUTN challenge to a target device and analyzing the authentication responses, an attacker can leverage a mathematical property of the anonymity key (AK) derivation (specifically, XORing two responses cancels out the AK) to reveal the device's sequence number (SQN). Since SQN is unique to each user and incrementally updated, observing its changes allows an attacker to confirm the presence and track a specific target user across different locations. This is a "targeted attack" that 3GPP acknowledged but deemed difficult to fix due to its deep integration into existing 3G/4G/5G protocol mechanisms.
These findings collectively highlight that while 5G addresses some legacy security issues, it introduces new vulnerabilities through its architectural shifts and leaves others unaddressed, particularly at the radio interface.
Technical Deep Dive
▶ Watch: Man-in-the-middle attacks: downgrading capabilities (35:00)
The technical core of the presentation revolves around two primary areas: the inherent security challenges introduced by 5G's Service-Based Architecture (SBA) and specific, practical vulnerabilities discovered in 5G's radio access and authentication protocols.
5G Core Network and Architectural Security
The shift to a cloud-native 5G Core Network is perhaps the most significant architectural change. Unlike the proprietary, hardware-defined core networks of previous generations, the 5G core decomposes network functions into modular, virtualized services that run on commercial off-the-shelf hardware, typically within data centers. This leverages technologies such as Network Function Virtualization (NFV) and Software-Defined Networking (SDN).
This Service-Based Architecture (SBA) uses standard REST-based Java APIs for communication between network functions, protected by HTTP/TLS and relying on certificate management. While this brings agility and cost-efficiency, it dramatically expands the attack surface. Key concerns include:
- Hypervisor Trust: All virtualized network functions (NFs) rely on the underlying hypervisor for isolation and security. The integrity and security of this hypervisor become paramount, as a compromise could affect multiple NFs and network slices. The speakers question the universal trust placed in hypervisors, especially given the diverse deployment scenarios.
- Network Slicing Security: 5G's ability to create network slices – dedicated, isolated virtual networks tailored for specific services (e.g., a low-latency slice for gaming, a highly reliable slice for smart grids, a secure slice for autonomous cars) – is a core feature. While intended for isolation, the security of these slices hinges entirely on the underlying virtualization and hypervisor technology. Ensuring strict traffic segregation at the hardware and software levels across different slices, potentially managed by different entities, is a complex challenge.
- Cloud Security Principles: Operators must now adopt rigorous cloud security principles for their core networks, including secure configuration, access control, vulnerability management, and incident response for cloud environments, which is a departure from traditional telco security practices.
- Third-Party API Security: The reliance on REST-based APIs for inter-operator communication and service delivery introduces API security challenges, requiring robust authentication, authorization, and rate limiting mechanisms.
The talk highlights historical incidents, such as the Greek wiretapping scandal (Athens Affair) where malware on lawful interception (LI) equipment compromised government communications, to underscore the risks of moving sensitive network functions, like lawful interception interfaces, into potentially less controlled cloud environments. Similarly, a fuzzing incident that crashed a Norwegian operator's HLR (Home Location Register) demonstrated the fragility of core network components to unexpected inputs, a risk amplified in a virtualized, interconnected environment.
Radio Access and Authentication Protocol Vulnerabilities
The research presented focuses on two main attack vectors at the radio interface:
1. Capabilities Fingerprinting and Manipulation
- Device Capabilities: Every mobile device (UE) has a set of capabilities defined by 3GPP standards. These are categorized into:
- Core Network Capabilities: Describe supported security algorithms (e.g., AES, null algorithms), voice calling, SMS, and future features like V2X (Vehicle-to-Everything).
- Radio Access Capabilities: Detail supported frequency bands, physical layer parameters, MIMO (Multiple-Input, Multiple-Output) configurations, and the device category (e.g., Cat 4, Cat 18), which indicates maximum theoretical data speeds.
- Vulnerability: During initial network registration, these capabilities are sent by the device to the network in plaintext, before any security mode command (i.e., encryption and integrity protection) is initiated. The network then stores these capabilities for future optimization, avoiding re-transmission.
- MN Map (Mobile Network Mapping): By setting up a rogue base station (e.g., using Software Defined Radios (SDRs) like USRPs and modified SRS LTE software), an attacker can passively capture these plaintext capabilities from nearby devices. The researchers built a comprehensive database of capabilities from diverse devices (phones, cars, IoT, USB sticks, laptops) to create a fingerprinting model.
- Examples of Fingerprints:
- Qualcomm chipsets often disable the EIS0 integrity algorithm (a legacy 4G algorithm), while others enable it.
- MediaTek chipsets consistently have a "measurement capability" enabled, which other vendors disable.
- Specific capabilities (e.g., voice codec capabilities, voice domain preference settings) distinguish phones from other devices.
- Certain GPS-related capabilities are always enabled in Android devices but disabled in iOS devices.
- Knowing the baseband vendor (e.g., Huawei, Samsung, Qualcomm) allows further narrowing down device models.
- Man-in-the-Middle (MITM) Attacks: An active rogue base station, acting as a MITM, can intercept these plaintext capabilities during registration, modify them, and forward the altered capabilities to the legitimate network. Since the network stores these, the device will operate with the modified capabilities until a restart.
- Service Degradation: Downgrading a device from a Cat 16 (e.g., 300-400 Mbps) to a Cat 1 (e.g., 50 Mbps or less in real networks) significantly reduces data speed. Disabling Carrier Aggregation and MIMO further impacts performance. Removing support for LTE frequency bands can force a device to handover to less secure 2G/3G networks.
- VoLTE Denial: Removing Voice over LTE capabilities forces voice calls onto 2G/3G, which are known to be vulnerable to interception.
- IoT Battery Drain: For Narrowband IoT (NB-IoT) devices, removing the Power Saving Mode (PSM) capability forces the device to stay active, constantly performing signal measurements. This can reduce a device's battery life from an expected 10 years to just 13 days.
- Persistence: The effect of these MITM attacks persists until the device is rebooted, which users rarely do frequently.
2. Authentication Protocol Vulnerabilities (Sequence Number Tracking)
- IMSI Protection in 5G: A significant security improvement in 5G is the encryption of the IMSI (International Mobile Subscriber Identity), which is the unique identifier for a user's SIM card. This aims to prevent IMSI catchers (also known as Stingrays or MC catchers) from passively tracking users.
- The Flaw: Despite IMSI encryption, the random number (Rand) and Authentication Token (AUTN), which are part of the authentication challenge from the network, are still transmitted in plaintext. The AUTN contains a sequence number (SQN) XORed with an anonymity key (AK) (C1 = SQN XOR AK). The AK is derived from the Rand.
- Tracking Mechanism: An attacker with a rogue base station can capture a Rand/AUTN pair from a target user. By repeatedly sending this same Rand/AUTN challenge to the target device, the device will respond with different authentication responses, each containing its current SQN XORed with the AK. Because the same Rand is used, the same AK is derived by the device for each response.
- If the attacker captures two responses, say C1 (SQN1 XOR AK) and C2 (SQN2 XOR AK), and then performs an XOR operation on them (C1 XOR C2), the AK cancels out due to the properties of XOR (AK XOR AK = 0). This leaves the attacker with SQN1 XOR SQN2.
- Since the SQN is unique to each user and increments with every authentication, observing the change in this XORed value allows the attacker to confirm they are interacting with the same target user, effectively tracking them without knowing their IMSI.
- Impact: This is a "targeted attack" that allows an adversary to track a specific user's presence and movements by simply firing up a fake base station and sending specific packets. 3GPP acknowledged this vulnerability but noted its difficulty to fix due to its fundamental nature in the 3G/4G/5G authentication protocol design.
These detailed technical findings underscore that 5G's security is a complex interplay of new architectures, legacy components, and protocol design choices, each presenting unique challenges.
Demo / Proof of Concept
▶ Watch: Authentication protocol vulnerability for user tracking (42:00)
The speakers clearly outlined the practical demonstration and proof-of-concept for their radio-level attacks, showcasing their ability to execute device fingerprinting and man-in-the-middle (MITM) capabilities manipulation.
For the MN Map and MITM capabilities attacks, the researchers built a specialized setup utilizing Software Defined Radios (SDRs). Specifically, they mentioned using two USRPs (Universal Software Radio Peripherals), which are highly stable and versatile SDR platforms. While other, cheaper SDRs like HackRF or LimeSDR could theoretically be used, USRPs offered the necessary reliability for their experiments.
Their setup involved:
- Rogue gNodeB: One SDR configured to act as a rogue 5G/4G base station.
- Rogue UE: Another SDR configured to act as a rogue User Equipment (mobile phone side).
This dual-SDR arrangement allowed them to function as a full man-in-the-middle. The traffic from a victim UE (any mobile device with a modem, including iPhones, Android phones, IoT devices, etc.) was routed through their rogue gNodeB and rogue UE, and then to the real network. This allowed them to intercept, analyze, and modify messages in transit.
The software foundation for their rogue base station and UE was based on SRS LTE, an open-source LTE software suite, which they extensively modified. These modifications involved significant programming, particularly to handle the precise timing of messages required for a successful MITM attack, especially concerning the interception and manipulation of device capabilities during the registration procedure.
The effectiveness of these attacks was demonstrated through:
- Live Network Tests: The researchers conducted tests on 32 live mobile networks. Their findings indicated that 22 of these networks were vulnerable to the capabilities modification attack, meaning they would accept and store fake capabilities sent by the MITM attacker before establishing security.
- Observed Impacts: They showed that these attacks successfully led to:
- Denial of voice calls (by disabling VoLTE).
- Significant data rate reduction (by downgrading device category and disabling high-speed features).
- Forced handovers to less secure 2G or 3G networks (by removing LTE frequency band support).
- Rapid battery drain in Narrowband IoT (NB-IoT) devices (by disabling Power Saving Mode (PSM)).
For the authentication protocol vulnerability (sequence number tracking), while no live demo was explicitly mentioned, the researchers detailed the mathematical and protocol-level analysis that led to its discovery. They stated that this vulnerability was discussed with 3GPP, the standards body, who acknowledged the problem but noted its difficulty to fix due to its fundamental integration across 3G, 4G, and 5G protocols. This suggests the proof of concept was more theoretical or simulation-based, focusing on the protocol logic rather than a live network exploit, though the principles remain valid.
The ability to successfully deploy a functional MITM setup on live networks and demonstrate tangible security impacts underscores the practical relevance and severity of their findings.
Defensive Implications
▶ Watch: Q&A: Hypervisor trust and multi-vendor strategy (54:00)
The research presented by Shaik and Borgaonkar offers several crucial defensive implications for mobile operators, device manufacturers, and even end-users as 5G networks become ubiquitous:
- Standards and Implementation Updates:
- Capabilities Protection: The most significant defensive measure is the 3GPP standard update that mandates the protection of UE capabilities before authentication and security mode command. This directly addresses the core vulnerability exploited by the capabilities manipulation attacks. However, the speakers note that it will take one to two years for this fix to propagate into new devices and network equipment, leaving current deployments vulnerable.
- Sequence Number Tracking: While 3GPP acknowledged the sequence number tracking vulnerability, they deemed it a "targeted attack" and difficult to fix due to its pervasive nature across 3G, 4G, and 5G protocols. This implies that operators and users should be aware that this form of tracking may persist, requiring alternative or supplementary defensive strategies.
- Operator-Level Security Enhancements:
- Robust Cloud and Hypervisor Security: Given the shift to Service-Based Architecture (SBA) and Network Function Virtualization (NFV), operators must implement stringent cloud security principles and ensure the integrity and isolation provided by hypervisors. This includes secure configuration, regular auditing, and robust access controls for the underlying cloud infrastructure hosting the 5G core.
- Mandatory IPSec Tunnels: To prevent plaintext traffic within the operator's network, especially from base stations to the core, operators should enforce the mandatory use of IPSec tunnels for all internal communication paths.
- Multi-Vendor Deployment Strategy: To mitigate the risks associated with trusting a single vendor (a point highlighted by the Huawei controversy), operators should adopt a multi-vendor deployment strategy. This involves sourcing different network components (e.g., core network from one trusted vendor, base stations from others) to diversify risk and avoid single points of failure or compromise. However, this introduces complexity in integration and interoperability.
- Continuous Penetration Testing and Fuzzing: The incident where fuzzing packets crashed a Norwegian HLR underscores the need for continuous and thorough penetration testing and fuzzing of all network elements, especially the new, virtualized core functions and their APIs.
- Participation in Vulnerability Disclosure Programs: Operators and vendors should actively participate in and support vulnerability disclosure programs, such as those run by GSMA, to facilitate the responsible reporting and remediation of security flaws.
- User-Level Mitigations:
- Device Restarts: For the capabilities manipulation attacks (service degradation, battery drain), a simple device restart can clear the modified capabilities stored by the network, allowing the device to re-register with its legitimate parameters. However, this is not a sustainable long-term solution.
- Network Selection Settings: While not always available or practical, some phones offer the option to lock the device to 4G only. This can prevent forced downgrades to 2G/3G networks, but it comes with the drawback of potentially losing coverage in areas where only 2G/3G is available.
- Broader Policy and Trust Considerations:
- 5G as a Signal Intelligence Platform: The talk emphasizes that even with end-to-end encryption, 5G's role as a national critical infrastructure means it will carry vast amounts of telemetry data (signaling data). This metadata can reveal significant information about users, devices, and application usage, making 5G a potential target for signal intelligence operations. Policymakers must consider this surveillance potential when developing national security strategies.
- Trust Management: The proliferation of third-party vendors, cloud providers, and virtualized components in the 5G ecosystem complicates trust management. Operators need robust frameworks to assess and maintain trust across their entire supply chain and operational environment.
In summary, securing 5G requires a multi-faceted approach, combining proactive standard amendments, rigorous operational security, strategic vendor diversification, and continuous vigilance against evolving threats, acknowledging that some legacy vulnerabilities may persist.
Key Takeaways
- Expanded Attack Surface: 5G's shift to a Service-Based Architecture (SBA) leveraging cloud computing, NFV, and REST-based APIs significantly expands the attack surface compared to traditional, hardware-centric mobile networks.
- Capabilities Vulnerabilities: Device capabilities are transmitted in plaintext during initial registration, enabling passive device fingerprinting (MN Map) and active Man-in-the-Middle (MITM) attacks to degrade service, force 2G/3G fallback, or drain IoT device batteries (e.g., PSM removal for NB-IoT).
- Persistent User Tracking: Despite IMSI encryption in 5G, a mathematical flaw in the authentication protocol's anonymity key (AK) derivation allows an attacker to track specific users by analyzing sequence numbers (SQN) from plaintext Rand/AUTN challenges.
- Hypervisor Trust is Critical: The security of the 5G core, especially network slicing, heavily relies on the trustworthiness and isolation provided by hypervisors, introducing a new layer of security challenge for mobile operators.
- Standard Updates are Slow: While 3GPP has acknowledged and fixed some vulnerabilities (like capabilities protection), these updates take 1-2 years to be implemented in new devices and networks, leaving current deployments exposed.
- Multi-Vendor Strategy and Cloud Security: Operators are urged to adopt multi-vendor deployment to diversify risk and implement robust cloud security practices to protect the virtualized 5G core, which is poised to become a critical national infrastructure.
About the Speaker(s)
Ravishankar Borgaonkar is a Research Scientist at SINTEF Digital. He possesses extensive experience in mobile communication, having worked with telco protocol stacks and networks for nearly a decade, starting from his master's studies. His expertise lies in understanding the intricate details of mobile network protocols and their security implications.
Altaf Shaik is a Principal Security Researcher at Kaitiaki Labs. At the time of this talk, he was based in Berlin, Germany, nearing the completion of his PhD. His research specifically focuses on radio protocols and their vulnerabilities, contributing significantly to the practical attacks demonstrated in the presentation.
Together, they presented a comprehensive analysis of 5G security, building upon their previous work showcased at conferences like Black Hat. Their combined experience in theoretical research and practical exploitation of mobile network vulnerabilities provides a deep, technical perspective on the challenges facing 5G.
Reviews
- Dr. Zero (Offensive Security Researcher) — MUST SEE ★★★★★
- Heather Calloway (CISO) — MUST SEE ★★★★★