A TLS security assessment method for 5G core network

By scanning TLS services in the 5G core network, identifying version information and underlying libraries, and using machine learning to detect vulnerabilities, the security issues of the TLS protocol in the 5G core network are solved, vulnerability detection of the key negotiation process is realized, and network efficiency is improved. Security.

CN115801436BActive Publication Date: 2024-10-11ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER COMPANY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211535607.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2024-10-11
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

Incorrect implementation and configuration of the TLS protocol in the 5G core network can easily be exploited by attackers, leading to decryption and tampering of encrypted data, causing serious security incidents.

Method used

A TLS security assessment method for the 5G core network is adopted to quickly identify TLS services on additional ports by scanning 5G core network slices, extract TLS version information, use machine learning methods to detect known security vulnerabilities in the information, and simulate the handshake process for key negotiation. Detect vulnerabilities, build vulnerability information database, and estimate security vulnerabilities.

Benefits of technology

It can quickly identify TLS services, extract version information, identify underlying library implementations, predict security vulnerabilities, improve identification accuracy, effectively detect and store results, and improve the security of the 5G core network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115801436B_ABST
    Figure CN115801436B_ABST
Patent Text Reader

Abstract

The present invention discloses a TLS security assessment method for a 5G core network control plane, which scans the 5G core network control plane through all ports, quickly identifies TLS services of additional ports, extracts TLS version information, and then utilizes the multi-dimensional characteristics of interactive information in the TLS underlying library implementation, uses a machine learning method to establish a model, identifies the TLS underlying implementation, increases the result feedback mechanism to improve the recognition accuracy, crawls and collects vulnerability information of the library implemented by the TLS underlying layer, builds a vulnerability information library, and estimates security vulnerabilities using TLS version information and information of the library implemented by the TLS underlying layer. By simulating the handshake process, customized interactive information is sent to determine whether there is a problem of not determining whether a point is on the selected elliptic curve during the ECDHE key negotiation process and a backdoor problem in the DHE key negotiation, and the evaluation results are stored in a database. The present invention can effectively detect the problem of encryption misuse in the TLS of the 5G core network and identify specific vulnerabilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 5G network security, and in particular to a TLS security assessment method for a 5G core network. Background Art

[0002] Mobile communication technology has been developing over the past few years, and the latest version 5G has emerged. Today, 5G technology has spread to the market. To meet such high-quality requirements, not only the wireless access network needs to be changed and upgraded, but also the core part of 5G needs to be changed and upgraded. 5G is embodied in enhanced mobile broadband, massive Internet of Things, and ultra-reliable low latency.

[0003] The 5G core network mainly ensures the continuity of calls, completes the mobility management function of user equipment access, provides management of user subscription data and group subscription data, and provides encryption authentication and other functions. The control plane mainly processes user data, handles the information transmission between multiple nodes, and completes the task allocation for forwarding to users. Unlike 4G, the 5G network slicing architecture uses network virtualization technology as its basis. 5G technology adopts the concept of virtualization to split its physical infrastructure into several virtual logical networks. They are called network slices. Each network slice consists of several virtual network functions, which together create an environment to serve a variety of services with different characteristics. 3GPP recommends that 5G service providers use TLS to protect the communication between different network functions (NFs) in the 5G core network slice. However, incorrect implementation of the TLS protocol and some incorrect configurations in use can be exploited by attackers to decrypt and tamper with encrypted data, causing serious security incidents. Summary of the invention

[0004] The purpose of the present invention is to provide a TLS security assessment method for a 5G core network, which can effectively detect the problem of encryption misuse in TLS of the 5G core network and identify specific vulnerabilities.

