Device detection method, device, server and storage medium
By obtaining and analyzing the description information of industrial control network equipment, and automatically selecting detection scripts for equipment detection, it solves the problems of high labor consumption and low efficiency in the existing technology, and realizes an efficient security detection process.
Patent Information
- Application Number
- CN202410675617.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-29
AI Technical Summary
In the existing technology, security detection of industrial control network equipment requires professionals, resulting in high manpower consumption and low efficiency.
By obtaining the description information of the enterprise and the device, the matching set of indicators to be tested is determined, and the corresponding detection script is selected based on the device description information to automatically detect the target device, including analysis of network-related information and vulnerability detection.
It improves the efficiency of equipment testing, reduces manpower consumption, and realizes an automated safety testing process.
Smart Images

Figure CN118244745B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to a device detection method, apparatus, server and storage medium. Background Art
[0002] With the rapid development of industrial Internet technology, information network technology has been widely used in the field of industrial control. Information network technology has improved the efficiency of enterprise production management, but it has also increased the threat to enterprise network security. Enterprises need to conduct security testing on their own industrial control network equipment.
[0003] In the related technology, professional inspectors are usually required to inspect the industrial control network equipment of the enterprise according to the safety inspection standards, which requires a lot of manpower and has low inspection efficiency. Summary of the invention
[0004] The embodiments of the present application provide a device detection method, device, server and storage medium, which can solve the problem in the related technology that professional inspectors need to inspect the industrial control network equipment of the enterprise according to safety inspection standards, which requires a lot of manpower and has low inspection efficiency.
[0005] A first aspect of an embodiment of the present application provides a device detection method, including:
[0006] Obtaining enterprise description information of the target enterprise and device description information of each device to be tested in the target enterprise;
[0007] Determine a set of indicators to be tested that matches the enterprise description information, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script;
[0008] Determine the target device under test based on the device description information of each device under test, and select the indicator under test that matches the target device under test from the indicator set under test;
[0009] Perform device detection on the target device under test according to a detection script corresponding to the test indicator of the target device under test.
[0010] Optionally, when the device description information includes device location information and device access permission information, determining a target device to be tested based on the device description information of each device to be tested, and selecting a test indicator that matches the target device to be tested from the test indicator set include:
[0011] According to at least one of the device location information and the device access permission information of each device under test, a target device under test and a test indicator matching the target device under test are determined.
[0012] Optionally, a detection script corresponding to the indicator to be tested of the target device to be tested is used to implement the following steps:
[0013] Obtain network-related information of the target device under test, and detect the device under test based on the network-related information of the target device under test to obtain a detection result, wherein the network-related information includes at least one of the following: communication messages for communicating with other communication devices, communication flow information generated by communicating with other communication devices, and network vulnerability information of the network in which it is located.
[0014] Optionally, if the target device under test is a programmable logic controller (PLC), obtaining network related information of the target device under test, and testing the device under test according to the network related information of the target device under test to obtain a test result, including:
[0015] Obtaining communication messages between the target device under test and other communication devices, and parsing the communication messages to obtain parsed content;
[0016] When the parsed content includes the target type content, a detection result indicating that a communication risk exists is generated.
[0017] Optionally, obtaining network-related information of the target device under test, and testing the device under test according to the network-related information of the target device under test to obtain a test result includes:
[0018] A network vulnerability detection is performed on the network where the target device under test is located to obtain network vulnerability information, and when the network vulnerability information indicates that a network vulnerability exists, a detection result is generated indicating that the network where the target device under test is located has a network vulnerability.
[0019] Optionally, after generating a detection result indicating that a network vulnerability exists in the network where the target device under test is located, the method further includes:
[0020] According to the network vulnerability information and the mapping relationship between the pre-set vulnerability information and the vulnerability solution, the target vulnerability solution corresponding to the network vulnerability information is determined, and the target vulnerability solution is output.
[0021] Optionally, the method further includes:
[0022] Presenting a preset interactive configuration interface, wherein the interactive configuration interface presents device description information and a set of indicators to be tested of each device to be tested, wherein the device description information includes a device identifier;
[0023] When a configuration selection operation of the user on the interactive configuration interface is detected, the target indicator to be tested and the target device identifier selected by the configuration selection operation are determined, and the target indicator to be tested is determined as the indicator to be tested of the device to be tested indicated by the target device identifier.
[0024] A second aspect of an embodiment of the present application provides a device detection apparatus, including:
[0025] An information acquisition unit, used to acquire enterprise description information of a target enterprise and device description information of each device to be tested in the target enterprise;
[0026] An indicator determination unit, used to determine a set of indicators to be tested that matches the enterprise description information, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script;
[0027] An indicator selection unit, used to determine a target device under test based on device description information of each device under test, and select an indicator under test that matches the target device under test from the set of indicators under test;
[0028] The device detection unit is used to perform device detection on the target device to be tested according to a detection script corresponding to the test index of the target device to be tested.
[0029] Optionally, the indicator selection unit is specifically used to: when the device description information includes device location information and device access permission information, determine the target device to be tested and the indicator to be tested that matches the target device to be tested based on at least one of the device location information and device access permission information of each device to be tested.
[0030] Optionally, in the device detection unit, a detection script corresponding to the indicator to be tested of the target device to be tested is used to implement the following steps:
[0031] Obtaining network related information of the target device under test, and testing the device under test according to the network related information of the target device under test to obtain a test result;
[0032] The network-related information includes at least one of the following: communication messages for communicating with other communication devices, communication traffic information generated by communicating with other communication devices, and network vulnerability information of the network.
[0033] Optionally, if the target device under test is a programmable logic control device, the device detection unit obtains network-related information of the target device under test, and detects the device under test according to the network-related information of the target device under test to obtain a detection result, including:
[0034] Obtaining communication messages between the target device under test and other communication devices, and parsing the communication messages to obtain parsed content;
[0035] When the parsed content includes the target type content, a detection result indicating that a communication risk exists is generated.
[0036] Optionally, in the device detection unit, obtaining network-related information of the target device to be tested, and detecting the device to be tested according to the network-related information of the target device to be tested to obtain a detection result includes:
[0037] A network vulnerability detection is performed on the network where the target device under test is located to obtain network vulnerability information, and when the network vulnerability information indicates that a network vulnerability exists, a detection result is generated indicating that the network where the target device under test is located has a network vulnerability.
[0038] Optionally, the device also includes a vulnerability determination unit, which is used to determine a target vulnerability solution corresponding to the network vulnerability information based on the network vulnerability information and a mapping relationship between the pre-set vulnerability information and the vulnerability solution, and output the target vulnerability solution.
[0039] Optionally, the device also includes an interface presentation unit and a configuration determination unit.
[0040] An interface presenting unit, used to present a preset interactive configuration interface, wherein the interactive configuration interface presents device description information and a set of indicators to be tested of each device to be tested, wherein the device description information includes a device identifier;
[0041] The configuration determination unit is used to determine the target indicator to be tested and the target device identifier selected by the configuration selection operation when detecting the user's configuration selection operation on the interactive configuration interface, and determine the target indicator to be tested as the indicator to be tested of the device to be tested indicated by the target device identifier.
[0042] A third aspect of an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements each step of the device detection method provided in the first aspect when executing the computer program.
[0043] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, each step of the device detection method provided in the first aspect is implemented.
[0044] The device detection method, device, server and storage medium provided by the embodiments of the present application have the following beneficial effects: First, the enterprise description information of the target enterprise and the device description information of each device to be tested in the target enterprise are obtained. Then, a set of indicators to be tested that matches the enterprise description information is determined, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script. Next, based on the device description information of each device to be tested, the target device to be tested is determined, and the indicator to be tested that matches the target device to be tested is selected from the set of indicators to be tested. Finally, according to the detection script corresponding to the indicator to be tested of the target device to be tested, the target device to be tested is subjected to device detection. The device to be tested is automatically detected by the detection script corresponding to each indicator to be tested, which can improve the efficiency of device detection.
[0045] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 is a flow chart for implementing a device detection method provided in an embodiment of the present application;
[0048] Figure 2 It is a flow chart of an implementation of a device detection method for a PLC device provided in an embodiment of the present application;
[0049] Figure 3 This is a flowchart of an implementation of a configuration selection operation provided by an embodiment of the present application;
[0050] Figure 4 is a structural block diagram of a device detection device provided in an embodiment of the present application;
[0051] Figure 5 It is a structural block diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0053] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0054] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0055] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0056] In order to illustrate the technical solution of the present application, the following embodiments are used for illustration.
[0057] See also Figure 1 , Figure 1 The implementation flow chart of the device detection method provided in one embodiment of the present application includes:
[0058] Step 101: Obtain enterprise description information of a target enterprise and device description information of each device to be tested in the target enterprise.
[0059] Among them, the above-mentioned target enterprises usually refer to enterprises that need to conduct equipment testing.
[0060] The above-mentioned enterprise description information is usually information used to describe the enterprise. In practice, the above-mentioned enterprise description information may include but is not limited to: enterprise name, enterprise type, enterprise scale, enterprise business overview, etc.
[0061] The device description information is usually used to describe the device. In practice, the device description information may include but is not limited to: the device's Internet Protocol (IP), the device's LAN address (MAC), the device's brand, the device's manufacturer, the device's open ports, the device's type, etc.
[0062] In this embodiment, the execution subject of the above-mentioned device detection method is usually a server. It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules, or it can be implemented as a single software or software module, which is not specifically limited here.
[0063] In practice, the above-mentioned execution entity can obtain the enterprise description information of the target enterprise and the device description information of each device to be tested in the target enterprise input by the user, and the above-mentioned execution entity can also obtain the enterprise description information of the target enterprise and the device description information of each device to be tested in the target enterprise from a pre-set enterprise description information library and device description information library respectively.
[0064] Step 102: determine a set of indicators to be measured that matches the enterprise description information.
[0065] Among them, each indicator to be tested in the above-mentioned indicator set corresponds to a detection script. In practical applications, the above-mentioned indicators to be tested usually correspond to the inspection items in the security inspection standards issued by the state. For example, a certain indicator to be tested can correspond to the following inspection items in the security inspection standard "Network Security Programmable Controller for Industrial Automation and Control Systems": "Session protection mechanism, the communication channel between the upper software and the programmable program control device should have the ability to ensure the confidentiality and integrity of the transmitted data."
[0066] In practice, the execution subject may use the acquired enterprise description information to determine the set of indicators to be tested that matches the acquired enterprise description information from the pre-set mapping relationship between the enterprise description information and the set of indicators to be tested. The mapping relationship between the enterprise description information and the set of indicators to be tested may be a relationship table pre-established by the execution subject that stores the corresponding relationships between multiple enterprise description information and the set of indicators to be tested.
[0067] It should be pointed out that each indicator to be tested in the indicator set to be tested corresponding to the target enterprise may be an indicator to be tested in one safety standard or may be an indicator to be tested in multiple safety standards.
[0068] Step 103: determine the target device under test based on the device description information of each device under test, and select the indicator under test that matches the target device under test from the indicator set under test.
[0069] Here, the execution subject may use the device description information of each device under test to select a target device under test that meets a preset selection condition from multiple devices under test. The preset selection condition is usually a pre-set condition. As an example, the preset selection condition may be to select a device under test that contains a keyword in the corresponding device description information.
[0070] Here, for each device under test, a test indicator matching the device under test may be selected.
[0071] In actual applications, each indicator to be tested in the indicator set may correspond to device description information. For each device to be tested, the above-mentioned execution entity may use the device description information of the device to be tested to find the indicator to be tested that matches the target device to be tested from the indicator set, wherein the device description information corresponding to the found indicator to be tested matches the device description information of the device to be tested.
[0072] Step 104 , performing device detection on the target device under test according to a detection script corresponding to the indicator under test of the target device under test.
[0073] Here, the indicators to be tested correspond to the detection scripts. After obtaining the indicators to be tested that match the target device to be tested, the above-mentioned execution subject can obtain the detection script corresponding to the indicators to be tested of the target device to be tested through the correspondence between the indicators to be tested and the detection scripts, and perform device detection on the target device to be tested by running the detection script.
[0074] The device detection method provided in the embodiment of the present application first obtains the enterprise description information of the target enterprise and the device description information of each device to be tested in the target enterprise. Then, a set of indicators to be tested that matches the enterprise description information is determined, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script. Next, based on the device description information of each device to be tested, the target device to be tested is determined, and the indicator to be tested that matches the target device to be tested is selected from the set of indicators to be tested. Finally, according to the detection script corresponding to the indicator to be tested of the target device to be tested, the target device to be tested is subjected to device detection. By automatically detecting the device to be tested through the detection script corresponding to each indicator to be tested, the efficiency of device detection can be improved.
[0075] In some optional implementations of this embodiment, when the device description information includes device location information and device access permission information, determining the target device to be tested based on the device description information of each device to be tested, and selecting the indicator to be tested that matches the target device to be tested from the indicator set to be tested may include:
[0076] According to at least one of the device location information and the device access permission information of each device under test, a target device under test and a test indicator matching the target device under test are determined.
[0077] The device location information is usually used to describe the location of the device. In practice, the device location information may indicate the actual geographical location. For example, it may indicate the computer room of a certain device under test in the target enterprise. The device location information may also indicate the location in a local area network. For example, it may indicate that a certain device under test is in local area network A.
[0078] The above-mentioned device access permission information is generally information related to the permission of the device or the device to access other devices.
[0079] Here, the above-mentioned execution subject can use at least one of the device location information and device access permission information of the device under test to determine the device under test that meets the preset device selection conditions as the target device under test. For example, when the device location information of each device under test is used to determine the target device under test, the device under test located in the local area network A can be determined as the target device under test. For further example, when the device access permission information of each device under test is used to determine the target device under test, the device under test with the permission to access the printer can be determined as the target device under test. In actual applications, the device location information and device access permission information of each device under test can also be used at the same time to determine the target device under test. For example, the device under test located in the local area network A and with the permission to access the printer can be determined as the target device under test.
[0080] After determining the target device under test, the execution subject may determine the indicator under test that matches the target device under test through the matching relationship between the device under test and the indicator under test.
[0081] The device detection method provided in this embodiment can screen the devices to be tested through the device location information and the device access permission information, and can select the target devices to be tested that need to be tested from the devices to be tested, perform device detection on the target devices to be tested, and not perform device detection on the devices to be tested that do not meet the conditions, thereby improving the efficiency of device detection.
[0082] In some optional implementations of this embodiment, a detection script corresponding to the indicator to be tested of the target device to be tested is used to implement the following steps:
[0083] Obtain network related information of the target device under test, and detect the device under test according to the network related information of the target device under test to obtain a detection result.
[0084] The network-related information includes at least one of the following: communication messages for communicating with other communication devices, communication traffic information generated by communicating with other communication devices, and network vulnerability information of the network.
[0085] Here, when the network-related information includes communication messages between the target device under test and other communication devices, the above-mentioned execution subject can obtain the communication messages by executing a preset message acquisition script instruction, and the above-mentioned execution subject can also use a message acquisition tool, such as burpsuit, to obtain the communication messages.
[0086] Here, when the network-related information includes the communication flow information generated by the target device under test communicating with other communication devices, the above-mentioned execution subject can obtain the communication flow information through the switch mirror port, or through a data capture tool, such as Wireshark. In practical applications, the acquisition of communication flow can be terminated when it is detected that the preset termination condition is currently met. As an example, the preset termination condition may include: reaching a preset time point, and the acquired communication flow reaches a preset flow threshold.
[0087] Here, when the network-related information includes network vulnerability information of the network, the above-mentioned execution subject can obtain the network vulnerability information through vulnerability scanning technology, such as vulnerability concept verification (Proof Of Concept, POC), vulnerability code scanning (Exploit, EXP), fuzz testing (Fuzzing), etc.
[0088] After obtaining the network-related information of the target device under test, the above-mentioned execution entity can detect the network-related information based on the various inspection items in the safety standard, determine whether the network-related information meets the requirements of the various inspection items in the safety standard, and obtain the detection result.
[0089] The device detection method provided in this embodiment detects the network information of the device to be tested and obtains the detection result corresponding to the network information. On the one hand, it helps to expand the scope of application of the device detection method. On the other hand, the detection result can also be used for subsequent safety standard detection, providing detection data for safety standard detection, which helps to improve the efficiency of equipment detection.
[0090] In some optional implementations of this embodiment, after obtaining the communication flow information generated by the target device under test communicating with other communication devices, the execution subject can generate a curve chart of the communication flow information according to the acquisition time through a preset information presentation template. In practical applications, for different types of communication flow information, the communication flow information can be classified and counted according to type, and the communication flow information can be presented through a preset presentation template.
[0091] The device detection method provided in this embodiment visualizes communication flow information, which is helpful for diagnosing communication flow.
[0092] See also Figure 2 , Figure 2 A flow chart of an implementation method of a PLC device detection method provided in an embodiment of the present application includes:
[0093] Step 201: obtain a communication message between the target device under test and other communication devices, and parse the communication message to obtain parsed content.
[0094] Here, the above-mentioned execution subject can obtain the communication message by executing a preset message acquisition script instruction, and the above-mentioned execution subject can also use a message acquisition tool, such as burpsuit, to obtain the communication message.
[0095] In practice, after obtaining the communication message between the target device under test and other communication devices, the above-mentioned execution subject can parse the message through a message parsing tool, such as tcpdump, wireshark, to obtain the parsed content of the communication message. The above-mentioned execution subject can also decode the communication message through a pre-set message decoding rule to obtain the parsed content of the communication message.
[0096] Step 202: When the parsed content includes the target type of content, a detection result indicating the existence of a communication risk is generated.
[0097] Among them, the above-mentioned target type content is usually content that does not meet the communication security standard. For example, when parsing the communication message between the PLC device and other communication devices, since the communication security standard of the PLC device has the following standard: "Session protection mechanism, the communication channel between the upper software and the PLC device should have the ability to ensure the confidentiality and integrity of the transmitted data", therefore, for the communication message between the PLC device and other communication devices, the target type content can be user account information and password information. For further example, if the communication message between the PLC device and other communication devices is parsed, and the parsed content includes user account information and / or password information, it indicates that there is a communication risk.
[0098] After detecting that the parsed content includes the target type of content, it indicates that the device under test has a communication risk, and the execution subject may generate a detection result indicating the existence of a communication risk. Here, the detection result may include device description information of the device under test and information related to the communication security risk. In practice, the information related to the communication security risk may include specific inspection items corresponding to the communication security risk.
[0099] The device detection method provided in this embodiment helps to perform targeted detection of the communication security of the PLC device by detecting the communication security standard of the PLC device, thereby improving the accuracy of device detection of the PLC device.
[0100] In some optional implementations of the present embodiment, network-related information of the target device under test is obtained, and the device under test is tested based on the network-related information of the target device under test to obtain a test result, which may include: performing a network vulnerability test on the network in which the target device under test is located to obtain network vulnerability information, and when the network vulnerability information indicates the existence of a network vulnerability, generating a test result indicating the existence of a network vulnerability in the network in which the target device under test is located.
[0101] In practice, the execution subject may use vulnerability scanning technology to detect network vulnerabilities in the network where the target device under test is located, so as to obtain the network vulnerability information. In practice, the vulnerability scanning technology may include but is not limited to: Proof of Concept (POC), Exploit (EXP), Fuzzing, etc.
[0102] When the network vulnerability information indicates that a network vulnerability exists, the execution subject may generate a detection result indicating that a network vulnerability exists in the network where the target device under test is located. Here, the detection result may include device description information of the target device under test and network information related to the network vulnerability. In practice, the network information related to the network vulnerability may include: network topology information, network vulnerability type information, etc.
[0103] The device detection method provided in this embodiment helps to expand the application scope of device detection by detecting network vulnerabilities of the device to be detected.
[0104] In some optional implementations of this embodiment, after generating a detection result indicating that a network vulnerability exists in the network where the target device to be tested is located, the above-mentioned device detection method may also include: determining a target vulnerability solution corresponding to the network vulnerability information based on the network vulnerability information and a mapping relationship between pre-set vulnerability information and vulnerability solutions, and outputting the target vulnerability solution.
[0105] The mapping relationship between the vulnerability information and the vulnerability solution may be a relationship table pre-established by the execution subject and storing a plurality of corresponding relationships between vulnerability information and vulnerability solutions.
[0106] In practice, the execution subject can use network vulnerability information to find the target vulnerability solution corresponding to the network vulnerability information from the mapping relationship between the vulnerability information and the vulnerability solution set in advance. In actual application, the execution subject can use the target vulnerability solution as part of the detection result of the network vulnerability, and output the detection result through a pre-set presentation template. In this way, the user can intuitively view the detection results and the network vulnerability information therein, so as to timely and effectively repair the relevant network vulnerabilities.
[0107] The device detection method provided in this embodiment determines the corresponding vulnerability solution through network vulnerability information, which helps to timely and effectively repair the network vulnerability of the device under test.
[0108] See also Figure 3 , Figure 3 The implementation flow chart of the configuration selection operation provided in an embodiment of the present application includes:
[0109] Step 301 : presenting a preset interactive configuration interface, wherein the interactive configuration interface presents device description information and a set of indicators to be tested of each device to be tested, wherein the device description information includes a device identifier.
[0110] The interactive configuration interface is usually a pre-set interactive interface for configuration information. In practice, the interactive configuration interface can present the device description information of each device under test and the set of indicators to be tested. In this way, the user can select the device description information of the device under test that needs to be tested from the device description information of each device under test presented on the interactive configuration interface according to the detection requirements, and select the indicators to be tested that need to correspond to each device under test from the set of indicators to be tested.
[0111] Step 302, when a configuration selection operation of the user on the interactive configuration interface is detected, the target indicator to be tested and the target device identifier selected by the configuration selection operation are determined, and the target indicator to be tested is determined as the indicator to be tested of the device to be tested indicated by the target device identifier.
[0112] The above configuration selection operation generally refers to the operation of selecting the device to be tested and the indicator to be tested.
[0113] In practice, when the execution subject detects a configuration selection operation performed by a user on the interactive configuration interface, it can directly obtain the target indicator to be measured and the target device identifier selected by the configuration selection operation.
[0114] Afterwards, the execution subject may determine the target indicator to be tested as the indicator to be tested of the device to be tested indicated by the target device identifier, so that the device to be tested may be tested using a test script corresponding to the indicator to be tested.
[0115] For example, if the target indicators to be tested selected by the configuration selection operation are indicator 1 and indicator 2, and the target device identifier selected is identifier A, then the execution subject can use the indicators 1 and 2 as the indicators to be tested of the device to be tested indicated by the identifier A. Manual selection of indicators to be tested for the device to be tested can be achieved, which is more flexible.
[0116] The device detection method provided in this embodiment allows the user to select the device to be tested and the indicators to be tested that need to be tested through an interactive configuration interface, which helps to achieve targeted detection of the device to be tested and helps to improve the accuracy of device detection.
[0117] In some optional implementations of this embodiment, the above-mentioned execution entity may write the detection result information of the device detection into a preset information presentation template to generate a visual graph for presenting the detection result information.
[0118] The device detection method provided in this embodiment visualizes the detection result information of the device to be detected through a pre-set information presentation template, so that the user can obtain various detection result information of the device detection by viewing the visual graph, which is convenient for the user.
[0119] See also Figure 4 , Figure 4 This is a structural block diagram of a device detection device provided in an embodiment of the present application, including:
[0120] The information acquisition unit 401 is used to acquire the enterprise description information of the target enterprise and the device description information of each device to be tested in the target enterprise;
[0121] The indicator determination unit 402 is used to determine a set of indicators to be tested that matches the enterprise description information, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script;
[0122] The indicator selection unit 403 is used to determine the target device under test based on the device description information of each device under test, and select the indicator under test that matches the target device under test from the indicator set under test;
[0123] The device detection unit 404 is used to perform device detection on the target device to be tested according to a detection script corresponding to the test indicator of the target device to be tested.
[0124] In some embodiments, the indicator selection unit 403 is specifically used to: when the device description information includes device location information and device access permission information, determine the target device to be tested and the indicator to be tested that matches the target device to be tested according to at least one of the device location information and the device access permission information of each device to be tested.
[0125] In some embodiments, in the device detection unit 404, the detection script corresponding to the indicator to be tested of the target device to be tested is used to implement the following steps:
[0126] Obtaining network related information of the target device under test, and testing the device under test according to the network related information of the target device under test to obtain a test result;
[0127] The network-related information includes at least one of the following: communication messages for communicating with other communication devices, communication traffic information generated by communicating with other communication devices, and network vulnerability information of the network.
[0128] In some embodiments, if the target device under test is a programmable logic control device, the device detection unit 404 obtains network-related information of the target device under test, and detects the device under test according to the network-related information of the target device under test to obtain a detection result, including:
[0129] Obtaining communication messages between the target device under test and other communication devices, and parsing the communication messages to obtain parsed content;
[0130] When the parsed content includes the target type content, a detection result indicating that a communication risk exists is generated.
[0131] In some embodiments, the device detection unit 404 obtains network-related information of the target device to be tested, and detects the device to be tested according to the network-related information of the target device to be tested to obtain a detection result, including:
[0132] A network vulnerability detection is performed on the network where the target device under test is located to obtain network vulnerability information, and when the network vulnerability information indicates that a network vulnerability exists, a detection result is generated indicating that the network where the target device under test is located has a network vulnerability.
[0133] In some embodiments, the device also includes a vulnerability determination unit (not shown in the figure), which is used to determine a target vulnerability solution corresponding to the network vulnerability information based on the network vulnerability information and a mapping relationship between the pre-set vulnerability information and the vulnerability solution, and output the target vulnerability solution.
[0134] In some embodiments, the apparatus further includes an interface presentation unit and a configuration determination unit (not shown in the figure).
[0135] An interface presenting unit, used to present a preset interactive configuration interface, wherein the interactive configuration interface presents device description information and a set of indicators to be tested of each device to be tested, wherein the device description information includes a device identifier;
[0136] The configuration determination unit is used to determine the target indicator to be tested and the target device identifier selected by the configuration selection operation when detecting the user's configuration selection operation on the interactive configuration interface, and determine the target indicator to be tested as the indicator to be tested of the device to be tested indicated by the target device identifier.
[0137] The device provided in this embodiment first obtains the enterprise description information of the target enterprise and the device description information of each device to be tested in the target enterprise. Then, a set of indicators to be tested that matches the enterprise description information is determined, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script. Next, based on the device description information of each device to be tested, the target device to be tested is determined, and the indicator to be tested that matches the target device to be tested is selected from the set of indicators to be tested. Finally, according to the detection script corresponding to the indicator to be tested of the target device to be tested, the target device to be tested is subjected to device detection. By automatically detecting the device to be tested through the detection script corresponding to each indicator to be tested, the efficiency of device detection can be improved.
[0138] It should be understood that Figure 4 In the structural block diagram of the device detection device shown in FIG. 1 , each unit is used to perform Figure 1 , Figure 2 , Figure 3 The steps in the corresponding embodiments, and for Figure 1 , Figure 2 , Figure 3 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figure 1 , Figure 2 , Figure 3 as well as Figure 1 , Figure 2 , Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here.
[0139] See also Figure 5 , Figure 5 is a structural block diagram of a server 500 provided in an embodiment of the present application. The server 500 in this embodiment includes: at least one processor 501 ( Figure 5 Only one processor is shown in the figure), a memory 502, and a computer program 503 stored in the memory 502 and executable on at least one processor 501, such as a device detection program. When the processor 501 executes the computer program 503, the steps in the above-mentioned device detection method embodiments are implemented. When the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented, such as, Figure 4 The functions of units 401 to 404 are shown.
[0140] Exemplarily, the computer program 503 may be divided into one or more units, one or more units are stored in the memory 502, and are executed by the processor 501 to complete the present application. One or more units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 503 in the server 500. For example, the computer program 503 may be divided into an information acquisition unit, an indicator determination unit, an indicator selection unit, and a device detection unit. The specific functions of each unit have been described in the above embodiments and will not be repeated here.
[0141] The server 500 may be a computing device such as a server, a desktop computer, a tablet computer, a cloud server, and a mobile terminal. The server 500 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 This is only an example of the server 500 and does not constitute a limitation on the server 500 . The server 500 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the server may also include input and output devices, network access devices, buses, etc.
[0142] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0143] The memory 502 may be an internal storage unit of the server 500, such as a hard disk or memory of the server 500. The memory 502 may also be an external storage device of the server 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 500. Optionally, the memory 502 may also include both an internal storage unit of the server 500 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the turntable device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
[0144] 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.
[0145] If the integrated module 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 present application implements all or part of the processes in the above-mentioned embodiment method, and the computer program that can be completed by instructing the relevant hardware through a computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0147] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A device detection method, characterized in that: include: Obtaining enterprise description information of a target enterprise and device description information of each device to be tested in the target enterprise; Determine a set of indicators to be tested that matches the enterprise description information, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script; Based on the device description information of each device under test, determine the target device under test, and select the indicator under test that matches the target device under test from the set of indicators under test, wherein the target device under test is a device under test that meets a preset selection condition among the multiple devices under test, and the preset selection condition includes that the device description information of the device under test contains a certain keyword; Performing device detection on the target device to be tested according to a detection script corresponding to the indicator to be tested of the target device to be tested; Among them, when the device description information includes device location information and device access permission information, determining the target device to be tested based on the device description information of each device to be tested, and selecting the indicator to be tested that matches the target device to be tested from the set of indicators to be tested, include: determining the target device to be tested and the indicator to be tested that matches the target device to be tested based on at least one of the device location information and device access permission information of each device to be tested, and the device access permission information includes information related to the permission for the device or the device to access other devices.
2. The device detection method according to claim 1, characterized in that: The detection script corresponding to the indicator to be tested of the target device to be tested is used to implement the following steps: Obtain network-related information of the target device to be tested, and detect the device to be tested based on the network-related information of the target device to be tested to obtain a detection result, wherein the network-related information includes at least one of the following: communication messages for communicating with other communication devices, communication traffic information generated by communicating with other communication devices, and network vulnerability information of the network.
3. The device detection method according to claim 2, characterized in that: If the target device under test is a programmable logic control device, the acquiring of network related information of the target device under test, and testing the device under test according to the network related information of the target device under test to obtain a test result include: Acquire the communication message used by the target device under test to communicate with other communication devices, and parse the communication message to obtain parsed content; When the parsed content includes the target type of content, a detection result indicating the existence of a communication risk is generated.
4. The device detection method according to claim 2, characterized in that: The acquiring the network related information of the target device under test, and testing the device under test according to the network related information of the target device under test to obtain a test result, includes: A network vulnerability detection is performed on the network where the target device under test is located to obtain the network vulnerability information, and when the network vulnerability information indicates that a network vulnerability exists, a detection result is generated indicating that a network vulnerability exists in the network where the target device under test is located.
5. The device detection method according to claim 4, characterized in that: After generating a detection result indicating that a network vulnerability exists in the network where the target device under test is located, the method further includes: According to the network vulnerability information and a mapping relationship between the preset vulnerability information and vulnerability solutions, a target vulnerability solution corresponding to the network vulnerability information is determined, and the target vulnerability solution is output.
6. The device detection method according to any one of claims 1 to 5, characterized in that: The method further comprises: Presenting a preset interactive configuration interface, wherein the interactive configuration interface presents device description information of each device to be tested and the set of indicators to be tested, wherein the device description information includes a device identifier; When a configuration selection operation of the user on the interactive configuration interface is detected, the target indicator to be tested and the target device identifier selected by the configuration selection operation are determined, and the target indicator to be tested is determined as the indicator to be tested of the device to be tested indicated by the target device identifier.
7. A device detection device, characterized in that: include: An information acquisition unit, used to acquire enterprise description information of a target enterprise and device description information of each device to be tested in the target enterprise; An indicator determination unit, used to determine a set of indicators to be tested that matches the enterprise description information, wherein each indicator to be tested in the set of indicators to be tested corresponds to a detection script; An indicator selection unit, used to determine a target device under test based on device description information of each device under test, and select a test indicator that matches the target device under test from the set of test indicators, wherein the target device under test is a device under test that satisfies a preset selection condition among the multiple devices under test, and the preset selection condition includes that the device description information of the device under test contains a certain keyword; A device detection unit, configured to perform device detection on the target device to be tested according to a detection script corresponding to a test indicator of the target device to be tested; Among them, when the device description information includes device location information and device access permission information, determining the target device to be tested based on the device description information of each device to be tested, and selecting the indicator to be tested that matches the target device to be tested from the set of indicators to be tested, include: determining the target device to be tested and the indicator to be tested that matches the target device to be tested based on at least one of the device location information and device access permission information of each device to be tested, and the device access permission information includes information related to the permission for the device or the device to access other devices.
8. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the device detection method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the device detection method according to any one of claims 1 to 6 is implemented.
