Remote security verification method, system, device and medium

By obtaining blank key value pairs and registering device identification, the reliability and convenience of traditional remote security verification technology in server attacks and multi-device operations is solved, and unified verification and efficient connection between the control end and the controlled end are realized, improving the improvement of The reliability and convenience of security verification are provided.

CN118972122AActive Publication Date: 2024-11-15CHINA TELECOM CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411052882.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-15
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

Traditional remote security verification technology is not reliable when the server is attacked by a network, and it is complicated to operate when there are multiple controlled devices in the local area network or intranet, making it difficult to achieve efficient security verification.

Method used

By obtaining blank key-value pairs, receiving service connection requests from the controlled terminal, registering the device identification, and performing security verification based on the registered key-value pairs. If the verification is passed, assisting the control terminal and the controlled terminal to connect, clear the registered key-value pairs, and improving The convenience and reliability of security verification.

Benefits of technology

It realizes unified verification of the control end connecting to the controlled end, improves the convenience of security verification, and reduces the possibility of registration key-value pairs being stolen, and improves the reliability of security verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972122A_ABST
    Figure CN118972122A_ABST
Patent Text Reader

Abstract

The invention provides a remote security verification method, system, device and medium, and the method comprises the steps: obtaining a blank key value pair and a service connection request, and obtaining a first device identifier corresponding to a controlled end according to the service connection request; returning the first equipment identifier to the controlled end to obtain a service registration request returned by the controlled end; performing key value registration on the blank key value pair according to a first equipment identifier and a first security verification code in the service registration request to obtain a registered key value pair; receiving a service control request sent by the control end, and performing security verification on a second device identifier and a second security verification code in the service control request according to the registration key value pair to obtain a security verification result; and if the security verification result is that the verification is passed, assisting the control end to connect with the controlled end, and clearing the registered key value pair. The remote security verification method can effectively improve the reliability and convenience of security verification. The invention relates to the technical field of Internet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a remote security verification method, system, device and medium. Background Art

[0002] At present, traditional remote security verification technologies can generally be divided into two categories. The first method is based on the access password stored in the server database to achieve security verification between the control device and the controlled device. When the server is attacked by the network, this method is prone to the access password of the controlled device being stolen, and the reliability is not high. The second method is based on directly storing the access password in the corresponding controlled device. When there are multiple controlled devices in the local area network or intranet, the operations required to achieve security verification between multiple devices are relatively cumbersome and inconvenient.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention

[0004] The purpose of the present invention is to solve one of the technical problems existing in the related art to at least a certain extent.

[0005] The main purpose of the embodiments of the present application is to propose a remote security verification method, system, device and medium, wherein the remote security verification method can effectively improve the reliability and convenience of security verification.

[0006] To achieve the above purpose, one aspect of an embodiment of the present application proposes a remote security verification method, which is applied to a server. The method includes:

[0007] Get a blank key-value pair;

[0008] Receiving a service connection request sent by a controlled terminal, and obtaining a first device identifier corresponding to the controlled terminal according to the service connection request;

[0009] Returning the first device identifier to the controlled end, so that the controlled end performs service registration processing on the first device identifier and obtains a service registration request returned by the controlled end;

[0010] According to the first device identifier and the first security verification code in the service registration request, performing key-value registration on the blank key-value pair to obtain a registered key-value pair;

[0011] receiving a service control request sent by the control end, and performing security verification on a second device identifier and a second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent a device identifier corresponding to a target controlled device of the control end, and the second security verification code is a security verification code corresponding to the target controlled device;

[0012] If the security verification result is that the verification is passed, the control end and the controlled end are assisted to connect, and the registration key-value pair is cleared.

[0013] In some embodiments, the blank key-value pair includes an identification key and a verification key, and the step of registering the blank key-value pair according to the first device identification and the first security verification code to obtain a registered key-value pair includes:

[0014] According to the first device identifier, register the identifier key position to obtain a registered identifier key position;

[0015] According to the first security verification code, the verification key position is verified and registered to obtain a registered verification key position.

[0016] In some embodiments, performing security verification on the second device identifier and the second security verification code in the service control request according to the registration key-value pair to obtain a security verification result includes:

[0017] According to the registered identification key position, performing identification matching on the second device identification to obtain an identification matching result;

[0018] If the identification matching result is that the identification matching is successful, the second security verification code is verified and matched according to the registered verification key position to obtain the security verification result.

[0019] In some embodiments, the step of assisting the control terminal to connect with the controlled terminal includes:

[0020] Acquire a first port address corresponding to the controlled end and a second port address corresponding to the control end;

[0021] According to the first port address and the second port address, the controlled end and the control end are assisted to establish a connection.

[0022] In some embodiments, the method further comprises:

[0023] Acquire connection status information, where the connection status information is used to represent the connection status between the server and the controlled terminal, or the connection status between the server and the control terminal;

[0024] If the connection status information is disconnected, the target port address is cleared, and the target port address is the first port address or the second port address.

[0025] One aspect of an embodiment of the present application provides a remote security verification method, which is applied to a controlled end. The method includes:

[0026] Sending a service connection request to the server, so that the server obtains a first device identifier corresponding to the controlled terminal according to the service connection request;

[0027] receiving the first device identifier returned by the server, and performing service registration processing on the first device identifier to obtain a service registration request;

[0028] The service registration request is sent to the server, so that the server performs key-value registration on the blank key-value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registration key-value pair; the server is used to receive the service control request sent by the control end, and perform security verification on the second device identifier and the second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent the device identifier corresponding to the target controlled device of the control end, and the second security verification code is the security verification code corresponding to the target controlled device; the server is used to assist the control end and the controlled end to connect when the security verification result is verification passed, and clear the registration key-value pair.

[0029] In some embodiments, performing service registration processing on the first device identifier to obtain the service registration request includes:

[0030] Obtaining a first port address and a first security verification code corresponding to the controlled end;

[0031] A request is constructed for the first device identification according to the first security verification code and the first port address to obtain the service registration request.

[0032] To achieve the above purpose, another aspect of the embodiment of the present application provides a remote security verification system, which is applied to a server, and the system includes:

[0033] Get unit, used to get blank key-value pairs;

[0034] A first receiving unit, configured to receive a service connection request sent by a controlled terminal, and obtain a first device identifier corresponding to the controlled terminal according to the service connection request;

[0035] a sending unit, configured to return the first device identification to the controlled end, so that the controlled end performs service registration processing on the first device identification and obtains a service registration request returned by the controlled end;

[0036] A key-value unit, configured to perform key-value registration on the blank key-value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registered key-value pair;

[0037] a second receiving unit, configured to receive a service control request sent by the control terminal, and perform security verification on a second device identifier and a second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent a device identifier corresponding to a target controlled device of the control terminal, and the second security verification code is a security verification code corresponding to the target controlled device;

[0038] The assisting unit is used for assisting the control end and the controlled end to connect if the security verification result is verification passed, and clearing the registration key-value pair.

[0039] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.

[0040] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0041] The embodiments of the present application include at least the following beneficial effects:

[0042] The present application provides a remote security verification method, system, device and medium, wherein the method obtains a blank key-value pair; receives a service connection request sent by a controlled end, and obtains a first device identifier corresponding to the controlled end according to the service connection request; returns the first device identifier to the controlled end, so that the controlled end performs service registration processing on the first device identifier and obtains a service registration request returned by the controlled end; performs key-value registration on the blank key-value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registration key-value pair; receives a service control request sent by a control end, and performs security verification on a second device identifier and a second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent the device identifier corresponding to the target controlled device of the control end, and the second security verification code is the security verification code corresponding to the target controlled device; if the security verification result is verification passed, the control end is assisted in connecting with the controlled end, and the registration key-value pair is cleared. This method is based on the registration key-value pair to achieve unified verification of the control end connecting to the controlled end, thereby improving the convenience of security verification; in addition, since the registration key-value pair will only exist on the server side when the controlled end is connected to the server side and the controlled end is not connected to the control end, this method can effectively reduce the possibility of the registration key-value pair being stolen and improve the reliability of security verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flowchart of the first remote security verification method provided in the embodiment of the present application;