[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:

[0006] A TLS security assessment method for a 5G core network, comprising the steps of:

[0007] (1) Scanning 5G core network slices;

[0008] (2) Quickly identify TLS services on additional ports and extract TLS version information;

[0009] (3) Detect known security vulnerabilities based on TLS version information;

[0010] (4) Conduct an attack test by simulating the handshake process and sending customized interaction information to determine whether there is a key negotiation vulnerability detection, and store the evaluation results in the database.

[0011] Furthermore, before performing known information security vulnerability detection, the national secret SSL version is identified first, and whether to use the national secret SSL version is determined based on the TLS version information.

[0012] Furthermore, the detection of known security vulnerabilities of information includes:

[0013] Based on the multi-dimensional characteristics of the interactive information in the TLS underlying library implementation, a model is established using machine learning methods to identify the information of the TLS underlying implementation library. By obtaining the information of the specific SSL / TLS library used when building the TLS service, the causes of defects in the TLS protocol library can be better analyzed. For example, services built using the same underlying library may have the same vulnerabilities.

[0014] Estimate security vulnerabilities using TLS version information and information about the underlying TLS implementation library, that is, crawl and collect vulnerability information about the underlying TLS implementation library, build a vulnerability information database, and estimate security vulnerabilities. Specific versions of the TLS protocol standard and some specific versions of the underlying TLS library implementation have some known vulnerabilities, and security vulnerabilities can be estimated based on this information.

[0015] Preferably, the information recognition of the library implemented at the bottom layer of TLS also adds a result feedback mechanism, applies the online learning method to the modeling process, and feeds back the real-time results of the recognition to improve the recognition accuracy.

[0016] Preferably, the security vulnerability is estimated by using a crawler to crawl vulnerability information of the TLS underlying implementation library publicly available on the Internet, collecting existing research data on TLS protocol vulnerabilities to build a vulnerability information library, and using the obtained TLS version number and version information of the underlying implementation library to find the corresponding vulnerability from the vulnerability library.

[0017] The public TLS underlying implementation libraries include open source libraries such as openssl, boringssl, libressl, s2n, polarssl, gnutls, cyassl, national secret TLS implementation libraries including gmssl, and cryptographic function libraries such as libcrypto, libcrypt, cryptlib, libgcrypt, wolfcrypt, LibTomCrypt and Nettle.

[0018] The crawled vulnerability information includes: the implementation library involved, version number, and vulnerability description.

[0019] The steps to extract TLS version information are: obtain the multi-dimensional characteristics of the information returned by the TLS protocol through an interactive method, exchange data in the third handshake information during the TCP handshake process, send the TLS fingerprint to the server to obtain the protocol information, and if it is not a TLS service, send RST when breaking up instead of performing the normal four-way breakup. If it is a TLS service, continue to send fingerprints to identify the TLS version information of the core network slice.

[0020] Further, key negotiation vulnerability detection includes:

[0021] The point sent in the interactive information is not on the elliptic curve. When performing ECDHE key negotiation with the server, the scanner sends a point that is not on the selected elliptic curve to the server. The vulnerability can be identified based on the response information of the server.

[0022] A backdoor problem exists in DHE key negotiation. The backdoor problem is that during the DHE key negotiation process of the TLS protocol, if the modulus length used by one party is insufficient or is a composite number that is difficult to decompose, a backdoor is provided. When performing DHE key negotiation with the server, after the scanner obtains the modulus parameters of the server, it can determine whether there is a backdoor problem by detecting the length of the modulus and whether the modulus is a prime number.

[0023] Furthermore, there are two locations for the scanning end. One is inside the core network slice, where scanning can be performed directly; the other is outside the core network slice, which simulates an ordinary device. The simulated client cannot be directly connected to the 5G network. First, the scanning end needs to be registered and send data packets to gain access to the network and receive its related services to prove that the registration is successful.

[0024] The advantages of the present invention are:

[0025] Ability to quickly identify TLS services on additional ports and extract TLS version information;

[0026] By using the multi-dimensional characteristics of the interactive information in the TLS underlying library implementation, an online machine learning method is used to build a model to identify the TLS underlying implementation;

[0027] Most known security vulnerabilities are estimated based on the extracted TLS protocol version information and related information of TLS underlying implementation. Special vulnerabilities in the key negotiation process are detected by simulating the handshake process and sending customized interaction information. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic diagram of the process flow of the present invention;

[0029] Figure 2 This is a system structure diagram of the internal scanning method of the core network slice of the present invention;

[0030] Figure 3 Flowchart for identifying TLS version information;

[0031] Figure 4 A framework diagram for identifying library information for the underlying implementation of TLS;

[0032] Figure 5 A flowchart for detecting the problem of not determining whether a point is on the selected elliptic curve during ECDHE key negotiation;

[0033] Figure 6 Flowchart for detecting backdoor issues in the DHE key negotiation process. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0035] The present invention discloses a TLS security assessment method for a 5G core network. Please refer to the following procedures for the process. Figure 1 As shown, the scanning end needs to register, and then perform attack tests to obtain TLS version information and TLS underlying library information, determine whether there are known vulnerabilities, as well as special vulnerabilities such as the validity of undetermined points in the ECDHE key negotiation process and the backdoor of the Diffie-Hellman key negotiation, and then store the results in the database.

