Wireless Internet of things equipment communication key exchange method under 5G network environment
Technical Field
The invention relates to the technical field of network security, in particular to a wireless Internet of things equipment communication key exchange method under a 5G network environment.
Background
The emergence of 5G provides a more complete solution for the development of smart cities, smart medical services and smart power grids. Under the 5G network environment, the Internet of things technology (IoT) is greatly promoted, and the network realizes communication between people and objects and between the objects. Therefore, when thousands of IoT devices wirelessly access the network to communicate in the 5G network, it is important to design an efficient and secure wireless network communication key exchange method to support establishment of a reliable wireless encrypted transmission channel between any pair of IoT nodes in order to ensure confidentiality and integrity of communication data.
The conventional key exchange method has the following problems:
problem (1): dependence on a third party authoritative key distribution system, CA/PKI:
the traditional RSA Key agreement algorithm uses the digital envelope principle, the communication initiator Alice encrypts the communication Key Enc = RSA (Key, PKBob) by using the public Key PKBob of the receiver Bob and the RSA algorithm and sends it to Bob, and Bob decrypts Enc by using the private Key to obtain the communication Key. In order to avoid man-in-the-middle attacks, Alice needs to query the public key of Bob to the trusted third party CA/PKI in the above process. However, in practical applications, since the internet of things devices are large in scale and limited in device resources, many internet of things devices do not register a public key in the CA/PKI, and massive public key queries to the CA/PKI may cause network performance bottlenecks.
Problem (2): independent of CA/PKI, but vulnerable to man-in-the-middle attacks:
another widely used class of Key Exchange algorithms DHKE (Differ-Hellman Key Exchange) does not provide direct encryption or decryption, but rather uses the complexity of the "discrete logarithm problem" to negotiate keys. DHKE avoids reliance on CA/PKI, however the key exchange protocol does not verify the identity of the public key sender and cannot prevent man-in-the-middle attacks. In order to realize the defense of the DHKE against man-in-the-middle attacks, the existing improved method proposes that the private keys of two communication parties are used for signing a key agreement process, however, the process introduces a credible public key distribution process by using a third party CA/PKI, returns to the problem (1), and depends on the CA/PKI again.
Disclosure of Invention
Aiming at solving the problems in the prior art, the invention aims at 1) the key exchange of the traditional wireless Internet of things node is easy to be attacked by a man-in-the-middle; 2) the private key is required to be transmitted by relying on CA/PKI to resist man-in-the-middle attack; 3) the invention provides a wireless Internet of things device communication key exchange method under a 5G network environment, and provides a method for carrying out signature authentication on a communication key negotiated by two communication parties based on the physical channel characteristics between an IoT device and an access point on the basis of the characteristic that the wireless physical channel characteristics between the IoT device and the 5G service network access point are only sensed by an IoT terminal and the access point when key exchange is carried out under the 5G wireless Internet of things environment, so that defense against man-in-the-middle attacks is realized, and dependence on third-party CA/PKI is avoided.
In order to achieve the purpose, the invention adopts the technical scheme that: a wireless Internet of things equipment communication key exchange method under a 5G network environment comprises a terminal equipment UE which prepares to establish secret communication in an IoT networkAAnd terminal equipment UEBAnd a signature verification module S located in the 5G service networkAAnd a signature verification module SBThe terminal equipment UEAAnd terminal equipment UEBRespectively through wireless access points APAAnd a wireless access point APBThe communication key exchange method comprises the following steps:
step 1, terminal equipment UEAAnd terminal equipment UEBNegotiating a communication key;
step 2, according to the terminal equipment UEAOr UEBWith respective corresponding wireless access points APAOr APBThe wireless channel physical characteristics between the two parties carry out identity signature verification through a signature verification module S in the 5G service network to which the two parties belongAAnd a signature verification module SBTo wireless access pointsAPAAnd a wireless access point APBVerifying the validity of the signature.
As a further improvement of the present invention, the step 1 specifically comprises the following steps:
(1) one terminal device selects a generator g and a large prime number p, and sends the generator g and the large prime number p to the other terminal device;
(2) terminal equipment UEAAnd terminal equipment UEBRespectively selecting a random number X and y between 2 and p-2, namely X is more than or equal to 2 and less than or equal to p-2, y is more than or equal to 2 and less than or equal to p-2, and calculating an intermediate value X = gxmod p and Y = gy mod p;
(3) Terminal equipment UEATerminal equipment UE collected in past T secondsAWith wireless access point APAPhysical characteristic V of wireless channel therebetweenAIntermediate value X = g as signature key pairxmod p carries out signature to generate terminal equipment UEAIdentity signed MACX=f(X||VA) Terminal equipment UEBTerminal equipment UE collected in past T secondsBWith wireless access point APBPhysical characteristic V of wireless channel therebetweenBIntermediate value Y = g as signature key pairymod p carries out signature to generate terminal equipment UEBIdentity signed MACY=f(Y||VB) Where f () is a hash function, | | is a join operation;
(4) terminal equipment UEAWill negotiate the vector (X, MAC)X,TMSIA,SNAID) to the terminal equipment UEBTerminal equipment UEBWill negotiate the vector Y, MACY,TMSIB,SNBID to the terminal equipment UEA,TMSIAAnd TMSIBRespectively terminal equipment UEAAnd terminal equipment UEBAt its corresponding service network SNAAnd service network SNBTemporary identities, SN, registered inAID and SNBID is terminal equipment UE respectivelyAAnd terminal equipment UEBThe serving network ID of the location.
As a further development of the invention, in step 2 the terminal equipment UEAIdentity labelThe name verification specifically comprises the following steps:
(a) terminal equipment UEAWill receive negotiation vector Y, MACY,TMSIB,SNBID to the signature verification module SABy a signature verification module SAAccording to SNBID will authenticate request { Y, TMSIB,SNBID is forwarded to the service network SNBSignature verification module SB;
(b) Signature verification module SBChecking SNBIf the ID is the ID of the service network, if not, setting a return value ResB=‘error1', go to step (e), otherwise { Y, TMSIBForward to the wireless access point APBRequesting to calculate the TMSIBHash signatures corresponding to the terminal devices;
(c) wireless access point APBReceiving { Y, TMSIBChecking TMSIBIf the local equipment is not the local equipment registered by the access point, if not, the return value Res is setB=‘error2'go to step (d)', otherwise the terminal equipment UE collected in the past T secondsBWith wireless access point APBPhysical characteristic V of wireless channel therebetweenBSigning Y as a signing key to generate a terminal equipment UEBAuthentication signature MAC ofY'=f(Y||VB) Where f () is a hash function, | | is a join operation, the wireless access point APBSet the return value to ResB=‘MACY'’;
(d) Wireless access point APBWill ResBReturned to the signature verification module SB。
(e) Signature verification module SBWill ResBForwards to the signature verification module SA。
(f) If ResBIs' error r1'or' error2', then signature verification module SADirect return to ResBTo the terminal equipment UEAElse, signature verification module SAComparing terminal equipment UEBIdentity signed MACYAnd ResBTerminal equipment UE contained inBOf (1)Verifying signature MACY': if MACY=MACY', set ResB= OK', otherwise Res is setB= FAILED', then returns ResBTo the terminal equipment UEA。
(g) Terminal equipment UEACheck ResBIf ResBIf 'OK', then Y is calculatedxmod p, i.e. (g)y)xmod p derives the session key K1=gxymod p, otherwise, reinitiating with the terminal equipment UEBThe key agreement process of (1);
terminal equipment UEBThe identity signature verification specifically comprises the following steps:
(A) terminal equipment UEBWill receive negotiation vector { X, MACX,TMSIA,SNAID to the signature verification module SBBy a signature verification module SBAccording to SNAID will authenticate request { X, TMSIA,SNAID is forwarded to the service network SNASignature verification module SA;
(B) Signature verification module SAChecking SNAIf the ID is the ID of the service network, if not, setting a return value ResA=‘error1', go to step (E), otherwise { X, TMSIAForward to the wireless access point APARequesting to calculate the TMSIAHash signatures corresponding to the terminal devices;
(C) wireless access point APAReceiving { X, TMSIAChecking TMSIAIf the local equipment is not the local equipment registered by the access point, if not, the return value Res is setA=‘error2'go to step (D)', otherwise the terminal equipment UE collected in the past T secondsAWith wireless access point APAPhysical characteristic V of wireless channel therebetweenASigning X as a signing key to generate a terminal device UEAAuthentication identity signature MACX'=f(X||VA) Where f () is a hash function, | | is a join operation, the wireless access point APASet the return value to ResA=‘MACX'’;
(D) Wireless access point APAWill ResAReturned to the signature verification module SA。
(E) Signature verification module SAWill ResAForwards to the signature verification module SB。
(F) If ResAIs' error r1'or' error2', then signature verification module SBDirect return to ResATo the terminal equipment UEBElse, signature verification module SBComparing terminal equipment UEAIdentity signed MACXAnd ResATerminal equipment UE contained inAAuthentication signature MAC ofX': if MACX=MACX', set ResA= OK', otherwise Res is setA= FAILED', then returns ResATo the terminal equipment UEB。
(G) Terminal equipment UEBCheck ResAIf ResAIf 'OK', then calculate Xymod p, i.e. (g)x)ymod p derives the session key K2=gxymod p, otherwise, reinitiating with the terminal equipment UEBThe key agreement process of (1);
if the session key K1=K2=gxymod p, then the terminal equipment UEAAnd terminal equipment UEBTo complete the identity signature verification and key agreement process.
The invention has the beneficial effects that:
the invention utilizes the independence of wireless channels in the process of key exchange: according to the characteristic that the wireless physical channel characteristics between the IoT equipment and the 5G wireless network access point are only perceived and used by the IoT terminal and the access point, signature authentication is provided for the key exchange algorithm DHKE based on the physical channel characteristics between the IoT equipment and the service network access point, so that defense against man-in-the-middle attacks is achieved, and dependence on third-party CA/PKI is avoided. The method solves the problems that under the 5G network environment, the number of Internet of things devices is large, key registration authentication is mostly not carried out in CA/PKI, the safe key distribution is difficult to be carried out by means of the CA/PKI, and a traditional DHKE key distribution method which is separated from the CA/PKI faces man-in-the-middle attack.
Drawings
FIG. 1 is a schematic diagram of a system architecture in an embodiment of the present invention;
fig. 2 is a flowchart of key agreement and signature authentication according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Examples
As shown in fig. 1, a method for exchanging communication keys of wireless internet of things devices in a 5G network environment includes two terminal devices UE in an IoT network to establish secure communicationAAnd terminal equipment UEBTerminal equipment UEAAnd terminal equipment UEBThe Service Networks (SN) are respectively: SN (service provider)A,SNBService network wireless access point APAAnd a wireless access point APBSignature verification module S located in SDN (software defined network) of 5GA,SB。
Two terminal equipment UEAAnd UEBThe identity authentication of the service network access is carried out according to 5G network identity authentication protocol EAP-AKA' or 5G-AKA respectively, and the authentication is carried out through a wireless access point APAAnd APBAccessing 5G network, and recording respective service network ID SNAID,SNBID。
1. Terminal equipment UEAAnd UEBBefore formal communication, a communication key negotiation step is first performed, and a negotiation basic flow is shown in fig. 2.
1)UEASelecting a generator g and a large prime number p, and sending (g, p) to the UEB;
2) Subsequent UEASelecting a random number X between 2 and p-2, wherein X is more than or equal to 2 and less than or equal to p-2, and calculating an intermediate value X = gx mod p;
3)UEAUE acquired in past T secondsAWith wireless access point APAPhysical characteristic V of wireless channel therebetweenAAs signature key pair X = gxmod p signs to generate MACX=f(X||VA) Where f () is a hash function, | | is a join operation;
4)UEAwill negotiate the vector (X, MAC)X,TMSIA,SNAID) to the UEB,TMSIAFor the UEATemporary identities, SNs, registered in a service networkAID is UEAThe serving network ID of the location;
5)UEBselecting a random number Y between 2 and p-2, wherein Y is more than or equal to 2 and less than or equal to p-2, and calculating an intermediate value Y = gy mod p;
6)UEBUE acquired in past T secondsBWith wireless access point APBPhysical characteristic V of wireless channel therebetweenBAs signature key pair Y = gymod p signs to generate MACY=f(Y||VB) Where f () is a hash function, | | is a join operation;
7)UEBwill { Y, MACY,TMSIB,SNBID to UEA,TMSIBFor the UEBTemporary identities, SNs, registered in a service networkBID is UEBThe serving network ID of the location.
2、UEAAnd UEBStarting identity signature verification, and enabling the two parties to pass through signature verification modules S in the 5G service networks to which the two parties belongA,SBTo the wireless access point APAAnd APBThe validity of the signature is verified, and the basic flow of signature verification is shown in fig. 2:
1)UEAto receive { Y, MACY,TMSIB,SNBID to SAFrom SAAccording to SNBID will authenticate request { Y, TMSIB,SNBID is forwarded to the service network SNBSignature verification module SB;
2)SBChecking SNBWhether the ID is the ID of the service network or not, if not, the return value Res is setB=‘error1', go to step 5), otherwise { Y, TMSIBForward to the wireless access point APBRequesting to calculate the TMSIBHash signatures of corresponding terminals;
3)APBreceiving { Y, TMSIBChecking TMSIBIf the local equipment is not the local equipment registered by the access point, if not, the return value Res is setB=‘error2', go to step 4), otherwise, the UE acquired in the past T secondsBAnd APBPhysical characteristic V of wireless channel therebetweenBSigning Y as a signing key to generate a MACY'=f(Y||VB) Where f () is a hash function, | | | is a join operation, APBSet the return value to ResB=‘MACY'’;
4)APBWill ResBIs returned to SB;
5)SBWill ResBForward to SA;
6) If ResBIs' error r1'or' error2', then SADirect return to ResBTo UEAElse SAComparing MACsYAnd ResBMAC contained inY': if MACY=MACY', set ResB= OK', otherwise Res is setB= FAILED', then returns ResBTo UEA;
7)UEACheck ResBIf ResBIf 'OK', then Y is calculatedxmod p derives the session key K1=gxymod p, otherwise, re-initiating the key agreement process with B;
8)UEBsignature verification procedure and UEASimilarly, if S is the finalBReturned to the UEBRes ofAIf 'OK', then calculate Xymod p derives the session key K2=gxy mod p。
As can be seen from the key agreement and signature verification process, if the UE is in use, the UE will perform the key agreement and signature verification processA,UEBAll the identities are true identities, the same communication key K can be generated finally1=K2=gxymod p; on the contrary, as shown in fig. 1, there is an illegal user UECIntention to implement man-in-the-middle attacks due to stealing of the channel from the UEA,UEBWith wireless access point APAAnd APBPhysical independence of legitimate channels between, UECThe channel state eigenvector V cannot be obtainedA,VB(ii) a And the UECStealing channel communication characteristic VCAnd VA,VBDifferent from each other, f (Y | | | V) cannot be utilizedC) And f (X | | V)C) Impersonating UEAOr UEBAnd passing signature verification.
The invention utilizes the characteristics that the 5G network has high communication speed, the wireless physical channel characteristics between the IoT terminal and the access point are kept stable in a full-duplex communication period, and the channel characteristics are only sensed by the terminal and the access point to carry out the identity authentication of the communicator. Preferably, the selectable physical channel characteristics associated with the wireless physical channel are: channel GAIN (GAIN), Received Signal Strength (RSSI), Channel State Information (CSI): amplitude, phase, carrier Frequency (FRE), Channel Impulse Response (CIR), Channel Frequency Response (CFR), received signal envelope (Env), Bit Error Rate (BER), all may be collected by physical layer signal analysis. In a particular embodiment, one or a combination of features may be selected based on the IoT terminal class, network environment, and the like.
The above-mentioned embodiments only express the specific embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.