Data security protection method and device and electronic equipment
By storing public key information in advance on a third-party device and performing comparison authentication, it solves the risk of man-in-the-middle attacks during the initial login of an SSH connection, improves the security and reliability of network communications, and ensures the security of remote devices.
Patent Information
- Application Number
- CN202410936755.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-11
AI Technical Summary
SSH connections face the risk of man-in-the-middle attacks when logging in for the first time. Especially in LAN or private remote server environments, the client cannot effectively verify the server's public key fingerprint, resulting in compromised security.
The public key information of the trusted device is stored in advance through a third-party device. The client obtains the device's public key fingerprint before establishing a remote secure connection, and compares and authenticates it with the public key returned by the server to ensure the authenticity of the public key fingerprint, thereby preventing Man-in-the-middle attack.
It realizes automatic verification of public key fingerprints, improves the security and reliability of SSH connections, prevents malicious man-in-the-middle attacks, ensures the security control of remote devices, and is suitable for complex application scenarios.
Smart Images

Figure CN118764271A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security and encryption technology, and in particular to a data security protection method, device and electronic equipment. Background Art
[0002] Currently, asymmetric encryption algorithms including RSA have been used since SSHv1.0 (Secure Shell, SSH for short). The whole process is: (1) When the remote server receives the user's first login request, it uses the RSA algorithm to generate a public key and a private key, and sends the public key to the client; (2) The user uses this public key to encrypt the login password and send it to the remote server; (3) The remote server uses its own private key to decrypt the login password and verify it. If the password is correct, it agrees to log in; (4) During the second login, the public key fingerprint of the remote server is identified to prevent identity forgery and man-in-the-middle attacks.
[0003] This process itself is safe, but if someone intercepts the login request during the first login, then impersonates the remote server to send a forged public key to the user, and uses the forged public key to obtain the user's login password, the security of SSH communication will be destroyed. Although SSH v2.0 uses an officially issued key certificate, it is not feasible in a local area network or a private remote server. The certificate issued by an individual cannot be reliably authenticated, making the entire process face the risk of "man in the middle attack" during the first login. Therefore, the inventor considered studying a new data security protection method. Summary of the invention
[0004] The main technical problem solved by the implementation method of the present application is to provide a data security protection method, device and electronic device, which automatically verifies the public key fingerprint when establishing a remote secure connection through a third-party device to improve the security of data communication and meet complex application scenarios.
[0005] To solve the above technical problems, a technical solution adopted in the implementation mode of the present application is: to provide a data security protection method, applied to a client, the method comprising: sending a first operation instruction to a third-party device; in response to the first operation instruction, receiving a device public key fingerprint, and remotely and securely connecting to a server; sending a second operation instruction to the server; in response to the second operation instruction, receiving a public key; performing device public key fingerprint verification based on the device public key fingerprint and the public key to obtain a verification result, and judging whether to continue to remotely and securely connect to the server based on the verification result.
[0006] Optionally, performing device public key fingerprint verification based on the device public key fingerprint and the public key to obtain a verification result, and judging whether to continue the remote secure connection with the server based on the verification result includes: calculating the public key to obtain a corresponding public key fingerprint; comparing the public key fingerprint with the device public key fingerprint; if the public key fingerprint matches the device public key fingerprint, it indicates that the identity of the server meets the preset requirements, and the remote secure connection continues; if the public key fingerprint does not match the device public key fingerprint, it indicates that the identity of the server does not meet the preset requirements, and the remote secure connection is interrupted.
[0007] Optionally, the remote secure connection with the server includes: sending a connection request to the server, so that the server receives the connection request and establishes a communication connection; performing version negotiation with the server to determine the version number used for the communication connection; performing algorithm negotiation with the server to determine the algorithm used for the communication connection; performing key exchange with the server to verify whether the identity of the server meets a first preset requirement; performing key authentication with the server to enable the server to verify whether the identity of the client meets a second preset requirement; sending a session request to the server, so that the server receives the session request and performs session interaction.
[0008] Optionally, the key exchange with the server includes: when the remote secure connection executes the key exchange step with the server, sending the second operation instruction to the server so that the server receives the second operation instruction and sends the public key to the client.
[0009] To solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: to provide a data security protection method, applied to a third-party device, the method comprising: receiving a first operation instruction sent by a client; sending a device public key fingerprint to the client according to the first operation instruction, so that the client performs corresponding data security protection processing according to the device public key fingerprint.
[0010] Optionally, the method further includes: when the number of servers increases and / or is reset, receiving a new device public key fingerprint reported by the server, and storing and managing the new device public key fingerprint.
[0011] To solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: to provide a data security protection device, the device comprising: a first sending module, used to send a first operation instruction to a third-party device; a first receiving module, used to respond to the first operation instruction, receive a device public key fingerprint, and remotely and securely connect to a server; a second sending module, used to send a second operation instruction to the server; a second receiving module, used to respond to the second operation instruction, receive a public key; a verification module, used to verify the device public key fingerprint according to the device public key fingerprint and the public key, obtain a verification result, and determine whether to continue to remotely and securely connect to the server according to the verification result.
[0012] Optionally, the verification module is specifically used to: calculate the public key to obtain a corresponding public key fingerprint; compare the public key fingerprint with the device public key fingerprint; if the public key fingerprint matches the device public key fingerprint, it indicates that the identity of the server meets the preset requirements, and the remote security connection continues; if the public key fingerprint does not match the device public key fingerprint, it indicates that the identity of the server does not meet the preset requirements, and the remote security connection is interrupted.
[0013] To solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: to provide a data security protection device, the device comprising: a third receiving module, used to receive a first operation instruction sent by a client; a third sending module, used to send a device public key fingerprint to the client according to the first operation instruction, so that the client performs corresponding data security protection processing according to the device public key fingerprint; a fourth receiving module, used to receive a new device public key fingerprint reported by the server when the number of servers increases and / or is reset; a storage module, used to store and manage the new device public key fingerprint.
[0014] To solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: to provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described above.
[0015] Different from the related art, the embodiment of the present application obtains the device public key fingerprint through a trusted third-party device before the client establishes a remote secure connection for the first time, and then obtains the public key sent back by the server after the remote secure connection is established, and compares and authenticates the device public key fingerprint of the third-party device with the public key sent back by the server. The public key information of all trusted devices is stored in advance by a third-party device. When the client requests a connection, it obtains the pre-authenticated public key from the third-party device for comparison. On the one hand, it realizes automatic verification of public key fingerprints and effectively prevents the risks brought by man-in-the-middle attacks, thereby improving the security and reliability of network communications. On the other hand, the server can also interact with the third-party device to realize real-time synchronous update of the device public key fingerprint, meeting complex application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.
[0017] Figure 1 is a flow chart of a data security protection method provided by an embodiment of the present application;
[0018] Figure 2 This is a flowchart of a remote secure connection provided by an embodiment of the present application;
[0019] Figure 3 is a flow chart of a data security protection method provided by another embodiment of the present application;
[0020] Figure 4 is a schematic diagram of a data security protection device provided in an embodiment of the present application;
[0021] Figure 5 is a schematic diagram of a data security protection device provided by another embodiment of the present application;
[0022] Figure 6 It is a schematic diagram of the hardware structure of an electronic device for executing the data security protection method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0024] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device schematic diagram or the order in the flow chart.
[0025] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0026] In today's network environment, secure communication is essential, especially when connecting remote devices over the Internet. As a widely used network protocol, SSH protocol provides a secure communication channel for performing remote login and other secure network services in an insecure network. However, although SSH protocol provides strong encryption protection during data transmission, there is still a risk of man-in-the-middle attacks during the connection establishment stage.
[0027] A man-in-the-middle attack is a malicious act in which the attacker inserts himself between the client and the server, impersonating both parties to communicate. Especially in the early stage of the SSH connection, when the server sends back its public key for the client to encrypt the session key, if the client cannot verify the authenticity of the public key, the man-in-the-middle can replace the server's public key with his own public key. In this way, all encrypted communications are actually decrypted and controlled by the man-in-the-middle, thereby obtaining sensitive information and even completely controlling the remote device.
[0028] Currently, a weakness of the SSH protocol is that the client cannot verify whether the server's public key fingerprint is authentic when connecting for the first time. If a man-in-the-middle attack occurs, the client will store the wrong public key fingerprint, which will pose a risk to subsequent communications. Although the SSH client will warn users of public key fingerprint changes in subsequent connections, the vulnerability during the first connection has not been resolved.
[0029] In order to solve the above problems, the embodiments of the present application propose a data security protection method, device and electronic device. Before the client establishes an SSH connection (remote secure connection) for the first time, the device public key fingerprint is obtained through a trusted third-party device, and the public key sent back by the server is obtained after the SSH connection is made, and the device public key fingerprint of the third-party device is compared and authenticated with the public key sent back by the server. This application stores the public key information of all trusted devices in advance. When the client requests a connection, it obtains the pre-authenticated public key from the third-party device for comparison, which effectively prevents the risks brought by man-in-the-middle attacks. On the one hand, it realizes automatic verification of public key fingerprints, thereby enhancing the security of SSH connections and preventing malicious middlemen from inserting. It also provides users with a more reliable verification mechanism to ensure the security control of remote devices. On the other hand, by introducing third-party authentication services, users can perform remote management and operations with greater confidence, which greatly improves the security and reliability of network communications and meets complex application scenarios.
[0030] The following describes the implementation method of the data security protection method proposed in the embodiment of the present application through specific examples.
[0031] First, some terms involved in the embodiments of the present application are introduced:
[0032] Client: refers to the user terminal that uses the SSH protocol to connect to the remote device. In the current web context, the client is usually a web client or other application running on the user's device, which initiates a connection request to access and manage the remote server. The client needs to verify the identity of the server to ensure the security of the connection.
[0033] Server: refers to a remote device or host that accepts client connection requests through the SSH protocol and provides the required services or resources. When establishing an SSH connection, the server generates and returns its public key for the client to use in order to encrypt the session key and establish secure communications. However, if the public key is replaced by a man-in-the-middle attack, the server's authentication becomes unreliable, which may lead to the risk of malicious control.
[0034] Third-party device: refers to an independent, trusted authentication service or public key repository. Its main function is to provide public key verification when the client and server establish an SSH connection. Specifically, the third-party device will pre-store the public key information of all trusted servers. When the client initiates an SSH connection, the client can request the server's public key from the third-party device and compare it with the public key sent back by the server for authentication. This mechanism effectively prevents man-in-the-middle attacks because even if the attacker replaces the server's public key, the public key obtained by the client through the third-party service can be used to verify its authenticity.
[0035] See also Figure 1 , Figure 1 Flowchart of a data security protection method provided by an embodiment of the present application. Figure 1 As shown, the method is applied to a client, and the method includes:
[0036] S11: Sending a first operation instruction to a third-party device.
[0037] S12: In response to the first operation instruction, receiving the device public key fingerprint and establishing a remote secure connection with the server.
[0038] Before the client establishes a remote secure connection (SSH connection) with the server, the client sends a first operation instruction (for example, a device public key fingerprint application instruction) to the third-party device in advance. After receiving the instruction, the third-party device sends the device public key fingerprint corresponding to the client to the client. After the client receives the device public key fingerprint, it starts the SSH connection process with the server.
[0039] See also Figure 2 , Figure 2 This is a flowchart of a remote secure connection provided by an embodiment of the present application. Figure 2 As shown, the remote secure connection includes:
[0040] S121: Send a connection request to the server, so that the server receives the connection request and establishes a communication connection.
[0041] When a client starts a remote secure connection (SSH connection) with a server, the client sends a connection request to the server, indicating that it wants to establish an SSH connection. The server listens to and responds to the client's connection request, and a TCP connection (communication connection) is established between the client and the server, which serves as the basis for SSH protocol transmission.
[0042] S122: Perform version negotiation with the server to determine a version number used for the communication connection.
[0043] After establishing a TCP connection, the client sends the server the SSH protocol version number it supports. After receiving the client's version number, the server responds to the client with the SSH protocol version number it supports. The client and server read the version number sent by each other and jointly confirm the version numbers supported by both parties. The client responds with the version number it decides to use. After receiving the version number it decides to use, the server confirms to use the version number for subsequent communication connections.
[0044] S123: Perform algorithm negotiation with the server to determine the algorithm used for the communication connection.
[0045] The client and server respectively send their respective lists of supported encryption algorithms, hash algorithms, and key exchange algorithms. Based on their respective lists of supported algorithms, the client and server negotiate a set of encryption, hash, and key exchange algorithms that are supported by both parties.
[0046] S124: Perform key exchange with the server to verify whether the identity of the server meets the first preset requirement.
[0047] S13: Sending a second operation instruction to the server.
[0048] S14: In response to the second operation instruction, receiving a public key.
[0049] S15: Verify the device public key fingerprint according to the device public key fingerprint and the public key to obtain a verification result, and determine whether to continue the remote secure connection with the server according to the verification result.
[0050] Specifically, after the algorithm is determined, key exchange with the server begins. It can be understood that the client sends a second operation instruction (e.g., a public key request instruction) to the server, the server receives the instruction sent by the client, generates a pair of RSA public key and private key, and then sends the RSA public key to the client. Among them, the public key is used to encrypt information, and the private key is used to decrypt information.
[0051] After the client receives the RSA public key sent by the server, it verifies the device public key fingerprint according to the device public key fingerprint and the RSA public key obtained in step S12, obtains the verification result, and determines whether to continue the remote secure connection with the server based on the verification result. It can be understood that the RSA public key is calculated by MD5 to turn it into a 128-bit public key fingerprint. The public key fingerprint is compared with the device public key fingerprint. If the public key fingerprint matches the device public key fingerprint, it indicates that the identity of the server meets the first preset requirement, that is, the server identity is correct and has not been replaced by a man-in-the-middle attack, and the subsequent remote secure connection steps continue; if the public key fingerprint does not match the device public key fingerprint, it indicates that the identity of the server does not meet the first preset requirement, that is, the server identity is wrong, and it has been replaced by a man-in-the-middle attack at this time, and the remote secure connection is immediately interrupted.
[0052] After confirming that the server identity is correct, the subsequent key exchange process continues. It can be understood that the client generates a random session key. The session key will be used for symmetric encryption to ensure the security of subsequent communications. The client then uses the server's public key to encrypt the generated session key and sends the encrypted session key to the server. The server uses its own private key to decrypt the session key sent by the client and obtain the session key. It can be understood that both the server and the client have the same session key, which is used to encrypt subsequent communication transmissions.
[0053] S125: Perform key authentication with the server, so that the server verifies whether the identity of the client meets a second preset requirement.
[0054] After exchanging keys with the server to verify the server's identity, key authentication begins to verify the client's identity. It can be understood that the client sends a request to indicate that it wishes to authenticate the user. After receiving the request, the server generates a random number as a challenge, encrypts the random number with the client's public key, and then sends the encrypted random number to the client. After receiving the encrypted random number, the client uses the private key to decrypt it and sends the decrypted random number back to the server. The server verifies whether the decrypted random number returned by the client is consistent with the generated random number. If they are consistent, it means that the client's identity meets the second preset requirement, that is, the client's identity is correct, and subsequent communication transmission is carried out.
[0055] S126: Sending a session request to the server, so that the server receives the session request and performs session interaction.
[0056] The client and the server perform key authentication, and after verifying the identity of the client, the subsequent session process begins. It can be understood that the client sends a session request to the server, and after the server confirms the session request, a session channel is established for executing commands and transmitting data. The client and the server perform command execution and data transmission through the session channel. It can be understood that the client sends an encrypted command request, the server decrypts and executes the command, encrypts the result and sends it back to the client, and the client decrypts it and displays the execution result.
[0057] The embodiment of the present application stores the public key information of all trusted devices in advance. When the client requests a connection, it obtains the pre-authenticated public key from the third-party device for comparison, thereby realizing automatic verification of the public key fingerprint, effectively preventing the risks brought by man-in-the-middle attacks, improving verification efficiency and ensuring security.
[0058] like Figure 3 As shown, Figure 3 A flowchart of a data security protection method provided in another embodiment of the present application, the method is applied to a third-party device, and the method includes:
[0059] S201: receiving a first operation instruction sent by a client;
[0060] S202: Sending a device public key fingerprint to the client according to the first operation instruction, so that the client performs corresponding data security protection processing according to the device public key fingerprint.
[0061] Specifically, before the client and the server establish the first remote secure connection, the third-party device will receive the first operation instruction sent by the client (for example, the device public key fingerprint application instruction), and send the corresponding device public key fingerprint to the client, so that the client can perform corresponding data security protection processing according to the device public key fingerprint. For details of the data security protection processing, please refer to the data security protection method described above, which will not be repeated here.
[0062] In addition, when the number of servers increases and / or is reset, the server's device public key fingerprint will change accordingly. At this time, the device public key fingerprint needs to be updated to facilitate the subsequent public key fingerprint verification process. It can be understood that the server will actively report the new device public key fingerprint to the third-party device. The third-party device receives the new device public key fingerprint reported by the server and stores and manages the new device public key fingerprint.
[0063] It should be noted that a third-party device refers to an independent, trusted authentication service or public key repository. Its main function is to provide public key verification when the client and server establish an SSH connection. Specifically, the third-party device will pre-store the public key information of all trusted servers. It can be understood that a third-party device can store the device public key fingerprint of one server or multiple servers. Both the client and the server will install a software that communicates and interacts with the third-party device to obtain or synchronize the device public key fingerprint.
[0064] The embodiment of the present application can not only send the device public key fingerprint to the client before the client and the server make the first remote secure connection through the third-party device, so as to facilitate the subsequent identity authentication between the client and the server, effectively preventing man-in-the-middle attacks. In addition, the server software can also interact with the third-party device to achieve real-time synchronous update of the device public key fingerprint, meeting complex application scenarios.
[0065] Based on the data security protection method provided in the above embodiment, the present application embodiment further provides a data security protection device. Figure 4 , Figure 4 is a schematic diagram of the data security protection device. Figure 4As shown, the data security protection device 300 includes: a first sending module 310, a first receiving module 320, a second sending module 330, a second receiving module 340 and a verification module 350. Among them, the first sending module 310 is used to send a first operation instruction to a third-party device; the first receiving module 320 is used to receive a device public key fingerprint in response to the first operation instruction, and remotely connect to the server securely; the second sending module 330 is used to send a second operation instruction to the server; the second receiving module 340 is used to receive a public key in response to the second operation instruction; the verification module 350 is used to verify the device public key fingerprint according to the device public key fingerprint and the public key, obtain a verification result, and determine whether to continue to remotely connect to the server securely according to the verification result.
[0066] In some embodiments, the verification module 350 is specifically used to: calculate the public key to obtain the corresponding public key fingerprint; compare the public key fingerprint with the device public key fingerprint; if the public key fingerprint matches the device public key fingerprint, it indicates that the identity of the server meets the preset requirements and the remote security connection continues; if the public key fingerprint does not match the device public key fingerprint, it indicates that the identity of the server does not meet the preset requirements and the remote security connection is interrupted.
[0067] Based on the data security protection method provided in the above embodiment, another embodiment of the present application further provides a data security protection device. Figure 5 , Figure 5 is a schematic diagram of the data security protection device. Figure 5 As shown, the data security protection device 400 includes: a third receiving module 410, a third sending module 420, a fourth receiving module 430 and a storage module 440. Among them, the third receiving module 410 is used to receive the first operation instruction sent by the client; the third sending module 420 is used to send the device public key fingerprint to the client according to the first operation instruction, so that the client performs corresponding data security protection processing according to the device public key fingerprint; the fourth receiving module 430 is used to receive the new device public key fingerprint reported by the server when the number of servers increases and / or is reset; the storage module 440 is used to store and manage the new device public key fingerprint.
[0068] It should be noted that the above-mentioned data security protection device can execute the data security protection method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the data security protection device, please refer to the data security protection method provided in the embodiment of the present application.
[0069] The present application also provides an electronic device. Figure 6 , which shows the hardware structure of an electronic device capable of executing the method described in any one of the embodiments. The electronic device 500 includes: at least one processor 510; and a memory 520 in communication with the at least one processor 510, Figure 6 In the example, a processor 510 is used. The memory 520 stores instructions that can be executed by the at least one processor 510. The instructions are executed by the at least one processor 510 so that the at least one processor 510 can execute the data security protection method described in any one of the above embodiments. The processor 510 and the memory 520 can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0070] The memory 520, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the data security protection method in the embodiments of the present application. The processor 510 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 520, that is, implements the data security protection method described in any of the above embodiments.
[0071] The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computing device, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 520 may optionally include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0072] The one or more modules are stored in the memory 520, and when executed by the one or more processors 510, perform the data security protection method described in any one of the above embodiments.
[0073] Among them, the electronic device can be the above-mentioned client or the above-mentioned third-party device. Specifically, the client is a user terminal that uses the SSH protocol to connect to the remote device. A common client can be a Web client running on the user device or other applications. A third-party device is a device independent of the client and server. It can be a public key distribution platform, a public key management server, or a dedicated verification API. It should be noted that the client and third-party device described above can also be other devices, which will not be elaborated here.
[0074] The above-mentioned product can execute the method provided in the embodiment of this application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the data security protection method described in any embodiment of this application.
[0075] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0076] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A data security protection method, characterized in that: Applied to a client, the method comprises: Sending a first operation instruction to a third-party device; In response to the first operation instruction, receiving a device public key fingerprint and establishing a remote secure connection with a server; Sending a second operation instruction to the server; In response to the second operation instruction, receiving a public key; The device public key fingerprint is verified according to the device public key fingerprint and the public key to obtain a verification result, and it is determined whether to continue the remote secure connection with the server according to the verification result.
2. The data security protection method according to claim 1, characterized in that: The performing device public key fingerprint verification according to the device public key fingerprint and the public key to obtain a verification result, and judging whether to continue the remote secure connection with the server according to the verification result includes: Calculating the public key to obtain a corresponding public key fingerprint; comparing the public key fingerprint with the device public key fingerprint; If the public key fingerprint matches the device public key fingerprint, it indicates that the identity of the server meets the preset requirements, and the remote secure connection continues; If the public key fingerprint does not match the device public key fingerprint, it indicates that the identity of the server does not meet the preset requirements, and the remote secure connection is terminated.
3. The data security protection method according to claim 1, characterized in that: The remote secure connection with the server includes: Sending a connection request to the server, so that the server receives the connection request and establishes a communication connection; Performing version negotiation with the server to determine the version number used by the communication connection; Performing algorithm negotiation with the server to determine the algorithm used for the communication connection; Performing a key exchange with the server to verify whether the identity of the server meets a first preset requirement; Performing key authentication with the server so that the server verifies whether the identity of the client satisfies a second preset requirement; Sending a session request to the server so that the server receives the session request and performs session interaction.
4. According to the data security protection method of claim 3, the key exchange with the server comprises: When the remote secure connection reaches the key exchange step with the server, the second operation instruction is sent to the server so that the server receives the second operation instruction and sends the public key to the client.
5. A data security protection method, characterized in that: Applied to a third-party device, the method includes: Receiving a first operation instruction sent by a client; The device public key fingerprint is sent to the client according to the first operation instruction, so that the client performs corresponding data security protection processing according to the device public key fingerprint.
6. The data security protection method according to claim 5, characterized in that: The method further comprises: When the number of servers increases and / or is reset, new device public key fingerprints reported by the servers are received, and the new device public key fingerprints are stored and managed.
7. A data security protection device, characterized in that: The device comprises: A first sending module, used for sending a first operation instruction to a third-party device; A first receiving module, configured to receive a device public key fingerprint in response to the first operation instruction, and establish a remote secure connection with a server; A second sending module, used for sending a second operation instruction to the server; A second receiving module, configured to receive a public key in response to the second operation instruction; The verification module is used to verify the device public key fingerprint according to the device public key fingerprint and the public key, obtain a verification result, and determine whether to continue the remote secure connection with the server according to the verification result.
8. The device according to claim 7, characterized in that The verification module is specifically used for: Calculating the public key to obtain a corresponding public key fingerprint; comparing the public key fingerprint with the device public key fingerprint; If the public key fingerprint matches the device public key fingerprint, it indicates that the identity of the server meets the preset requirements, and the remote secure connection continues; If the public key fingerprint does not match the device public key fingerprint, it indicates that the identity of the server does not meet the preset requirements, and the remote secure connection is terminated.
9. A data security protection device, characterized in that: The device comprises: A third receiving module, used to receive a first operation instruction sent by the client; A third sending module is used to send the device public key fingerprint to the client according to the first operation instruction, so that the client performs corresponding data security protection processing according to the device public key fingerprint; A fourth receiving module, configured to receive a new device public key fingerprint reported by the server when the number of servers increases and / or is reset; The storage module is used to store and manage the new device public key fingerprint.
10. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
Citation Information
Cited By
Data security protection method and device and storage medium
CN120880651A