[0036] This embodiment provides a specific implementation of the above method:

[0037] Step 1: Establish a scanning end: In a selected core network slice, you can deploy direct scanning in the selected core network slice for detection, such as Figure 2 As shown; however, unlike 4G, outside the core network slice, the simulated client cannot directly connect to the 5G network. It first needs to scan and register, that is, send data packets to gain access to the network and receive its related services.

[0038] Step 2: Quickly identify TLS version information: Please refer to Figure 3 The process in the figure is not a complete TCP link, but a TLS fingerprint sent in the third handshake of the handshake process. If the service is identified as a TLS service, the TLS version information is identified by traversing each TLS version and sending each version information to the server. The client first sends SYN, with the sequence number and window size set to random numbers, and sends it to the server. If the port is open, the server returns ACK+DATA, and there is no data in DATA at this time. The client sends a specific fingerprint to obtain the server's protocol information.

[0039] Step 3: Perform the following tests based on identifying the TLS version information:

[0040] Step 3.1: Identify the national SSL version and determine whether to use the national SSL version based on the TLS version information.

[0041] Step 3.2: Identify the information of the library that implements the TLS underlying layer. For the framework diagram of identifying the library information that implements the TLS underlying layer, please refer to Figure 4 First, collect the characteristics of the libraries of different TLS protocol underlying implementations, including support for TLS versions, configuration of cipher suites, resistance to existing attack methods, distribution characteristics of generated RSA keys, distribution characteristics of generated ECC keys, etc. Specifically, it is necessary to collect mainstream TLS implementations (including national TLS implementations) and analyze their support for TLS versions, configuration of cipher suites, and resistance to known attack methods. Then use these TLS implementations to repeatedly generate RSA keys and ECC keys, further calculate and analyze the distribution of RSA keys and ECC keys generated by different TLS implementations, and analyze their deviations from uniform random distribution.

[0042] The model is trained using deep learning methods using the collected feature data of each TLS underlying implementation library.

[0043] Finally, the model is used for remote recognition. A result feedback mechanism is added, online learning methods are applied to the modeling process, and real-time result feedback of recognition is used to improve recognition accuracy.

[0044] Step 3.3, use TLS version information and TLS underlying library information to estimate security vulnerabilities. Specific versions of TLS protocol standards and some specific versions of TLS underlying library implementations have some known vulnerabilities. After the model is trained, the specific information of the TLS underlying implementation library can be identified through the model based on the feedback data, such as which version of openssl it is, and security vulnerabilities can be estimated based on this information. First, use a crawler to crawl the vulnerability information of the TLS underlying implementation library publicly available on the Internet. These implementation libraries include: openssl, boringssl, libressl, s2n, polarssl, gnutls, cyassl and other open source libraries, including the national secret TLS implementation library including gmssl, and cryptographic function libraries such as libcrypto, libcrypt, cryptlib, libgcrypt, wolfcrypt, LibTomCrypt and Nettle. The crawled vulnerability information includes: the implementation library involved, version number, and vulnerability description. Secondly, collect the public research results on TLS protocol vulnerabilities in academic papers. Then use this information to establish a vulnerability library, including the vulnerabilities corresponding to different TLS version numbers and the vulnerabilities corresponding to different TLS underlying implementation library versions. Finally, use the obtained TLS version number and the version information of the underlying implementation library to find the corresponding vulnerability from the vulnerability library.

[0045] Step 4: Key negotiation related vulnerability detection

[0046] a) Check if the point is not on the selected elliptic curve during ECDHE key negotiation. Figure 5 , the interactive information of the ECDHE key negotiation process of the TLS protocol contains points on the elliptic curve, but in the specific implementation, the interacting parties may not verify whether the points sent by the other party are points on the selected elliptic curve. An attacker can use this vulnerability to perform a man-in-the-middle attack, intercept the client information, and then use the weak curve to send a negotiation request to the server instead of the client. Since the order of the weak curve is small, the attacker can obtain the secret information used by the server to calculate the points on the curve by calculating the discrete logarithm, thereby obtaining the session key negotiated by the interacting parties. The detection of this vulnerability is mainly achieved by simulating the handshake process. First, for each type of curve supported by the TLS protocol, a specific elliptic curve is generated, which will not be used for ECDHE key negotiation; then, ECDHE key negotiation is selected with the server. When the scanning end and the server establish a handshake, a point on the elliptic curve is selected, encapsulated in the Client_Key_Exchange message, and sent to the server. If the server returns the Change_Cipher_Spec and Encrypted_Handshake_Message messages, it proves that the server-side TLS implementation has this vulnerability.