[0044] Figure 2 It is a timing flow diagram of a remote security verification method provided in an embodiment of the present application;

[0045] Figure 3 is a detailed flow chart of step S140 provided in an embodiment of the present application;

[0046] Figure 4 is a detailed flow chart of step S150 provided in an embodiment of the present application;

[0047] Figure 5 is a detailed flow chart of step S160 provided in an embodiment of the present application;

[0048] Figure 6 This is an optional flowchart of a remote security verification method provided in an embodiment of the present application;

[0049] Figure 7 It is a flowchart of a second remote security verification method provided in an embodiment of the present application;

[0050] Figure 8 is a detailed flow chart of step S220 provided in an embodiment of the present application;

[0051] Fig. 9 It is a schematic diagram of a remote security verification system provided by an embodiment of the present application;

[0052] Fig.10 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. 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. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices / equipment and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0054] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0055] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0057] At present, traditional remote security verification technology can generally be divided into two categories. The first method is based on the access password stored in the server database to achieve security verification between the control device and the controlled device. When the server is attacked by the network, the access passwords of several controlled devices in the server database can be easily stolen by criminals. The controlled devices are usually set in the internal network. After obtaining the access passwords of one or more controlled devices, criminals can use the controlled devices to attack various servers in the intranet. There is a high security risk and low reliability.

[0058] The second method is based on directly storing the access password in the corresponding controlled device. When there are multiple controlled devices in the local area network or intranet that need to be controlled, security verification can only be performed once with each controlled device through the control device. The required operations are relatively cumbersome and inconvenient.

[0059] In view of this, the present application provides a remote security verification method, system, device and medium, wherein the method is based on a registration key-value pair to achieve unified verification of the control end connecting to the controlled end, thereby improving the convenience of security verification; in addition, the method only has a registration key-value pair recording the access password of the controlled end on the server end when the controlled end is connected to the server end, and the server end automatically destroys the registration key-value pair when the controlled end is connected to the control end, which can effectively reduce the possibility of the registration key-value pair being stolen and improve the reliability of security verification.

[0060] In addition, the storage location of the registration key-value pair of the method can be set in the server process memory. Specifically, the registration key-value pair data in the server process memory is protected at the kernel level and is very difficult to read. While achieving unified verification of the control end connecting to the controlled end and improving the convenience of security verification, it can avoid the situation where the access password of the controlled device is stolen in the server database.

[0061] In addition, since this method only

[0062] A remote security verification method provided in an embodiment of the present application can be applied in Internet application scenarios. In Internet application scenarios, Internet service providers can use the remote security verification method provided in an embodiment of the present application to perform security verification and connection between a control terminal and a controlled terminal through a service terminal, which can effectively improve the reliability and convenience of security verification.

[0063] A remote security verification method provided in an embodiment of the present application can be applied to a terminal, a server, or software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a vehicle-mounted terminal, etc., but is not limited thereto; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the method, etc., but is not limited to the above forms.

[0064] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0065] Reference Figure 1 and Figure 2 , Figure 1 This is an optional flow chart of a remote security verification method provided in an embodiment of the present application, which is applied to the server. Figure 1 The method may include but is not limited to steps S110 to S160.

[0066] Step S110, obtaining a blank key-value pair;

[0067] In the embodiment of the present application, after the server is started, it can first generate an empty key-value pair as a blank key-value pair, which can be temporarily stored in the server database or temporarily stored in the server process memory. Specifically, when the blank key-value pair is stored in the server process memory, the blank key-value pair can be stored in the server process memory in the form of a HashMAP.

[0068] It is understandable that the attribute format of a blank key-value pair can be expressed as<key,va l ue> , where the key is located at the identification key position, and the value is located at the verification key position. Each key can only correspond to one value, and multiple keys can correspond to one value. In addition, the number of blank key-value pairs obtained can be set according to actual conditions. When the number of blank key-value pairs obtained is greater than or equal to 2, each blank key-value pair corresponds to a controlled device (controlled end), which can realize unified verification of multiple controlled devices; for the convenience of explanation and understanding, the subsequent description of the embodiments of this application takes the example that the number of blank key-value pairs obtained is equal to 1, that is, there is a controlled end that needs to be controlled.

