Method, device and storage medium for determining cross-network device

By comparing the certificate public keys, information and status of two network segment devices, the problem of low detection accuracy of cross-network equipment in the existing technology is solved, timely detection and accurate judgment of cross-network equipment is realized, and network security is improved sex.

CN115378672BActive Publication Date: 2024-11-12DEBON SECURITIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210952395.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-09
Publication Date
2024-11-12
Estimated Expiration
2042-08-09

AI Technical Summary

Technical Problem

The prior art has low accuracy when detecting cross-network equipment, and cannot detect unregistered equipment and equipment passing through multi-layer switches in a timely manner, and there are blind spots and limitations in monitoring.

Method used

By obtaining the certificate public keys, device information and device status of the two network segment devices, it is possible to determine whether the terminal device crosses the network without registering in advance, improving accuracy and network compatibility.

Benefits of technology

It realizes timely detection and accurate judgment of cross-network devices, reduces detection limitations, and improves network and data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115378672B_ABST
    Figure CN115378672B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus and storage medium for determining a cross-network device. A method for determining a cross-network device includes: obtaining a first certificate public key corresponding to a first terminal device accessing a first network segment; obtaining a second certificate public key corresponding to a second terminal device accessing a second network segment; comparing the first certificate public key with the second certificate public key to obtain a first comparison result; and determining the cross-network device according to the first comparison result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a method, device and storage medium for determining a cross-network device. Background Art

[0002] Due to the characteristics of financial information systems, the three basic networks of trading network, simulation network and office network are physically isolated and cannot access each other. However, due to illegal operations and other reasons, there are indeed cases in actual work where cross-network devices are used to connect two physically isolated networks at the same time, which may lead to sensitive data leakage, virus cross-network transmission and other problems.

[0003] The existing technologies for solving the above problems include (1) installing terminal security and other management software on each device in the network. Once a device is connected to two physically isolated network segments at the same time, the management software can detect the abnormal device parameters of the network card in time and promptly alert the management personnel. However, the disadvantage of this method is that only registered devices will have management software installed. If employees use private devices to access two isolated network segments, it cannot be detected in time, resulting in a monitoring blind spot. (2) Use the netbios protocol to obtain the MAC address of the target device and determine whether it is a dual-network card device by comparing the MAC address. The disadvantage of this method is that in a complex network structure, if it crosses multiple layers of switches, the netbios protocol cannot obtain the MAC address of the target device. At the same time, if the device uses a third-party external network card, there is no association between the MACs of the two network cards, so this method still has certain limitations.

[0004] With respect to the technical problem of low accuracy in detecting cross-network devices in the above-mentioned prior art, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, an apparatus, and a storage medium for determining a cross-network device, so as to at least solve the technical problem of low accuracy in detecting cross-network devices in the prior art.

[0006] According to one aspect of an embodiment of the present application, a method for determining a cross-network device is provided, comprising: obtaining a first certificate public key corresponding to a first terminal device accessing a first network segment; obtaining a second certificate public key corresponding to a second terminal device accessing a second network segment; comparing the first certificate public key and the second certificate public key to obtain a first comparison result;

[0007] Obtain first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name and a version number of a service corresponding to each port;

[0008] Acquire second device information corresponding to a second terminal device accessing the second network segment;

[0009] Comparing the first device information with the second device information to obtain a second comparison result;

[0010] Acquire a first device status corresponding to a first terminal device accessing the first network segment, wherein the device status is used to indicate a power on / off status of the terminal device;

[0011] Acquire a second device status corresponding to a second terminal device accessing the second network segment;

[0012] Comparing the first device state with the second device state to obtain a third comparison result;

[0013] The cross-network device is determined according to the first comparison result, the second comparison result and the third comparison result.

[0014] According to another aspect of an embodiment of the present application, a storage medium is further provided, the storage medium including a stored program, wherein when the program is running, a processor executes any one of the methods described above.

