A method for identifying and processing erroneous data based on 5G messages

Through three detection methods and monitoring and diagnosis modules, combined with isolated forest and mean square error detection, and using the elliptic curve key exchange algorithm, the problem of message desynchronization and attack threats during the 5G network authentication process is solved, and the identification accuracy and security are improved.

CN115208691BActive Publication Date: 2024-08-23SICHUAN PUBLIC SUPERVISION CONSULTING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210957111.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-10
Publication Date
2024-08-23
Estimated Expiration
2042-08-10

AI Technical Summary

Technical Problem

During the authentication process of the 5G network, message desynchronization may occur, leading to re-authentication. In addition, the existing authentication scheme may cause identification anomalies due to problems such as network delay and message loss in high-speed mobile scenarios. Attackers can use key agreement vulnerabilities to attack 5G networks. The network poses a serious threat.

Method used

The three-dimensional detection method is combined with the isolated forest and mean square error detection, and the monitoring diagnosis module and the key exchange algorithm based on elliptic curve are used to perform anomaly detection and key encryption on the 5G traffic characteristic data to ensure the security of data transmission.

Benefits of technology

It improves the identification accuracy and the security of information transmission during the 5G network authentication process, can detect the attacker's tampering of 5G traffic characteristic data, and enhances the security of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115208691B
    Figure CN115208691B
Patent Text Reader

Abstract

The present invention relates to the field of 5G communication technology, and discloses a method for identifying and processing error data based on 5G messages, comprising the following steps: collecting 5G traffic characteristic data, performing a first detection, and obtaining abnormal 5G traffic characteristic data; deleting abnormal 5G traffic characteristic data; performing a second detection, using a monitoring and diagnosis module to monitor whether the remaining 5G traffic characteristic data is an error message, deleting the 5G traffic characteristic data after the error message or determining that it is not attacked, and randomly selecting a number of 5G traffic characteristic data, encrypting the data using a key exchange algorithm based on an elliptic curve, and re-entering the encrypted 5G traffic characteristic data into the original database; performing a third detection, and processing in the monitoring and diagnosis module. The present invention is used to solve the problem of re-authentication that may occur when a message is out of sync during the authentication process of a 5G network, and can also check whether an attacker tampers with the 5G traffic characteristic data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 5G communication technology, and in particular to a method for identifying and processing erroneous data based on 5G messages. Background Art

[0002] Mobile communication networks play an increasingly important role in information communication. Currently, the fifth-generation mobile communication system has been used on a large scale. While inheriting the authentication mechanism of the 4G network, the 5G network has also been optimized and enhanced for security. 5G mainly includes ultra-reliable communication, ultra-dense deployment, higher data rates, lower latency, higher spectrum efficiency and energy efficiency, etc. It carries higher mobile network traffic and provides extremely high rates for multimedia applications. Compared with the 4G network, the most significant changes in the 5G network are energy efficiency, regional capacity and spectrum efficiency, and it is committed to providing users with a safer business environment and more stringent privacy data protection services.

[0003] However, through research on 5G networks, we found that re-authentication may occur when messages are out of sync during the authentication process. The existing re-authentication mechanism is abnormal in certain 5G scenarios, such as in high-speed mobile scenarios of the 5G home network, due to network delays, message loss and other issues between the two parties of authentication. In addition, the identity synchronization mechanism of the existing 5G authentication scheme consists of user equipment, 5G home network and service network. A symmetric key is set between the user equipment and the 5G home network. After a secure connection is established between the user equipment and the 5G home network, the service network and the user equipment share the identity, but the symmetric key set is not recognized in the identity. Therefore, if an attacker actively attacks the key, the attacker will exploit the defects of the communication means or the vulnerabilities of the key protocol itself, which will cause a serious threat to the security of the 5G network.

[0004] Therefore, in order to solve the above problems, the present invention provides a method for identifying and processing erroneous data based on 5G messages. Summary of the invention

