Internet of Things System Access Security Processing Method
Through the exchange of access and authentication request information between the Internet of Things terminal and the core network element, the AES-CMAC algorithm is used to generate a key, and the problem of secure access in lightweight Internet of Things applications is solved, and encryption and Integrity protection improves the security and trusted application services of IoT systems.
Patent Information
- Application Number
- CN202311001737.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-09
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-08-09
AI Technical Summary
The prior art is difficult to achieve secure access in lightweight IoT application scenarios, and the super heavyweight 3GPP standard is not applicable to IoT terminals with low processing capabilities and low transmission bandwidth.
Through the exchange of access request and authentication request information between the Internet of Things terminal and the core network element, the encryption key and integrity key are generated based on the AES-CMAC algorithm to perform packet encryption and integrity verification to ensure that the Internet of Things terminal is Access to trusted IoT base stations and IoT core networks, and verify the security of core network elements.
It realizes secure access and communication of IoT terminals based on lightweight hardware, prevents illegal eavesdropping, tampering and playback attacks, and improves the security and trusted application services of IoT systems.
Smart Images

Figure CN117061164B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things communication security technology, and in particular to an Internet of Things system access security processing method. Background Art
[0002] The development of the information age has entered the era of the Internet of Everything, which is closely related to the promotion of the Internet of Things (IoT) technology. The application of IoT technology involves all walks of life, so its fragmented characteristics are determined from the beginning. In practice, a large number of IoT technologies exist in the form of private networks, and do not pay much attention to security design. Therefore, the security of the network is relatively weak, especially for IoT terminal networks with weak processing capabilities, most of which have no security system design and consideration.
[0003] Existing technical solutions specify the security architecture and technical requirements of public network communications (including wireless access networks and core networks) through 3GPP and other related standards, but these requirements are all super heavyweight, based on hardware foundations such as high processing power, high transmission bandwidth, and insensitivity to power consumption, and are not applicable to lightweight application scenarios such as the Internet of Things. Therefore, how to achieve secure access for lightweight Internet of Things is a technical problem that technicians in this field need to solve urgently. Summary of the invention
[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method for processing access security of an Internet of Things system.
[0005] Specifically, the embodiment of the present invention provides the following technical solutions:
[0006] In a first aspect, an embodiment of the present invention provides an Internet of Things system access security processing method, which is applied to an Internet of Things terminal, including:
[0007] The IoT terminal sends access request information to the core network element through the access network element; the access request information is used to request access to the IoT network;
[0008] After the IoT terminal receives the access request response information sent by the core network element, the IoT terminal sends authentication request information to the core network element through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT element; the authentication request information is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network;
[0009] The IoT terminal receives the authentication response information sent from the core network element; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0010] Furthermore, after the IoT terminal receives the authentication response information sent by the core network element, it also includes:
[0011] The IoT terminal encrypts and performs integrity check on the data packets to be transmitted using the encryption key and integrity key to obtain the target data; the target data is sent to the core network element; the encryption key and integrity key are determined by the IoT terminal based on a preset key generation method.
[0012] Furthermore, the preset key generation method is implemented based on the following steps:
[0013] Generate a first target character string by concatenating the identity encryption key assigned by the core network element to the terminal, the random access code generated by the Internet of Things terminal, the random number generated by the core network element, and the single-byte constant;
[0014] Generate an encryption key and an integrity key based on the symmetric encryption algorithm AES-CMAC and the first target character string.
[0015] Furthermore, the access request information carries a terminal identifier and an encrypted random access code; the encrypted random access code is obtained by encrypting the random access code generated by the Internet of Things terminal based on the identity encryption key allocated by the core network network element.
[0016] Furthermore, the access request response information includes a random number generated by the core network element and first verification information; the first verification information is obtained by the core network element generating an encryption key based on a preset key generation method and encrypting the second target character string based on the encryption key; the second target character string is obtained by sequentially concatenating the random access code, the random number and the terminal identifier;
[0017] After the IoT terminal receives the access request response information sent by the core network element, it also includes:
[0018] When the first verification information calculated by the Internet of Things terminal is the same as the first verification information in the access request response information received by the Internet of Things terminal, it is determined that the security verification of the core network network element has passed.
[0019] Furthermore, the authentication request information includes second verification information and target data encrypted based on the integrity key; the second verification information is obtained by encrypting the third target character string by the IoT terminal based on the encryption key; the third target character string is obtained by sequentially concatenating the terminal identifier, the random number, and the random access code;
[0020] After the IoT terminal sends the authentication request information to the core network element through the access network element, it also includes:
[0021] When the second verification information in the authentication request information is the same as the second verification information calculated by the core network network element, and the integrity of the target data is verified by the core network network element, the Internet of Things terminal receives the authentication pass information sent by the core network network element.
[0022] Furthermore, the authentication response information includes at least one of the following:
[0023] The key life cycle and the address information parameters allocated by the core network element to the terminal; the length of the address information parameter is less than the terminal identifier; the address information parameters shown are used to identify the IoT terminal.
[0024] Furthermore, the IoT terminal sends authentication request information to the core network element through the access network element, including:
[0025] The IoT terminal sends authentication request information to the core network element through the target access network element;
[0026] The IoT terminal receives the authentication response information sent by the core network element, including:
[0027] The IoT terminal receives the authentication response information sent from the core network element through the target access network element;
[0028] The target access network element is determined by the core network element based on RSSI information reported by multiple access network elements respectively; the target access network element is used to transparently transmit the interaction information between the IoT terminal and the core network element.
[0029] In a second aspect, an embodiment of the present invention provides an Internet of Things system access security processing method, which is applied to a core network element in an Internet of Things system, including:
[0030] The core network element receives access request information sent by the IoT terminal through the access network element; the access request information is used to request access to the IoT network;
[0031] After the core network element sends the access request response information to the IoT terminal, the core network element receives the authentication request information sent by the IoT terminal through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT element; the authentication request information is used to request the core network element to confirm whether to allow the IoT terminal to access the IoT network;
[0032] The core network element sends authentication response information to the IoT terminal; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0033] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the Internet of Things system access security processing method as described in the first aspect or the Internet of Things system access security processing method as described in the second aspect is implemented.
[0034] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the Internet of Things system access security processing method as described in the first aspect or the Internet of Things system access security processing method as described in the second aspect is implemented.
[0035] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the Internet of Things system access security processing method as described in the first aspect or the Internet of Things system access security processing method as described in the second aspect.
[0036] The Internet of Things system access security processing method provided by the embodiment of the present invention, on the one hand, implements the security verification of the Internet of Things terminal to the Internet of Things network element based on the access request response information, so that the Internet of Things terminal accesses the trusted Internet of Things base station and the Internet of Things core network; on the other hand, based on the authentication request information, implements the security verification of the Internet of Things terminal by the core network element, confirms whether the Internet of Things terminal is allowed to access the Internet of Things network, thereby ensuring that the Internet of Things base station and the core network access the trusted Internet of Things terminal, and also simultaneously realizes the security requirements of the Internet of Things terminal accessing the trusted Internet of Things network and the Internet of Things network accessing the trusted Internet of Things terminal, and finally provides a trusted application service, thereby improving the security of the Internet of Things system access. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a flowchart of a method for processing Internet of Things system access security provided by an embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of an Internet of Things system provided by an embodiment of the present invention;
[0040] Figure 3 It is a schematic diagram of a process of an Internet of Things terminal accessing an Internet of Things network provided by an embodiment of the present invention;
[0041] Figure 4 It is a structural diagram of an Internet of Things system access security processing device provided by an embodiment of the present invention;
[0042] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0044] The method of the embodiment of the present invention can be applied to the Internet of Things system access security processing scenario, and at the same time realize the security requirements of Internet of Things terminals accessing trusted Internet of Things networks and Internet of Things networks accessing trusted Internet of Things terminals, ultimately providing trusted application services and improving the security of Internet of Things system access.
[0045] In the related technologies, the existing 3GPP and other related standards stipulate the security architecture and technical requirements of public network communications (including wireless access networks and core networks), but these requirements are all super heavyweight, based on hardware foundations such as high processing power, high transmission bandwidth, and insensitivity to power consumption, and are not suitable for lightweight application scenarios of the Internet of Things.
[0046] The Internet of Things system access security processing method of the embodiment of the present invention, on the one hand, implements the security verification of the Internet of Things terminal to the Internet of Things network element based on the access request response information, so that the Internet of Things terminal accesses the trusted Internet of Things base station and the Internet of Things core network; on the other hand, based on the authentication request information, implements the security verification of the Internet of Things terminal by the core network element, confirms whether the Internet of Things terminal is allowed to access the Internet of Things network, thereby ensuring that the Internet of Things base station and the core network access the trusted Internet of Things terminal, and also simultaneously realizes the security requirements of the Internet of Things terminal accessing the trusted Internet of Things network and the Internet of Things network accessing the trusted Internet of Things terminal, and finally provides trusted application services, and improves the security of Internet of Things system access; and the Internet of Things terminal encrypts and protects the integrity of the data packet to be transmitted through the encryption key KE and the integrity key KI, which can effectively prevent the information from being illegally eavesdropped, tampered with and replayed, thereby improving the security of Internet of Things system access and communication, and finally providing trusted application services.
[0047] Combine the following Figure 1-Figure 5 The technical solution of the present invention is described in detail with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0048] Figure 1 1 is a flow chart of an embodiment of a method for processing Internet of Things system access security provided by an embodiment of the present invention. Figure 1 As shown, the method provided in this embodiment includes:
[0049] Step 101: The IoT terminal sends access request information to the core network element through the access network element; the access request information is used to request access to the IoT network;
[0050] Specifically, the existing 3GPP and other relevant standards stipulate the security architecture and technical requirements for public network communications (including wireless access networks and core networks), but these requirements are extremely heavyweight, based on hardware foundations such as high processing power, high transmission bandwidth, and insensitivity to power consumption, and are not suitable for lightweight application scenarios of the Internet of Things.
[0051] In order to solve the above problems, in the embodiment of the present application, the Internet of Things terminal sends access request information to the core network element through the access network element; the access request information is used to request access to the Internet of Things network; optionally, the Internet of Things system in the present application is as follows Figure 2 As shown, it includes IoT terminals, IoT base stations and IoT core networks; among them, IoT terminals are generally connected to sensors to sense data and report it to IoT base stations. IoT terminals and IoT base stations are generally connected through wireless communication, such as Lora, Zigbee, Bluetooth or other private wireless bearer technologies. IoT base stations and device management servers are generally transmitted through wired or wireless public networks (4G or 5G).
[0052] Step 102: After the IoT terminal receives the access request response information sent by the core network element, the IoT terminal sends authentication request information to the core network element through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT element; the authentication request information is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network;
[0053] Specifically, after the IoT terminal sends an access request message to the core network element through the access network element, the core network element will send an access request response message to the IoT terminal; wherein, the access request response message is used to instruct the IoT terminal to perform security verification on the IoT network element, so that after the IoT terminal performs security verification on the IoT network element based on the access request response information, the IoT terminal can access the trusted IoT base station and the IoT core network, thereby providing trusted application services and improving the access security of the IoT system; optionally, if the IoT terminal fails to pass the security verification of the IoT network element based on the access request response information, it indicates that there are security risks in the IoT base station and the IoT core network. For example, if the IoT base station and the IoT core network are pseudo base stations, the terminal will no longer execute the access process, thereby avoiding the risk of information leakage and improving the access security of the IoT system; optionally, the IoT network element includes an IoT base station and an IoT core network. Furthermore, after the IoT terminal performs security verification on the IoT network element based on the access request response information, the IoT terminal sends authentication request information to the core network element; wherein the authentication request information is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network; optionally, when the core network element confirms that the IoT terminal can access the IoT network, it indicates that the IoT terminal is a trusted IoT terminal, that is, the IoT base station accessed by the core network is a trusted IoT terminal.
[0054] In this application, on the one hand, the security verification of the IoT terminal to the IoT network element is implemented based on the access request response information, so that the IoT terminal can access the trusted IoT base station and the IoT core network; on the other hand, the core network network element verifies the security of the IoT terminal based on the authentication request information to confirm whether the IoT terminal is allowed to access the IoT network, thereby ensuring that the IoT base station and the core network access the trusted IoT terminal, and ultimately providing trusted application services, thereby improving the security of IoT system access.
[0055] Step 103: The IoT terminal receives authentication response information sent from the core network element; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0056] Specifically, after the IoT terminal receives the authentication response information sent by the core network element, it can determine whether it can access the IoT network based on the authentication response information, thereby enabling the IoT terminal to access a trusted IoT base station and IoT core network, and the IoT base station and core network to access a trusted IoT terminal.
[0057] That is, from the perspective of the system, since the entire system is deployed in a distributed manner, the trustworthiness of all network elements is the basis. Furthermore, in this application, the security verification of the IoT terminal to the IoT network element is implemented based on the access request response information, so that the IoT terminal can access the trusted IoT base station and the IoT core network. On the other hand, based on the authentication request information, the core network network element verifies the security of the IoT terminal to confirm whether the IoT terminal is allowed to access the IoT network, thereby ensuring that the IoT base station and the core network access the trusted IoT terminal, that is, the IoT terminal accesses the trusted IoT base station and the IoT core network, and similarly, the IoT base station and the core network access the trusted IoT terminal, thereby simultaneously realizing the security requirements of the IoT terminal accessing the trusted IoT network and the IoT network accessing the trusted IoT terminal, and ultimately providing trusted application services.
[0058] The method of the above embodiment, on the one hand, implements the security verification of the Internet of Things terminal to the Internet of Things network element based on the access request response information, so that the Internet of Things terminal can access the trusted Internet of Things base station and the Internet of Things core network; on the other hand, based on the authentication request information, implements the security verification of the Internet of Things terminal by the core network element, confirms whether the Internet of Things terminal is allowed to access the Internet of Things network, thereby ensuring that the Internet of Things base station and the core network access the trusted Internet of Things terminal, and also simultaneously realizes the security requirements of the Internet of Things terminal accessing the trusted Internet of Things network and the Internet of Things network accessing the trusted Internet of Things terminal, and finally provides trusted application services, thereby improving the security of Internet of Things system access.
[0059] In one embodiment, after the IoT terminal receives the authentication response information sent from the core network element, it also includes:
[0060] The IoT terminal encrypts and performs integrity check on the data packets to be transmitted using the encryption key and integrity key to obtain the target data; the target data is sent to the core network element; the encryption key and integrity key are determined by the IoT terminal based on a preset key generation method.
[0061] Specifically, from a network perspective, the entire IoT network is divided into two parts: the IoT access network and the IoT core network. Since the IoT access network uses wireless communication to communicate, air interface content monitoring is inevitable. Therefore, in this application, the IoT terminal uses the encryption key KE and the integrity key KI to encrypt and protect the integrity of the transmitted data packets, thereby preventing the information from being illegally eavesdropped, tampered with, and replayed, improving the security of IoT system access and communication, and ultimately providing trusted application services.
[0062] In one embodiment, the preset key generation method is implemented based on the following steps:
[0063] Generate a first target character string by concatenating the identity encryption key assigned by the core network element to the terminal, the random access code generated by the Internet of Things terminal, the random number generated by the core network element, and the single-byte constant;
[0064] Generate an encryption key and an integrity key based on the symmetric encryption algorithm AES-CMAC and the first target character string.
[0065] Specifically, in this application, the Internet of Things terminal encrypts and protects the integrity of the data packets to be transmitted through the encryption key KE and the integrity key KI, which can effectively prevent the information from being illegally eavesdropped, tampered with, and replayed, improve the security of the Internet of Things system access and communication, and finally provide trusted application services. Among them, in this application, the identity encryption key IK assigned to the terminal by the core network element, the random access code RA generated by the Internet of Things terminal, the random number RB generated by the core network element, and the single-byte constant K are concatenated to generate a first target string; and then the first target string is used as the input of the AES-CMAC algorithm to generate the encryption key KE and the integrity key, so as to realize the protection functions such as encryption integrity of the Internet of Things data transmission, and prevent the data from being eavesdropped, tampered with, replay attacks and other security issues. Based on the key generation method in this application, the key can be generated based on the basic characteristics of low processing power, low transmission bandwidth, power consumption sensitivity, and cost sensitivity of the Internet of Things terminal, effectively meeting the lightweight application scenarios of the Internet of Things, thereby effectively solving the problem that the existing security architecture and technical requirements can only be applied in heavyweight application scenarios, but not in lightweight application scenarios.
[0066] For example, the encryption key KE and integrity key KI are implemented as follows:
[0067] The AES-CMAC algorithm is adopted, and the identity encryption key IK allocated by the core network element to the terminal is used. IK||RA||RB||K is used as the data source of AES-CMAC, || represents data concatenation, and K is a single-byte constant, such as 0x00 is used to generate KE and 0xFF is used to generate KI.
[0068] The method of the above embodiment generates a first target string by concatenating the identity encryption key IK assigned by the core network element to the terminal, the random access code RA generated by the IoT terminal, the random number RB generated by the core network element, and the single-byte constant K; and then uses the first target string as the input of the AES-CMAC algorithm to generate the encryption key KE and the integrity key. The key generation method in this application can generate keys based on the basic characteristics of low processing power, low transmission bandwidth, power consumption sensitivity, and cost sensitivity of the IoT terminal, effectively meeting the lightweight application scenarios of the IoT, and thus effectively realizing secure access and communication for lightweight IoT; effectively solving the problem that the existing security architecture and technical requirements can only be applied in heavyweight application scenarios, but not in lightweight application scenarios.
[0069] In one embodiment, the access request information carries a terminal identifier and an encrypted random access code; the encrypted random access code is obtained by encrypting the random access code generated by the Internet of Things terminal based on the identity encryption key assigned by the core network network element.
[0070] Specifically, in the process of the IoT terminal accessing the wireless network, the IoT terminal first sends an access request message to the core network element through the access network element; wherein the access request message is used to request access to the IoT network; optionally, the access request message carries the terminal identifier UE ID and the encrypted random access code RA; optionally, the terminal identifier UE ID is used to uniquely identify the IoT terminal; optionally, the MAC address of the IoT terminal can be used as the terminal identifier of the IoT terminal. Optionally, the random access codes corresponding to different terminals are also different; optionally, in this application, the random access code RA of the terminal is encrypted to effectively prevent the risk of tampering and leakage of the access information, thereby improving the security of IoT terminal access. Optionally, the encrypted random access code RA in the present application is obtained by encrypting the random access code RA generated by the Internet of Things terminal based on the identity encryption key IK assigned by the core network network element; optionally, during the offline registration process of the Internet of Things terminal, the core network network element will assign a different identity encryption key IK to each Internet of Things terminal, thereby avoiding a unified key for the entire network and solving the potential security risk that the leakage of a single terminal key affects the security of other terminals; optionally, after the core network network element receives the terminal identifier UE ID carried in the access request information sent by the Internet of Things terminal, the core network network element can associate it with the identity encryption key IK assigned to the terminal based on the terminal identifier UE ID, and then determine how to decrypt the random access code RA encrypted by the Internet of Things terminal based on the encryption key, thereby accurately decrypting the random code RA, and then continuing with subsequent access and communication steps.
[0071] For example, before each IoT terminal can access the network, it must first be registered offline in the core network element (device management server). The registration content includes but is not limited to manufacturer information, device model, device serial number, terminal identification UE ID, etc. The terminal identification UE ID is required to be unique in the entire network and can generally be replaced by a MAC address. Of course, it can also be allocated by the device management server, and an identity encryption key (IK) is provided. The engineering staff configures parameters such as IK to the corresponding terminal. From a security perspective, the terminal can be stored with a security chip, which needs to be prevented from being illegally read or tampered with.
[0072] The IoT terminal needs to access the IoT network to obtain communication services, similar to the UE attachment service function of public network communication. Generally, the IoT terminal needs to perform network access operations when it is powered on for the first time or cannot obtain communication services. For example, the IoT terminal sends an access request message to the access network element (IoT base station). The terminal identifier UE ID is used in the access request message, such as the MAC address or the address assigned during offline registration, etc. The access request message also needs to carry the encrypted random data RA and specific device information. After receiving the access request message, the IoT base station directly forwards it to the device management server. Considering the possibility that multiple IoT base stations receive the information, it carries RSSI information to the device management server so that the device management server can select the corresponding IoT base station to send a response message. After receiving the access request message, the device management server takes out the corresponding secret key through the terminal identifier UE ID and decompresses the data packet to obtain the random number RA and device information parameters generated by the device terminal.
[0073] In the method of the above embodiment, on the one hand, the core network element assigns a different identity encryption key IK to each IoT terminal, thereby avoiding a unified key for the entire network and solving the potential security problem that the leakage of a single terminal key affects the security of other terminals; on the other hand, in this application, by encrypting the random access code RA carried in the access request information sent by the IoT terminal, the risk of access information of the IoT terminal being tampered with and leaked can be effectively prevented, thereby improving the security of IoT terminal access.
[0074] In one embodiment, the access request response information includes a random number generated by a core network element and first verification information; the first verification information is obtained by the core network element generating an encryption key based on a preset key generation method and encrypting the second target character string based on the encryption key; the second target character string is obtained by sequentially concatenating a random access code, a random number, and a terminal identifier;
[0075] After the IoT terminal receives the access request response information sent by the core network element, it also includes:
[0076] When the first verification information calculated by the Internet of Things terminal is the same as the first verification information in the access request response information received by the Internet of Things terminal, it is determined that the security verification of the core network network element has passed.
[0077] Specifically, in the embodiment of the present application, the security verification of the IoT terminal to the IoT network element is implemented based on the access request response information, so that the IoT terminal can access the trusted IoT base station and the IoT core network; wherein, the core network network element receives the access request information sent by the IoT terminal, obtains the random access code RA sent by the IoT terminal, and the core network network element also generates a random number RB; then the core network network element can generate the encryption key KE based on the decrypted random access code RA and the random number RB using a preset key generation method; wherein, the method of generating the encryption key has been introduced in the aforementioned embodiment of the present application, and will not be repeated here. Further, after the core network network element generates the encryption key KE, it can use the encryption key KE to encrypt RA||RB||UE ID, that is, the core network network element obtains the first verification information AUTHB based on the decrypted random access code RA, the random number RB generated by the core network network element, and the UE ID received by the core network network element, and sends the random number RB generated by the core network network element and the first verification information AUTHB to the IoT terminal through the random access request response information, instructing the IoT terminal to perform security verification on the IoT network element.
[0078] Optionally, after receiving the random number RB and the first verification information AUTHB carried in the access request response information sent by the core network network element, the Internet of Things terminal can calculate the encryption key based on the received random number RB and the RA generated by the Internet of Things terminal; and then use the encryption key KE to encrypt RA||RB||UE ID, that is, the RA generated by the Internet of Things terminal, the received RB sent by the core network network element, and the UE ID sent by the Internet of Things terminal, to calculate the first verification information AUTHB; and when the first verification information AUTHB received by the Internet of Things terminal and the first verification information AUTHB calculated by the Internet of Things terminal are the same, the core network network element and the access network element are verified, so that the Internet of Things terminal can access the trusted Internet of Things network.
[0079] Optionally, in the case where there is a fake base station in the IoT network, since the fake base station cannot correctly decrypt the encrypted RA in the terminal access request information, when the first verification information AUTHB in the access request response information sent by the fake base station to the IoT terminal is inconsistent with the first verification information AUTHB calculated by the IoT terminal, the IoT terminal can determine that the security verification of the IoT network element has failed, and then terminate subsequent access and communication processes, thereby avoiding security risks of information leakage.
[0080] In the method of the above embodiment, the Internet of Things terminal compares the first verification information AUTHB calculated by itself with the first verification information AUTHB in the access request response information sent by the core network element, thereby realizing security verification of the Internet of Things network element, so that the Internet of Things terminal can access the trusted Internet of Things network. Among them, the first verification information AUTHB in the access request response information is generated by the core network element based on the decrypted random access code RA, the random number RB generated by the core network element, and the UE ID received by the core network element; the first verification information AUTHB calculated by the Internet of Things terminal itself is calculated by the Internet of Things terminal based on the generated random access code RA, the RB sent by the core network element received by the Internet of Things terminal, and the UE ID sent by the Internet of Things terminal.
[0081] In one embodiment, the authentication request information includes the second verification information and the target data encrypted based on the integrity key; the second verification information is obtained by encrypting the third target character string by the IoT terminal based on the encryption key; the third target character string is obtained by sequentially concatenating the terminal identifier, the random number, and the random access code;
[0082] After the IoT terminal sends the authentication request information to the core network element through the access network element, it also includes:
[0083] When the second verification information in the authentication request information is the same as the second verification information calculated by the core network network element, and the integrity of the target data is verified by the core network network element, the Internet of Things terminal receives the authentication pass information sent by the core network network element.
[0084] Specifically, after the IoT terminal verifies the security of the IoT network element based on the access request response information, the IoT terminal sends an authentication request message to the core network element; wherein the authentication request message is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network; optionally, when the core network element confirms that the IoT terminal can access the IoT network, it indicates that the IoT terminal is a trusted IoT terminal, that is, the IoT base station and the core network are connected to a trusted IoT terminal. Optionally, the authentication request message includes the second verification information AUTHA and the target data encrypted based on the integrity key KI; wherein the target data encrypted based on the integrity key KI includes the integrity protection field generated by the integrity key KI for UE ID, SN, etc.
[0085] The second verification information AUTHA is the encryption key KE calculated by the Internet of Things terminal based on the received random number RB and the RA generated by the Internet of Things terminal; the encryption key KE is then used to encrypt the UE ID||RB||RA, that is, the UEID sent by the Internet of Things terminal, the RB sent by the core network element received by the Internet of Things terminal, and the RA generated by the Internet of Things terminal, and the second verification information AUTHA is calculated and sent to the core network element through the authentication request information, requesting the core network element to confirm whether the Internet of Things terminal is allowed to access the Internet of Things network.
[0086] Optionally, when the core network network element receives the access request information sent by the Internet of Things terminal and obtains the random access code RA sent by the Internet of Things terminal, the core network network element will also generate a random number RB and send it to the Internet of Things terminal; further, after the core network network element receives the authentication request information sent by the Internet of Things terminal, the core network network element can generate an encryption key KE based on the decrypted random access code RA and random number RB using a preset key generation method; wherein, the method for generating the encryption key has been introduced in the aforementioned embodiment of the present application and will not be repeated here. Further, after the core network element generates the encryption key KE, it can use the encryption key KE to encrypt the UE ID||RB||RA, that is, the core network element calculates the second verification information AUTHA based on the received UE ID, the random number RB generated by the core network element, and the decrypted random access code RA; and when the second verification information AUTHA in the authentication request information received by the core network element and the second verification information AUTHA calculated by the core network element are the same, the Internet of Things terminal is allowed to access the Internet of Things network, thereby ensuring that the Internet of Things base station and the core network access a trusted Internet of Things terminal, and also realizing the security requirements of the Internet of Things terminal accessing the trusted Internet of Things network and the Internet of Things network accessing the trusted Internet of Things terminal at the same time, and finally providing a trusted application service, and improving the security of the Internet of Things system access. It should be noted that the verification method of the trusted network and the trusted terminal in the present application can be applied to a lightweight Internet of Things network, meeting the basic characteristics of low processing power, low transmission bandwidth, power consumption sensitivity, and cost sensitivity of the Internet of Things terminal, and effectively solving the problem that the existing security architecture and technical requirements can only be applied in heavyweight application scenarios, but not in lightweight application scenarios.
[0087] In the method of the above embodiment, the core network element compares the second verification information AUTHA calculated by itself with the second verification information AUTHA in the authentication request information sent by the Internet of Things terminal, thereby ensuring that the Internet of Things base station and the core network access a trusted Internet of Things terminal, realizing trusted verification of the Internet of Things terminal, and also realizing the security requirements of the Internet of Things terminal accessing a trusted Internet of Things network and the Internet of Things network accessing a trusted Internet of Things terminal, and finally providing trusted application services, improving the security of Internet of Things system access. Among them, the second verification information AUTHA in the authentication request information is calculated by the Internet of Things terminal based on the UE ID sent by the Internet of Things terminal, the RB sent by the core network element received by the Internet of Things terminal, and the RA generated by the Internet of Things terminal; the second verification information AUTHA calculated by the core network element is generated by the core network element based on the UE ID received by the core network element, the random number RB generated by the core network element, and the decrypted random access code RA.
[0088] In one embodiment, after the Internet of Things terminal sends the authentication request information, it also includes:
[0089] The IoT terminal receives authentication information; the authentication information includes at least one of the following:
[0090] The key life cycle and the address information parameters allocated by the core network element to the terminal; the length of the address information parameter is less than the terminal identifier; the address information parameter is used to identify the IoT terminal.
[0091] Specifically, after receiving the authentication request information sent by the IoT terminal and verifying the trustworthiness of the IoT terminal, the core network element sends authentication information to the IoT terminal, where the authentication information includes the key lifecycle and the address information parameter assigned by the core network element to the terminal; where the address information parameter is used to identify the IoT terminal, and the length of the address information parameter is less than the terminal identifier, thereby reducing the storage load of the core network element and the IoT terminal. Optionally, the key lifecycle is used to indicate the lifecycle of the keys KE and KI, so that after the key lifecycle expires, the IoT terminal needs to reconnect to the IoT network, so that the key of the communication process is dynamically generated, non-static key and has a lifecycle, effectively improving the communication security of IoT communication.
[0092] For example, during the access phase, the MAC of the IoT terminal is used as the terminal identifier. The length of the MAC is generally 6 bytes, so the length of the address information parameter can be set to 2 bytes and multiplexed in different areas. In this way, the terminal can be identified by the address information parameter instead of the MAC during the IoT communication process, which can effectively reduce the storage load of the core network elements and the IoT terminals.
[0093] The method of the above embodiment can effectively reduce the storage load of core network elements and IoT terminals by carrying address information parameters in the authentication pass information, thereby replacing MAC with address information parameters to identify the terminal during IoT communication; by carrying the key life cycle in the authentication pass information, the IoT terminal needs to re-access the IoT network after the key life cycle expires, so that the key of the communication process is dynamically generated, non-static key and has a life cycle, effectively improving the communication security of IoT communication.
[0094] In one embodiment, the IoT terminal sends authentication request information to the core network element through the access network element, including:
[0095] The IoT terminal sends authentication request information to the core network element through the target access network element;
[0096] The IoT terminal receives the authentication response information sent by the core network element, including:
[0097] The IoT terminal receives the authentication response information sent from the core network element through the target access network element;
[0098] The target access network element is determined by the core network element based on RSSI information reported by multiple access network elements respectively; the target access network element is used to transparently transmit the interaction information between the IoT terminal and the core network element.
[0099] Specifically, in the embodiment of the present application, the IoT terminal receives information sent from the core network element through the target access network element, that is, the core network element sends various types of information to the IoT terminal through the target access network element; wherein, the target access network element is determined by the core network element based on the RSSI information reported by multiple access network elements. For example, in the process of the access request information sent by the terminal being transparently transmitted to the core network element by multiple access network elements, each access network element will also synchronously report its own signal strength; after receiving the signal strength sent by each access network element, the core network element can select the access network element with the strongest signal strength as the target access network element, and select the target access network element to send access request response information to the IoT terminal; thereby avoiding the waste of access network resources, and also enabling the IoT terminal and the core network element to interact with each other through the optimal access network element, thereby improving the efficiency and accuracy of IoT communication.
[0100] Optionally, the access network elements in the public network need to store and process data, while the target access network elements in this application are only used to transparently transmit the interaction information between the IoT terminal and the core network elements, that is, no data is saved in the IoT terminal. The core network elements serve as the central management agency for the security of the IoT network and are responsible for the communication security of the IoT network. Compared with the existing technology, the risk of access network element data leakage is reduced, and the security of IoT communications is effectively improved.
[0101] In the method of the above embodiment, the Internet of Things terminal and the core network element exchange information through the target access network element; wherein, the target access network element is determined by the core network element based on the RSSI information reported by multiple access network elements respectively, thereby not only avoiding the waste of access network resources, but also enabling the Internet of Things terminal and the core network element to exchange information through the optimal access network element, thereby improving the efficiency and accuracy of Internet of Things communication; further, the target access network element is only used to transparently transmit the interaction information between the Internet of Things terminal and the core network element, that is, the data is not saved in the Internet of Things terminal, and the core network element is used as the central management agency for the security of the Internet of Things network, which is responsible for the communication security of the Internet of Things network. Compared with the existing technology, the risk of access network element data leakage is reduced, and the security of Internet of Things communication is effectively improved.
[0102] In one embodiment, the Internet of Things system access security processing method is applied to the core network element, and the specific process is as follows:
[0103] The core network element receives access request information sent by the IoT terminal through the access network element; the access request information is used to request access to the IoT network;
[0104] After the core network element sends the access request response information to the IoT terminal, the core network element receives the authentication request information sent by the IoT terminal through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT element; the authentication request information is used to request the core network element to confirm whether to allow the IoT terminal to access the IoT network;
[0105] The core network element sends authentication response information to the IoT terminal; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0106] Specifically, the existing 3GPP and other relevant standards stipulate the security architecture and technical requirements for public network communications (including wireless access networks and core networks), but these requirements are extremely heavyweight, based on hardware foundations such as high processing power, high transmission bandwidth, and insensitivity to power consumption, and are not suitable for lightweight application scenarios of the Internet of Things.
[0107] In order to solve the above problems, in an embodiment of the present application, after the core network network element receives the access request information sent by the Internet of Things terminal through the access network network element, it sends access request response information to the Internet of Things terminal; wherein the access request response information is used to instruct the Internet of Things terminal to perform security verification on the Internet of Things network element; thus, after the Internet of Things terminal performs security verification on the Internet of Things network element based on the access request response information, the Internet of Things terminal can access a trusted Internet of Things base station and the Internet of Things core network, thereby providing trusted application services and improving the access security of the Internet of Things system.
[0108] Furthermore, after the IoT terminal performs security verification on the IoT network element based on the access request response information, the IoT terminal sends authentication request information to the core network element; wherein the authentication request information is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network; optionally, when the core network element confirms that the IoT terminal can access the IoT network, it indicates that the IoT terminal is a trusted IoT terminal, that is, the IoT base station accessed by the core network is a trusted IoT terminal.
[0109] Furthermore, after the IoT terminal receives the authentication information sent by the core network network element, that is, after the IoT terminal accesses the trusted IoT base station and the IoT core network, and the IoT base station and the core network access the trusted IoT terminal, in the embodiment of the present application, during the communication between the IoT terminal and the core network network element, the IoT terminal uses the encryption key KE and the integrity key KI to encrypt and integrity protect the transmitted data packets, thereby preventing the information from being illegally eavesdropped, tampered with, and replay attacked, thereby improving the security of IoT system access and communication.
[0110] The method of the above embodiment, on the one hand, implements security verification of the Internet of Things terminal to the Internet of Things network element based on the access request response information, so that the Internet of Things terminal accesses the trusted Internet of Things base station and the Internet of Things core network; on the other hand, implements security verification of the Internet of Things terminal by the core network element based on the authentication request information, confirms whether the Internet of Things terminal is allowed to access the Internet of Things network, thereby ensuring that the Internet of Things base station and the core network access the trusted Internet of Things terminal, and also simultaneously realizes the security requirements of the Internet of Things terminal accessing the trusted Internet of Things network and the Internet of Things network accessing the trusted Internet of Things terminal, ultimately providing trusted application services and improving the security of Internet of Things system access; and the Internet of Things terminal encrypts and protects the integrity of the data packets to be transmitted through the encryption key KE and the integrity key KI, which can effectively prevent the information from being illegally eavesdropped, tampered with and replayed, thereby improving the security of Internet of Things system access and communication, and ultimately providing trusted application services.
[0111] Exemplarily, the specific process of the IoT system access security processing method in this application is as follows:
[0112] The IoT system access security processing method is generally divided into five major processes: offline registration, network access, encrypted communication, key update, and deregistration. The details are as follows:
[0113] (1) Offline registration
[0114] Before accessing the network, each IoT terminal must first be registered offline in the device management server. The registration content includes but is not limited to manufacturer information, device model, device serial number, device ID, etc. The device ID is required to be unified across the entire network and can generally be replaced by a MAC address. Of course, it can also be allocated by the device management server. At the same time, an identity encryption key (IK) is provided, and parameters such as IK are configured in the corresponding terminal. From a security perspective, it is best for the terminal to use a security chip for storage to prevent illegal reading or tampering.
[0115] (2) Access network
[0116] IoT terminals need to access the IoT network to obtain communication services, similar to the public network communication UE attachment service function. Generally, IoT terminals need to perform network access operations when they are powered on for the first time or cannot obtain communication services. The specific process is as follows: Figure 3 As shown:
[0117] The detailed description is as follows:
[0118] ① The IoT terminal sends an access request message to the IoT base station. The access request message uses the device's unique address ADDR, such as the MAC address or the address assigned during offline registration, etc. The access request also needs to carry the encrypted random data RA and device specific information, etc. After receiving the access request message, the IoT base station directly forwards it to the device management server. Considering the possibility that multiple IoT base stations receive the message, it carries RSSI information to the device management server so that the device management server can select the corresponding IoT base station to send a response message.
[0119] ② After receiving the access request information, the device management server takes out the corresponding key through the device address and decompresses the data packet to obtain the random number RA and device information parameters generated by the device terminal. The device management server also generates a random number RB, which, combined with RA, can generate the encryption key KE and integrity key KI for communication. The implementation rules are as follows:
[0120] Adopt AES-CMAC algorithm, adopt secret key IK, use IK||RA||RB||K as the data source of AES-CMAC, || represents data concatenation, K is a single-byte constant, such as 0x00 is used to generate KE, and 0xFF is used to generate KI.
[0121] ③ The device management server sends an access response packet (access request response information), carrying RB and the authentication information AUTHB of RA||RB||ADDR encrypted with KE, and selects a specific IoT base station based on RSSI, which is transparently forwarded to the corresponding IoT terminal.
[0122] ④ After the IoT terminal receives the access response packet, it obtains KE and KI through RB and RA using the same method as ②, encrypts RA||RB||ADDR with KE, and compares the result with AUTHB. If they are the same, the IoT core network verification passes, otherwise it fails.
[0123] ⑤If ④ verification passes, the IoT terminal initiates an authentication request, encrypts ADDR||RB||RA with KE to obtain the encrypted verification information AUTHA, and the entire data packet is encrypted with KE and protected by KI for integrity. After receiving the packet, the IoT base station transparently forwards it to the device management server.
[0124] ⑥ The device management server receives the authentication request packet (authentication request information) from the IoT terminal, decrypts the entire data packet, and performs an integrity check. If it passes, it determines whether AUTHA is the expected value. If it is the expected value, the verification passes and the IoT terminal is allowed to access the network.
[0125] ⑦ The device management server replies to the IoT terminal with the verified information, and carries parameters such as the key lifecycle, current system timestamp, and assigned address information ADDC. ADDC is the only address in the IoT network. The entire data packet needs to be encrypted and integrity protected. The corresponding IoT base station will transparently transmit the data packet to the IoT terminal and send an access permission signaling to the IoT base station at the same time, carrying the IoT terminal ADDR, lifecycle, and assigned address information parameters, which are used by the IoT base station to record and associate the IoT terminal that provides communication services.
[0126] At this point, the entire access authentication process is completed. From the process described above, the access request uses the full device address, and the entire data packet has no integrity protection; the authentication request also uses the full address, and the entire data packet is encrypted and integrity protected.
[0127] ⑧ To avoid frequent access and authentication attempts by illegal IoT terminals, the system uses a gradually increasing processing interval, such as 30 seconds for the first attempt, 60 seconds for the second attempt, 120 seconds for the third attempt, 240 seconds for the fourth attempt, etc., until the longest processing interval is 60 minutes. After 60 minutes of silence, the next cycle starts again. The IoT base station and the device management server discard all packets within the interval. At the same time, the device management server and the IoT base station monitor the traffic of each terminal in real time, and discard the data of IoT terminals with abnormal traffic.
[0128] (3) Encrypted communication
[0129] After completing access and authentication, the IoT terminal and the device management server will use encrypted communication. The data packet carries the SN. The SN and PDU will be checked for integrity using KI to obtain the MIC (Message Integrity Check). Then, the SN, ACK, and PDU will be encrypted into ciphertext for transmission. The basic protocol framework is shown in Table 1:
[0130] Table 1
[0131] OP ADDC SN ACK PDU MIC
[0132] Every time an IoT terminal sends a data packet, the SN must be increased by 1. If it overflows, it will automatically wrap around and start from 1. The device management server checks the SN of each packet. If it is less than or equal to the last received packet, it will be discarded. This can prevent replay attacks.
[0133] In practice, most IoT terminals do not require a reply to their reported data packets. If a reply is required, it is recommended to reflect it through the ACK flag. The same applies to the communication between the device management server and the IoT terminal.
[0134] During the communication process, the IoT base station does not have any password information between the IoT terminal and the IoT device server, so the IoT base station cannot obtain any decoded data, which can prevent IoT pseudo base stations from illegally obtaining information reported by the terminal. The advantage of this design is that the IoT base station is at the edge of the network and there is a risk of physical insecurity, which is similar to the risk of pseudo base stations in the current public network.
[0135] Regarding routing, the IoT terminal does not need to pay attention to it. During access, the device management server has selected the corresponding IoT base station based on the received RSSI, see the description in point 7. In this communication phase, the device uses the shorter address ADDC, which has the following main advantages: first, it reduces the overhead of data communication; second, it prevents the device from being tracked in a targeted manner. The address of the device assigned will change after each access authentication.
[0136] (4) Key Update
[0137] During the access and authentication phase, the device management server will specify the life cycle of the key. Therefore, the IoT terminal needs to pay attention to the validity period of the key. If it expires, it needs to re-access and authenticate. For the IoT base station, if the key life cycle of an IoT terminal has expired, it will stop forwarding any information except access and authentication related information. Similarly, for the device management server, the corresponding data will be discarded.
[0138] (5) Cancellation
[0139] On the device management server side, this can be achieved by deleting the corresponding terminal or modifying the corresponding flag to prohibit access. No further details will be given here.
[0140] The communication between the IoT base station and the device management server adopts the WebSocket protocol. The data carried includes all data forwarding between the IoT terminal and the device management server, as well as the control instructions and data between the IoT base station and the device management server. The secure transmission protocol adopts SSL / TLS. Its protocol stack is shown in Table 2:
[0141] Table 2
[0142]
[0143]
[0144] The method of the above embodiment, based on the basic characteristics of low processing power, low transmission bandwidth, power consumption sensitivity and cost sensitivity of IoT terminals, constructs a new, streamlined, efficient and practical security architecture and control method, realizing the basic security requirements of IoT terminals accessing trusted IoT networks and IoT networks accessing trusted IoT terminals, while realizing encryption integrity and other protection functions of IoT data transmission, preventing data from being eavesdropped, tampered with, replay attacks and other security issues. The method in the embodiment of the present application effectively solves the problem that the leakage of a single terminal key affects the security of other terminals by avoiding the unified key of the entire network; and the key of the communication process is dynamically generated, non-static key and has a life cycle, which effectively improves the information security of IoT communication; and effectively improves the communication security of the network based on encryption keys and integrity keys; the terminal trust and network element trust verification algorithm are simple, effectively reducing the burden of network transmission; through the core network network element as the central management agency for the security of the IoT network, it is responsible for the security of the entire network.
[0145] The Internet of Things system access security processing device provided by the present invention is described below. The Internet of Things system access security processing device described below and the Internet of Things system access security processing method described above can be referenced to each other.
[0146] Figure 4 Schematic diagram of the structure of the Internet of Things system access security processing device provided by the present invention. The Internet of Things system access security processing device provided by this embodiment includes:
[0147] The sending module 710 is used to send access request information to the core network element through the access network element; the access request information is used to request access to the Internet of Things network;
[0148] The receiving module 720 is used for receiving the access request response information sent from the core network element, and the IoT terminal sends the authentication request information to the core network element through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT network element; the authentication request information is used to request the core network element to confirm whether to allow the IoT terminal to access the IoT network;
[0149] The transmission module 730 is used for the IoT terminal to receive authentication response information sent from the core network element; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0150] The device of the embodiment of the present invention is used to execute the method in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0151] Figure 5 An example of a physical structure diagram of an electronic device is provided, and the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communications bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other through the communications bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the Internet of Things system access security processing method, the method comprising: sending access request information to the core network element through the access network element; the access request information is used to request access to the Internet of Things network; after receiving the access request response information sent from the core network element, the Internet of Things terminal sends authentication request information to the core network element through the access network element; the access request response information is used to instruct the Internet of Things terminal to perform security verification on the Internet of Things network element; the authentication request information is used to request the core network element to confirm whether the Internet of Things terminal is allowed to access the Internet of Things network; receiving the authentication response information sent from the core network element; the authentication response ... the authentication response information is used to request the core network element to confirm whether the Internet of Things terminal is allowed to access the Internet of Things network; the authentication response information is used to request the core network element to confirm whether the Internet of Things terminal is allowed to access the Internet of The response information is used to indicate whether the IoT terminal can access the IoT network; or, receive access request information sent by the IoT terminal through the access network element; the access request information is used to request access to the IoT network; after sending access request response information to the IoT terminal, the core network element receives authentication request information sent by the IoT terminal through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT network element; the authentication request information is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network; send authentication response information to the IoT terminal; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0152] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0153] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the Internet of Things system access security processing method provided by the above-mentioned methods, and the method includes: sending access request information to the core network network element through the access network network element; the access request information is used to request access to the Internet of Things network; after receiving the access request response information sent by the core network network element, the Internet of Things terminal sends authentication request information to the core network network element through the access network network element; the access request response information is used to instruct the Internet of Things terminal to perform security verification on the Internet of Things network element; the authentication request information is used to request the core network network element to confirm whether Allow the IoT terminal to access the IoT network; receive authentication response information sent from the core network element; the authentication response information is used to indicate whether the IoT terminal can access the IoT network; or, receive access request information sent by the IoT terminal through the access network element; the access request information is used to request access to the IoT network; after sending the access request response information to the IoT terminal, the core network element receives the authentication request information sent by the IoT terminal through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT network element; the authentication request information is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network; send authentication response information to the IoT terminal; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0154] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the above-mentioned Internet of Things system access security processing method, the method comprising: sending access request information to the core network element through the access network element; the access request information is used to request access to the Internet of Things network; after receiving the access request response information sent by the core network element, the Internet of Things terminal sends authentication request information to the core network element through the access network element; the access request response information is used to instruct the Internet of Things terminal to perform security verification on the Internet of Things network element; the authentication request information is used to request the core network element to confirm whether the Internet of Things terminal is allowed to access the Internet of Things network; receiving the access request response information from the core network element Authentication response information sent by the core network network element; the authentication response information is used to indicate whether the IoT terminal can access the IoT network; or, receiving access request information sent by the IoT terminal through the access network network element; the access request information is used to request access to the IoT network; after sending the access request response information to the IoT terminal, the core network network element receives the authentication request information sent by the IoT terminal through the access network network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT network element; the authentication request information is used to request the core network network element to confirm whether the IoT terminal is allowed to access the IoT network; sending authentication response information to the IoT terminal; the authentication response information is used to indicate whether the IoT terminal can access the IoT network.
[0155] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0156] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing access security of an Internet of Things system, characterized in that: IoT terminals used in IoT systems include: The Internet of Things terminal sends access request information to the core network element through the access network element; the access request information is used to request access to the Internet of Things network; After the IoT terminal receives the access request response information sent from the core network element, the IoT terminal sends authentication request information to the core network element through the access network element; the access request response information is used to instruct the IoT terminal to perform security verification on the IoT element; the authentication request information is used to request the core network element to confirm whether the IoT terminal is allowed to access the IoT network; the access request response information includes a random number generated by the core network element and first verification information; the first verification information is obtained by the core network element generating an encryption key based on a preset key generation method and encrypting the second target character string based on the encryption key; the second target character string is obtained by sequentially concatenating a random access code, a random number and a terminal identifier; After the Internet of Things terminal receives the access request response information sent by the core network element, it also includes: When the first verification information calculated by the Internet of Things terminal is the same as the first verification information in the access request response information received by the Internet of Things terminal, determining that the security verification of the core network network element is passed; The Internet of Things terminal receives authentication response information sent from a core network element; the authentication response information is used to indicate whether the Internet of Things terminal can access the Internet of Things network; The preset key generation method is implemented based on the following steps: generating a first target string by concatenating the identity encryption key assigned by the core network element to the terminal, the random access code generated by the Internet of Things terminal, the random number generated by the core network element, and a single-byte constant; generating an encryption key and an integrity key based on the symmetric encryption algorithm AES-CMAC and the first target string; The access request information carries a terminal identifier and an encrypted random access code; the encrypted random access code is obtained by encrypting the random access code generated by the Internet of Things terminal based on the identity encryption key allocated by the core network network element.
2. The Internet of Things system access security processing method according to claim 1 is characterized in that: After the Internet of Things terminal receives the authentication response information sent by the core network element, it also includes: The Internet of Things terminal encrypts and performs integrity check on the data packet to be transmitted using an encryption key and an integrity key to obtain target data; and sends the target data to a core network element; the encryption key and the integrity key are determined by the Internet of Things terminal based on a preset key generation method.
3. The Internet of Things system access security processing method according to claim 1 is characterized in that: The authentication request information includes the second verification information and the target data encrypted based on the integrity key; the second verification information is obtained by encrypting the third target character string by the IoT terminal based on the encryption key; the third target character string is obtained by sequentially concatenating the terminal identifier, the random number, and the random access code; After the Internet of Things terminal sends authentication request information to the core network element through the access network element, the method further includes: When the second verification information in the authentication request information is the same as the second verification information calculated by the core network network element, and the integrity of the target data is verified by the core network network element, the Internet of Things terminal receives the authentication pass information sent by the core network network element.
4. The Internet of Things system access security processing method according to claim 3 is characterized in that: The authentication response information includes at least one of the following: The key life cycle and the address information parameters allocated by the core network element to the terminal; the length of the address information parameters is less than the terminal identifier; the address information parameters are used to identify the Internet of Things terminal.
5. The method for processing Internet of Things system access security according to claim 4, characterized in that: The IoT terminal sends authentication request information to the core network element through the access network element, including: The Internet of Things terminal sends authentication request information to the core network element through the target access network element; The Internet of Things terminal receives authentication response information sent by the core network element, including: The Internet of Things terminal receives the authentication response information sent from the core network element through the target access network element; The target access network element is determined by the core network element based on RSSI information reported by multiple access network elements respectively; the target access network element is used to transparently transmit the interaction information between the Internet of Things terminal and the core network element.
6. A method for processing access security of an Internet of Things system, characterized in that: Core network elements used in IoT systems include: The core network element receives access request information sent by the Internet of Things terminal through the access network element; the access request information is used to request access to the Internet of Things network; the access request information carries a terminal identifier and an encrypted random access code; the encrypted random access code is obtained by encrypting the random access code generated by the Internet of Things terminal based on the identity encryption key assigned by the core network element; After the core network element sends the access request response information to the Internet of Things terminal, the core network element receives the authentication request information sent by the Internet of Things terminal through the access network element; the access request response information is used to instruct the Internet of Things terminal to perform security verification on the Internet of Things network element; the authentication request information is used to request the core network element to confirm whether the Internet of Things terminal is allowed to access the Internet of Things network; the access request response information includes a random number generated by the core network element and a first verification information; the first verification information is obtained by the core network element generating an encryption key based on a preset key generation method and encrypting a second target character string based on the encryption key; the second target character string is obtained by sequentially concatenating a random access code, a random number and a terminal identifier; the first verification information is used by the terminal to determine whether the security verification of the core network element is passed; the preset key generation method is implemented based on the following steps: the identity encryption key assigned to the terminal by the core network element, the random access code generated by the Internet of Things terminal, the random number generated by the core network element and a single-byte constant are concatenated to generate a first target character string; based on the symmetric encryption algorithm AES-CMAC and the first target character string, an encryption key and an integrity key are generated; The core network element sends authentication response information to the Internet of Things terminal; the authentication response information is used to indicate whether the Internet of Things terminal can access the Internet of Things network.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the Internet of Things system access security processing method as described in any one of claims 1 to 5 or the Internet of Things system access security processing method as described in claim 6 is implemented.
Citation Information
Cited By
IoT security access method and device based on charging pile edge controller
CN122824460A
Iot terminal access authentication and data security collaborative control method
CN123055404A