[0015] According to another aspect of an embodiment of the present application, a device for determining a cross-network device is further provided, including: a first acquisition module, configured to acquire a first certificate public key corresponding to a first terminal device accessing a first network segment; acquire first device information corresponding to the first terminal device accessing the first network segment, wherein the device information includes a port number, a service name and a version number of a service corresponding to each of the ports; acquire a first device status corresponding to the first terminal device accessing the first network segment, wherein the device information is used to indicate a power on / off status of the terminal device;

[0016] A second acquisition module is used to obtain a second certificate public key corresponding to a second terminal device accessing the second network segment; obtain second device information corresponding to the second terminal device accessing the second network segment; and obtain a second device status corresponding to the second terminal device accessing the second network segment;

[0017] A comparison module, used to compare the first certificate public key with the second certificate public key to obtain a first comparison result;

[0018] a comparison submodule, configured to compare the first device information with the second device information to obtain a second comparison result;

[0019] a comparing unit, configured to compare the first device state with the second device state to obtain a third comparison result;

[0020] The device determination module is used to determine the cross-network device according to the first comparison result, the second comparison result and the third comparison result.

[0021] According to another aspect of an embodiment of the present application, a device for determining a cross-network device is also provided, including: a processor; and a memory connected to the processor, and configured to provide the processor with instructions for processing the following processing steps: obtaining a first certificate public key corresponding to a first terminal device accessing a first network segment; obtaining a second certificate public key corresponding to a second terminal device accessing a second network segment; comparing the first certificate public key and the second certificate public key to obtain a first comparison result;

[0022] Acquire first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name and a version number of a service corresponding to each port;

[0023] Acquire second device information corresponding to a second terminal device accessing the second network segment;

[0024] Comparing the first device information with the second device information to obtain a second comparison result;

[0025] Acquire a first device status corresponding to a first terminal device accessing the first network segment, wherein the device status is used to indicate a power on / off status of the terminal device;

[0026] Acquire a second device status corresponding to a second terminal device accessing the second network segment;

[0027] Comparing the first device state with the second device state to obtain a third comparison result;

[0028] A cross-network device is determined according to the first comparison result, the second comparison result, and the third comparison result.

[0029] In an embodiment of the present application, the computing device compares the certificate public key, device information, and device status of the first terminal device with the certificate public key, device information, and device status of the second terminal device to determine whether the first terminal device accessing the first network segment and the second terminal device accessing the second network segment are the same terminal device, thereby determining whether the terminal device is across networks. Compared with the prior art, the terminal devices in this technical solution do not need to be registered in advance, and will be detected in time as long as they access a specific network segment. In addition, this technical solution can determine whether a terminal device is across networks by comparing certificate public keys, which reduces the limitations of cross-network detection, improves accuracy, and protects network and data security. This solves the technical problem of low accuracy in detecting cross-network devices in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0031] Figure 1 is a hardware structure block diagram of a computing device for implementing the method according to Embodiment 1 of the present application;

[0032] Figure 2 It is a flowchart of a method for determining a cross-network device according to the first aspect of Embodiment 1 of the present application;

[0033] Figure 3 is a schematic diagram of a device for determining a cross-network device according to Embodiment 2 of the present application; and

[0034] Figure 4 It is a schematic diagram of a device for determining a cross-network device according to Example 3 of the present application. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims 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.

[0037] Example 1

[0038] According to this embodiment, a method embodiment of a method for determining a cross-network device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] The method embodiment provided in this embodiment can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computing device for implementing a method for determining a cross-network device. Figure 1 As shown, the computing device may include one or more processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, and a transmission device for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0040] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computing device. As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0041] The memory can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method for determining a cross-network device in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the method for determining a cross-network device of the above-mentioned application is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, 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.

[0042] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computing device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0043] The display may be, for example, a touch screen liquid crystal display (LCD) that may enable a user to interact with a user interface of the computing device.

[0044] It should be noted that, in some optional embodiments, the above Figure 1 The computing device shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware elements and software elements. Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computing devices described above.