[0005] The purpose of the present invention is to provide a method for identifying and processing erroneous data based on 5G messages, which is used to solve the problem of re-authentication that may occur due to message desynchronization during the authentication process of the 5G network, and can also check whether the attacker has tampered with the 5G traffic feature data.

[0006] The present invention is implemented by the following technical solution: a method for identifying and processing erroneous data based on 5G messages, comprising the following steps:

[0007] Step S1, collecting 5G traffic characteristic data from a database, using the isolation forest method to perform a first detection on the 5G traffic characteristic data, and obtaining abnormal 5G traffic characteristic data;

[0008] Step S2, deleting abnormal 5G traffic characteristic data;

[0009] Step S3, re-collect 5G traffic characteristic data, use the mean square error detection method to perform a second detection on the 5G traffic characteristic data, and determine whether there is abnormal 5G traffic characteristic data. If yes, repeat the detection and delete the abnormal 5G traffic characteristic data. If not, obtain the remaining 5G traffic characteristic data and enter step S4;

[0010] Step S4, using the monitoring and diagnosis module to monitor whether the remaining 5G traffic characteristic data contains error messages, if yes, deleting the error messages, if no, determining that the key protocol in the 5G traffic characteristic data collected this time has not been attacked;

[0011] Step S5, deleting the 5G traffic characteristic data after the error information or the 5G traffic characteristic data determined to be not attacked, and randomly selecting some 5G traffic characteristic data from them, encrypting them with a key exchange algorithm based on an elliptic curve, and re-entering the encrypted 5G traffic characteristic data into the original database;

[0012] Step S6, re-collect 5G traffic feature data in the database, use the isolation forest method to perform a third detection on the 5G traffic feature data, and determine whether the detected 5G traffic feature data contains a shared key based on the elliptic curve key exchange algorithm. If so, determine that the database has not been attacked. If not, process it in the monitoring and diagnosis module.

[0013] In order to better implement the present invention, further, step S1 includes:

[0014] Step S11, using the CICFlowMeter tool to collect N-dimensional 5G traffic characteristic data;

[0015] Step S12, constructing the collected N-dimensional 5G traffic feature data into a data set;

[0016] Step S13, input the constructed data set into Scikit-Learn for loading, construct x binary isolation trees according to the input N-dimensional 5G traffic feature data, and determine whether the data set is abnormal according to the anomaly score in the isolation forest method;

[0017] Step S14, use the predict function to display the judgment result of whether the 5G traffic characteristic data is abnormal.

[0018] In order to better implement the present invention, further, the method for deleting abnormal 5G traffic feature data includes:

[0019] Use the VarianceThreshold function provided by Scikit-Learn to delete abnormal 5G traffic feature data.

[0020] In order to better implement the present invention, further, step S3 includes:

[0021] Set the threshold value for variance deletion;

[0022] The mean square error detection method is used to perform a second detection on the 5G traffic feature data to obtain the variance value. The variance value below the threshold value represents secondary abnormal 5G traffic feature data. All 5G traffic feature data represented by variance values ​​below the threshold value are deleted.

[0023] In order to better implement the present invention, further, step S4 includes:

[0024] The monitoring and diagnosis module is configured with a NetFlow collection unit, a data packet analysis unit, a network performance instrument unit and a network monitoring reporting unit;

[0025] The NetFlow collection unit collects the remaining 5G traffic characteristic data, the data packet analyzer decodes the actual data packets of the 5G traffic characteristic data, the network performance instrument unit integrates the remaining 5G traffic characteristic data, and the network monitoring reporting unit reports the real-time 5G traffic characteristic data and the historical 5G traffic characteristic data;

[0026] Use the NetFlow collection unit, data packet analysis unit, network performance instrument unit and network monitoring report unit in the monitoring diagnosis module to determine whether the remaining 5G traffic characteristic data is abnormal traffic characteristic data. If yes, delete the error information. If not, determine that the key protocol in the 5G traffic characteristic data collected this time has not been attacked.