[0069] Step S120: receiving a service connection request sent by the controlled terminal, and obtaining a first device identifier corresponding to the controlled terminal according to the service connection request;

[0070] In an embodiment of the present application, if the controlled end needs to be controlled, the controlled end can send a service connection request to the server, and the service connection request can specifically be a TCP connection request; after the server receives the service connection request, the server searches the server for an identifier corresponding to the controlled end based on the information carried in the service connection request. If so, the retrieved identifier is used as the first device identifier; or, if not, the server generates a unique ID as the first device identifier corresponding to the controlled end.

[0071] Step S130: returning the first device identification to the controlled end, so that the controlled end performs service registration processing on the first device identification, and obtains a service registration request returned by the controlled end;

[0072] In an embodiment of the present application, after the server obtains the first device identifier based on retrieval or generation, it can return the first device identifier to the controlled end based on the connection link between the server and the controlled end, and obtain a service registration request returned by the controlled end. The service registration request carries the first device identifier and access password (i.e., the first security verification code) of the controlled end, which is used to register the hash value of the first security verification code to the server process memory, specifically, it can be registered to the HashMAP in the server process memory.

[0073] Step S140: performing key-value registration on the blank key-value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registered key-value pair;

[0074] In some embodiments, the blank key-value pair includes an identification key and a verification key. Figure 3 The step S140, registering the blank key-value pair according to the first device identifier and the first security verification code to obtain a registered key-value pair, includes:

[0075] A1. Register the identification key position according to the first device identification to obtain a registered identification key position;

[0076] A2. According to the first security verification code, the verification key position is verified and registered to obtain a registered verification key position.

[0077] In an embodiment of the present application, after the server receives a service registration request sent by the controlled end based on an established TCP connection, it can, based on the service registration request, replace the first device identifier of the controlled end with the identifier key, and replace the hash value corresponding to the first security verification code of the controlled end with the verification key, thereby obtaining a registration key-value pair.

[0078] It is understandable that if the aforementioned blank key-value pair is stored in the server database, the server can move the registration key-value pair to the server process memory for storage after obtaining the registration key-value pair. In addition, when the server obtains the registration key-value pair, it can also store the public network port address of the controlled end, that is, the socket address of the controlled end, in the server process memory based on the port information carried by the service registration request, which records the public network source IP and port number of the controlled end.

[0079] Step S150, receiving a service control request sent by the control end, and performing security verification on a second device identifier and a second security verification code in the service control request according to the registration key-value pair, to obtain a security verification result, wherein the second device identifier is used to represent a device identifier corresponding to a target controlled device of the control end, and the second security verification code is a security verification code corresponding to the target controlled device;

[0080] In some embodiments, reference Figure 4 The step S150, performing security verification on the second device identifier and the second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, includes:

[0081] B1. Performing identification matching on the second device identification according to the registered identification key position to obtain an identification matching result;

[0082] B2. If the identification matching result is that the identification matching is successful, the second security verification code is verified and matched according to the registered verification key position to obtain the security verification result.

[0083] In an embodiment of the present application, when the control end needs to control the controlled end, the control end sends a service control request for connecting to the controlled end after establishing a TCP connection with the server end. The service control request records the unique identifier (i.e., the second device identifier) ​​and the access password (i.e., the second security verification code) corresponding to the controlled end.

[0084] It can be understood that step B1 can be that the server searches in the HashMAP whether there is a registered identification key that matches the second device identifier. If the server does not find the registered identification key that matches the second device identifier, it can obtain an identification matching result indicating that the identification matching is unsuccessful, and the server can return a prompt message "the device is not online" to the control end; or, if the server finds the registered identification key that matches the second device identifier, the server can perform a hash operation on the corresponding verification key to obtain the first security verification code, and then match the first security verification code with the second security verification code sent by the control end. If the first security verification code is inconsistent with the second security verification code, the security verification result obtained is verification failure; or, if the first security verification code is consistent with the second security verification code, the security verification result obtained is verification success.

