Client access authentication method, system, device and medium based on zero trust
By generating and verifying the client's unique fingerprint information and serial number, combined with the correlation between UDP and TCP protocols, the problem of TCP port exposure and insufficient authentication in the existing technology is solved, the server's secure invisibility and connection verification are achieved, and the problem of Illegal attack.
Patent Information
- Application Number
- CN202410374166.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-03-29
AI Technical Summary
In the existing technology, the TCP port of the application system is exposed in the network environment, making it impossible to achieve complete invisibility, and the authentication strength is insufficient. Illegal attackers can use the authentication information of legitimate users to conduct illegal connections and conduct denial-of-service attacks on TCP connections.
Register by generating globally unique and immutable client fingerprint information, and use a UDP authentication package containing fingerprint information and a random serial number for initial verification. TCP connections are only allowed after the verification is passed, combined with the seq information in the SYN package. Verify to ensure the legitimacy of the connection.
It achieves complete invisibility of the server TCP port, enhances the security of network communication, avoids illegal attacks and denial of service attacks, and ensures that only authenticated clients can establish connections.
Smart Images

Figure CN118473693B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electronic digital data processing, and in particular relates to a client access authentication method and system based on zero trust. Background Art
[0002] In traditional computer technology, when an application system provides an application service based on the TCP protocol, it must first open one or more TCP ports to allow all clients to access them, or open these open ports to some IP addresses through static firewall rules. In this case, the TCP ports opened by the application system are fully or partially exposed to the network environment, and cannot be completely invisible, making them vulnerable to network attacks.
[0003] In response to such a situation, the current existing technology first sends a "knock authentication packet" to the open UDP port for authentication. After the authentication is passed, the firewall rules are used to allow the IP of the authenticated device to access the previously opened but network-invisible TCP port. However, in this case, the following problems still exist:
[0004] If the "knock authentication package" does not contain information about the client hardware, the package cannot verify whether the client hardware is legitimate, resulting in incomplete authentication information and insufficient strength.
[0005] If the authenticated client connects to the server on the public Internet at home or in public places such as Internet cafes and coffee shops, and all devices in these places use the same router to access the Internet, then these devices all have the same public IP (that is, the public IP of this router). At this time, for the server on the public Internet, as long as one device passes the authentication, other devices can correctly connect to the server. If an illegal attacker hides among them, he can use the authenticated device to successfully connect to the server.
[0006] Even if the legitimate authenticator and the illegal intruder are not on the same router, the illegal intruder can intercept the "knock authentication package" through network monitoring, and then use this authentication package to perform authentication. If the authentication is successful, the illegal intruder can connect illegally.
[0007] In both cases (2) and (3) above, an illegal attacker can complete the three-way handshake of the TCP connection and establish a connection. Even if the service authentication after TCP establishment fails and is forced to be disconnected, the illegal attacker can still launch a "half-connection" or "full-connection" denial of service attack on the server during the three-way handshake phase of the TCP connection, thereby crashing the server.
[0008] Through the above analysis, the problems and defects of the prior art are as follows:
[0009] The TCP ports opened by existing application systems are fully or partially exposed to the network environment and cannot be completely invisible;
[0010] In existing zero-trust products, when using the "knock authentication package", hardware information is not included, and the authentication strength is insufficient;
[0011] Illegal attackers can use or intercept the authentication information passed by legitimate users to illegally connect to the server;
[0012] Illegal attackers can launch a "half-connection" or "full-connection" denial-of-service attack on the server during the three-way handshake phase of the TCP connection, causing the server to crash. Summary of the invention
[0013] In view of the problems existing in the prior art, the present invention provides a zero-trust based client access authentication method, system and device.
[0014] The present invention is implemented in this way: a client access authentication method based on zero trust, comprising:
[0015] S1, the server provides services to the outside world, opens a TCP port, uses firewall rules, and does not allow any client to connect to it, making it completely invisible on the network;
[0016] S2, first generate the fingerprint information of the client, which is globally unique and immutable and can effectively represent the client device; then register the client fingerprint information to the server, and bind the IP address used by the client and the fingerprint information of the client together;
[0017] S3, the client first generates a UDP authentication packet, which contains the client fingerprint information and a randomly generated 32-bit integer sequence number (seq information), and then encrypts the packet and sends it to the server, while recording the sequence number seq information for backup; the server verifies the client fingerprint information and seq information, the client fingerprint information must be information that has been registered before, and the seq information must be information that has not been used before. If it has been used, it means that someone has used the intercepted authentication package to repeat the authentication. If the verification is successful, the server sets the firewall rules to allow the client to connect to the server within a certain time window, and records the client IP and client seq; if the verification fails, the firewall rules do not allow the client to connect to the server;
[0018] S4, after completing step S2, the client does not wait for the return information from the server, but generates a SYN packet, the first packet of the three-way handshake when TCP is connected. The seq data in the SYN packet uses the seq information generated in step S2 and is sent to the server;
[0019] S5, after receiving the SYN packet, extracts the seq information and checks whether the information and the IP address have been received in S2 before. If it has been received and the seq information and the IP address match, the connection is allowed to be established normally. Otherwise, the information is discarded and the connection is not allowed to be established.
[0020] Furthermore, S1 also includes: opening a UDP port to allow other clients to connect, and for receiving a verification packet sent by the client.
[0021] Furthermore, S2 also includes establishing a two-way certificate authentication system for future communications between the two parties.
[0022] Furthermore, the verification process in S3 is as follows: after the server receives the knock authentication package, it first finds the corresponding communication certificate based on its source IP, authenticates and decompresses the package, obtains the client fingerprint information and serial number seq information inside, and verifies the consistency between the client fingerprint information, communication certificate, and IP address.
[0023] Another object of the present invention is to provide a zero-trust-based client access authentication system applying the zero-trust-based client access authentication method, comprising:
[0024] The server-side network stealth module is used to hide the opened TCP port, which cannot be scanned by the outside world. At the same time, a UDP port is opened. If the client wants to connect to the TCP port of the server, it must first send an authentication packet to the UDP port. Only after the authentication is passed can it connect;
[0025] The client hardware fingerprint collection and registration module is used to register the legal client hardware fingerprint information to the server;
[0026] UDP single-packet knock authentication packet sending module is used to send the authentication information of the client including the client fingerprint information and a random 32-bit seq information to the server in the form of a UDP packet, and the server verifies it;
[0027] SYN handshake packet sending module, used to include the seq information in the client's single-packet knock authentication packet in the SYN packet during the first handshake of the TCP connection and send it to the server;
[0028] The SYN handshake packet verification module is used to verify the seq information of the UDP single packet authentication and the seq information of the SYN packet during the first handshake of the TCP connection. When the two are consistent, the connection is established.
[0029] Another object of the present invention is to provide a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the processor executes the steps of the zero-trust-based client access authentication method.
[0030] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the zero-trust-based client access authentication method.
[0031] Another object of the present invention is to provide an information data processing terminal, which is used to implement the zero-trust-based client access authentication system.
[0032] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:
[0033] First, the present invention implements a client access authentication method based on a zero-trust security model, which registers the device by generating unique and immutable client fingerprint information, and uses a UDP authentication packet to perform initial authentication with the server. After the authentication is passed, the client immediately attempts a TCP connection, and the server determines whether to allow the connection based on the authentication information and firewall rules received in advance. This method uses a pre-set communication protocol and serial number mechanism to ensure that only authenticated clients can establish a connection, effectively improving the security of network communications.
[0034] 1. The TCP port opened by the server can be completely invisible on the network and cannot be scanned, thus avoiding attacks.
[0035] 2. The client must first register with the server. Unregistered clients cannot connect to the server to avoid being attacked.
[0036] 3. Before the client connects to the server, it must first send a UDP authentication packet to the server. Clients that fail the authentication cannot connect to the server, thus avoiding attacks.
[0037] 4. After the client passes the UDP authentication package authentication, when connecting to the server, the seq of the first SYN packet of the TCP connection three-way handshake must be the same as the seq in the UDP authentication package and match the authenticated IP address, otherwise the connection cannot be made, thereby preventing other devices from illegally obtaining the UDP verification package by capturing packets and pretending to be legitimate devices to make illegal connections.
[0038] Second, the TCP port opened by the application system provided by the present invention can be completely invisible and cannot be sensed by unauthenticated devices, thereby avoiding illegal attacks; when any device needs to connect to the server, it must first use the "knock authentication package" for authentication. The authentication information contains hardware information and the seq information required for the subsequent TCP handshake, thereby ensuring the correlation between the TCP connection and the UDP authentication; it prevents illegal attackers from using the authentication information of legitimate users to illegally connect to the client; it prevents illegal attackers from intercepting the authentication information of legitimate users and illegally connecting to the client; it prevents illegal attackers from performing "half-connection" or "full-connection" denial of service attacks on the server during the three-way handshake phase of the TCP connection.
[0039] Third, the technical solution of the present invention fills a technical gap in the industry at home and abroad: in other products with "UDP knocking authentication" at home and abroad, UDP authentication and TCP connection are separated. As long as the UDP authentication is passed, the client with the same IP can then use TCP to connect to the server. However, in the present invention, seq information is used to organically combine UDP authentication and TCP connection. Even if UDP authentication is passed, if the seq information in the UDP authentication package is unknown, TCP connection cannot be made.
[0040] The technical solution of the present invention solves a technical problem that people have been eager to solve but have never been successful: for a system with hidden ports, after a client device passes the "UDP knocking" verification, the server will allow the IP address of the client device to connect to the server through the TCP protocol. At this time, if there are other illegal devices impersonating the IP, before the technical solution of the present invention, these illegal devices can be connected to the server through TCP, and the server cannot distinguish whether these connections are legal or illegal. In this way, these illegal devices can use the three-way handshake when establishing the TCP connection to carry out a "half-connection" or "full-connection" denial of service attack on the server. However, the present invention must use the seq information generated in the "UDP knocking information" to perform the TCP three-way handshake to complete the TCP connection, otherwise the handshake cannot be performed, thereby avoiding the "half-connection" or "full-connection" denial of service attack or other attacks.
[0041] The technical solution of the present invention overcomes the following technical prejudice: Before the present invention, there has always been a technical prejudice that the server cannot distinguish the legitimacy of the connection from the fake legitimate IP, so these fake IPs can establish TCP connections with the server. After the present invention, there is a criterion for judging the legitimacy, so the TCP connection from the fake IP address can be rejected, ensuring the security of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. 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 these drawings without creative work.
[0043] Figure 1 It is a flow chart of a zero-trust-based client access authentication method provided by an embodiment of the present invention;
[0044] Figure 2 It is a structural diagram of a zero-trust-based client access authentication system provided by an embodiment of the present invention;
[0045] Figure 3 It is a working principle diagram of the server network stealth module provided by an embodiment of the present invention;
[0046] Figure 4 It is a working principle diagram of the client hardware fingerprint collection and registration module provided by an embodiment of the present invention;
[0047] Figure 5 It is a working principle diagram of a UDP single-packet knock authentication packet sending module provided by an embodiment of the present invention;
[0048] Figure 6 It is a working principle diagram of the SYN handshake packet module provided by an embodiment of the present invention;
[0049] Figure 7 It is a working principle diagram of the SYN handshake packet verification module provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0051] In view of the problems existing in the prior art, the present invention provides a zero-trust based client access authentication method, system and device. The present invention is described in detail below in conjunction with the accompanying drawings.
[0052] like Figure 1 As shown, the zero-trust-based client access authentication method provided by an embodiment of the present invention includes:
[0053] S1, the server provides services to the outside world, opens a TCP port, uses firewall rules, and does not allow any client to connect to it, making it completely invisible on the network;
[0054] S2, first generate the fingerprint information of the client, which is globally unique and immutable and can effectively represent the client device; then register the client fingerprint information to the server, and bind the IP address used by the client and the fingerprint information of the client together;
[0055] S3, the client first generates a UDP authentication packet, which contains the client fingerprint information and a randomly generated 32-bit integer sequence number (seq information), and then encrypts the packet and sends it to the server, while recording the sequence number seq information for backup; the server verifies the client fingerprint information and seq information, the client fingerprint information must be information that has been registered before, and the seq information must be information that has not been used before. If it has been used, it means that someone has used the intercepted authentication package to repeat the authentication. If the verification is successful, the server sets the firewall rules to allow the client to connect to the server within a certain time window, and records the client IP and client seq; if the verification fails, the firewall rules do not allow the client to connect to the server;
[0056] S4, after completing step S2, the client does not wait for the return information from the server, but generates a SYN packet, the first packet of the three-way handshake when TCP is connected. The seq data in the SYN packet uses the seq information generated in step S2 and is sent to the server;
[0057] S5, after receiving the SYN packet, extracts the seq information and checks whether the information and the IP address have been received in S2 before. If it has been received and the seq information and the IP address match, the connection is allowed to be established normally. Otherwise, the information is discarded and the connection is not allowed to be established.
[0058] Furthermore, S1 also includes: opening a UDP port to allow other clients to connect, and for receiving a verification packet sent by the client.
[0059] Furthermore, S2 also includes establishing a two-way certificate authentication system for future communications between the two parties.
[0060] Furthermore, the verification process in S3 is as follows: after the server receives the knock authentication package, it first finds the corresponding communication certificate based on its source IP, authenticates and decompresses the package, obtains the client fingerprint information and serial number seq information inside, and verifies the consistency between the client fingerprint information, communication certificate, and IP address.
[0061] like Figure 2 As shown, the zero-trust-based client access authentication system provided by an embodiment of the present invention includes:
[0062] like Figure 3As shown in the figure, the server network stealth module is used to hide the opened TCP port, which cannot be scanned by the outside world. At the same time, a UDP port is opened. If the client wants to connect to the TCP port of the server, it must first send an authentication packet to the UDP port. Only after the authentication is passed can it connect;
[0063] like Figure 4 As shown, the client hardware fingerprint collection and registration module is used to register the legal client fingerprint information to the server;
[0064] like Figure 5 As shown, the UDP single-packet knock authentication packet sending module is used to send the authentication information of the client including the client fingerprint information to the server in the form of a UDP packet;
[0065] like Figure 6 As shown, the SYN handshake packet module is used to include the fingerprint information of the client in the SYN packet during the first handshake of the TCP connection and send it to the server;
[0066] like Figure 7 As shown, the SYN handshake packet verification module is used to verify the UDP single packet authentication information and the authentication information of the SYN packet during the first handshake of the TCP connection. When the two are consistent, the connection is established.
[0067] The client access authentication system based on zero trust in the present invention includes: a server network stealth module, a client hardware fingerprint collection and registration module, a UDP single packet knocking authentication packet sending module, a client sending SYN handshake packet module with client fingerprint information, and a SYN handshake packet verification module.
[0068] Using the system to perform client hardware access authentication includes the following steps:
[0069] S1) The server provides external services, opens a TCP port, and does not allow any connection initially, making it completely invisible on the network. At the same time, it opens a UDP port to allow other clients to connect.
[0070] S2) Client hardware fingerprint collection and registration module: This module registers the client's fingerprint information to the server.
[0071] S3) UDP single-packet knocking authentication packet sending module: This module enables the client to send a UDP authentication packet to the server UDP port.
[0072] S4) The client sends a SYN handshake packet module with client fingerprint information: This module enables the client to generate a SYN packet, the first packet of a three-way handshake when a TCP connection is established. The seq data in the SYN packet uses the seq information generated in step S2 and is sent to the server.
[0073] S5) After receiving the SYN packet, the SYN handshake packet verification module performs verification. If the verification passes, the connection is allowed to be established normally. Otherwise, the information is discarded and the connection is not allowed to be established.
[0074] In this embodiment, the system is used to perform client hardware access authentication. In step S1), the server provides external services, opens a TCP port, uses firewall rules, and does not allow any client to connect to it, so as to achieve complete network invisibility. At the same time, a UDP port is opened to allow other clients to connect, so as to receive the verification packet sent by the client.
[0075] In this embodiment, the system is used to perform client hardware access authentication. In step S2), the client's fingerprint information is first generated. The fingerprint information is globally unique and unchangeable, and can effectively represent the client device. Then the client fingerprint information is registered to the server, and the IP address used by the client and the client fingerprint information are bound together. A two-way certificate authentication system is also established for future communication between the two parties.
[0076] In this embodiment, the system is used to perform client hardware access authentication. In step S3), the client first generates a UDP authentication packet, which contains "client fingerprint information" and a randomly generated 32-bit integer sequence number (called seq), and then encrypts the packet and sends it to the server, while recording the sequence number seq information for backup. After receiving the knock authentication packet, the server first finds the corresponding communication certificate based on its source IP, authenticates and decompresses the packet, obtains the client fingerprint information and sequence number seq inside, and verifies the consistency between the client fingerprint information, communication certificate, and IP address. If the verification is successful, the server sets a firewall rule to allow the client to connect to the server within a certain time window, and records the client IP and client seq. If the verification fails, the firewall rule does not allow the client to connect to the server.
[0077] In this embodiment, the system is used to perform client hardware access authentication. In step S4), it is required that after completing step S2), the client does not wait for the return information of the server, and generates a SYN packet, the first packet of the three-way handshake when TCP is connected. The seq data in the SYN packet uses the seq information generated in step S2 and is sent to the server.
[0078] In this embodiment, the system is used to perform client hardware access authentication.
[0079] An application embodiment of the present invention provides a computer device, which includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of a zero-trust-based client access authentication method.
[0080] An application embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of a zero-trust-based client access authentication method.
[0081] An application embodiment of the present invention provides an information data processing terminal, which is used to implement a zero-trust-based client access authentication system.
[0082] In order to more fully illustrate the creativity and technical value of the technical solution of the present invention, the present invention will further describe in detail the verification environment, verification steps, and the technical achievements demonstrated by these steps.
[0083] 1) Verification environment description
[0084] Client: The device with IP address 192.168.1.100 simulates the access behavior of the end user.
[0085] WEB security gateway: The server IP address is 192.168.1.10, and the TCP and UDP ports 51000 are open, acting as an intermediary between the client and the protected application.
[0086] Protected application: IP address is 192.168.1.111, service port is TCP 80, and it provides web services.
[0087] 2) Verification steps
[0088] 1. Network stealth verification:
[0089] Try to ping 192.168.1.10 and 192.168.1.111 from the client to verify the network invisibility status of the server and the protected application.
[0090] Use telnet to try to connect to TCP port 51000 of 192.168.1.10 and TCP port 80 of 192.168.1.111 to verify the feasibility of direct connection.
[0091] 2. UDP authentication process verification:
[0092] The client browser sends a UDP authentication packet to the UDP port 51000 of the WEB security gateway for identity authentication.
[0093] The client uses different temporary ports to initiate connection and authentication to the TCP 51000 port of the WEB security gateway.
[0094] 3. TCP data request process verification:
[0095] The example of port 64137 is used to explain the data request and response process in detail.
[0096] Observe and record the entire communication process from the end of authentication to the completion of data request.
[0097] 3) Verification results and technical achievements
[0098] Enhanced security: When the client cannot directly access the WEB security gateway and protected applications, it obtains access rights through a specific authentication process, which increases the security of network communications.
[0099] Implementation of zero-trust authentication mechanism: Through the use of UDP authentication packages and verification of random sequence numbers, the zero-trust security model is effectively implemented to ensure that only authenticated clients can access services.
[0100] Effective intermediary role: The WEB security gateway successfully acts as an intermediary between the client and the protected application, ensuring the security and effectiveness of data exchange.
[0101] Transparent forwarding of network traffic: The client's request is forwarded to the protected application through the WEB security gateway, and the application's response is returned to the client, realizing transparent processing of data requests and responses.
[0102] The technical solution of the present invention effectively implements the zero-trust security model by creating a secure and controllable network access environment, thereby improving the security and reliability of network communications. This solution demonstrates significant technical advantages in protecting sensitive network resources, preventing unauthorized access and data leakage, etc.
[0103] The zero-trust based client access authentication method provided by the present invention provides a safe and effective way to control access to the server. The following are two specific embodiments and their implementation schemes:
[0104] Example 1: Enterprise Internal Network Security Control
[0105] Implementation plan:
[0106] 1) Server settings: The company's internal server sets a TCP port and uses firewall rules to achieve network invisibility to ensure that it is not accessed by unauthorized clients.
[0107] 2) Client fingerprint generation: Generate unique fingerprint information for each enterprise employee's device and register this information to the server. This fingerprint information is bound to the employee's device IP address.
[0108] 3) UDP authentication packet: When employees try to access the server, their devices automatically generate a UDP authentication packet containing fingerprint information and a random sequence number, and encrypt it and send it to the server.
[0109] 4) Firewall adjustment: The server verifies the fingerprint and serial number. If the verification is successful, the firewall rules are adjusted to allow the device to access the server within a certain period of time.
[0110] 5) TCP connection attempt: The employee’s device will attempt to establish a connection with the server through the TCP protocol, where the SYN packet contains the previously generated sequence number.
[0111] 6) Connection confirmation: The server checks the sequence number and IP address in the SYN packet. If the information is valid and matches, the connection is allowed to be established.
[0112] Application scenarios:
[0113] Applicable to enterprise internal networks that require high security, especially those involving access control of sensitive data and internal resources.
[0114] Example 2: Remote access control system
[0115] Implementation plan:
[0116] 1) Remote server configuration: Set up a remote access server, open TCP ports and use firewall rules to achieve network invisibility.
[0117] 2) User device fingerprint registration: Remote users need to register their device’s fingerprint information to the remote server and bind its public IP address.
[0118] 3) UDP authentication: When a user attempts to access a remote server, their device sends an encrypted UDP authentication packet containing fingerprint information and a sequence number.
[0119] 4) Access authorization: The server verifies the fingerprint information and serial number. If the verification is successful, the device is allowed to establish a connection within the specified time window.
[0120] 5) TCP attempt: The user device sends a TCP SYN packet containing a sequence number to try to establish a connection.
[0121] 6) Connection verification and establishment: The server verifies the sequence number and IP address of the SYN packet during the TCP connection handshake. If the verification passes, the connection is allowed to be established.
[0122] Application scenarios:
[0123] It is suitable for systems that provide remote access services, such as remote office and distance education platforms, and can effectively prevent unauthorized access and data leakage.
[0124] The two embodiments provided by the present invention demonstrate how to apply a zero-trust-based client access authentication method in different network environments, thereby improving system security and controlling access rights.
[0125] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. A person of ordinary skill in the art will understand that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0126] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A client access authentication method based on zero trust, characterized in that: The device is registered by generating unique and immutable client fingerprint information, and the initial verification with the server is performed using UDP authentication packets; After the authentication is passed, the client immediately attempts a TCP connection, and the server determines whether to allow the connection based on the authentication information and firewall rules received in advance; The client access authentication methods based on zero trust include: S1, the server provides services to the outside world, opens a TCP port, uses firewall rules, and does not allow any client to connect to it, making it completely invisible on the network; S2, first generate the fingerprint information of the client, which is globally unique and immutable and can effectively represent the client device; then register the client fingerprint information to the server, and bind the IP address used by the client and the fingerprint information of the client together; S3, the client first generates a UDP authentication packet, which contains the client fingerprint information and a randomly generated 32-bit integer sequence number, and then encrypts the packet and sends it to the server, while recording the sequence number seq information for backup; the server performs verification, and if the verification passes, the server sets a firewall rule to allow the client to connect to the server within a certain time window, and records the client IP and client seq; If the verification fails, the firewall rules do not allow the client to connect to the server; S4, after completing step S2, the client does not wait for the return information from the server, but generates a SYN packet, the first packet of the three-way handshake when TCP is connected. The seq data in the SYN packet uses the seq information generated in step S2 and is sent to the server; S5, after receiving the SYN packet, extracts the seq information and checks whether the information and the IP address received have been received in S2 before. If received, the connection is allowed to be established normally. Otherwise, the information is discarded and the connection is not allowed to be established.
2. The zero-trust based client access authentication method according to claim 1, characterized in that: S1 also includes: opening a UDP port to allow other clients to connect and to receive the verification packet sent by the client.
3. The zero-trust based client access authentication method according to claim 1, characterized in that: S2 also includes establishing a two-way certificate authentication system for future communications between the two parties.
4. The zero-trust based client access authentication method according to claim 1, characterized in that: The verification process in S3 is as follows: after the server receives the knock authentication package, it first finds the corresponding communication certificate based on its source IP, authenticates and decompresses the package, obtains the client fingerprint information and serial number seq inside, and verifies the consistency between the client fingerprint information, communication certificate, and IP address.
5. A zero-trust client access authentication system using the zero-trust client access authentication method according to any one of claims 1 to 4, characterized in that: include: The server-side network stealth module is used to hide the opened TCP port, which cannot be scanned by the outside world. At the same time, a UDP port is opened. If the client wants to connect to the TCP port of the server, it must first send an authentication packet to the UDP port. Only after the authentication is passed can it connect; The client hardware fingerprint collection and registration module is used to register the legal client fingerprint information to the server. UDP single-packet knock authentication packet sending module is used to send the authentication information of the client including the client fingerprint information to the server in the form of UDP packet. The SYN handshake packet module is used to include the client's fingerprint information in the SYN packet during the first handshake of the TCP connection and send it to the server. The SYN handshake packet verification module is used to verify the UDP single packet authentication information and the authentication information of the SYN packet during the first handshake of the TCP connection. When the two are consistent, the connection is established.
6. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the zero-trust-based client access authentication method as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the zero-trust-based client access authentication method as described in any one of claims 1 to 4.
8. An information data processing terminal, the information data processing terminal is used to implement the zero-trust based client access authentication system as described in claim 5.