[0045] In the above operating environment, according to the first aspect of this embodiment, a method for determining a cross-network device is provided. The method comprises: Figure 1 The computing device implementation shown in . Figure 2 A schematic diagram showing the process of the method is shown in FIG. Figure 2 As shown, the method includes:

[0046] S202: Obtain a first certificate public key corresponding to a first terminal device accessing a first network segment;

[0047] S204: Obtaining a second certificate public key corresponding to a second terminal device accessing the second network segment;

[0048] S206: Compare the first certificate public key with the second certificate public key to obtain a first comparison result; and

[0049] S208: Determine the cross-network device according to the first comparison result.

[0050] Specifically, when the first terminal device accesses the first network segment, the computing device searches the database for a pre-stored first certificate public key corresponding to the first terminal device. The first certificate public key is generated by the first terminal device. When the second terminal device accesses the second network segment, the computing device searches the database for a pre-stored second certificate public key corresponding to the second terminal device. The second certificate public key is generated by the second terminal device. There may be multiple first and second terminal devices. And the first network segment and the second network segment are isolated network segments. And the first network segment and the second network segment are examples, and the number of network segments is not limited in actual scenarios.

[0051] The computing device obtains a first certificate public key of a first terminal device, such as certificate public key 1 generated by terminal device 1 and certificate public key 2 generated by terminal device 2. Certificate public key 1 and certificate public key 2 are generated by different terminal devices. The computing device obtains a second certificate public key of a second terminal device, such as certificate public key 3 generated by terminal device 3 and certificate public key 4 generated by terminal device 4. Certificate public key 3 and certificate public key 4 are generated by different terminal devices.

[0052] Further, the computing device compares certificate public key 1 and certificate public key 2 (i.e., the first certificate public key) with certificate public key 3 and certificate public key 4 (i.e., the second certificate public key) respectively, and obtains corresponding comparison results (i.e., the first comparison result). For example, if comparison result 1 is that certificate public key 1 is the same as certificate public key 3, then the computing device determines that terminal device 1 (i.e., the first terminal device) that generates certificate public key 1 and terminal device 3 (i.e., the second terminal device) that generates certificate public key 3 are the same terminal device, thereby determining that the terminal device is a cross-network device that has accessed the first network segment and the second network segment.

[0053] For example, if the comparison result 2 is that the certificate public key 2 is different from the certificate public key 3 and is also different from the certificate public key 4, the computing device determines that the terminal device 2 (i.e., the first terminal device) that generates the certificate public key 2 is not the same terminal device as the terminal device 3 (i.e., the second terminal device) that generates the certificate public key 3, and is not the same terminal device as the terminal device 4 (i.e., the second terminal device) that generates the certificate public key 4. However, because the computing device has determined that the terminal device 3 that generates the certificate public key 3 is a cross-network device, the computing device determines that the terminal device 2 (i.e., the first terminal device) that generates the certificate public key 2 and the terminal device 4 (i.e., the second terminal device) that generates the certificate public key 4 are not cross-network devices.

[0054] As described in the background technology, due to the characteristics of the financial information system, the three basic networks of the trading network, simulation network and office network are physically isolated and prohibited from accessing each other. However, due to illegal operations and other reasons, there are indeed cases in actual work where cross-network devices are used to connect to two physically isolated networks at the same time, which may lead to sensitive data leakage, virus cross-network transmission and other problems. The existing technologies for solving the above problems include (1) installing terminal security and other management software on each device in the network. Once a device is connected to two physically isolated network segments at the same time, the management software can detect the abnormal device parameters of the network card in time and promptly alert the management personnel. However, the disadvantage of this method is that only registered devices will have the management software installed. If an employee uses a private device to access two isolated network segments, it cannot be detected in time, resulting in a monitoring blind spot. (2) Use the netbios protocol to obtain the MAC address of the target device and determine whether it is a dual-network card device by comparing the MAC address. The disadvantage of this method is that in a complex network structure, if it crosses multiple layers of switches, the netbios protocol cannot obtain the MAC address of the target device. At the same time, if the device uses a third-party external network card, there is no correlation between the MACs of the two network cards, so this method still has certain limitations.

