Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 46

Null-Scheme Encryption & SUCI De-anonymization Privacy Weaknesses

Recommended resources

Introduction

Welcome back. In our previous lesson, we examined how bidding-down attacks can force a 5G device onto a less secure network like 4G or even 2G. This is a powerful technique for an attacker, but it's also a very loud one, as it involves changing the entire network generation.

Today, we will explore a more subtle class of privacy weaknesses that occur within the 5G ecosystem. Instead of forcing a device off 5G, these vulnerabilities aim to weaken the security of the 5G connection itself or extract sensitive information despite the security measures in place.

Our learning outcome for this lesson is to describe privacy weaknesses related to null-scheme encryption and SUCI de-anonymization. We will break this down into two main parts:

  1. How the primary privacy feature of 5G Standalone, the Subscription Concealed Identifier (SUCI), can be effectively disabled using "null-scheme encryption."
  2. How, even when SUCI is used correctly, an attacker can still "de-anonymize" a subscriber to learn about their home country and network operator.

The Promise of Identity Protection: SUCI

In all previous generations of cellular networks (2G, 3G, 4G), one of the most significant privacy risks was the transmission of the International Mobile Subscriber Identity (IMSI) in cleartext over the air. This permanent identifier could be intercepted by an attacker with an "IMSI Catcher" to track a specific user's location and presence.

5G Standalone (SA) was designed to solve this problem by introducing the Subscription Permanent Identifier (SUPI) and the Subscription Concealed Identifier (SUCI). The concept is straightforward: never transmit the permanent SUPI over the air. Instead, the device encrypts the SUPI to create a temporary SUCI for use during the initial network registration.

This process relies on asymmetric cryptography, a concept you'll be familiar with from your work in web security (e.g., TLS). The device uses a public key provided by the home network to encrypt its identifier. Only the home network, with its corresponding private key, can decrypt the SUCI to reveal the true SUPI.

The following article from Mpirical provides an excellent overview of this intended protection.

5G Anonymity and the SUCI

This article, '5G Anonymity and the SUCI', explains the problem of IMSI exposure and how SUCI is designed to solve it using public-key cryptography.

Please read the first two main sections of the article, up to the diagram showing the 'Composition of SUCI'. Focus on understanding why the IMSI was a problem and the high-level concept of how encrypting the MSIN portion of the identifier into a SUCI provides confidentiality.

SUCI Protection Schemes and De-concealment Process
This diagram illustrates the intended SUCI process. The User Equipment (UE) encrypts its IMSI (a type of SUPI) into a SUCI using the network's public key. The SUCI is then sent to the core network's Unified Data Management (UDM), which uses the corresponding private key to de-conceal the IMSI.

Weakness 1: "Null-Scheme" Encryption

The SUCI mechanism seems robust, but its effectiveness depends entirely on its implementation. The 3GPP standards, which define how cellular networks operate, include a critical loophole: the encryption can be turned off.

The SUCI data structure contains a field called the "Protection Scheme ID," which tells the network which encryption algorithm was used. While this can specify a strong scheme like ECIES (Elliptic Curve Integrated Encryption Scheme), the standard also permits a value of '0', which signifies the Null Scheme—in other words, no encryption at all.

5G Subscription Concealed Identifier (SUCI) Structure
This diagram details the fields within a SUCI. Note the 'Protection Scheme ID' field, which can be set to 'Null'. If this scheme is used, the 'Scheme Output' field contains the MSIN in plaintext, completely defeating the purpose of SUCI.

When the null scheme is used, the "encrypted" part of the SUCI is simply the plaintext Mobile Subscriber Identification Number (MSIN). An attacker monitoring the radio interface can read it just as easily as they could read an IMSI in a 4G network.

To understand how this fits into the broader 5G security framework, the following video explains that much of 5G's security is, in fact, optional.

5G Security Overview | Mpirical

The video '5G Security Overview' by Mpirical discusses where encryption and integrity are applied in 5G. It specifically calls out the optional nature of SUCI encryption.

Please watch from 16:44 to 21:32. The video first recaps the historical problem of IMSI exposure and then introduces SUCI. Pay close attention to the end of the segment (starting around 20:45) where the presenter explicitly states that using the 'null algorithm' is an option, rendering the identifier visible in signaling traces.

