Control method, system and device for realizing zero-trust equipment access
Through UDP knocking technology and DH algorithm, encrypted communication between the client and the server is realized, which solves the problems of unclear key distribution, IP forgery and port amplification vulnerabilities in traditional technology, and improves the security and stability of communication. .
Patent Information
- Application Number
- CN202410957827.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-29
AI Technical Summary
Traditional zero-trust device communication technology has problems such as unclear client key distribution, lack of key rotation mechanism, serious IP forgery problems, port amplification vulnerabilities caused by shared source IP, and excessive server computing power consumption.
Adopt an independent registration mode based on UDP knocking technology, generate device fingerprints through device hardware information, calculate TOTP keys, derive knocking keys, make encryption certificate requests, and use DH algorithm to update key seeds to implement client and server Encrypted communication between them ensures that the key is not lost, and a retry mechanism and server-side reply mechanism are introduced to solve the problems of IP forgery and port amplification.
It improves the security and stability of communication, ensures that each terminal uses a unique key, prevents key leakage, reduces the computing load on the server, and enhances the ability to monitor and disable illegal devices.
Smart Images

Figure CN118869205A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer network technology, and in particular to a control method, system and device for achieving zero-trust device access. Background Art
[0002] Traditional zero-trust device communication technology uses SPA technology, that is, single-packet authorization technology, to implement network authorization, but this technology has the following limitations:
[0003] First, SPA technology does not mention how to distribute the client's initial key and how to rotate the client key. In addition, when the client uses UDP to send protocol packets, there is no retry mechanism, and the server will not reply regardless of whether the protocol packet is legal or not, and will directly execute the corresponding policy. This results in that in actual implementation, the client can only blindly request the port to determine whether it has been authorized.
[0004] When solving the problem of IP forgery, the traditional SPA technology first tries to obtain the client's external network IP and puts it in the SPA request packet to request authorization. However, this method does not take into account the situation where the client key is stolen or lost, especially when the client is in an unsafe environment, which may cause the user's legitimate client to request authorization for any IP. In addition, when the client has multiple external network exit IPs or is in an environment where the IP drifts, it will seriously affect the user experience.
[0005] Traditional SPA technology has the problem of multiple devices sharing the source IP being authorized at the same time, which is the SNAT port amplification vulnerability.
[0006] Traditional SPA technology can authorize a device as long as it has a legitimate initial key, but lacks the ability to disable the device when the key is legitimate.
[0007] Traditional SPA technology uses a simple UDP service to verify a single packet and obtain the corresponding key based on the ID. However, malicious users can forge a large number of IDs to send legitimate request packets, and the server lacks a strategy to verify whether the ID is legitimate, which will seriously consume the server's computing power to decrypt messages. Summary of the invention
[0008] The main purpose of the present invention is to provide a control method, system and device for realizing zero-trust device access, aiming to improve the security and stability of communications.
[0009] To achieve the above object, the present invention proposes a control method for implementing zero-trust device access, including:
[0010] Based on the acquired domain name identifier, the client obtains the encrypted DNS TXT record and decrypts it to obtain the device registration mode and terminal access policy, wherein the device registration mode includes autonomous registration mode, invitation registration mode and manual application mode;
[0011] The client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list;
[0012] Entering the self-registration mode, the client sends a UDP-SPA request packet to the server through UDP knocking technology;
[0013] The server constructs and encrypts the authorization reply packet based on the received UDP-SPA request packet and sends it to the client;
[0014] The client decrypts the authorization reply packet, obtains the temporary authorization code, and initiates a TCP communication request to the server;
[0015] The server verifies the temporary authorization code and establishes TCP communication with the client.
[0016] In one embodiment of the present invention, the step of entering the autonomous registration mode and sending a UDP-SPA request packet from the client to the server through the UDP knocking technology includes:
[0017] Obtain hardware information from the hardware components of the device, generate a device fingerprint using a hash algorithm and a proof-of-work algorithm, and find a corresponding key seed based on the device fingerprint;
[0018] The client calculates the TOTP key and derives the knock key from the TOTP key using a key expansion algorithm;
[0019] The client directly generates an asymmetric key, or the client uses TPM / TPCM to generate an asymmetric key;
[0020] The client generates a certificate request based on the acquired application information and the public key in the asymmetric key, and signs it using the private key in the asymmetric key;
[0021] The client uses the device fingerprint to request the service address, constructs an authorization request packet, encrypts the authorization request packet using the knock key, and then sends it to the server.
[0022] In one embodiment of the present invention, the server constructs an authorization reply packet according to the received UDP-SPA request packet, encrypts the packet, and sends the packet to the client, including:
[0023] Using a proof-of-work algorithm to verify whether the device fingerprint is legitimate, and finding the corresponding key seed based on the device fingerprint;
[0024] The server calculates the TOTP key and derives the knock key from the TOTP key using a key expansion algorithm;
[0025] The server verifies the certificate request information in the authorization request packet, performs a short-term authorization on the source IP of the authorization request packet, and writes the authorization policy into the XDP layer;
[0026] The server uses the server public key and the public key in the certificate request information to calculate the next key seed of the server using the DH algorithm;
[0027] The server generates a temporary authorization code for the client and encrypts and signs it using the server's private key, where the server's private key is a private key that is rotated regularly and is not shared with the client;
[0028] The server constructs an authorization reply package using the device fingerprint, the server public key certificate, and the temporary authorization code information, encrypts the authorization reply package using the client's knock key, and then sends it back to the client.
[0029] In one embodiment of the present invention, the step of the client decrypting the authorization reply packet, obtaining a temporary authorization code, and initiating a TCP communication request to the server includes:
[0030] The client uses the knock key to decrypt the authorization response package and obtain the temporary authorization code encrypted by the server;
[0031] The client uses the server public key in the authorization reply package and the public key generated by the client to calculate the client's next key seed using the DH algorithm;
[0032] The client sends a TCP communication request to the server according to the temporary authorization code.
[0033] In one embodiment of the present invention, the step of the server verifying the temporary authorization code and establishing TCP communication with the client includes:
[0034] The server verifies the temporary authorization code to ensure that it is valid and within the validity period.
[0035] The server replaces the current key seed with the calculated next key seed.
[0036] The server establishes TCP communication with the client.
[0037] In one embodiment of the present invention, after the server verifies the temporary authorization code and establishes TCP communication with the client, it also includes:
[0038] The client replaces the current key seed with the calculated next key seed of the client;
[0039] Before the authorization time expires, the client uses the new key seed to recalculate the knock key and sends a new UDP-SPA request packet to the server.
[0040] In one embodiment of the present invention, after the client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list, the process further includes:
[0041] Enter the invitation registration mode, the server generates an encrypted device invitation code and sends it to the client;
[0042] The client decrypts the device invitation code and obtains the key seed.
[0043] In one embodiment of the present invention, after the client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list, the process further includes:
[0044] Entering the manual application mode, the client submits a device application to the server, and the server reviews and approves the device application.
[0045] The present invention also provides a control system for implementing zero-trust device access, including:
[0046] The first initialization unit is used for obtaining the encrypted DNS TXT record according to the acquired domain name identifier, and decrypting it to obtain the device registration mode and terminal access policy;
[0047] The second initialization unit is used to enable the client to obtain the encrypted DNS SRV record and decrypt it to obtain the knock authentication service list;
[0048] The knocking request unit is used for the client to send a UDP-SPA request packet to the server through the UDP knocking technology;
[0049] The authorization reply unit is used to enable the server to construct and encrypt an authorization reply packet according to the received UDP-SPA request packet and send it to the client;
[0050] The communication request unit is used to enable the client to decrypt the authorization reply packet, obtain a temporary authorization code, and initiate a TCP communication request to the server;
[0051] The communication establishing unit is used to enable the server to verify the temporary authorization code and establish TCP communication with the client.
[0052] The present invention also provides a storage device, characterized in that it is used to store a computer program, and when the computer program is run by a processor, it executes any of the control methods for realizing zero-trust device access proposed above.
[0053] The technical solution of the present invention proposes an advanced client key distribution and rotation mechanism, which is different from the single key distribution method of the traditional method, ensuring that different terminals adopt the principle of "one machine, one secret key" when sending messages. And introduces the TOTP rotation strategy, binds the rotation of the client key to time, and achieves the effect of "one time, one secret key". In the key rotation mechanism, the present invention strictly implements the principle of "keys" not being on the ground, and innovatively uses UDP and DH algorithms to achieve bilateral consensus updates of communication keys without sending actual communication keys to the other party, thereby effectively improving the security and stability of communications.
[0054] The present invention transforms the traditional single-packet authorization process, including that the authorization strategy no longer relies solely on the external network IP in the SPA package sent by the client for authorization, but authorizes based on the client's actual access IP, and uses the rotation feature of the key to solve the IP forgery problem. At the same time, the client's retry mechanism and the server's single-packet authorization reply mechanism are added, and it is ensured that only the client can decrypt the message replied by the server.
[0055] The present invention proposes a variety of device registration schemes, including automatic registration, invitation registration or manual application mode. According to the different device registration schemes selected by the administrator, the corresponding device registration process is executed, including steps such as device fingerprint generation, key calculation, certificate request and authentication, and supports disabling illegal devices with legal keys. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0057] Figure 1 A schematic diagram of the steps of a control method for implementing zero-trust device access provided by this application;
[0058] Figure 2 Schematic diagram of the steps for the client to send a UDP-SPA request packet;
[0059] Figure 3 A flowchart showing the steps for sending an authorization reply packet to the server;
[0060] Figure 4 A flowchart of the steps for initiating a communication request for a client;
[0061] Figure 5 Flowchart of the steps to establish communication with the server.
[0062] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0064] Reference Figure 1 The present invention proposes a control method for realizing zero-trust device access, comprising:
[0065] S100, based on the acquired domain name identifier, the client obtains the encrypted DNS TXT record, and decrypts it to obtain the device registration mode and the terminal access policy, wherein the device registration mode includes an autonomous registration mode, an invitation registration mode and a manual application mode;
[0066] S200, the client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list;
[0067] S300, enters the autonomous registration mode, and through the UDP knocking technology, the client sends a UDP-SPA request packet to the server;
[0068] S400, the server constructs an authorization reply packet according to the received UDP-SPA request packet, encrypts it, and sends it to the client;
[0069] S500, the client decrypts the authorization reply packet, obtains a temporary authorization code, and initiates a TCP communication request to the server;
[0070] S600, the server verifies the temporary authorization code and establishes TCP communication with the client.
[0071] In step S100, the user enters the domain name identifier of the enterprise, and the client attempts to obtain the DNS TXT record. The DNS TXT record is a text-based record that exists in the DNS zone file and is easily read by humans and machines to retrieve information about the domain name. It stores information about the domain name, such as the email address of the website administrator, and even more specific data, such as the IP address of the network server. The client decrypts the encrypted DNS TXT record to obtain the enterprise's current device registration mode and terminal access policy.
[0072] In step S200, the DNS SRV record is a service location record used to specify the location of the server that provides a specific service. Compared with other DNS record types, the SRV record provides richer information, including the port number of the service, the target host name, and the priority and weight for load balancing. The core of the SRV record is that it can provide service discovery, which means that the client application can automatically discover the server address and port that provides a specific service by querying the DNS.
[0073] In step S300, UDP Knocking is a network security technology used to hide and protect the port open status of the server or device. Its principle is to perform port verification based on the UDP protocol, rather than completely establish a connection like a traditional TCP connection; and SPA (Single Packet Authorization) technology is a special authentication method to protect service ports from attacks, that is, a single data packet carries authentication and identification information to obtain authorization after completing the authentication, and then allow access to the service. UDP-SPA refers to sending an independent, additional SPA packet through UDP to knock on the door, thereby implementing the SPA solution of intercepting the TCP-SYN first packet for unauthorized terminals, so that TCP cannot establish a connection.
[0074] In the subsequent steps, the server decrypts and verifies the knock packet sent by the client. If the information in the knock packet is legitimate, the server sends a reply packet containing authorization information to the client. After receiving it, the client can send a request to establish communication to the server. After verification, the server can establish communication, thus completing the access of the zero-trust device.
[0075] Reference Figure 2 In one embodiment of the present application, the step S300 of entering the autonomous registration mode and sending a UDP-SPA request packet from the client to the server through the UDP knocking technology includes:
[0076] S310, obtaining hardware information from hardware components of the device, and generating a device fingerprint using a hash algorithm and a proof-of-work algorithm for the hardware information, and finding a corresponding key seed according to the device fingerprint;
[0077] S320, the client calculates a TOTP key, and derives a knock key from the TOTP key using a key expansion algorithm;
[0078] S330, the client directly generates an asymmetric key, or the client generates an asymmetric key using a TPM / TPCM;
[0079] S340, the client generates a certificate request according to the acquired application information and the public key in the asymmetric key, and signs it using the private key in the asymmetric key;
[0080] S350, the client uses the device fingerprint to request the service address, constructs an authorization request package, encrypts the authorization request package using the knock key, and then sends it to the server.
[0081] Step S310 is the process of generating device fingerprints, obtaining relevant information from the hardware components of the device, including CPUID, hard disk ID, motherboard ID, BIOS version, main network card MAC address, and GPU ID, etc., and using the hash algorithm to generate the original device fingerprint. Then, through the POW (Proof of Work) algorithm, the original device fingerprint is further calculated using the specified difficulty to generate a Nonce value. Finally, the original device fingerprint and the Nonce value are concatenated and expanded to the specified length to form the final device fingerprint. The introduction of the POW algorithm can resist DDOS attacks to solve the problem of server computing power consumption caused by a large number of forged IDs.
[0082] Step S320 is the process of calculating the knock key. The client uses the target authentication address, the final fingerprint of the device and the key seed to calculate the TOTP key, and then uses the key expansion algorithm to derive the symmetric key and signature key from the TOTP key.
[0083] After the asymmetric key is generated in step S330, step S340 starts to construct a certificate request, and then step S350 is executed. The client uses the client device fingerprint to request the service address, the environmental security check value PCR and other information to construct a request package, and then encrypts the request package and sends it to the server.
[0084] Reference Figure 3 In one embodiment of the present application, the server constructs and encrypts an authorization reply packet according to the received UDP-SPA request packet and sends it to the client in step S400, including:
[0085] S410, using a proof-of-work algorithm to verify whether the device fingerprint is legitimate, and finding a corresponding key seed according to the device fingerprint;
[0086] S420, the server calculates the TOTP key, and derives the knock key from the TOTP key using a key expansion algorithm;
[0087] S430, the server verifies the certificate request information in the authorization request packet, performs a short-term authorization on the source IP of the authorization request packet, and writes the authorization policy into the XDP layer;
[0088] S440, the server uses the server public key and the public key in the certificate request information to calculate the next key seed of the server using the DH algorithm;
[0089] S450, the server generates a temporary authorization code for the client, and encrypts and signs the code using a server-specific key, wherein the server-specific key is a private key and is rotated regularly and is not shared with the client;
[0090] S460, the server constructs an authorization response package using the device fingerprint, the server public key certificate, and the temporary authorization code information, and encrypts the authorization response package using the knock key of the client, and then sends it back to the client.
[0091] Step S410 first verifies whether the Nonce is legal using the POW algorithm, and then searches for the generated key corresponding to the device based on the device fingerprint. Then, step S420 is executed, and the server uses its own authentication address, the device's final fingerprint and the generated key to calculate the TOTP key, and then uses the key expansion algorithm to derive the symmetric key and signature key from the TOTP key, i.e. the knock key.
[0092] In step S430, in order to verify the client, the server verifies the certificate request information in the request packet, including the environment PCR value, etc. If it is illegal, no reply will be given. If it is legal, the firewall policy will continue to be executed downward, the source IP of the client request packet will be authorized for a short time, and the authorization policy will be written into the XDP layer.
[0093] Step S440 calculates the next key seed mainly to maintain communication. When the authorization time expires, the knock key can be recalculated using the new key seed and the knock packet can be sent.
[0094] In step S450, the temporary authorization code includes information about the authorized terminal, authorized service, and authorization expiration time, and the temporary authorization code supports client certificate form and short code form. Then, step S460 is executed to construct and encrypt the authorization reply package.
[0095] Reference Figure 4 In one embodiment of the present application, the client decrypts the authorization reply packet, obtains a temporary authorization code, and initiates a TCP communication request to the server at step S500, including:
[0096] S510, the client uses the knock key to decrypt the authorization response packet and obtains a temporary authorization code encrypted by the server;
[0097] S520, the client uses the server public key in the authorization reply packet and the public key generated by the client to calculate the client's next key seed using the DH algorithm;
[0098] S530: The client sends a TCP communication request to the server according to the temporary authorization code.
[0099] After decrypting the authorization reply packet, a temporary authorization is obtained, and then the next key seed is calculated to maintain communication. When the authorization time expires, the knock key can be recalculated using a new key seed and the knock packet can be sent. In step S530, for the temporary authorization code in the form of a certificate, it is attached to the subsequent TLS process to establish communication with the server. For the temporary authorization code in the form of a short code, it is attached to the TCP SYN message body, or the TCP Option field or the TLS Hello extension to establish communication with the server.
[0100] Reference Figure 5 In one embodiment of the present application, the server verifies the temporary authorization code and establishes TCP communication with the client in step S600, including:
[0101] S610, the server verifies the temporary authorization code to determine whether it is legal and within the validity period;
[0102] S620, the server uses the calculated next key seed of the server to replace the current key seed of the server;
[0103] S630: The server establishes TCP communication with the client.
[0104] After the server decrypts and verifies the authorization code, it confirms the next key seed and TCP communication can be established.
[0105] In one embodiment of the present application, after the step S600 of the server verifying the temporary authorization code and establishing TCP communication with the client, the following steps are further included:
[0106] S700, the client uses the calculated next key seed of the client to replace the current key seed of the client;
[0107] S800: Before the authorization time expires, the client recalculates the knock key using the new key seed and sends a new UDP-SPA request packet to the server.
[0108] These two steps are to maintain communication. Before the authorization time expires, a new key seed can be used to recalculate the knock key and send a knock packet to maintain communication without disconnection.
[0109] In one embodiment of the present application, after the client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list in step S200, the following steps are further included:
[0110] S210, entering the invitation registration mode, the server generates an encrypted device invitation code and sends it to the client;
[0111] S211, the client decrypts the device invitation code and obtains a key seed.
[0112] In the invitation registration mode, the server needs to generate a device invitation code in advance and encrypt it and distribute it to the user's device. The client decrypts the device invitation code and obtains the key seed, and the subsequent process is the same as the automatic registration mode.
[0113] In one embodiment of the present application, after the client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list in step S200, the following steps are further included:
[0114] S220, entering the manual application mode, the client submits a device application to the server, and the server reviews and approves the device application.
[0115] In manual application mode, users need to actively submit device applications. Therefore, for the server, when receiving an unknown device ID and a legal SPA package, it only records but does not respond. The administrator needs to manually approve device ID access in the background. The subsequent process is the same as the automatic registration mode.
[0116] The technical solution of the present invention proposes an advanced client key distribution and rotation mechanism, which is different from the single key distribution method of the traditional method, ensuring that different terminals adopt the principle of "one machine, one secret key" when sending messages. And introduces the TOTP rotation strategy, binds the rotation of the client key to time, and achieves the effect of "one time, one secret key". In the key rotation mechanism, the present invention strictly implements the principle of "keys" not being on the ground, and innovatively uses UDP and DH algorithms to achieve bilateral consensus updates of communication keys without sending actual communication keys to the other party, thereby effectively improving the security and stability of communications.
[0117] The present invention transforms the traditional single-packet authorization process, including that the authorization strategy no longer relies solely on the external network IP in the SPA package sent by the client for authorization, but authorizes based on the client's actual access IP, and uses the rotation feature of the key to solve the IP forgery problem. At the same time, the client's retry mechanism and the server's single-packet authorization reply mechanism are added, and it is ensured that only the client can decrypt the message replied by the server.
[0118] The present invention uses UDP plus TCP flow association technology to solve the SNAT port amplification problem in traditional single-packet authorization. The response to the UDP-SPA packet on the server side carries the authorization code of the TCP stream, and requires subsequent TCP traffic to carry the authorization code for access. In order to further resist DDOS attacks, the present invention innovatively introduces the POW algorithm to solve the problem of server computing power consumption caused by a large number of forged IDs, and uses XDP plus UDP double-layer protection technology to process SPA packets, that is, the legitimacy of UDP packets and TCP packets is verified at the XDP layer, and packet authorization is performed at the UDP layer, and the authorization rules are written back to the XDP layer, thereby reducing the data copy consumption from kernel state to user state, and significantly improving the processing capacity of single-packet authorization services.
[0119] The present invention proposes a variety of device registration schemes, including automatic registration, invitation registration or manual application mode. According to the different device registration schemes selected by the administrator, the corresponding device registration process is executed, including steps such as device fingerprint generation, key calculation, certificate request and authentication, and supports disabling illegal devices with legal keys.
[0120] The present invention innovatively supports the use of TPM / TPCM chips to solve the problem of easy leakage of message keys on the client side, and supports remote attestation by carrying the PCR value in the TPM / TPCM when sending an SPA packet, thereby realizing the delivery of the trusted chain verification at the bottom layer of the system to the authentication service.
[0121] The present invention also proposes a control system for implementing zero-trust device access, comprising:
[0122] The first initialization unit is used for obtaining the encrypted DNS TXT record according to the acquired domain name identifier, and decrypting it to obtain the device registration mode and terminal access policy;
[0123] The second initialization unit is used to enable the client to obtain the encrypted DNS SRV record and decrypt it to obtain the knock authentication service list;
[0124] The knocking request unit is used for the client to send a UDP-SPA request packet to the server through the UDP knocking technology;
[0125] The authorization reply unit is used to enable the server to construct and encrypt an authorization reply packet according to the received UDP-SPA request packet and send it to the client;
[0126] The communication request unit is used to enable the client to decrypt the authorization reply packet, obtain a temporary authorization code, and initiate a TCP communication request to the server;
[0127] The communication establishing unit is used to enable the server to verify the temporary authorization code and establish TCP communication with the client.
[0128] Various objects such as various messages / information / equipment / network elements / systems / devices / actions / operations / processes / concepts that may appear in this application are named. It can be understood that these specific names do not constitute a limitation on the relevant objects. The names assigned may change with factors such as scenarios, contexts or usage habits. The understanding of the technical meaning of the technical terms in this application should be mainly determined from the functions and technical effects embodied / executed in the technical scheme.
[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0130] In the embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0133] It should also be understood that in various embodiments of the present application, the first, second, etc. are only used to indicate that multiple objects are different. For example, the first time window and the second time window are only used to indicate different time windows. They should not have any impact on the time window itself, and the first, second, etc. mentioned above should not impose any limitations on the embodiments of the present application.
[0134] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0135] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a computer-readable storage medium, including several 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 methods described in each embodiment of the present application. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0136] The present application also provides a computer program product, which includes instructions. When the instructions are executed, the network switch and the network system perform operations of the network switch and the network system corresponding to the above method.
[0137] The present application also provides a network system, the system comprising:
[0138] one or more memories for storing instructions; and
[0139] One or more processors are used to call and run the instructions from the memory to execute the method as described above.
[0140] The present application also provides a chip system, which includes a processor for implementing the functions involved in the above content, such as generating, receiving, sending, or processing the data and / or information involved in the above method.
[0141] The chip system may be composed of chips, or may include chips and other discrete devices.
[0142] The processor mentioned in any of the above places can be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for executing programs for controlling the above-mentioned feedback information transmission method.
[0143] In a possible design, the chip system also includes a memory, which is used to store necessary program instructions and data. The processor and the memory can be decoupled and respectively set on different devices, connected by wire or wireless means to support the chip system to implement various functions in the above embodiments. Alternatively, the processor and the memory can also be coupled on the same device.
[0144] Optionally, the computer instructions are stored in a memory.
[0145] Optionally, the memory is a storage unit within the chip, such as a register, a cache, etc. The memory can also be a storage unit within the terminal located outside the chip, such as a ROM or other types of static storage devices that can store static information and instructions, RAM, etc.
[0146] It can be understood that the memory in the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.
[0147] The non-volatile memory may be a ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), or a flash memory.
[0148] The volatile memory may be a RAM, which is used as an external cache. There are many different types of RAM, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory.
[0149] The embodiments of this specific implementation method are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore, all equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A control method for implementing zero-trust device access, characterized in that: include Based on the acquired domain name identifier, the client obtains the encrypted DNS TXT record and decrypts it to obtain the device registration mode and terminal access policy, wherein the device registration mode includes autonomous registration mode, invitation registration mode and manual application mode; The client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list; Entering the self-registration mode, the client sends a UDP-SPA request packet to the server through UDP knocking technology; The server constructs and encrypts the authorization reply packet based on the received UDP-SPA request packet and sends it to the client; The client decrypts the authorization reply packet, obtains the temporary authorization code, and initiates a TCP communication request to the server; The server verifies the temporary authorization code and establishes TCP communication with the client.
2. The control method for realizing zero-trust device access according to claim 1, characterized in that: The step of entering the autonomous registration mode and sending a UDP-SPA request packet from the client to the server through the UDP knocking technology includes: Obtain hardware information from the hardware components of the device, generate a device fingerprint using a hash algorithm and a proof-of-work algorithm, and find a corresponding key seed based on the device fingerprint; The client calculates the TOTP key and derives the knock key from the TOTP key using a key expansion algorithm; The client directly generates an asymmetric key, or the client uses TPM / TPCM to generate an asymmetric key; The client generates a certificate request based on the acquired application information and the public key in the asymmetric key, and signs it using the private key in the asymmetric key; The client uses the device fingerprint to request the service address, constructs an authorization request packet, encrypts the authorization request packet using the knock key, and then sends it to the server.
3. The control method for realizing zero-trust device access according to claim 2, characterized in that: The server constructs and encrypts an authorization reply packet according to the received UDP-SPA request packet, and sends the packet to the client, including: Using a proof-of-work algorithm to verify whether the device fingerprint is legitimate, and finding the corresponding key seed based on the device fingerprint; The server calculates the TOTP key and derives the knock key from the TOTP key using a key expansion algorithm; The server verifies the certificate request information in the authorization request packet, performs a short-term authorization on the source IP of the authorization request packet, and writes the authorization policy into the XDP layer; The server uses the server public key and the public key in the certificate request information to calculate the next key seed of the server using the DH algorithm; The server generates a temporary authorization code for the client and encrypts and signs it using the server's private key, where the server's private key is a private key that is rotated regularly and is not shared with the client; The server constructs an authorization reply package using the device fingerprint, the server public key certificate, and the temporary authorization code information, encrypts the authorization reply package using the client's knock key, and then sends it back to the client.
4. The control method for realizing zero-trust device access according to claim 3, characterized in that: The client decrypts the authorization reply packet, obtains a temporary authorization code, and initiates a TCP communication request to the server, including: The client uses the knock key to decrypt the authorization response package and obtain the temporary authorization code encrypted by the server; The client uses the server public key in the authorization reply package and the public key generated by the client to calculate the client's next key seed using the DH algorithm; The client sends a TCP communication request to the server according to the temporary authorization code.
5. The control method for realizing zero-trust device access according to claim 4, characterized in that: The step of the server verifying the temporary authorization code and establishing TCP communication with the client includes: The server verifies the temporary authorization code to ensure that it is valid and within the validity period. The server replaces the current key seed with the calculated next key seed. The server establishes TCP communication with the client.
6. The control method for realizing zero-trust device access according to claim 5, characterized in that: After the server verifies the temporary authorization code and establishes TCP communication with the client, the server also includes: The client replaces the current key seed with the calculated next key seed of the client; Before the authorization time expires, the client uses the new key seed to recalculate the knock key and sends a new UDP-SPA request packet to the server.
7. The control method for realizing zero-trust device access according to claim 1, characterized in that: After the client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list, the process further includes: Enter the invitation registration mode, the server generates an encrypted device invitation code and sends it to the client; The client decrypts the device invitation code and obtains the key seed.
8. The control method for realizing zero-trust device access according to claim 1, characterized in that: After the client obtains the encrypted DNS SRV record and decrypts it to obtain the knock authentication service list, the process further includes: Entering the manual application mode, the client submits a device application to the server, and the server reviews and approves the device application.
9. A control system for implementing zero-trust device access, characterized in that: include The first initialization unit is used for obtaining the encrypted DNS TXT record according to the acquired domain name identifier, and decrypting it to obtain the device registration mode and terminal access policy; The second initialization unit is used to enable the client to obtain the encrypted DNS SRV record and decrypt it to obtain the knock authentication service list; The knocking request unit is used for the client to send a UDP-SPA request packet to the server through the UDP knocking technology; The authorization reply unit is used to enable the server to construct and encrypt an authorization reply packet according to the received UDP-SPA request packet and send it to the client; The communication request unit is used to enable the client to decrypt the authorization reply packet, obtain a temporary authorization code, and initiate a TCP communication request to the server; The communication establishing unit is used to enable the server to verify the temporary authorization code and establish TCP communication with the client.
10. A storage device, characterized in that: Used to store a computer program, which, when executed by a processor, executes the control method for implementing zero-trust device access as described in any one of claims 1 to 8.