[0055] In response to the technical problems described above, through the technical solution of the embodiment of the present application, the computing device compares the certificate public key of the first terminal device with the certificate public key of the second terminal device to determine whether the first terminal device accessing the first network segment and the second terminal device accessing the second network segment are the same terminal device, thereby determining whether the terminal device is across the network. Compared with the prior art, the terminal devices in this technical solution do not need to be registered in advance, and will be detected in time as long as they access a specific network segment. In addition, this technical solution can determine whether the terminal device is across the network by comparing the certificate public keys, which reduces the limitations of cross-network detection, improves accuracy, and protects network and data security. This solves the technical problem of low accuracy in detecting cross-network devices in the prior art.

[0056] Optionally, the operation of the cross-network device is determined based on the first comparison result, including: obtaining first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name, and a version number; obtaining second device information corresponding to a second terminal device accessing the second network segment; and comparing the first device information and the second device information to obtain a second comparison result; and determining the cross-network device based on the second comparison result.

[0057] Specifically, when the first terminal device accesses the first network segment, the computing device will search for the first device information of the first terminal device in addition to searching for the first certificate public key. The first device information is the port number, service name, and version number of the first terminal device. When the second terminal device accesses the second network segment, the computing device will search for the second device information of the second terminal device in addition to searching for the second certificate public key. The second device information is the port number, service name, and version number of the second terminal device.

[0058] After the computing device determines that terminal device 1 and terminal device 3 are the same terminal device based on the certificate public key, the device information of terminal device 1 is compared with the device information of terminal device 3 to obtain a comparison result (i.e., a second comparison result). When the comparison result is that the device information of terminal device 1 is the same as the device information of terminal device 3, the computing device determines that terminal device 1 and terminal device 3 are the same terminal device. Thus, it is determined that the terminal device is a cross-network device that has accessed the first network segment and the second network segment. When the comparison result is that the device information of terminal device 1 is different from the device information of terminal device 3, the computing device determines that terminal device 1 and terminal device 3 are not the same terminal device, thereby determining that terminal device 1 and terminal device 3 are not cross-network devices. Similarly, when the certificate public key of terminal device 1 is different from the certificate public key of terminal device 4, and the device information of terminal device 1 is also different from the device information of terminal device 4, the computing device determines that terminal device 1 and terminal device 4 are not the same terminal device.

[0059] Similarly, after the computing device determines that terminal device 2 and terminal device 4 are not the same terminal device based on the public key of the certificate, it compares the device information of terminal device 2 with the device information of terminal device 4 to obtain a comparison result (i.e., a second comparison result). When the comparison result is that the device information of terminal device 2 is different from the device information of terminal device 4, the computing device determines that terminal device 2 and terminal device 4 are not the same terminal device. Thus, it is determined that terminal device 2 and terminal device 4 are not cross-network devices that have accessed the first network segment and the second network segment. When the comparison result is that the device information of terminal device 2 is the same as the device information of terminal device 4, the computing device determines that terminal device 2 and terminal device 4 are the same terminal device, thereby determining that the terminal device is a cross-network device that has accessed the first network segment and the second network segment.

[0060] Therefore, this technical solution determines whether the terminal device is cross-network based on the device information, solving the problem that the terminal device cannot obtain the certificate public key because the remote management service is not turned on, thus failing to make cross-network judgments. It improves the accuracy of judgments, improves the compatibility of the network environment, and ensures network security.

[0061] Optionally, the operation of the cross-network device is determined based on the second comparison result, including: obtaining a first device status corresponding to a first terminal device accessing the first network segment, wherein the device status is used to indicate a power on / off status of the terminal device; obtaining a second device status corresponding to a second terminal device accessing the second network segment; and comparing the first device status with the second device status to obtain a third comparison result; and determining the cross-network device based on the third comparison result.