This "null-scheme" is a form of policy-based bidding down. The network operator decides whether to enforce real encryption. If they don't, any device connecting to their network, regardless of its capabilities, will send its permanent identifier in the clear.


Weakness 2: SUCI De-anonymization

Even when a strong encryption scheme is used and the null scheme is avoided, the SUCI does not provide complete anonymity. An attacker can still perform de-anonymization to learn crucial information about the subscriber.

This is possible because, for the SUCI to be routed to the correct home network for decryption, it must contain some unencrypted information. Specifically, the Mobile Country Code (MCC) and Mobile Network Code (MNC) are sent in cleartext.

The Black Hat presentation "5G IMSI Catchers Mirage" provides a concise analysis of this weakness.

[PDF] 5G IMSI Catchers Mirage - Black Hat

This research from Black Hat USA 2021 investigates the real-world effectiveness of 5G security features against IMSI catchers. We'll focus on the section discussing what an attacker can learn from a SUCI.

Please read slide 29, titled 'Decoding SUCI'. The slide explains that because the MCC and MNC are not encrypted, an attacker can identify the user's home operator. Focus on the implication: an attacker could, for example, identify all subscribers from a specific foreign country in a given area.

So, while SUCI may prevent an attacker from identifying an individual subscriber (Alice or Bob), it does not prevent them from identifying a subscriber's affiliation (a customer of Operator X from Country Y). This is valuable intelligence for targeted surveillance.


An Important Caveat: 5G NSA vs. SA

A critical point to remember is that all these SUCI-related protections and their associated weaknesses apply only to 5G Standalone (SA) networks, which have a 5G core.

The vast majority of early "5G" deployments were Non-Standalone (NSA), which use a 5G radio but connect to a 4G Evolved Packet Core (EPC). In the 5G NSA architecture, the core network is still 4G, so there is no SUCI. The device identifies itself using its IMSI, just as it would on a 4G network.

The same Black Hat presentation makes this clear.

[PDF] 5G IMSI Catchers Mirage - Black Hat

Let's refer back to the '5G IMSI Catchers Mirage' PDF to see the security differences between NSA and SA mode.

Please review slide 19, 'Security Features Availability'. The table clearly shows that 'Encrypted SUPI' is not available (❌) in 5G NSA but is available (✅) in 5G SA. This confirms that in the widely deployed NSA mode, there is no protection for the subscriber's permanent identity.

This means that for a long time, users with "5G" phones were still fully exposed to traditional IMSI catching attacks. As networks transition to 5G SA, SUCI becomes relevant, but as we've discussed, it's far from a perfect solution.


Conclusion

In this lesson, we moved beyond the loud downgrade attacks to examine the more subtle privacy weaknesses within the 5G framework itself. We saw that while 5G SA introduces a powerful privacy concept with SUCI, its real-world effectiveness is compromised by policy choices and protocol design.

Key Takeaways:

  • SUCI's Purpose: The Subscription Concealed Identifier (SUCI) is designed to protect a user's permanent identity (SUPI) by encrypting it during initial network registration.
  • Null-Scheme Weakness: The 3GPP standards allow for a "null encryption" scheme, where the SUPI is sent in cleartext within the SUCI structure. This is a policy decision by the network operator that completely negates the privacy benefits.
  • SUCI De-anonymization: Even with proper encryption, the Mobile Country Code (MCC) and Mobile Network Code (MNC) are sent in the clear. This allows an attacker to identify a user's home country and network operator, enabling targeted intelligence gathering.
  • NSA vs. SA: SUCI is a feature of 5G Standalone (SA) only. In the more common Non-Standalone (NSA) mode, the network relies on a 4G core, and the user's permanent identifier (IMSI) is exposed just as it is in 4G.

Preview of the Next Lesson:

The vulnerabilities we discussed today relate to the first Non-Access Stratum (NAS) message sent from the device to the core network. But what happens even before that? In our next lesson, we will explore vulnerabilities in the 5G NR initial connection setup before security is activated. We'll see how information exchanged during the very first Radio Resource Control (RRC) messages can be used for tracking.