Data processing method, device and storage medium based on downlink signaling
By only parsing downlink signaling and verifying uplink variable parameters, the problem of complex and error-prone analysis of uplink signaling in the prior art is solved, and a more efficient data decoding and decryption effect is achieved.
Patent Information
- Application Number
- CN202111503002.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-12-10
AI Technical Summary
The prior art has complex calculations and errors prone to parsing uplink signaling and downlink signaling, especially in harsh environments, which cannot accurately obtain uplink signaling, resulting in the inability to correctly interpret the data between the target device and the base station.
By only parsing downlink signaling between the target device and the base station, traversing the uplink variable parameters to be verified, and using the verification rules of downlink signaling to verify the correctness of the uplink variable parameters, thereby calculating the encryption secret for user surface data encryption key.
This greatly reduces the computational volume and complexity, achieves better decoding and decryption effects, and avoids data interpretation errors caused by poor channel.
Smart Images

Figure CN114040396B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a data processing method, device and storage medium based on downlink signaling. Background Art
[0002] In some scenarios, it is necessary to monitor a specific target device. Usually, after capturing the air interface data between the target device and the base station, decoding and decryption processing is performed based on the parsed uplink signaling and downlink signaling to achieve monitoring. However, the method of decoding and decryption processing by simultaneously parsing the uplink signaling and the downlink signaling in the prior art is complex and prone to calculation errors. In harsh environments, there is a situation where the uplink signaling cannot be accurately obtained due to poor channels, which may also easily lead to the inability to correctly interpret the subsequent valid data between the target device and the base station. Summary of the invention
[0003] To solve the above problems, the present invention provides a data processing method, device and storage medium based on downlink signaling, which only needs to implement decoding and decryption processing by parsing the downlink signaling between the target device and the base station, without parsing the uplink signaling parameters, thereby achieving a good processing effect.
[0004] To solve the above-mentioned purpose, the present invention adopts the following technical solution.
[0005] The present invention provides a data processing method based on downlink signaling, the method comprising the following steps:
[0006] Based on the received air interface data, obtain the basic key currently used by the target device for the authentication process;
[0007] According to the basic key, parsing the received air interface data to obtain the target downlink signaling;
[0008] Traversing a plurality of target uplink variable parameters to be verified, and verifying the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling;
[0009] Output the target upstream variable parameters that have passed verification;
[0010] An encryption key for encrypting user plane data is calculated based on the verified target uplink variable parameter.
[0011] Further, based on the received air interface data, a basic key currently used by the target device for the authentication process is obtained, including:
[0012] Determine authentication parameters transmitted between the target device and the base station based on the received air interface data and the target device parameters;
[0013] According to the target device parameters and the authentication parameters, a basic key currently used by the target device for the authentication process is obtained.
[0014] Further, based on the received air interface data and the target device parameters, determining the authentication parameters transmitted between the target device and the base station includes:
[0015] Obtaining one or more authentication signalings from the received air interface data;
[0016] According to the target device parameters, the one or more authentication signalings are sequentially authenticated;
[0017] Determine the authentication parameters transmitted between the target device and the base station.
[0018] Further, according to the target device parameters, the one or more authentication signalings are sequentially authenticated, including:
[0019] Extracting authentication parameters carried in the current authentication signaling, wherein the extracted authentication parameters include random number parameters and authentication token parameters;
[0020] An authentication check is performed based on the target device parameters, the extracted authentication parameters, and a second preset check rule associated with the authentication signaling.
[0021] Further, after performing authentication verification based on the target device parameter, the extracted authentication parameter and a second preset verification rule associated with the authentication signaling, the method further includes:
[0022] Obtain an authentication verification result. If the authentication verification result is passed, the current authentication signaling is used as the authentication signaling transmitted between the target device and the base station, and the authentication parameters carried in the current authentication signaling are used as the authentication parameters transmitted between the target device and the base station, and output;
[0023] If the first verification result is failure, continue to parse the received air interface data or the next authentication signaling to be verified.
[0024] Further, traversing a plurality of target uplink variable parameters to be verified, and verifying the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling, comprises:
[0025] Verify the target upstream variable parameters to be verified currently traversed, and execute as follows:
[0026] Based on the currently traversed target uplink variable parameter and the basic key, obtaining a first intermediate key for deriving an access layer key;
[0027] Obtaining an integrity protection key according to the first intermediate key, where the integrity protection key is used to characterize the integrity of a radio resource control layer between a target device and a base station;
[0028] An integrity check is performed on the target downlink signaling according to the integrity protection key to obtain an integrity check result.
[0029] Further, after performing an integrity check on the target downlink signaling according to the integrity protection key and obtaining the integrity check result, the method further includes:
[0030] If the integrity check result is passed, stop traversing and output the target upstream variable parameters of the current traversal, and use the target upstream variable parameters of the current traversal as the target upstream variable parameters that have passed the check;
[0031] If the integrity check result is not passed, continue to traverse the next target uplink variable parameter to be verified.
[0032] Furthermore, the first preset verification rule associated with the target downlink signaling includes:
[0033] Based on the currently traversed target uplink variable parameters, a check sequence is calculated through an encryption algorithm and an integrity algorithm;
[0034] Extracting check bit data of the target downlink signaling, and comparing the check sequence with the check bit data of the target downlink signaling;
[0035] If the check passes, the currently traversed target uplink variable parameter is determined as the target uplink variable parameter that has passed the check.
[0036] Further, according to the verified target uplink variable parameter, an encryption key for encrypting the user plane data is calculated, including:
[0037] Obtaining a second intermediate key for deriving an access layer key according to the verified target uplink variable parameter and the basic key;
[0038] Based on the second intermediate key, an encryption key used to encrypt the user plane data is calculated through an encryption algorithm and an integrity algorithm.
[0039] The present invention also provides a receiving device, the device comprising:
[0040] A determination unit, configured to obtain a basic key currently used by the target device for an authentication process based on the received air interface data;
[0041] An extraction unit, configured to parse and obtain target downlink signaling from received air interface data according to the basic key;
[0042] A verification unit, configured to traverse a plurality of target uplink variable parameters to be verified, and verify the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling;
[0043] An output unit, used for outputting the target uplink variable parameters that have passed the verification;
[0044] A calculation unit is used to calculate an encryption key used to encrypt user plane data according to the verified target uplink variable parameter.
[0045] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the data processing method based on downlink signaling as described in any one of the above items.
[0046] The present invention also provides a computer-readable storage medium, on which a data processing method program based on downlink signaling is stored. When the data processing method program based on downlink signaling is executed by a processor, the data processing method based on downlink signaling as described in any one of the above items is implemented.
[0047] The beneficial effects of the present invention are as follows:
[0048] In the case of an unknown encryption key for user plane data encryption, the data processing method implemented by the present invention obtains air interface data and utilizes the characteristics of the authentication process between the target device and the base station to determine the target downlink signaling between the target device and the base station; obtains multiple target uplink variable parameters to be verified by a traversal method, and utilizes the verification characteristics of the target downlink signaling to verify the correctness of the current target uplink variable parameters, thereby obtaining the correct target uplink variable parameters; thereby, only the target downlink signaling needs to be parsed, and the uplink signaling does not need to be parsed, so the separation of uplink and downlink parameters can be achieved, and the amount of calculation and complexity are greatly reduced, thereby achieving better decoding and decryption effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 This is a block diagram of the principle of hierarchical keys used in existing LTE systems;
[0050] Figure 2 is a schematic diagram of a network structure showing an application scenario according to an embodiment of the present invention;
[0051] Figure 3 is a flowchart illustrating a data processing method according to an embodiment of the present invention;
[0052] Figure 4is a specific flow chart showing step S100 of the data processing method according to an embodiment of the present invention;
[0053] Figure 5 is a specific flow chart showing step S110 of the data processing method according to an embodiment of the present invention;
[0054] Figure 6 is a specific flow chart showing step S112 of the data processing method according to an embodiment of the present invention;
[0055] Figure 7 is a specific flow chart showing step S300 of the data processing method according to an embodiment of the present invention;
[0056] Figure 8 is a specific flow chart showing step S500 of the data processing method according to an embodiment of the present invention;
[0057] Fig. 9 is a block diagram showing a structure of a receiving device according to an embodiment of the present invention;
[0058] Fig.10 is a block diagram showing the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] In the description of the present invention, unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with ordinary skills in the field to which the present invention belongs. "First", "second" and similar words used in the present invention do not represent any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not represent quantitative restrictions, but represent the existence of at least one, and "multiple" means two and more than two. The expressions "have", "may have", "include" and "comprise" used herein, or "may include" and "may include" indicate the presence of corresponding features (e.g., elements such as numerical values, functions, operations or components), and do not exclude the presence of additional features.
[0061] In the following description, the main technical terms involved include the following: K: a permanent key stored in a USIM (Universal Subscriber Identity Module) and an AuC (Authentication Center).
[0062] CK / IK: A key pair generated by AuC and USIM during the AKA (Authentication and Key agreement) authentication process.
[0063] KASME: The key derived by UE and HSS (Home Subscriber Server) based on CK / IK, used to derive the lower-layer key.
[0064] KNASint: The key derived by UE and MME (Mobile Managenment Entity) based on KASME is used to protect the integrity of NAS (Non Access Stratum) traffic between UE and MME.
[0065] KNASenc: The key derived by UE and MME based on KASME, used to protect the confidentiality of NAS traffic between UE and MME.
[0066] KeNB: The intermediate key derived by UE and MME based on KASME. KeNB is used to derive the AS (AccessStratum) layer key.
[0067] KUPenc: derives from the KeNB and encryption algorithm identifiers by the UE and eNB. It is used to protect the confidentiality of the UP between the UE and the eNB and is the encryption key for encrypting user plane data.
[0068] KRRCint: derives from the KeNB and integrity algorithm identifiers by the UE and eNB. It is used to protect the integrity of the Radio Resource Control (RCC) layer between the UE and eNB and is the integrity protection key.
[0069] KRRCenc: derived by UE and eNB based on the identifier of KeNB and encryption algorithm, used to protect the confidentiality of RCC between UE and eNB.
[0070] The following describes a preferred embodiment of the present invention by taking a mobile communication system based on LTE technology as an example. However, after reading the following description, it will be recognized that for mobile communication systems using other wireless transmission schemes (such as 5G, LTE-A, 3G, etc.), based on the same inventive concept, the principles of the present invention are also applicable.
[0071] Figure 1 This is a block diagram of the principle of hierarchical keys used in the existing LTE system. LTE is a layered communication system. The security between UE (User Equipment) and eNB (eNodeB) includes confidentiality protection and integrity protection of RRC signaling and user plane confidentiality protection. RRC signaling is also called wireless signaling or lower layer signaling. The security between UE and MME (Mobile Management Entity) includes confidentiality protection and integrity protection of NAS signaling. NAS signaling is also called high-level signaling or upper layer signaling. The authentication vector (Authentication Vector) involved in the LTE communication system is a group of parameters used for authentication. The authentication vector includes the parameters: RAND (Random Challenge), AUTN (Authentication Token) and KASME. RAND is an unpredictable random number provided by the network to the UE. The role of AUTN is to provide information to the UE so that the UE can use it to authenticate the network. KASME is a basic key derived from CK / IK. As Figure 1 As shown in the figure, in the LTE mobile communication system, the entities involved in authentication and key negotiation are: UE, MME and HSS. UE and HSS derive KASME based on CK and IK, UE and MME calculate KNASint and KNASenc based on KASME, and the two parameters KNASint and KNASenc are used for integrity protection and encryption of NAS layer data. UE and MME also calculate KeNB based on KASME, and UE and eNB calculate KUPenc, KRRCint, KRRCenc and KUPint based on KeNB, among which the two parameters KRRCint and KRRCenc are used for integrity protection and encryption of RRC layer signaling data; KUPenc is used to encrypt user plane data; and KUPint is used to perform integrity protection on transmitted data.
[0072] In the above-mentioned LTE communication system, the user plane encryption key KUPenc needs to be obtained when decoding and decrypting the user plane data. However, in the case of an unknown user plane encryption key KUPenc, the existing related technology usually requires processing the uplink signaling and the downlink signaling at the same time to implement the decoding and decryption method, which is complex and easy to calculate errors; and the inventors found in further research that calculating the intermediate key KeNB is the key to calculating the KUPenc key, and when calculating KeNB, it is necessary to know the target uplink variable parameter UplinkNasCount of the NAS layer. Based on the configuration parameter rules and transmission rules of the downlink signaling, it is found that the parameter UplinkNasCount can be obtained by traversal, and the traversed parameter UplinkNasCount can be determined by verification. Whether it is correct, thereby obtaining the correct parameter UplinkNasCount, this process only needs to implement decoding and decryption processing by parsing the downlink signaling between the target device and the base station, without parsing the uplink signaling parameters, to achieve a good processing effect.
[0073] Figure 2 FIG. 1 is a schematic diagram of a network structure of an application scenario of an embodiment of the present invention. The data processing method based on downlink signaling of an embodiment of the present invention is applied in the following embodiments: Figure 2 In the third-party receiving device shown, the third-party receiving device receives air interface data and does not participate in the communication between the target device and the base station. The received air interface data usually contains uplink signaling and downlink signaling between the target device and the base station, uplink signaling and downlink signaling between other user devices and the base station, or other communication data.
[0074] Figure 3 FIG. 2 is a flow chart showing a data processing method according to an embodiment of the present invention. Figure 3 It is shown that the data processing method based on downlink signaling disclosed in an embodiment of the present invention includes the following steps:
[0075] Step S100: Based on the received air interface data, a basic key currently used by the target device for the authentication process is obtained.
[0076] Step S200: According to the basic key, the target downlink signaling is parsed from the received air interface data.
[0077] Step S300, traverse a plurality of target uplink variable parameters to be verified, and verify the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling.
[0078] Step S400, outputting the target uplink variable parameters that have passed verification.
[0079] Step S500: Calculate and obtain an encryption key for encrypting user plane data according to the verified target uplink variable parameter.
[0080] Therefore, in the case of an unknown encryption key for encrypting user plane data, the data processing method of an embodiment of the present invention obtains air interface data and utilizes the characteristics of the authentication process between the target device and the base station to determine the target downlink signaling between the target device and the base station; obtains multiple target uplink variable parameters to be verified by a traversal method, and utilizes the verification characteristics of the target downlink signaling to verify the correctness of the current target uplink variable parameters, thereby obtaining the correct target uplink variable parameters; thereby, the separation of uplink and downlink parameters can be achieved by only parsing the target downlink signaling without parsing the uplink signaling, and the amount of calculation and complexity are greatly reduced, thereby achieving better decoding and decryption effects.
[0081] In a specific implementation, such as in an LTE communication system, the basic key may be a KASME key, and the target downlink signaling may be a Security Mode Command signaling (usually referred to as SMC signaling). Of course, in other preferred embodiments of the invention, other downlink signaling after the SMC signaling may also be selected as the target downlink signaling. The target uplink variable parameter may be an UplinkNASCOUNT parameter. In the LTE communication system, the UplinkNASCOUNT parameter is mainly determined by 4 bytes. Therefore, multiple UplinkNASCOUNT parameters to be verified can be obtained by traversing, and the traversal range may be 0 to 255. However, the UplinkNASCOUNT parameter obtained by traversing at this time may not be the correct UplinkNASCOUNT parameter. At this time, through the characteristics of the SMC signaling, the UplinkNASCOUNT parameter obtained by traversing can be verified based on the verification rules of the SMC signaling. If the verification passes , it is proved that the UplinkNASCOUNT parameter that has passed the verification is the current correct target uplink variable parameter. Usually, the correct target uplink variable parameter can be obtained after traversing dozens of times. Compared with the existing decoding and decryption processing method, it only needs to parse the target downlink signaling without parsing the uplink signaling, so as to achieve the separation of uplink and downlink parameters, and also avoid the situation that the uplink signaling cannot be accurately obtained due to the poor channel, resulting in the inability to correctly interpret the valid data between the subsequent target device and the base station; after obtaining the correct target uplink variable parameter, the encryption key KUPenc used to encrypt the user plane data is calculated according to the relevant steps and algorithms.
[0082] In an optional embodiment, the first preset verification rule associated with the target downlink signaling involved in the above-mentioned embodiment of the invention includes:
[0083] Based on the currently traversed target uplink variable parameters, a check sequence is calculated through an encryption algorithm and an integrity algorithm;
[0084] Extracting check bit data of the target downlink signaling, and comparing the check sequence with the check bit data of the target downlink signaling;
[0085] If the check passes, the currently traversed target uplink variable parameter is determined as the target uplink variable parameter that has passed the check.
[0086] That is, in the case of unknown target uplink variable parameters, assuming that the currently traversed target uplink variable parameters to be verified are correct target uplink variable parameters, the data to be verified associated with the target downlink signaling is calculated by the current target uplink variable parameters and the known encryption algorithm and integrity algorithm, based on the target downlink signaling extracted in the previous step, the consistency of the data to be verified and the extracted target downlink signaling is compared, if the verification result is passed, it proves that the current target uplink variable parameters are correct, if the verification result is not passed, then continue to compare the next traversed target uplink variable parameters to be verified. The relevant encryption algorithms and integrity algorithms in the LTE communication system can refer to Tables 1-3 disclosed in this article.
[0087] Figure 4 1 is a specific flow chart showing step S100 of the data processing method according to an embodiment of the present invention. Figure 4 As shown, step S100, based on the received air interface data, obtains the basic key currently used by the target device for the authentication process, including:
[0088] Step S110: determining authentication parameters transmitted between the target device and the base station based on the received air interface data and the target device parameters.
[0089] Step S120: Obtain the basic key currently used by the target device for the authentication process according to the target device parameters and the authentication parameters.
[0090] Usually, the third-party receiving device involved in this method obtains the target device's potential resident cell based on cell search. The target device and the base station usually need to perform authentication communication. The third-party receiving device passively parses the air interface data and obtains the authentication signaling transmitted between the target device and the base station based on the target device parameters provided by the user. The target device parameters are data in the SIM (or USIM) card, such as the authentication key Ki, the operator root key OP, etc. Figure 5 is a specific flow chart showing step S110 of the data processing method according to an embodiment of the present invention. Figure 5As shown, step S110, based on the received air interface data and the target device parameters, determines the authentication parameters transmitted between the target device and the base station, including:
[0091] Step S111: Obtain one or more authentication signalings from the received air interface data.
[0092] Step S112: performing authentication verification on the one or more authentication signalings in sequence according to the target device parameters.
[0093] Step S113, determining the authentication parameters transmitted between the target device and the base station.
[0094] In the embodiment of the present invention, a third-party receiving device parses air interface data. When the target device sends an access request, the base station sends an authentication signaling to the target device. One or more authentication signalings are usually parsed from the air interface data. At this time, it is necessary to determine which authentication signaling is associated with the target device from the multiple authentication signalings. By utilizing the characteristics of the authentication signaling, it is possible to determine whether it is the authentication signaling associated with the target device by verifying the correctness of the authentication signaling. If the verification is successful, it indicates that the authentication signaling is the data interacted between the target device and the base station, and the authentication parameters transmitted between the target device and the base station can be determined. Figure 6 is a specific flow chart showing step S112 of the data processing method according to an embodiment of the present invention. Figure 6 As shown, step S112, according to the target device parameters, the one or more authentication signalings are sequentially authenticated, including:
[0095] The authentication signaling to be verified in the one or more authentication signalings is executed as follows:
[0096] Step S112a, extracting the authentication parameters carried in the current authentication signaling, wherein the extracted authentication parameters include random number parameters and authentication token parameters.
[0097] Step S112b, performing authentication verification based on the target device parameters, the extracted authentication parameters and a second preset verification rule associated with the authentication signaling.
[0098] Obtain an authentication verification result. If the authentication verification result is passed, execute step S112c, use the current authentication signaling as the authentication signaling transmitted between the target device and the base station, use the authentication parameters carried in the current authentication signaling as the authentication parameters transmitted between the target device and the base station and output;
[0099] If the first verification result is failure, step S112d is executed to continue parsing the received air interface data or the next authentication signaling to be verified.
[0100] In the LTE communication system, the received air interface data is parsed, and multiple authentication signalings are extracted. By extracting authentication parameters such as the RAND random number and the AUTN authentication token parameters, and using the known target device parameters Ki and OP for authentication processing, if the authentication passes, the target device is determined, that is, it can be determined that the authentication signaling currently verified is the data exchanged between the target device and the base station. If it fails, the air interface data or the next authentication signaling to be verified continues to be parsed, and the authentication signaling is parsed by continuing to receive the air interface data, and steps S112a to S112d are repeated.
[0101] Figure 7 FIG. 1 is a specific flow chart showing step S300 of the data processing method according to an embodiment of the present invention. Figure 7 As shown, step S300, traversing multiple target uplink variable parameters to be verified, and verifying the multiple target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling, includes:
[0102] Verify the target upstream variable parameters to be verified currently traversed, and execute as follows:
[0103] Step S310: obtaining a first intermediate key for deriving an access layer key based on the currently traversed target uplink variable parameter and the basic key.
[0104] Step S320: Obtain an integrity protection key according to the first intermediate key, where the integrity protection key is used to characterize the integrity of the radio resource control layer between the target device and the base station.
[0105] Step S330: Perform integrity check on the target downlink signaling according to the integrity protection key to obtain an integrity check result.
[0106] Furthermore, if Figure 7 As shown, in step S330, according to the integrity protection key, the target downlink signaling is integrity checked, and after the integrity check result is obtained, the following steps are included:
[0107] Step S340, if the integrity check result is passed, stop the traversal and output the target uplink variable parameters currently traversed, and use the target uplink variable parameters currently traversed as the target uplink variable parameters that have passed the check.
[0108] Step S350: If the integrity check result is failed, continue to traverse the next target uplink variable parameter to be verified.
[0109] That is, in step 400, the target uplink variable parameter that has passed the verification is output, and the verification passing means passing the integrity check. For example, in an LTE communication system, the UplinkNASCOUNT parameter is recorded in the uplink signaling at this time, but is not carried in the downlink signaling. A plurality of UplinkNASCOUNT parameters to be verified are obtained by traversal. In order to determine the UplinkNASCOUNT parameter associated with the target device, the UplinkNASCOUNT parameter is calculated by a verification method. In the embodiment of the present invention, the target downlink signaling is preferably SMC signaling, which does not need to be decrypted before extraction, and the amount of calculation and complexity can be further reduced. Usually, the SMC signaling includes valid data bits and check bits, which can be verified by integrity check. The intermediate key KenB is calculated according to the traversed UplinkNASCOUNT parameter, and then the integrity protection key KRRCint is calculated according to the intermediate key KenB. The integrity check is then performed, and the check bit is compared to infer whether the UplinkNASCOUNT parameter currently being calculated is correct. If the check passes, the check is stopped and the UplinkNASCOUNT parameter currently being calculated is output, and the UplinkNASCOUNT parameter is correct. If the check fails, the next target uplink variable parameter to be verified is checked.
[0110] Figure 8 FIG. 5 is a specific flow chart showing step S500 of the data processing method according to an embodiment of the present invention. Figure 8 As shown, step S500, according to the verified target uplink variable parameter, calculates an encryption key for encrypting user plane data, including:
[0111] Step S510: Obtain a second intermediate key for deriving an access layer key according to the verified target uplink variable parameter and the basic key.
[0112] Step S520: Based on the second intermediate key, an encryption key for encrypting user plane data is calculated through an encryption algorithm and an integrity algorithm.
[0113] It should be noted that in the above-mentioned invention embodiment, the algorithm identity (algorithm ID) used by the encryption algorithm and integrity algorithm in the LTE communication system is basically the same; as shown in the following table, different algorithm type distinguishers (security algorithm distinguishers) can refer to Table 1, and algorithm identity (algorithm ID) can refer to Table 2 and Table 3. In a specific implementation, the encryption algorithm and integrity algorithm used can be obtained by decrypting the SMC signaling in the LTE communication system. According to the corresponding encryption algorithm and integrity algorithm, the keys such as KUPenc, KRRCint, KRRCenc and KUPint can be calculated from KeNB through the HMAC-SHA256 function; and in the process of calculating from KASME to KeNB, it can be obtained by KeNB = HMAC-SHA256 (Key, S), where KASME is the input key Key of HMAC-SHA256, and the combined string S is S = FC||P0||L0 (where FC = 0x11, P0 = UplinkNASCOUNT, represented by 4 bytes; L0 is the length of P0, in bytes).
[0114] Table 1 Algorithm type distinguishers
[0115] Algorithm type distinguishers Value NAS-enc-alg 0x01 NAS-int-alg 0x02 RRC-enc-alg 0x03 RRC-int-alg 0x04 UP-enc-alg 0x05 UP-int-alg 0x06
[0116] Table 2 Encryption algorithm identity (encryption algorithm ID)
[0117] algorithm identity Specific algorithm Value EEA0 No encryption 0 EEA1 SNOW-3G 1 EEA2 AES-128 2 EEA3 ZUC (Zu Chongzhi algorithm) 3
[0118] Table 3 Integrity algorithm identity (integrity algorithm ID)
[0119] algorithm identity Specific algorithm Value EIA0 No encryption 0 EIA1 SNOW-3G 1 EIA2 AES-128 2 EIA3 ZUC (Zu Chongzhi algorithm) 3
[0120] Fig. 9 2 is a block diagram showing a structure of a receiving device according to an embodiment of the present invention. Fig. 9 As shown, an embodiment of the present invention further provides a receiving device, the device comprising:
[0121] The determination unit 10 is used to obtain a basic key currently used for the authentication process of the target device based on the received air interface data;
[0122] The extraction unit 20 is used to parse and obtain the target downlink signaling from the received air interface data according to the basic key;
[0123] A verification unit 30, configured to traverse a plurality of target uplink variable parameters to be verified, and verify the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling;
[0124] An output unit 40, configured to output the target uplink variable parameters that have passed verification;
[0125] The calculation unit 50 is used to calculate an encryption key used to encrypt user plane data according to the verified target uplink variable parameter.
[0126] It should be noted that the receiving device provided in the embodiment of the present invention and the data processing method disclosed in the above-mentioned embodiment of the invention belong to the same concept, and the specific implementation process and the technical features in the method embodiment can be correspondingly applicable in the embodiment of the electronic device, and the repeated parts will not be repeated.
[0127] Fig.10 1 is a block diagram showing the structure of an electronic device according to an embodiment of the present invention. Fig.10 As shown, an embodiment of the present invention further provides an electronic device, comprising a memory 70, a processor 60, and a computer program stored in the memory 70 and executable on the processor, wherein the computer program, when executed by the processor, implements a data processing method based on downlink signaling as described in the above-mentioned embodiment of the invention, so that a plurality of target uplink variable parameters to be verified are obtained by a traversal method, and the correctness of the current target uplink variable parameters is verified by utilizing the verification characteristics of the target downlink signaling, thereby obtaining the correct target uplink variable parameters, thereby achieving the effect of separating the uplink and downlink parameters only by parsing the target downlink signaling without parsing the uplink signaling.
[0128] An embodiment of the present invention also provides a computer-readable storage medium, on which a data processing method program based on downlink signaling parameters is stored. When the data processing method program based on downlink signaling parameters is executed by a processor, the data processing method based on downlink signaling as described in the above-mentioned embodiment of the invention is implemented.
[0129] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, electronic devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0130] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0133] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. It can be understood that the computer-readable medium involved in the embodiments of the present invention can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache.By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM).
[0134] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A data processing method based on downlink signaling, characterized in that: The method includes the following: Based on the received air interface data, obtain the basic key currently used by the target device for the authentication process; According to the basic key, parsing the received air interface data to obtain the target downlink signaling; Traversing a plurality of target uplink variable parameters to be verified, and verifying the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling; Output the target upstream variable parameters that have passed verification; Calculating an encryption key for encrypting user plane data according to the verified target uplink variable parameter; Wherein, obtaining the basic key currently used by the target device for the authentication process based on the received air interface data includes: Determine authentication parameters transmitted between the target device and the base station based on the received air interface data and the target device parameters; According to the target device parameters and the authentication parameters, obtaining the basic key currently used by the target device for the authentication process; The step of determining the authentication parameters transmitted between the target device and the base station based on the received air interface data and the target device parameters includes: Obtaining one or more authentication signalings from the received air interface data; According to the target device parameters, the one or more authentication signalings are sequentially authenticated; determining authentication parameters transmitted between the target device and the base station; The traversing a plurality of target uplink variable parameters to be verified, and verifying the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling, comprises: Verify the target upstream variable parameters to be verified currently traversed, and execute as follows: Based on the currently traversed target uplink variable parameter and the basic key, obtaining a first intermediate key for deriving an access layer key; Obtaining an integrity protection key according to the first intermediate key, where the integrity protection key is used to characterize the integrity of a radio resource control layer between a target device and a base station; An integrity check is performed on the target downlink signaling according to the integrity protection key to obtain an integrity check result.
2. The method according to claim 1, characterized in that According to the target device parameters, the one or more authentication signalings are sequentially authenticated, including: Extracting authentication parameters carried in the current authentication signaling, wherein the extracted authentication parameters include random number parameters and authentication token parameters; An authentication check is performed based on the target device parameters, the extracted authentication parameters, and a second preset check rule associated with the authentication signaling.
3. The method according to claim 2, characterized in that After performing authentication verification based on the target device parameter, the extracted authentication parameter and a second preset verification rule associated with the authentication signaling, the method further includes: Obtain an authentication verification result. If the authentication verification result is passed, the current authentication signaling is used as the authentication signaling transmitted between the target device and the base station, and the authentication parameters carried in the current authentication signaling are used as the authentication parameters transmitted between the target device and the base station, and output; If the first verification result is failure, continue to parse the received air interface data or the next authentication signaling to be verified.
4. The method according to claim 1, characterized in that After performing integrity check on the target downlink signaling according to the integrity protection key and obtaining the integrity check result, the method includes: If the integrity check result is passed, stop traversing and output the target upstream variable parameters of the current traversal, and use the target upstream variable parameters of the current traversal as the target upstream variable parameters that have passed the check; If the integrity check result is not passed, continue to traverse the next target uplink variable parameter to be verified.
5. The method according to claim 1, characterized in that The first preset verification rule associated with the target downlink signaling includes: Based on the currently traversed target uplink variable parameters, a check sequence is calculated through an encryption algorithm and an integrity algorithm; Extracting check bit data of the target downlink signaling, and comparing the check sequence with the check bit data of the target downlink signaling; If the check passes, the currently traversed target uplink variable parameter is determined as the target uplink variable parameter that has passed the check.
6. The method according to claim 1, characterized in that Calculating an encryption key for encrypting user plane data according to the verified target uplink variable parameter includes: Obtaining a second intermediate key for deriving an access layer key according to the verified target uplink variable parameter and the basic key; Based on the second intermediate key, an encryption key used to encrypt the user plane data is calculated through an encryption algorithm and an integrity algorithm.
7. A receiving device, characterized in that: The device comprises: A determination unit, configured to obtain a basic key currently used by the target device for an authentication process based on the received air interface data; An extraction unit, configured to parse and obtain target downlink signaling from received air interface data according to the basic key; A verification unit, configured to traverse a plurality of target uplink variable parameters to be verified, and verify the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling; An output unit, used for outputting the target uplink variable parameters that have passed the verification; a calculation unit, configured to calculate an encryption key for encrypting user plane data according to the verified target uplink variable parameter; Wherein, obtaining the basic key currently used by the target device for the authentication process based on the received air interface data includes: Determine authentication parameters transmitted between the target device and the base station based on the received air interface data and the target device parameters; According to the target device parameters and the authentication parameters, obtaining the basic key currently used by the target device for the authentication process; The step of determining the authentication parameters transmitted between the target device and the base station based on the received air interface data and the target device parameters includes: Obtaining one or more authentication signalings from the received air interface data; According to the target device parameters, the one or more authentication signalings are sequentially authenticated; determining authentication parameters transmitted between the target device and the base station; The traversing a plurality of target uplink variable parameters to be verified, and verifying the plurality of target uplink variable parameters to be verified based on the target downlink signaling and a first preset verification rule associated with the target downlink signaling, comprises: Verify the target upstream variable parameters to be verified currently traversed, and execute as follows: Based on the currently traversed target uplink variable parameter and the basic key, obtaining a first intermediate key for deriving an access layer key; Obtaining an integrity protection key according to the first intermediate key, where the integrity protection key is used to characterize the integrity of a radio resource control layer between a target device and a base station; An integrity check is performed on the target downlink signaling according to the integrity protection key to obtain an integrity check result.
8. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the method for processing data based on downlink signaling as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data processing method program based on downlink signaling, and when the data processing method program based on downlink signaling is executed by a processor, the data processing method based on downlink signaling as described in any one of claims 1 to 6 is implemented.