[0062] Specifically, after the first terminal device accesses the first network segment for the first time, the computing device will periodically obtain the first device status of the first terminal device accessing the first network segment, thereby recording the device status of the first terminal device and generating a device status sequence of the first terminal device. After the second terminal device accesses the second network segment for the first time, the computing device will periodically obtain the second device status of the second terminal device accessing the second network segment, thereby recording the device status of the second terminal device. The device status is used to indicate whether the terminal device is powered on. For example, the powered on status is 1 and the powered off status is 0.

[0063] After the computing device determines whether the terminal device 1 and the terminal device 3 are the same terminal device according to the certificate public key and the device information, the computing device obtains the device state sequence of the terminal device 1, for example, 1101111. The computing device also obtains the device state sequence of the terminal device 3, for example, 1101111. When the device state sequence of the terminal device 1 is the same as the device state sequence of the terminal device 3, the computing device determines that the terminal device 1 and the terminal device 3 are the same terminal device, thereby determining that the terminal device is a cross-network device that has accessed the first network segment and the second network segment.

[0064] For example, the device state sequence of terminal device 1 is 0001100, and the device state sequence of terminal device 3 is 1101111. When the device state sequence of terminal device 1 is different from the device state sequence of terminal device 3, the computing device determines that terminal device 1 and terminal device 3 are not the same terminal device, and thus determines that terminal device 1 and terminal device 3 are not cross-network devices.

[0065] Similarly, the computing device determines whether the terminal device 2 and the terminal device 4 are cross-network devices according to the method of determining whether the terminal device 1 and the terminal device 3 are cross-network devices.

[0066] Therefore, this technical solution determines whether the terminal device is cross-network through multiple dimensions such as certificate public key, device information and device status, thereby improving the accuracy of judgment and ensuring network security.

[0067] Optionally, the method further includes: deploying detection devices in the first network segment and the second network segment respectively; and recording, through the detection devices, corresponding feature information of terminal devices accessing the first network segment and the second network segment respectively.

[0068] Specifically, the computing device is respectively deployed with detection devices in the first network segment and the second network segment, such as mapping probes. The computing device regularly scans and maps the addresses of the terminal devices accessing the first network segment and the second network segment through the detection device, and records the characteristic information of the terminal devices in the network segment. The characteristic information of the terminal device includes the certificate public key of the remote management service (such as RDP service and SSH service), the list of ports opened by the terminal device, the banner information of the service corresponding to each port (service name and version number), and the device status of the terminal device.

[0069] Therefore, the technical solution can obtain the characteristic information of the terminal device through the detection device, and store the characteristic information of the terminal device in advance. When the characteristic information of the terminal device is needed, it is not necessary to obtain it in real time, which improves the speed and efficiency of the computing device to determine whether the terminal device is cross-network.

[0070] In addition, reference Figure 1 As shown, according to the second aspect of this embodiment, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is run, a processor executes any one of the above methods.

[0071] Therefore, according to this embodiment, the computing device compares the certificate public key of the first terminal device with the certificate public key of the second terminal device to determine whether the first terminal device accessing the first network segment and the second terminal device accessing the second network segment are the same terminal device, thereby determining whether the terminal device is across networks. Compared with the prior art, the terminal devices in this technical solution do not need to be registered in advance, and will be detected in time as long as they access a specific network segment. In addition, this technical solution can determine whether a terminal device is across networks by comparing certificate public keys, which reduces the limitations of cross-network detection, improves accuracy, and protects network and data security. This solves the technical problem of low accuracy in detecting cross-network devices in the prior art.

[0072] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0074] Example 2