[0047] b) For backdoor issues in DHE key negotiation, please refer to Figure 6 In the DHE key negotiation process of the TLS protocol, if the modulus length used by one party is insufficient or is a composite number that is not easy to decompose, a backdoor is provided to obtain the private key of the other party with a high probability. The scanner performs the DHE key negotiation process with the server and obtains the server's modulus parameter from the Sever_Key_Exchange data packet. By detecting the length of the modulus parameter and whether the modulus parameter is a prime number, it can be determined whether there is a backdoor.

[0048] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A TLS security assessment method for 5G core network, It is characterized in that Includes steps: (1) Scanning 5G core network slices; (2) Quickly identify TLS services on additional ports and extract TLS version information; (3) Detect known security vulnerabilities based on TLS version information and TLS underlying implementation library information; (4) Conduct attack tests by simulating the handshake process and sending customized interaction information to determine whether there is a key negotiation vulnerability detection, and store the evaluation results in the database; The key negotiation vulnerability detection includes: The point sent in the interactive information is not on the elliptic curve. When performing ECDHE key negotiation with the server, the scanner sends a point that is not on the selected elliptic curve to the server. The vulnerability can be identified based on the response information of the server. A backdoor problem exists in DHE key negotiation. In the DHE key negotiation process of the TLS protocol, if the modulus length used by one party is insufficient or is a composite number that is difficult to decompose, a backdoor is provided. When negotiating DHE keys with the server, after obtaining the modulus parameters of the server, the scanner can determine whether there is a backdoor problem by detecting the length of the modulus and whether the modulus is a prime number; The detection of known information security vulnerabilities includes: Information recognition of the TLS underlying library, that is, based on the multi-dimensional characteristics of the interactive information in the TLS underlying library implementation, a model is established using machine learning methods for recognition; Use TLS version information and TLS underlying implementation library information to estimate security vulnerabilities, that is, crawl and collect vulnerability information of TLS underlying implementation libraries, build a vulnerability information database, and estimate security vulnerabilities; The estimated security vulnerability includes the steps of: using a crawler to crawl vulnerability information of the TLS underlying implementation library publicly available on the Internet, collecting existing research data on TLS protocol vulnerabilities to build a vulnerability information library, and using the obtained TLS version number and version information of the underlying implementation library to find corresponding vulnerabilities from the vulnerability library.

2. According to the TLS security assessment method of the 5G core network according to claim 1, It is characterized in that Before performing the known security vulnerability detection for information, the national secret SSL version is first identified, and whether the national secret SSL version is used is determined based on the TLS version information.

3. According to the TLS security assessment method of the 5G core network according to claim 1, It is characterized in that The information recognition of the library implemented at the bottom layer of TLS also adds a result feedback mechanism, applies online learning methods to the modeling process, and feeds back the real-time results of the recognition.

4. The TLS security assessment method for the 5G core network according to claim 1, It is characterized in that The public TLS underlying implementation library includes an open source library, a national secret TLS implementation library, and a cryptographic function library.

5. According to the TLS security assessment method of the 5G core network according to claim 4, It is characterized in that The crawled vulnerability information includes: the implementation library involved, version number, and vulnerability description.

6. The TLS security assessment method for the 5G core network according to claim 1, It is characterized in that The steps for extracting TLS version information are: obtaining the multi-dimensional characteristics of the information returned by the TLS protocol in an interactive manner, exchanging data in the third handshake information during the TCP handshake process, sending the TLS fingerprint to the server to obtain protocol information, and if it is not a TLS service, sending RST when breaking up instead of performing the normal four breakups. If it is a TLS service, continue to send fingerprints to identify the TLS version information of the core network slice.

7. The TLS security assessment method for the 5G core network according to claim 1, It is characterized in that There are two scanning locations, one is inside the core network slice, where the scan is performed directly; the other is outside the core network slice, which simulates an ordinary device. First, the scanning end is registered, and data packets are sent to gain access to the network and receive its related services, proving that the registration is successful.