[0027] Finally, use the monitoring and diagnosis module to record this operation and store it in the historical 5G traffic characteristic data report.

[0028] In order to better implement the present invention, further, step S5 includes:

[0029] The elliptic encryption algorithm ECC is introduced into the DH algorithm to obtain the key exchange algorithm based on the elliptic curve. According to the key exchange algorithm of the elliptic curve, several selected 5G traffic characteristic data are encrypted to generate a shared key.

[0030] In order to better implement the present invention, further, step S6 includes: using the cutting training characteristics of the isolation forest method to perform a third test on the 5G traffic feature data to ensure the isolation of the test samples.

[0031] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0032] (1) The present invention can solve the problem of message desynchronization during the authentication process of the 5G network, which may lead to re-authentication. It can also detect whether the attacker has tampered with the 5G traffic feature data;

[0033] (2) The present invention uses three detections to identify erroneous data, which greatly improves the accuracy of identification.

[0034] (3) The present invention uses a monitoring and diagnosis module to monitor 5G traffic characteristic data, which greatly improves the security of information transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The present invention is further described in conjunction with the following drawings and embodiments, and all the concepts and innovations of the present invention should be regarded as the disclosed contents and the protection scope of the present invention.

[0036] Figure 1 A flowchart of a method for identifying and processing erroneous data based on 5G messages provided by the present invention. DETAILED DESCRIPTION

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. It should be understood that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, and therefore should not be regarded as limiting the scope of protection. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technical personnel in this field without making creative work are within the scope of protection of the present invention.

[0038] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "disposed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0039] Embodiment 1:

[0040] A method for identifying and processing erroneous data based on 5G messages in this embodiment is as follows: Figure 1As shown, the following steps are included: step S1, collecting 5G traffic feature data from the database, using the isolation forest method to perform a first detection on the 5G traffic feature data, and obtaining abnormal 5G traffic feature data; step S2, deleting the abnormal 5G traffic feature data; step S3, re-collecting 5G traffic feature data, using the mean square error detection method to perform a second detection on the 5G traffic feature data, and determining whether there is abnormal 5G traffic feature data. If yes, repeat the detection and delete the abnormal 5G traffic feature data. If not, obtain the remaining 5G traffic feature data and proceed to step S4; step S4, use the monitoring and diagnosis module to monitor whether there is an error message in the remaining 5G traffic feature data. If yes, delete the error message. If not, determine The key protocol in the 5G traffic characteristic data collected this time has not been attacked; step S5, delete the 5G traffic characteristic data after the error information or the 5G traffic characteristic data determined to be not attacked, and randomly select a number of 5G traffic characteristic data from them, use the key exchange algorithm based on elliptic curve to encrypt the key, and re-enter the encrypted 5G traffic characteristic data into the original database; step S6, re-collect 5G traffic characteristic data in the database, use the isolation forest method to perform a third detection on the 5G traffic characteristic data, and determine whether there is a shared key based on the elliptic curve key exchange algorithm in the detected 5G traffic characteristic data. If yes, determine that the database has not been attacked. If not, process it in the monitoring and diagnosis module.

[0041] Embodiment 2:

[0042] This embodiment is further optimized on the basis of Embodiment 1. In this embodiment, the CICFlowMeter tool can be used to collect traffic feature data, and the isolation forest method can be used to detect abnormal data in the 5G traffic feature data. The isolation forest does not need to measure anomalies based on distance and density, so the time complexity of the isolation forest is linear and requires very little memory. The isolation forest has the ability to process big data and high-dimensional data. It is a very suitable model method for anomaly identification in our 5G context. When using the isolation forest method to detect 5G traffic feature data, the process of evaluating abnormal 5G traffic feature data is as follows:

[0043] Use CICFlowMeter tool to collect N-dimensional flow characteristic data;