[0075] Figure 3 FIG. 3 shows a device 300 for determining a cross-network device according to this embodiment, and the device 300 corresponds to the method according to the first aspect of Embodiment 1. Figure 3 As shown, the device 300 includes: a first acquisition module 310, used to obtain a first certificate public key corresponding to a first terminal device accessing a first network segment; a second acquisition module 320, used to obtain a second certificate public key corresponding to a second terminal device accessing a second network segment; a comparison module 330, used to compare the first certificate public key and the second certificate public key to obtain a first comparison result; and a device determination module 340, used to determine a cross-network device based on the first comparison result.

[0076] Optionally, the device determination module 340 includes: a first acquisition submodule, used to obtain first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name, and a version number; a second acquisition submodule, used to obtain second device information corresponding to a second terminal device accessing the second network segment; and a comparison submodule, used to compare the first device information and the second device information to obtain a second comparison result; and a device determination submodule, used to determine a cross-network device based on the second comparison result.

[0077] Optionally, the device determination submodule includes: a first acquisition unit, used to acquire a first device status corresponding to a first terminal device accessing the first network segment, wherein the device status is used to indicate a power on / off status of the terminal device; a second acquisition unit, used to acquire a second device status corresponding to a second terminal device accessing the second network segment; and a comparison unit, used to compare the first device status and the second device status to obtain a third comparison result; and a device determination unit, used to determine the cross-network device based on the third comparison result.

[0078] Optionally, the apparatus 300 further includes: a device deployment module for deploying detection devices in the first network segment and the second network segment respectively; and an information recording module for recording corresponding characteristic information of terminal devices accessing the first network segment and the second network segment respectively through the detection devices.

[0079] Therefore, according to this embodiment, the computing device compares the certificate public key of the first terminal device with the certificate public key of the second terminal device to determine whether the first terminal device accessing the first network segment and the second terminal device accessing the second network segment are the same terminal device, thereby determining whether the terminal device is across networks. Compared with the prior art, the terminal devices in this technical solution do not need to be registered in advance, and will be detected in time as long as they access a specific network segment. In addition, this technical solution can determine whether a terminal device is across networks by comparing certificate public keys, which reduces the limitations of cross-network detection, improves accuracy, and protects network and data security. This solves the technical problem of low accuracy in detecting cross-network devices in the prior art.

[0080] Example 3

[0081] Figure 4 FIG. 4 shows a device 400 for determining a cross-network device according to this embodiment, and the device 400 corresponds to the method according to the first aspect of Embodiment 1. Figure 4 As shown, the device 400 includes: a processor 410; and a memory 420, which is connected to the processor 410 and is used to provide instructions for the processor 410 to process the following processing steps: obtaining a first certificate public key corresponding to a first terminal device accessing a first network segment; obtaining a second certificate public key corresponding to a second terminal device accessing a second network segment; comparing the first certificate public key and the second certificate public key to obtain a first comparison result; and determining a cross-network device based on the first comparison result.

[0082] Optionally, the operation of the cross-network device is determined based on the first comparison result, including: obtaining first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name, and a version number; obtaining second device information corresponding to a second terminal device accessing the second network segment; and comparing the first device information and the second device information to obtain a second comparison result; and determining the cross-network device based on the second comparison result.

[0083] Optionally, the operation of the cross-network device is determined based on the second comparison result, including: obtaining a first device status corresponding to a first terminal device accessing the first network segment, wherein the device status is used to indicate a power on / off status of the terminal device; obtaining a second device status corresponding to a second terminal device accessing the second network segment; and comparing the first device status with the second device status to obtain a third comparison result; and determining the cross-network device based on the third comparison result.

[0084] Optionally, the apparatus 400 further includes: deploying detection devices in the first network segment and the second network segment respectively; and recording, through the detection devices, corresponding feature information of terminal devices accessing the first network segment and the second network segment respectively.

[0085] Therefore, according to this embodiment, the computing device compares the certificate public key of the first terminal device with the certificate public key of the second terminal device to determine whether the first terminal device accessing the first network segment and the second terminal device accessing the second network segment are the same terminal device, thereby determining whether the terminal device is across networks. Compared with the prior art, the terminal devices in this technical solution do not need to be registered in advance, and will be detected in time as long as they access a specific network segment. In addition, this technical solution can determine whether a terminal device is across networks by comparing certificate public keys, which reduces the limitations of cross-network detection, improves accuracy, and protects network and data security. This solves the technical problem of low accuracy in detecting cross-network devices in the prior art.

