Access method, device and system for zero-trust network architecture
By using the SPA activation code to encrypt the access information in the zero-trust network architecture, and splicing the encryption with the initial encrypted message, the problem of insufficient communication security caused by the leakage of the fixed key is solved, and higher message security is achieved. .
Patent Information
- Application Number
- CN202410108801.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2024-09-27
AI Technical Summary
The existing zero-trust network architecture uses fixed keys during the authentication process, which risks leakage, resulting in insufficient communication security.
Encrypt the access information through the SPA activation code, generate an initial encrypted message, encode and encrypt it, and splice it with the initial encrypted message to form a spliced encrypted message. Use a fixed key to encrypt it and send it, and the control end decrypts it. And compare it with the activation code to allow access.
It improves the security of messages in communication and ensures the security of message information even if the fixed key is stolen.
Smart Images

Figure CN118713846A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer information processing, and in particular, to an access method, device and system for a zero-trust network architecture. Background Art
[0002] SPA plays a big role in SDP. One of the goals of SDP is to overcome the fundamental open and insecure nature of TCP / IP. This feature of TCP / IP allows "connect first, authenticate later". Given today's cybersecurity threat landscape, allowing malicious actors to scan and connect to enterprise systems is unacceptable. SPA combined with SDP addresses this weakness in two ways. Applications using the SDP architecture are hidden behind the SDP gateway / AH so that only authorized users can access them. In addition, SDP components themselves, such as controllers and gateways, are also protected by SPA. This allows them to be deployed securely facing the Internet, ensuring that legitimate users can access these services efficiently and reliably, while unauthorized users cannot see these services. The key benefit provided by SPA is service hiding. The default-drop rules of the firewall mitigate the threat posed by port scanning and related reconnaissance techniques. This firewall makes the SPA components invisible to unauthorized users, significantly reducing the attack surface of the entire SDP. Compared with the open ports of VPN and the known weaknesses that exist in many implementations, SPA is more secure.
[0003] The current zero-trust architecture authentication process is generally that the client combines various information when sending a packet to generate a hash value. The hash value is packaged into a UDP data packet and sent to the server's designated knocking port. The server generates a hash value based on the data received in the UDP header, and uses a fixed key to decrypt and process the authentication information. If the verification passes, the service port requested for access is opened for the client. The server will record the last valid authorized data packet it received to prevent attackers from sending old data packets for replay attacks. If the verification information fails, no action is performed. However, the use of fixed keys will have the risk of leakage. Once the key is leaked, all communications will be at risk of attack.
[0004] Therefore, a new access method, device and system for a zero-trust network architecture is needed.
[0005] The above information disclosed in the Background section is only for enhancement of understanding of the background of the present application and therefore it may contain information that does not constitute the prior art that is already known to a person of ordinary skill in the art. Summary of the invention
[0006] In view of this, the present application provides an access method, device and system for a zero-trust network architecture, which can improve the security of messages in communications and ensure the security of message information even if the fixed key of the message is stolen.
[0007] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0008] According to one aspect of the present application, an access method for a zero-trust network architecture is proposed, which can be used for a client, the method comprising: encrypting access information through a SPA activation code to generate an initial encrypted message; encoding and encrypting the SPA activation code to generate an encrypted activation code; concatenating and encrypting the encrypted activation code and the initial encrypted message to generate a concatenated encrypted message; packaging the concatenated encrypted message and sending it to a control end for access to the zero-trust network architecture.
[0009] In an exemplary embodiment of the present application, access information is encrypted by a SPA activation code to generate an initial encrypted message, including: obtaining the SPA activation code by a control end; encrypting a terminal identifier, a random number, a timestamp, an IP address, and a port by the SPA activation code to generate the initial encrypted message.
[0010] In an exemplary embodiment of the present application, encoding and encrypting the SPA activation code to generate an encrypted activation code includes: encoding and encrypting the SPA activation code using SHA256 to generate an encrypted activation code.
[0011] In an exemplary embodiment of the present application, the encryption activation code and the initial encrypted message are concatenated and encrypted to generate a concatenated encrypted message, including: concatenating the encryption activation code and the initial encrypted message to generate concatenated data; and encrypting the concatenated data using a fixed key to generate a concatenated encrypted message.
[0012] In an exemplary embodiment of the present application, the spliced encrypted message is packaged and sent to the control end for access to the zero-trust network architecture, including: packaging the spliced encrypted message into a UDP message; sending the UDP message to the control end for access to the zero-trust network architecture.
[0013] According to one aspect of the present application, an access method for a zero-trust network architecture is proposed, which can be used for a control end, the method comprising: obtaining a spliced encrypted message by a client; decrypting the spliced encrypted message by using a fixed key to generate an encrypted activation code and an initial encrypted message; generating a local encrypted activation code corresponding to the client; comparing the decrypted encrypted activation code with the local encrypted activation code, and allowing the client to access when the comparison results are consistent.
[0014] In an exemplary embodiment of the present application, the method further includes: the controller sends an SPA activation code to the client; and records the corresponding relationship between the client and the SPA activation code.
[0015] According to one aspect of the present application, an access device for a zero-trust network architecture is proposed, which can be used in a client, and the method includes: an information module, used to encrypt access information through a SPA activation code to generate an initial encrypted message; an encryption module, used to encode and encrypt the SPA activation code to generate an encrypted activation code; a splicing module, used to splice and encrypt the encrypted activation code and the initial encrypted message to generate a spliced encrypted message; a sending module, used to package the spliced encrypted message and send it to a control end for access to the zero-trust network architecture.
[0016] According to one aspect of the present application, an access device for a zero-trust network architecture is proposed, which can be used for a control end, and the device includes: a receiving module, used to obtain a spliced encrypted message from a client; a decryption module, used to decrypt the spliced encrypted message by using a fixed key to generate an encrypted activation code and an initial encrypted message; an activation module, used to generate a local encrypted activation code corresponding to the client; an access module, used to compare the decrypted encrypted activation code with the local encrypted activation code, and allow the client to access when the comparison results are consistent.
[0017] According to one aspect of the present application, an access system for a zero-trust network architecture is proposed, the device comprising: a client, configured to encrypt access information through a SPA activation code to generate an initial encrypted message; encode and encrypt the SPA activation code to generate an encrypted activation code; concatenate and encrypt the encrypted activation code and the initial encrypted message to generate a concatenated encrypted message; package the concatenated encrypted message and send it to a control end for access to the zero-trust network architecture; a control end, configured to obtain the concatenated encrypted message from the client; decrypt the concatenated encrypted message through a fixed key to generate an encrypted activation code and an initial encrypted message; generate a local encrypted activation code corresponding to the client; compare the decrypted encrypted activation code with the local encrypted activation code, and allow the client to access when the comparison results are consistent.
[0018] According to one aspect of the present application, an electronic device is proposed, which includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0019] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0020] According to the access method, device and system for a zero-trust network architecture of the present application, access information is encrypted by a SPA activation code to generate an initial encrypted message; the SPA activation code is encoded and encrypted to generate an encrypted activation code; the encrypted activation code and the initial encrypted message are concatenated and encrypted to generate a concatenated encrypted message; the concatenated encrypted message is packaged and sent to a control end for access to a zero-trust network architecture. This method can improve the security of messages in communication, and even if the fixed key of the message is stolen, the security of the message information can be guaranteed.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects, features and advantages of the present application will become more apparent by describing in detail the exemplary embodiments thereof with reference to the accompanying drawings. The accompanying drawings described below are only some embodiments of the present application, and it is clear to a person skilled in the art that other accompanying drawings can be obtained from these accompanying drawings without creative effort.
[0023] Figure 1 It is a flowchart of an access method for a zero-trust network architecture according to an exemplary embodiment.
[0024] Figure 2 It is a flowchart of an access method for a zero-trust network architecture according to an exemplary embodiment.
[0025] Figure 3 is a schematic diagram of an access method for a zero-trust network architecture according to another exemplary embodiment.
[0026] Figure 4 It is a block diagram of an access device for a zero-trust network architecture according to an exemplary embodiment.
[0027] Figure 5 It is a block diagram of an access device for a zero-trust network architecture according to another exemplary embodiment.
[0028] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment.
[0029] Figure 7 It is a block diagram of a computer-readable medium according to an exemplary embodiment. DETAILED DESCRIPTION
[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0031] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0034] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.
[0035] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.
[0036] The technical abbreviations involved in this application are explained as follows:
[0037] SDP is the abbreviation of Software Defined Perimeter. SDP is a security framework developed by the Cloud Security Alliance (CSA) that controls access to resources based on identity. The framework is based on the "need to know" model of the US Department of Defense - each terminal must be verified before connecting to the server to ensure that each device is allowed to access. The core idea is to hide core network assets and facilities through the SDP architecture so that they are not directly exposed to the Internet, making network assets and facilities protected from external security threats. SDP aims to utilize standard-based and verified components such as data encryption, remote authentication (host authentication of remote access), transport layer security (TLS, a method of encrypting and verifying client information), and security assertion markup language (SAML), which relies on encryption and digital signatures to protect specific access and verify access through X.509 certificate public keys. Combining these and other standard-based technologies ensures that SDP can be integrated with the company's existing security systems.
[0038] SPA (Single Packet Authorization): SAP is a lightweight security protocol. Different from the "three-way handshake" mechanism in the traditional TCP protocol, it only uses a single data packet for access application. It simplifies the knocking process by integrating all necessary information in a single data packet. Before allowing access to the network, it first verifies the device and user identity to achieve "network invisibility" and prevents attackers from finding the service address and port. There are three core principles of SPA single packet authorization: first, integrate authentication information in a single knocking data packet to simplify the knocking process; second, pre-authenticate the device and do not respond to connection requests outside the authentication device; third, hide the service behind the firewall to achieve "network invisibility" of the service.
[0039] Zero trust security model: also known as zero trust architecture, zero trust network architecture, ZTA, ZTNA, etc., and sometimes perimeterless security, this concept describes a method for IT system design and implementation. The main concept of the zero trust security model is "never trust, always verify", that is, devices should not be trusted by default, even if the device has been connected to a permitted network (such as a company LAN) and has been verified before. Most modern enterprise networks are complex, including many interconnected areas, cloud services, and infrastructure, as well as connections to remote and mobile environments, and unconventional IT connections (such as IoT devices). The zero trust principle is that traditional methods (such as trusting devices within the nominal "enterprise boundary" or devices connecting through VPNs) are not suitable for the environmental complexity of enterprise networks. Zero trust advocates mutual authentication, including checking device identity and integrity regardless of location, and providing access permissions to applications and services based on the confidence of device identity and device status combined with user authentication.
[0040] The applicant in this case found that when the existing zero-trust SPA authorization authentication processes data packets, the client and server need to specify a fixed key to continue hash value calculation and then package it into a UDP data packet. However, the use of a fixed key will have the risk of leakage. Once the key is leaked, all communications will be at risk of being attacked.
[0041] In view of the technical problems in the existing solutions, this application proposes an access method for a zero-trust network architecture, in which the SPA activation code is a random string issued to a single user and used to encrypt UDP messages. Each user uses a different activation code to encrypt a message to knock on the door to access the controller, which greatly reduces the risk.
[0042] The content of this application is described in detail below with the help of specific embodiments.
[0043] Figure 1 The flowchart of a method for accessing a zero-trust network architecture according to an exemplary embodiment is shown. The method 10 for accessing a zero-trust network architecture can be applied to a client, and at least includes steps S102 to S108.
[0044] like Figure 1 As shown, in S102, the access information is encrypted by the SPA activation code to generate an initial encrypted message. The SPA activation code can be obtained by the control end; the terminal identification, random number, timestamp, IP, and port are encrypted by the SPA activation code to generate the initial encrypted message.
[0045] More specifically, the client can obtain the SPA activation code from the control end through a secure authentication process. Before communication, the client prepares the data to be transmitted, including information such as the terminal identification, random number, timestamp, IP address, and port. The client uses the obtained SPA activation code to encrypt the above data. This may involve steps such as hashing the data and using symmetric or asymmetric encryption algorithms. The SPA activation code can act as part of the key to ensure that only legitimate clients can correctly decrypt the data. The encrypted data is assembled into an initial encrypted message, which may include information such as the encrypted terminal identification, random number, timestamp, IP address, and port.
[0046] In S104, the SPA activation code is encoded and encrypted to generate an encrypted activation code. The SPA activation code can be encoded and encrypted using SHA256 to generate an encrypted activation code.
[0047] More specifically, the SPA activation code is encrypted using the SHA256 algorithm, which is a hash algorithm that converts the input into a 256-bit binary hash value. The encrypted activation code generated in this way is irreversible and has a relatively fixed length.
[0048] In S106, the encryption activation code and the initial encrypted message are concatenated and encrypted to generate a concatenated encrypted message. The encryption activation code and the initial encrypted message can be concatenated to generate concatenated data; the concatenated data is encrypted using a fixed key to generate a concatenated encrypted message.
[0049] The encryption activation code and the initial encrypted message are concatenated, for example, they can be concatenated into a string. The concatenated data is encrypted using a fixed key, for example, using a symmetric encryption algorithm such as AES (Advanced Encryption Standard). The encrypted concatenated data is used as the concatenated encrypted message.
[0050] In S108, the concatenated encrypted message is packaged and sent to the control end for access to the zero-trust network architecture. The concatenated encrypted message can be packaged into a UDP message; and the UDP message is sent to the control end for access to the zero-trust network architecture.
[0051] In actual applications, the various fields of UDP packets can be configured according to the specific network architecture and requirements to ensure the reliability and security of network communications. In zero-trust networks, security mechanisms such as authentication and authorization also need to be considered to ensure that only legitimate communications are accepted.
[0052] According to the access method for a zero-trust network architecture of the present application, access information is encrypted by a SPA activation code to generate an initial encrypted message; the SPA activation code is encoded and encrypted to generate an encrypted activation code; the encrypted activation code and the initial encrypted message are concatenated and encrypted to generate a concatenated encrypted message; the concatenated encrypted message is packaged and sent to a control terminal for access to a zero-trust network architecture. This method can improve the security of messages in communication, and even if the fixed key of the message is stolen, the security of the message information can be guaranteed.
[0053] It should be clearly understood that the present application describes how to form and use specific examples, but the principles of the present application are not limited to any details of these examples. On the contrary, based on the teaching of the content disclosed in the present application, these principles can be applied to many other embodiments.
[0054] Figure 2 2 is a flowchart of an access method for a zero-trust network architecture according to another exemplary embodiment. The access method 20 for a zero-trust network architecture can be applied to a control end, and at least includes steps S202 to S208.
[0055] like Figure 2 As shown, in S202, the client obtains the spliced encrypted message.
[0056] In S204, the concatenated encrypted message is decrypted by using a fixed key to generate an encryption activation code and an initial encrypted message.
[0057] In S206, a local encrypted activation code corresponding to the client is generated.
[0058] In S208, the encrypted activation code obtained by decryption is compared with the local encrypted activation code, and when the comparison result is consistent, the client is allowed to access.
[0059] In one embodiment, the method further includes: the controller sends an SPA activation code to the client; and records the correspondence between the client and the SPA activation code. The controller may, for example, generate a unique SPA activation code for each client. Of course, several clients may also share one activation code. The SPA activation code may be a randomly generated string or generated using a more complex algorithm.
[0060] The controller sends the generated SPA activation code to a specific client. This process usually involves a secure communication mechanism to prevent the activation code from being intercepted or tampered with by a man-in-the-middle attack. The controller maintains the correspondence between the client and the SPA activation code in a record. This can be a mapping table stored in a database, which contains the client ID (or other unique identifier) and the corresponding SPA activation code.
[0061] Client uses SPA activation code: After the client receives the SPA activation code, it uses it to perform authentication or other authorization processes.
[0062] The record of the correspondence between the client and the SPA activation code can help the controller verify the identity of the client in subsequent communications and monitor its behavior. It is necessary to ensure that this correspondence table is protected in terms of security to prevent unauthorized access. In addition, the life cycle and usage rules of the SPA activation code should also be defined and managed by the security policy.
[0063] Figure 3 is a schematic diagram of an access method for a zero-trust network architecture according to another exemplary embodiment. Figure 3 The process 30 shown is a detailed description of an access system for a zero-trust network architecture.
[0064] Access systems used in zero-trust network architecture may include:
[0065] The client is used to encrypt the access information through the SPA activation code to generate an initial encrypted message; encode and encrypt the SPA activation code to generate an encrypted activation code; concatenate and encrypt the encrypted activation code and the initial encrypted message to generate a concatenated encrypted message; package the concatenated encrypted message and send it to the control end for access to the zero-trust network architecture;
[0066] The control terminal is used to obtain the spliced encrypted message from the client; decrypt the spliced encrypted message by using a fixed key to generate an encrypted activation code and an initial encrypted message; generate a local encrypted activation code corresponding to the client; compare the decrypted encrypted activation code with the local encrypted activation code, and allow the client to access when the comparison results are consistent.
[0067] In practical applications, such as Figure 3 As shown, first, the controller sends the SPA activation code to the client. Each client user can send a different activation code or use a shared activation code. After sending, the controller saves the sent activation code for subsequent verification.
[0068] Secondly, when the client user accesses the controller, the previously sent message information is parsed and encrypted using the SPA activation code to obtain the encrypted message. This message needs to be re-encrypted using a fixed key and then packaged and sent to the controller.
[0069] Secondly, the SPA activation code is SHA256 encoded. After the SHA256 is concatenated with the SAP activation code encrypted message, it is also necessary to use a fixed key to encrypt it. If the fixed key is leaked and the message is parsed, the old message containing the client information cannot be decrypted using the SHA256 SPA activation code.
[0070] Secondly, the message encrypted with the SPA activation code is concatenated with the SPA activation code encoded with SHA256, encrypted with the fixed key agreed with the controller, and then packaged into a UDP message and sent to the controller.
[0071] After that, the controller receives the SPA message and uses the fixed key to decrypt the message, decrypting the SHA256 SPA activation code and the message encrypted with the SPA activation code. Since SHA256 is a hash function and is irreversible, there is no need to worry about the encrypted message being cracked even if the SHA256 of the SPA activation code is leaked.
[0072] Finally, the controller uses the SHA256 value of the SPA activation code to encode the SPA activation code when it is sent, and compares it with the SHA256 SPA activation code in the message. If they are the same, the SPA activation code is used for decryption to obtain the information of all messages, and the port is opened by internally verifying the client information. If the SHA256 values are different, the UDP packet is discarded and the controller port is not opened.
[0073] In the prior art, when the client sends a packet, it uses a fixed key agreed upon with the controller to encrypt the user's login terminal identification, timestamp, IP and other data, and packages it into an SPA data packet and sends it to the controller. The controller receives the SPA message, decrypts the data packet using a fixed key, and verifies it based on the decrypted data information. If the verification passes based on the information of the controller, it opens the corresponding port to accept the TCP data packet of the client's HTTP request and performs the corresponding operation.
[0074] The information verified in this process is only the basic information of the zero-trust user client, and is encrypted with a fixed key. Considering that UDP may have the risk of packet loss due to network problems, the client user login authentication process is mainly carried out through TCP data packets.
[0075] Through the interaction process between the client and the controller in this application, the security of communication can be greatly increased on the basis of the SPA interaction of the prior art. The most important thing is that by encrypting the message multiple times, even if it is attacked, the information contained in the message will not be easily leaked.
[0076] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above functions defined by the above method provided in the present application are executed. The program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0077] In addition, it should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0078] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0079] Figure 4 FIG. 1 is a block diagram of an access device for a zero-trust network architecture according to another exemplary embodiment. Figure 4 As shown, the access device 40 for the zero-trust network architecture can be used for the client, including: an information module 402, an encryption module 404, a splicing module 406, and a sending module 408.
[0080] The information module 402 is used to encrypt the access information through the SPA activation code to generate an initial encrypted message;
[0081] The encryption module 404 is used to encode and encrypt the SPA activation code to generate an encrypted activation code;
[0082] The splicing module 406 is used to perform splicing encryption through the encryption activation code and the initial encrypted message to generate a spliced encrypted message;
[0083] The sending module 408 is used to package the spliced encrypted message and send it to the control end for access to the zero-trust network architecture.
[0084] Figure 5 FIG. 1 is a block diagram of an access device for a zero-trust network architecture according to an exemplary embodiment. Figure 5 As shown, the access device 50 for the zero-trust network architecture can be used for the control end, including: a receiving module 502, a decryption module 504, an activation module 506, and an access module 508.
[0085] The receiving module 502 is used for obtaining the spliced encrypted message from the client;
[0086] The decryption module 504 is used to decrypt the spliced encrypted message by using a fixed key to generate an encryption activation code and an initial encrypted message;
[0087] The activation module 506 is used to generate a local encrypted activation code corresponding to the client;
[0088] The access module 508 is used to compare the decrypted encrypted activation code with the local encrypted activation code, and allow the client to access when the comparison results are consistent.
[0089] According to the access device for a zero-trust network architecture of the present application, access information is encrypted by a SPA activation code to generate an initial encrypted message; the SPA activation code is encoded and encrypted to generate an encrypted activation code; the encrypted activation code and the initial encrypted message are concatenated and encrypted to generate a concatenated encrypted message; the concatenated encrypted message is packaged and sent to a control end for access to a zero-trust network architecture. This method can improve the security of messages in communication, and even if the fixed key of the message is stolen, the security of the message information can be guaranteed.
[0090] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment.
[0091] Refer to the following Figure 6 The electronic device 600 according to this embodiment of the present application is described. Figure 6 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0092] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0093] The storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps described in this specification according to various exemplary embodiments of the present application. For example, the processing unit 610 can perform the following steps: Figure 1 , Figure 2 Follow the steps shown in .
[0094] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0095] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0096] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0097] The electronic device 600 may also communicate with one or more external devices 600' (e.g., keyboards, pointing devices, Bluetooth devices, etc.) to enable a user to communicate with the electronic device 600, and / or any device (e.g., routers, modems, etc.) that the electronic device 600 can communicate with one or more other computing devices. Such communication may be performed via an input / output (I / O) interface 650. In addition, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0098] Through the above description of the implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Figure 7 As shown, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the implementation mode of the present application.
[0099] In general, the present disclosure uses SAP activation codes to encrypt UDP knocking data packets for communication between clients and servers, solving the problem of low security when using fixed keys. The present disclosure uses SPA activation codes to encrypt messages, and also splices the sha256-encoded activation code into the message, and then performs double encryption with fixed key encryption, which makes the message more secure, and even if the message is stolen, the information will not be leaked. Specifically, the SPA activation code is sent to the client through the controller. Each client user can send a different activation code, or use a shared activation code. After the code is sent, the controller saves the issued activation code for subsequent verification. When the client user accesses the controller, the issued SPA activation code is used to parse and encrypt the previous message information to obtain an encrypted message. This message needs to be subsequently encrypted twice using a fixed key and then packaged and sent to the controller. Subsequently, the SPA activation code is sha256-encoded. After the sha256 is concatenated with the message encrypted with the SAP activation code, it is still necessary to encrypt it with a fixed key. If the fixed key is leaked, after the message is parsed, the old message containing the client information cannot be decrypted using the sha256 SPA activation code. Then the message encrypted with the SPA activation code is concatenated with the sha256-encoded SPA activation code, and then encrypted using the fixed key agreed with the controller, and then packaged into a UDP message and sent to the controller. Furthermore, after receiving the SPA message, the controller uses the fixed key to decrypt the message, decrypting the sha256 SPA activation code and the message encrypted with the SPA activation code. Since sha256 is a hash function and is irreversible, there is no need to worry about the encrypted message being cracked even if the sha256 of the SPA activation code is leaked. Finally, through the sha256 value of the SPA activation code, the controller will sha256 encode the SPA activation code when it is sent, and compare it with the sha256 SPA activation code in the message. If they are the same, the SPA activation code is used for decryption to obtain the information of all messages, and the port is opened by internally verifying the client information. If the sha256 values are not the same, the UDP packet is discarded and the controller port is not opened. Through the above interaction process between the client and the controller, the security of its communication can be greatly increased on the basis of the previous SPA interaction. The most important thing is that by encrypting the message multiple times, even if it is attacked, the information contained in the message will not be easily leaked.
[0100] The software product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0101] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0102] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0103] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by a device, the computer-readable medium implements the following functions: encrypting the access information through the SPA activation code to generate an initial encrypted message; encoding and encrypting the SPA activation code to generate an encrypted activation code; splicing and encrypting the encrypted activation code and the initial encrypted message to generate a spliced encrypted message; packaging the spliced encrypted message and sending it to the control end for access to the zero-trust network architecture.
[0104] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0105] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.
[0106] The exemplary embodiments of the present application are specifically shown and described above. It should be understood that the present application is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present application is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.
Claims
1. An access method for a zero-trust network architecture, which can be used for a client, is characterized in that: include: The access information is encrypted using the SPA activation code to generate an initial encrypted message; Encode and encrypt the SPA activation code to generate an encrypted activation code; Generate a spliced encrypted message by performing splicing encryption on the encryption activation code and the initial encrypted message; The spliced encrypted message is packaged and sent to the control end for access to the zero-trust network architecture.
2. The method according to claim 1, characterized in that The access information is encrypted using the SPA activation code to generate an initial encrypted message, including: The control terminal obtains the SPA activation code; The terminal identification, random number, timestamp, IP, and port are encrypted through the SPA activation code to generate the initial encrypted message.
3. The method according to claim 1, characterized in that Encoding and encrypting the SPA activation code to generate an encrypted activation code includes: The SPA activation code is encrypted by SHA256 encoding to generate an encrypted activation code.
4. The method according to claim 1, characterized in that The encryption activation code and the initial encrypted message are concatenated and encrypted to generate a concatenated encrypted message, including: Splicing the encrypted activation code and the initial encrypted message to generate spliced data; The splicing data is encrypted using a fixed key to generate a splicing encrypted message.
5. The method according to claim 1, characterized in that Packaging the spliced encrypted message and sending it to the control end for access to the zero-trust network architecture includes: Packing the spliced encrypted messages into UDP messages; The UDP message is sent to the control end for access to the zero-trust network architecture.
6. An access method for a zero-trust network architecture, which can be used for a control end, characterized in that: include: The client obtains the spliced encrypted message; Decrypting the spliced encrypted message by using a fixed key to generate an encrypted activation code and an initial encrypted message; Generating a local encrypted activation code corresponding to the client; The encrypted activation code obtained by decryption is compared with the local encrypted activation code, and when the comparison results are consistent, the client is allowed to access.
7. The method according to claim 6, characterized in that Also includes: The controller sends the SPA activation code to the client; Record the correspondence between the client and the SPA activation code.
8. An access device for a zero-trust network architecture, which can be used on a client, characterized in that: include: An information module, used to encrypt access information through a SPA activation code to generate an initial encrypted message; An encryption module, used to encode and encrypt the SPA activation code to generate an encrypted activation code; A splicing module, used for performing splicing encryption through the encryption activation code and the initial encrypted message to generate a spliced encrypted message; The sending module is used to package the spliced encrypted message and send it to the control end for access to the zero-trust network architecture.
9. An access device for a zero-trust network architecture, which can be used for a control terminal, characterized in that: include: A receiving module, used for obtaining the spliced encrypted message from the client; A decryption module, used to decrypt the spliced encrypted message by using a fixed key to generate an encryption activation code and an initial encrypted message; An activation module, used to generate a local encrypted activation code corresponding to the client; The access module is used to compare the encrypted activation code obtained by decryption with the local encrypted activation code, and when the comparison results are consistent, allow the client to access.
10. An access system for a zero-trust network architecture, characterized in that: include: The client is used to encrypt the access information through the SPA activation code and generate an initial encrypted message; Encode and encrypt the SPA activation code to generate an encrypted activation code; The encrypted activation code and the initial encrypted message are concatenated and encrypted to generate a concatenated encrypted message; the concatenated encrypted message is packaged and sent to the control end for access to the zero-trust network architecture; The control end is used for obtaining the spliced encrypted message from the client; Decrypting the spliced encrypted message by using a fixed key to generate an encrypted activation code and an initial encrypted message; generating a local encrypted activation code corresponding to the client; The encrypted activation code obtained by decryption is compared with the local encrypted activation code, and when the comparison results are consistent, the client is allowed to access.