[0044] Randomly select two of the 5G traffic feature data, split the data point by randomly selecting an observation value between the maximum and minimum values ​​of the selected feature, and recursively repeat the division of the observation value until all the observation values ​​are isolated;

[0045] Isolation Forest requires an outlier to understand how abnormal a data point is. Its value is between 0 and 1. Anomaly Score Defined as: ; Where E(h(x)) is the average of the path length h(x) from the root node to the external node x, and c(n) is the average of h(x) for a given n, which is used to normalize h(x), x is the xth isolated tree, and n is the total number of isolated trees. There are three possible situations: when the anomaly score s is closer to 1, it indicates that the data is likely to be abnormal; when the anomaly score is greater than 0.5, the data may be an outlier; when the anomaly score s of all data is around 0.5, it can be considered that the data as a whole has no obvious anomalies. Then, the isolation forest can isolate anomalies in fewer steps than normal observations by calculating the anomaly score of each tree and averaging it among the isolated trees. Outliers with higher scores have lower path lengths.

[0046] According to the above isolation forest method, the collected N-dimensional 5G traffic feature data is constructed into a data set, and the constructed data set is input into Scikit-Learn for loading. According to the input N-dimensional 5G traffic feature data, x binary isolation trees are built. After training, the constructed data set is input into decision_function to display the scoring results. The predict function is used to obtain the judgment result of whether the 5G traffic feature data is abnormal. -1 is displayed as abnormal and 1 is displayed as normal.

[0047] In addition, the isolation forest method was used to conduct a third test on the 5G traffic feature data. The isolation of the test samples is ensured because each tree is randomly sampled and generated independently. Therefore, the isolation forest has a good ability and speed to process big data and can be processed in parallel. Therefore, it can be deployed on a large-scale distributed system to accelerate computing.

[0048] Therefore, the use of the isolation forest method in the third test can ensure the isolation of the test samples. That is to say, if the isolation forest method detects the shared key in the third test, it means that no one has attacked or tampered with the 5G traffic feature information, and vice versa. Because the isolation forest method uses a binary tree to split the data, sample selection, feature selection, and splitting point selection are all randomized. Its logic is better than other methods. It does not use indicators such as distance and density to describe the difference between a sample and other samples, but directly characterizes the degree of alienation, which is very suitable for the third test.

[0049] The other parts of this embodiment are the same as those of Embodiment 1, and thus will not be described in detail.

[0050] Embodiment 3:

[0051] This embodiment further optimizes on the basis of the above-mentioned Embodiment 1 or 2. In this embodiment, the VarianceThreshold function provided by scikit-learn is used to delete abnormal 5G traffic feature data, and the mean squared error detection method is used to detect anomalies. Generally, data with a value greater than the mean + 3 standard deviations or a value less than the mean - 3 standard deviations is considered abnormal data. The abnormal data is deleted from the dataset, and features with extremely low variances are deleted through the variance selection method. If the variance of a certain feature is very low, it means that the discrimination ability of this feature is very poor. In the extreme case, the variance is 0, which means that this feature has the same value in all samples and is removed through the VarianceThreshold function provided by scikit-learn. We set the threshold for variance deletion, and all features with variances lower than the set threshold will be deleted. For example, if it is set to 3, all features lower than 3 will be deleted. Then, the 5G traffic feature data is recollected, and the mean squared error detection method is used to perform a second detection on the 5G traffic feature data to determine whether there is abnormal 5G traffic feature data. If so, the abnormal 5G traffic feature data is repeatedly detected and removed. If not, we obtain the required 5G traffic feature data, which serves as the basis for subsequent determination of whether the received 5G traffic feature data has transmitted error messages.

[0052] Other parts of this embodiment are the same as those of the above-mentioned Embodiment 1 or 2, so they will not be elaborated here.

[0053] Embodiment 4:

[0054] This embodiment further optimizes on the basis of any one of the above-mentioned Embodiments 1-3. In the DH algorithm, first, both communicating parties A and B share a large prime number p and a primitive root g modulo p, where g is an integer smaller than p. Communicating party A generates a random number nA (nA < p) as the private key, calculates the public key KA, and sends the public key to B. User B also generates a random number nB (nB < p) as the private key in the same way, uses the private key and the public key KA to generate the shared key SK, and at the same time, generates the public key KB of B and sends it to user A. User A receives the public key KB sent by B and calculates the shared key SK. Thus, the two communicating parties negotiate the shared key SK and proceed with subsequent communication. However, the disadvantage of the DH algorithm is that it is vulnerable to man-in-the-middle attacks because the communicating parties A and B do not confirm each other's identities during the process of negotiating the key.

[0055] Therefore, this implementation uses an elliptic curve-based key exchange algorithm to introduce the elliptic encryption algorithm ECC into the DH algorithm. The ECC curve cryptosystem is a public key cryptosystem based on the elliptic curve discrete logarithm problem. Given a point P on the elliptic curve, it is easy to give an integer k and find another point Q=kP. However, given points P and Q, it is difficult to find k. Based on this principle, the ECC algorithm is combined with the DH algorithm to generate the ECDH algorithm, which converts the modular exponentiation operation in the DH algorithm into a point multiplication operation, making the calculation simpler. In the ECDH key negotiation, the parameters shared between the communicating parties A and B include the given elliptic curve E, order n, and base point G. First, the user generates a random number x1 as a private key (confidential), and calculates the public key PA=x1*G;

[0056] A sends the calculated public key PA to B. Similarly, B generates a random number y1 as a private key (confidential), and calculates the shared key Q=y1*x1*G between A and B. In order to inform A of the shared key, the communicator B calculates the public key PB=y1*G again and sends it to A. After receiving B's public key, A calculates the shared key Q=x1*y1*G agreed upon between them. After that, both A and B have the shared key Q.

[0057] The other parts of this embodiment are the same as any one of the above embodiments 1-3, so they are not repeated here.

[0058] Embodiment 5:

[0059] This embodiment is further optimized on the basis of any one of the above embodiments 1-4. The NetFlow collection unit (Netflow Analyzer) can describe the flow data from any vendor (such as Juniper, aka, JFlow). Traffic analysis of network traffic is essential to understand the whole situation, such as network traffic from site to site or device to device. Most network traffic problems can be solved by traffic analysis. The packet analysis unit is used to decode the actual data packets of network traffic (such as: Omnipeek). Although the NetFlow collection unit is useful for most network traffic problems, it is combined with the packet analysis unit to analyze each data packet for deep packet inspection and solve more difficult application problems. The network performance instrument unit is a performance dashboard that most network monitoring and diagnostic modules come with, which is used to provide a high-level overview of what is happening with network traffic and integrate all data sources. The network monitoring reporting unit performs real-time and historical reports. The real-time report is a visual analysis that can monitor what is happening with network traffic now. Historical reports are useful for troubleshooting network events. The network monitoring reporting unit can use Manage Engine.

[0060] The other parts of this embodiment are the same as any one of the above embodiments 1-4, so they are not repeated here.

[0061] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification or equivalent change made to the above embodiment based on the technical essence of the present invention shall fall within the protection scope of the present invention.

Claims