[0086] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0087] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0088] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.

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

[0090] In addition, each functional unit in each embodiment of the present invention 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.

[0091] 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 invention, in essence, 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. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0092] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for determining a cross-network device, characterized in that: include: Obtaining a first certificate public key corresponding to a first terminal device accessing a first network segment; Obtaining a second certificate public key corresponding to a second terminal device accessing the second network segment; Compare the first certificate public key with the second certificate public key to obtain a first comparison result; Acquire first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name and a version number of a service corresponding to each port; Acquire second device information corresponding to a second terminal device accessing the second network segment; Comparing the first device information with the second device information to obtain a second comparison result; Acquire a first device status corresponding to a first terminal device accessing the first network segment, wherein the device status is used to indicate a power on / off status of the terminal device; Acquire a second device status corresponding to a second terminal device accessing the second network segment; Comparing the first device state with the second device state to obtain a third comparison result; The cross-network device is determined according to the first comparison result, the second comparison result and the third comparison result.

2. The method according to claim 1, characterized in that: Also includes: Deploy detection devices on the first network segment and the second network segment respectively; as well as The detection device records the first certificate public key, the second certificate public key, the first device information, the second device information, the first device status, and the second device status corresponding to the terminal devices accessing the first network segment and the second network segment respectively.

3. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the processor executes the method according to any one of claims 1 to 2.

4. A device for determining a cross-network device, characterized in that: include: A first acquisition module, used to acquire a first certificate public key corresponding to a first terminal device accessing a first network segment; Obtaining first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name and a version number of a service corresponding to each port; obtaining a first device status corresponding to the first terminal device accessing the first network segment, wherein the device information is used to indicate a power on / off status of the terminal device; A second acquisition module is used to obtain a second certificate public key corresponding to a second terminal device accessing the second network segment; obtain second device information corresponding to the second terminal device accessing the second network segment; and obtain a second device status corresponding to the second terminal device accessing the second network segment; A comparison module, used to compare the first certificate public key with the second certificate public key to obtain a first comparison result; a comparison submodule, configured to compare the first device information with the second device information to obtain a second comparison result; a comparing unit, configured to compare the first device state with the second device state to obtain a third comparison result; The device determination module is used to determine the cross-network device according to the first comparison result, the second comparison result and the third comparison result.

5. The device according to claim 4, characterized in that Also includes: A device deployment module, used to deploy detection devices in the first network segment and the second network segment respectively; as well as An information recording module is used to record the first certificate public key, the second certificate public key, the first device information, the second device information, the first device status, and the second device status corresponding to the terminal devices accessing the first network segment and the second network segment respectively through the detection device.

6. A device for determining a cross-network device, characterized in that: include: processor; as well as A memory, connected to the processor, configured to provide the processor with instructions for processing the following processing steps: Obtaining a first certificate public key corresponding to a first terminal device accessing a first network segment; Obtaining a second certificate public key corresponding to a second terminal device accessing the second network segment; Compare the first certificate public key with the second certificate public key to obtain a first comparison result; Acquire first device information corresponding to a first terminal device accessing the first network segment, wherein the device information includes a port number, a service name and a version number of a service corresponding to each port; Acquire second device information corresponding to a second terminal device accessing the second network segment; Comparing the first device information with the second device information to obtain a second comparison result; Acquire a first device status corresponding to a first terminal device accessing the first network segment, wherein the device status is used to indicate a power on / off status of the terminal device; Acquire a second device status corresponding to a second terminal device accessing the second network segment; Comparing the first device state with the second device state to obtain a third comparison result; A cross-network device is determined according to the first comparison result, the second comparison result, and the third comparison result.