[0085] It should be noted that when the server receives a service control request, it can store the public port address of the control end, that is, the socket address of the control end, in the process memory of the server based on the port information contained in the service control request, which records the public source IP and port number of the control end.

[0086] Step S160: If the security verification result is verification passed, assist the control end and the controlled end to connect, and clear the registration key-value pair.

[0087] In some embodiments, reference Figure 5 The step S160, assisting the control end and the controlled end to connect, includes:

[0088] C1. Acquire a first port address corresponding to the controlled end and a second port address corresponding to the control end;

[0089] C2. Assisting the controlled end and the control end to establish connection according to the first port address and the second port address.

[0090] In the embodiment of the present application, if the security verification result is verification passed, the server first assists the control end and the controlled end to establish a direct connection, or assists the control end and the controlled end to establish an indirect connection. Specifically, the server first obtains the public network socket address of the control end (i.e., the second port address) and the public network socket address of the controlled end (i.e., the first port address), and then sends the public network socket address of the control end to the controlled end, and at the same time sends the socket address of the controlled end to the control end, so as to assist the control end and the controlled end to directly establish a TCP connection.

[0091] It can be understood that after the TCP connection is successfully established, the TCP connection between the control end and the server end is disconnected, and the TCP connection between the controlled end and the server end is disconnected. At this time, the server end clears the stored control end public socket address and the controlled end public socket address, and clears the registration key-value pairs stored in the server process memory (that is, the device ID and access password of the controlled end stored in the server process memory HashMAP).

[0092] It should be noted that if the server fails to assist the control end and the controlled end in directly establishing a TCP connection, the server will assist the control end and the controlled end in establishing an indirect connection. At this time, the server acts as a relay between the control end and the controlled end. The server can also destroy the stored control end public network socket address and the controlled end public network socket address, and clear the registration key-value pairs stored in the server process memory.

[0093] In some embodiments, reference Figure 6 , the remote security verification method further includes:

[0094] D1. Acquire connection status information, where the connection status information is used to represent the connection status between the server and the controlled terminal, or the connection status between the server and the control terminal;

[0095] D2. If the connection status information is disconnected, clear the target port address, where the target port address is the first port address or the second port address.

[0096] In an embodiment of the present application, when the control end successfully establishes a TCP connection with the server end and / or the controlled end successfully establishes a TCP connection with the server end, the server end can detect the connection status between it and the control end or the controlled end in real time, and perform corresponding operations based on the acquired connection status.

[0097] Specifically, the embodiment of the present application takes the connection status information representing the connection status between the server and the control end as an example. At this time, the corresponding target port address is the second port address. If the obtained connection status information is disconnected, the server can clear the public network socket address of the control end stored in the server process memory, so that the server will store the data content of the corresponding device only when it is connected to the corresponding device, so that the data content is stored in the server process memory for the shortest time.

[0098] It can be understood that the connection status information represents the content of the connection status between the server and the controlled end, which is similar to the aforementioned content and can be simply deduced by analogy, and this application will not elaborate on it here.

[0099] Figure 7 is another optional flow chart of a remote security verification method provided in an embodiment of the present application, which is applied to a controlled end. Figure 7 The method may include but is not limited to steps S210 to S230.

[0100] Step S210: sending a service connection request to the server, so that the server obtains a first device identifier corresponding to the controlled terminal according to the service connection request;

[0101] In the embodiment of the present application, step S210 is similar to the aforementioned step S120 and can be derived by analogy.

[0102] Step S220: receiving the first device identifier returned by the server, and performing service registration processing on the first device identifier to obtain a service registration request;

[0103] In some embodiments, reference Figure 8 The step S220, performing service registration processing on the first device identifier to obtain the service registration request, includes:

[0104] E1. Obtain a first port address and a first security verification code corresponding to the controlled end;

[0105] E2. According to the first security verification code and the first port address, a request is constructed for the first device identification to obtain the service registration request.

[0106] In an embodiment of the present application, after receiving the first device identifier returned by the server, the controlled end can use its own public network socket address as the first port address, and its own access password as the first security verification code; then generate a corresponding service registration request based on the first port address and the first security verification code, as well as the first device identifier returned by the server.