1. A method for identifying and processing erroneous data based on 5G messages, characterized in that: The following steps are involved: Step S1, collecting 5G traffic characteristic data from a database, using the isolation forest method to perform a first detection on the 5G traffic characteristic data, and obtaining abnormal 5G traffic characteristic data; Step S2, deleting abnormal 5G traffic characteristic data; Step S3, re-collect 5G traffic characteristic data, use the mean square error detection method to perform a second detection on the 5G traffic characteristic data, and determine whether there is abnormal 5G traffic characteristic data. If yes, repeat the detection and delete the abnormal 5G traffic characteristic data. If not, obtain the remaining 5G traffic characteristic data and enter step S4; Step S4, using the monitoring and diagnosis module to monitor whether the remaining 5G traffic characteristic data contains error messages, if yes, deleting the error messages, if no, determining that the key protocol in the 5G traffic characteristic data collected this time has not been attacked; Step S5, deleting the 5G traffic characteristic data after the error information or the 5G traffic characteristic data determined to be not attacked, and randomly selecting some 5G traffic characteristic data from them, encrypting them with a key exchange algorithm based on an elliptic curve, and re-entering the encrypted 5G traffic characteristic data into the original database; Step S6, re-collect 5G traffic feature data in the database, use the isolation forest method to perform a third detection on the 5G traffic feature data, and determine whether the detected 5G traffic feature data contains a shared key based on the elliptic curve key exchange algorithm. If so, determine that the database has not been attacked. If not, process it in the monitoring and diagnosis module.

2. According to claim 1, a method for identifying and processing erroneous data based on 5G messages is characterized in that: The step S1 comprises: Step S11, using the CICFlowMeter tool to collect N-dimensional 5G traffic characteristic data; Step S12, constructing the collected N-dimensional 5G traffic feature data into a data set; Step S13, input the constructed data set into Scikit-Learn for loading, construct x binary isolation trees according to the input N-dimensional 5G traffic feature data, and determine whether the data set is abnormal according to the anomaly score in the isolation forest method; Step S14, use the predict function to display the judgment result of whether the 5G traffic characteristic data is abnormal.

3. According to the method for identifying and processing erroneous data based on 5G messages in claim 1, it is characterized in that: The method for deleting abnormal 5G traffic characteristic data includes: Use the VarianceThreshold function provided by Scikit-Learn to delete abnormal 5G traffic feature data.

4. According to the method for identifying and processing erroneous data based on 5G messages according to claim 1, it is characterized in that: The step S3 comprises: Set the threshold value for variance deletion; The mean square error detection method is used to perform a second detection on the 5G traffic feature data to obtain the variance value. The variance value below the threshold value represents secondary abnormal 5G traffic feature data. All 5G traffic feature data represented by variance values ​​below the threshold value are deleted.

5. According to a method for identifying and processing erroneous data based on 5G messages according to claim 1, it is characterized in that: The step S4 comprises: The monitoring and diagnosis module is configured with a NetFlow collection unit, a data packet analysis unit, a network performance instrument unit and a network monitoring reporting unit; The NetFlow collection unit collects the remaining 5G traffic characteristic data, the data packet analysis unit decodes the actual data packets of the 5G traffic characteristic data, the network performance instrument unit integrates the remaining 5G traffic characteristic data, and the network monitoring reporting unit reports the real-time 5G traffic characteristic data and the historical 5G traffic characteristic data; Use the NetFlow collection unit, data packet analysis unit, network performance instrument unit and network monitoring report unit in the monitoring diagnosis module to determine whether the remaining 5G traffic characteristic data is abnormal traffic characteristic data. If yes, delete the error information. If not, determine that the key protocol in the 5G traffic characteristic data collected this time has not been attacked. Finally, the monitoring and diagnosis module is used to record this operation and store it in the historical 5G traffic characteristic data report.

6. The method for identifying and processing erroneous data based on 5G messages according to claim 1 is characterized in that: The step S5 comprises: The elliptic encryption algorithm ECC is introduced into the DH algorithm to obtain the key exchange algorithm based on the elliptic curve. According to the key exchange algorithm of the elliptic curve, several selected 5G traffic characteristic data are encrypted to generate a shared key.

7. The method for identifying and processing erroneous data based on 5G messages according to claim 1, characterized in that: The step S6 includes: using the cutting training characteristics of the isolation forest method to perform a third test on the 5G traffic feature data to ensure the isolation of the test samples.

Citation Information

Patent Citations

  • Trust model based on isolated forest in UASNs

    CN110536258A

  • Gearbox error category label correction system and method

    CN111931601A

  • Abnormal flow detection method and system and computer storage medium

    WO2021258348A1