[0107] Step S230, sending the service registration request to the server, so that the server performs key-value registration on the blank key-value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registration key-value pair; the server is used to receive the service control request sent by the control end, and perform security verification on the second device identifier and the second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent the device identifier corresponding to the target controlled device of the control end, and the second security verification code is the security verification code corresponding to the target controlled device; the server is used to assist the control end and the controlled end to connect when the security verification result is verification passed, and clear the registration key-value pair.

[0108] In some embodiments, step S230 is similar to the aforementioned steps S140 to S160 and can be simply deduced by analogy.

[0109] The following is an explanation with reference to specific embodiments.

[0110] First embodiment

[0111] Client A acts as the control end, client B acts as the controlled end, and a server (i.e., the server) is deployed on the public network.

[0112] Step F: Start client B, and client B begins to establish a TCP connection with the server. The local socket address is 127.0.0.1:61323. The public network socket address of client B after conversion from the local public network net is 49.136.212.55:58966. After client B logs in to the server, it starts to register. The server saves the ID of client B and the hash value of the security verification code into the HashMap in the server process memory.

[0113] Step G: Client A establishes a TCP connection with the server. At this time, the socket address of client A is 127.0.0.0:62533. After the public network net conversion, the public network socket address of client A is 202.128.111.23:61288.

[0114] Step H: Client A sends a request to the server to connect to client B. After the server verifies the client B ID and password entered by client A and confirms that they are correct, it sends client B's public network socket address 49.136.212.55:58966 to client A and sends client A's public network socket address 202.128.111.23:61288 to client B, and then assists client A and client B to connect directly; then deletes the ID and password hash values ​​of client B in the HashMap in the server process memory;

[0115] Second embodiment

[0116] The C client is used as the control end, the jump server is used as the server end, and the intranet server is used as the controlled end.

[0117] Based on step F in the aforementioned first embodiment, the intranet server registers its access address, password hash value, and account in the HashMAP in the jump server process memory.

[0118] After passing the password verification of the jump machine, the C client accesses the intranet server according to the access address provided by the HashMAP in the memory of the jump machine process. After connecting to the intranet server, the C client can log in again.

[0119] See also Fig. 9 The embodiment of the present application also provides a remote security verification system, which is applied to a server, and the remote security verification system includes:

[0120] An acquisition unit 810 is used to acquire a blank key-value pair;

[0121] The first receiving unit 820 is used to receive a service connection request sent by a controlled terminal, and obtain a first device identifier corresponding to the controlled terminal according to the service connection request;

[0122] The sending unit 830 is used to return the first device identification to the controlled end, so that the controlled end performs service registration processing on the first device identification and obtains a service registration request returned by the controlled end;

[0123] The key value unit 840 is used to perform key value registration on the blank key value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registered key value pair;

[0124] The second receiving unit 850 is used to receive a service control request sent by the control end, and perform security verification on a second device identifier and a second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent a device identifier corresponding to a target controlled device of the control end, and the second security verification code is a security verification code corresponding to the target controlled device;

[0125] The assisting unit 860 is used to assist the control end and the controlled end to connect if the security verification result is verification passed, and clear the registration key-value pair.

[0126] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0127] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0128] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0129] See also Fig.10 , Fig.10 The hardware structure of an electronic device of an embodiment is illustrated, and the electronic device includes:

[0130] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0131] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 902, and the processor 901 calls and executes the methods of the embodiments of this application;

[0132] Input / output interface 903, used to implement information input and output;

[0133] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);

[0134] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0135] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0136] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program implements the above method when executed by a processor.

[0137] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0138] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor 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.

[0139] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0140] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0141] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, 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.

[0142] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0143] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0144] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0145] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0146] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0149] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A remote security verification method, characterized in that: Applied to the server, the method includes: Get a blank key-value pair; Receiving a service connection request sent by a controlled terminal, and obtaining a first device identifier corresponding to the controlled terminal according to the service connection request; Returning the first device identifier to the controlled end, so that the controlled end performs service registration processing on the first device identifier and obtains a service registration request returned by the controlled end; According to the first device identifier and the first security verification code in the service registration request, performing key-value registration on the blank key-value pair to obtain a registered key-value pair; receiving a service control request sent by the control end, and performing security verification on a second device identifier and a second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent a device identifier corresponding to a target controlled device of the control end, and the second security verification code is a security verification code corresponding to the target controlled device; If the security verification result is that the verification is passed, the control end and the controlled end are assisted to connect, and the registration key-value pair is cleared.

2. The remote security verification method according to claim 1, characterized in that: The blank key-value pair includes an identification key position and a verification key position, and the key-value registration of the blank key-value pair according to the first device identification and the first security verification code to obtain a registered key-value pair includes: According to the first device identifier, register the identifier key position to obtain a registered identifier key position; According to the first security verification code, the verification key position is verified and registered to obtain a registered verification key position.

3. The remote security verification method according to claim 2, characterized in that: The step of performing security verification on the second device identifier and the second security verification code in the service control request according to the registration key-value pair to obtain a security verification result includes: According to the registered identification key position, performing identification matching on the second device identification to obtain an identification matching result; If the identification matching result is that the identification matching is successful, the second security verification code is verified and matched according to the registered verification key position to obtain the security verification result.

4. The remote security verification method according to claim 1, characterized in that: The assisting the control end and the controlled end to connect includes: Acquire a first port address corresponding to the controlled end and a second port address corresponding to the control end; According to the first port address and the second port address, the controlled end and the control end are assisted to establish a connection.

5. The remote security verification method according to claim 4, characterized in that: The method further comprises: Acquire connection status information, where the connection status information is used to represent the connection status between the server and the controlled terminal, or the connection status between the server and the control terminal; If the connection status information is disconnected, the target port address is cleared, and the target port address is the first port address or the second port address.

6. A remote security verification method, characterized in that: Applied to the controlled end, the method includes: Sending a service connection request to the server, so that the server obtains a first device identifier corresponding to the controlled terminal according to the service connection request; receiving the first device identifier returned by the server, and performing service registration processing on the first device identifier to obtain a service registration request; The service registration request is sent to the server, so that the server performs key-value registration on the blank key-value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registration key-value pair; the server is used to receive the service control request sent by the control end, and perform security verification on the second device identifier and the second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent the device identifier corresponding to the target controlled device of the control end, and the second security verification code is the security verification code corresponding to the target controlled device; the server is used to assist the control end and the controlled end to connect when the security verification result is verification passed, and clear the registration key-value pair.

7. The security verification method according to claim 6, characterized in that: The performing service registration processing on the first device identifier to obtain the service registration request includes: Acquire a first port address and a first security verification code corresponding to the controlled end; A request is constructed for the first device identification according to the first security verification code and the first port address to obtain the service registration request.

8. A remote security verification system, characterized in that: Applied to the server, the system includes: Get unit, used to get blank key-value pairs; A first receiving unit, configured to receive a service connection request sent by a controlled terminal, and obtain a first device identifier corresponding to the controlled terminal according to the service connection request; a sending unit, configured to return the first device identification to the controlled end, so that the controlled end performs service registration processing on the first device identification and obtains a service registration request returned by the controlled end; A key-value unit, configured to perform key-value registration on the blank key-value pair according to the first device identifier and the first security verification code in the service registration request to obtain a registered key-value pair; a second receiving unit, configured to receive a service control request sent by the control terminal, and perform security verification on a second device identifier and a second security verification code in the service control request according to the registration key-value pair to obtain a security verification result, wherein the second device identifier is used to represent a device identifier corresponding to a target controlled device of the control terminal, and the second security verification code is a security verification code corresponding to the target controlled device; The assisting unit is used for assisting the control end and the controlled end to connect if the security verification result is verification passed, and clearing the registration key-value pair.

9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Security authentication system and method for end-to-end encrypted chat of edge computing device

    CN116015747A

  • Service calling method and device, equipment and storage medium

    CN118055157A

  • Electronic device for managing controlled device and method of operating same

    US20240056787A1

  • Remote assistance method and apparatus, and electronic device and medium

    WO2023025054A1

  • Data access method and data access system thereof

    WO2023143061A1