Communication method, device and electronic device for vulnerability detection

By adopting a unified vulnerability detection protocol and function inheritance design in vulnerability detection communication, the management server realizes unified management of multiple different scanner nodes, solving the problems of poor universality and limitation of communication management in the existing technology. Suitable for asset management in complex network environments.

CN114006761BActive Publication Date: 2024-10-11BEIJING DINGXIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111282166.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-01
Publication Date
2024-10-11
Estimated Expiration
2041-11-01

AI Technical Summary

Technical Problem

Existing vulnerability detection communication methods cannot achieve unified management of multiple different scanner nodes through a management server, resulting in poor universality and limited management of communication management. Especially in complex network environments, they cannot effectively manage different network areas. assets.

Method used

A vulnerability detection communication method is adopted to send data packets of a unified vulnerability detection communication protocol to the target scanner node through the management server. The target scanner node parses and calls its own functional interface to implement function inheritance design to support different scans. Unified communications and management of server nodes. The method includes establishing a communication connection between the management server and the target scanner node, using identity certificate verification, and constructing vulnerability detection data packets through XML data format to implement functions such as starting, stopping, progress acquisition, and result acquisition.

Benefits of technology

It realizes unified communication and management of multiple scanner nodes with different communication protocols through a management server, enhances the universality of communication management, solves the problem of asset management in different network areas in complex network environments, and eases the complexity of communication management. Problems with poor generalizability and limitations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114006761B_ABST
    Figure CN114006761B_ABST
Patent Text Reader

Abstract

The present invention provides a communication method, device and electronic device for vulnerability detection, including: a management server sends a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, the target scanner node parses the vulnerability detection data packet, obtains the detection logic contained in the vulnerability detection data packet, and uses its own function call logic to call its own target detection function interface according to the detection logic, thereby realizing the detection function corresponding to the detection logic. The method of the present invention can achieve the purpose of unified management of multiple different scanner nodes through a management server, and the communication management is more universal and unrestricted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network security, and in particular to a communication method, device and electronic equipment for vulnerability detection. Background Art

[0002] In the field of computer communication, TCP / IP protocol standard is the most widely used communication method. Common communication modes include C / S (Client / Server) communication mode or B / S (Browser / Server) communication mode. In current vulnerability detection communication, TCP / IP protocol standard is usually used to design the communication interaction between scanner node and management server. For one scanner node or multiple identical scanner nodes, the C / S communication mode can be used to realize the communication management of one management server to one or more identical scanner nodes.

[0003] However, in the face of complex network environments, different network areas usually use specific scanners specifically for the assets in the current area. Since different scanner nodes have different communication protocols, it is impossible to achieve unified management of different scanner nodes through a management server, which is not conducive to the enterprise management of security product assets in the network environment.

[0004] In summary, the existing vulnerability detection communication method cannot achieve the purpose of unified management of different scanner nodes through a management server, that is, the universality of communication management is poor and the communication management is limited. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a communication method, device and electronic device for vulnerability detection, so as to alleviate the technical problem that the existing communication method for vulnerability detection cannot achieve the purpose of unified management of multiple different scanner nodes through a management server, that is, the universality of communication management is poor and the communication management is limited.

[0006] In a first aspect, an embodiment of the present invention provides a communication method for vulnerability detection, which is applied to a communication protocol architecture consisting of a management server and multiple scanner nodes of different communication protocols, and the method includes:

[0007] The management server sends a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and the scanner nodes of the plurality of different communication protocols;

[0008] The target scanner node parses the vulnerability detection data packet to obtain the detection logic contained in the vulnerability detection data packet, and uses its own function call logic to call its own target detection function interface according to the detection logic, thereby implementing the detection function corresponding to the detection logic, wherein the function call logic is designed for function inheritance according to different scanner nodes.

[0009] Furthermore, the data format of the vulnerability detection communication protocol includes: XML data format.

[0010] Furthermore, the vulnerability detection data packet includes any of the following: a data packet for starting vulnerability detection of a scanner node, a data packet for stopping vulnerability detection of a scanner node, a data packet for obtaining the progress of vulnerability detection of a current scanner node, and a data packet for obtaining the result of vulnerability detection of a current scanner node.

[0011] Furthermore, the detection function corresponding to the target detection function interface is the same as the detection logic, and the target detection function interface includes any one of the following: an interface for starting scanner node vulnerability detection, an interface for stopping scanner node vulnerability detection, an interface for obtaining the current scanner node vulnerability detection progress, and an interface for obtaining the current scanner node vulnerability detection result.

[0012] Furthermore, before the management server sends a vulnerability detection data packet of the vulnerability detection communication protocol to the target scanner node, the method further includes:

[0013] A communication connection is established between the management server and the target scanner node.

[0014] Further, establishing a communication connection between the management server and the target scanner node includes:

[0015] A communication connection is established between the management server and the target scanner node by means of an identity certificate.

[0016] Furthermore, the vulnerability detection data packet and the target detection function interface are expandable.

[0017] In a second aspect, an embodiment of the present invention further provides a communication device for vulnerability detection, which is applied to a communication protocol architecture consisting of a management server and multiple scanner nodes of different communication protocols, and the device includes:

[0018] A sending unit, configured for the management server to send a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and the scanner nodes of the plurality of different communication protocols;

[0019] A parsing and calling unit is used for the target scanner node to parse the vulnerability detection data packet, obtain the detection logic contained in the vulnerability detection data packet, and use its own function calling logic to call its own target detection function interface according to the detection logic, thereby realizing the detection function corresponding to the detection logic, wherein the function calling logic is designed for function inheritance according to different scanner nodes.

[0020] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute any method described in the first aspect above.

[0022] In an embodiment of the present invention, a communication method for vulnerability detection is provided, which is applied to a communication protocol architecture composed of a management server and multiple scanner nodes of different communication protocols, including: the management server sends a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and multiple scanner nodes of different communication protocols; the target scanner node parses the vulnerability detection data packet to obtain the detection logic contained in the vulnerability detection data packet, and uses its own function call logic to call its own target detection function interface according to the detection logic, thereby realizing the detection function corresponding to the detection logic, wherein the function call logic is designed for function inheritance according to different scanner nodes. From the above description, it can be seen that the communication method for vulnerability detection of the present invention can achieve the purpose of unified communication and management of multiple scanner nodes with different communication protocols through a management server. The communication management is more universal and unrestricted. It can cope with the scenario where different network areas in a complex network environment adopt specific scanner nodes specifically for the assets in the current area, which alleviates the technical problem that the existing communication method for vulnerability detection cannot achieve the purpose of unified management of multiple different scanner nodes through a management server, that is, the communication management has poor universality and is limited. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A flow chart of a communication method for vulnerability detection provided by an embodiment of the present invention;

[0025] Figure 2 A schematic diagram of a communication device for vulnerability detection provided by an embodiment of the present invention;

[0026] Figure 3 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] At present, the traditional communication method of vulnerability detection generally uses the TCP / IP protocol standard to design the communication interaction between the scanner node and the management server. In the case of a network environment with only one scanner node or multiple identical scanner nodes, this method can use the C / S communication mode to achieve communication management of one or more identical scanner nodes by a management server. However, in the case of a complex network environment with multiple different scanner nodes, since the communication protocols between different scanner nodes are different, it is impossible to achieve unified management of multiple different scanner nodes through a management server, which is not conducive to the enterprise management of security product assets in the network environment.

[0029] Based on this, the communication method for vulnerability detection of the present invention can achieve the purpose of unified communication and management of scanner nodes with multiple different communication protocols through a management server. The communication management is more universal and unrestricted, and can cope with scenarios where there are multiple different scanner nodes in a complex network environment.

[0030] The embodiments of the present invention are further described below with reference to the accompanying drawings.

[0031] Embodiment 1:

[0032] According to an embodiment of the present invention, an embodiment of a communication method for vulnerability detection 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.

[0033] Figure 1 is a flow chart of a communication method for vulnerability detection according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0034] Step S102: the management server sends a vulnerability detection data packet of a vulnerability detection communication protocol to the target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and scanner nodes of multiple different communication protocols.

[0035] In an embodiment of the present invention, the above-mentioned communication method for vulnerability detection can be applied to a communication protocol architecture composed of a management server and multiple scanner nodes of different communication protocols.

[0036] Specifically, in traditional vulnerability detection communications, the management server generally only manages one scanner node. When multiple scanner nodes use the same communication protocol, the management server can manage multiple scanner nodes of the same communication protocol. In the vulnerability detection communication method of the present invention, in order to realize the management of multiple scanner nodes of different communication protocols by the management server, a unified communication protocol is formulated between the management server and multiple scanner nodes of different communication protocols, that is, the vulnerability detection communication protocol. When the management server communicates with the target scanner node, the management server will send a vulnerability detection data packet based on the vulnerability detection communication protocol to the target scanner node that needs to communicate, wherein the vulnerability detection data packet contains the node ID and specific functional operations.

[0037] In an optional embodiment of the present invention, the data format of the vulnerability detection communication protocol includes: XML data format.

[0038] Specifically, the data format of the vulnerability detection communication protocol of the present invention is the XML data format, thereby realizing the establishment of a unified vulnerability detection communication protocol between the management server and multiple scanner nodes with different communication protocols, and further realizing communication between a management server and multiple scanner nodes with different communication protocols.

[0039] The above-mentioned management server is based on the designed vulnerability detection communication protocol specification, and implements each specific detection logic through a specific calling interface. The calling interface is used to construct the XML vulnerability detection data packet of the specific detection logic (that is, there are multiple calling interfaces for detection logic on the management server, and each calling interface implements a vulnerability detection data packet of a detection logic), and sends the vulnerability detection data packet corresponding to the specific functional operation (that is, the detection logic) to the target scanner node.

[0040] In an optional embodiment of the present invention, the vulnerability detection data packet includes any of the following: a data packet for starting vulnerability detection of a scanner node, a data packet for stopping vulnerability detection of a scanner node, a data packet for obtaining the progress of vulnerability detection of a current scanner node, and a data packet for obtaining the result of vulnerability detection of a current scanner node.

[0041] Specifically, there are multiple types of specific functional operations of the vulnerability detection data packet, and each vulnerability detection data packet corresponds to a specific functional operation. According to different specific functional operations, the vulnerability detection data packet can be divided into: a data packet for starting vulnerability detection of a scanner node, a data packet for stopping vulnerability detection of a scanner node, a data packet for obtaining the progress of vulnerability detection of the current scanner node, a data packet for obtaining the result of vulnerability detection of the current scanner node, etc. The embodiment of the present invention does not specifically limit the types of the above-mentioned specific vulnerability detection data packets.

[0042] The following are some XML field use cases and their corresponding functions:

[0043] -node-id, this field is used to uniquely identify the ID of the scanner node;

[0044] -start_scan, this field is used to indicate the function of starting the scanner vulnerability detection;

[0045] -stop_scan, this field is used to stop the scanner vulnerability detection function;

[0046] -get_progress, this field is used to indicate the progress of vulnerability detection of the current scanner node;

[0047] -get_results, this field is used to obtain the vulnerability detection results of the current scanner node.

[0048] Since one vulnerability detection data packet only corresponds to one specific functional operation, when different functional operations need to be sent to the target scanner node, multiple vulnerability detection data packets corresponding to multiple specific functional operations need to be sent simultaneously. Secondly, the above vulnerability detection data packet contains the node ID of the target scanner node, and the target scanner node is verified by the node ID, thereby ensuring the accuracy of the vulnerability detection data packet.

[0049] Step S104: The target scanner node parses the vulnerability detection data packet to obtain the detection logic contained in the vulnerability detection data packet, and uses its own function call logic to call its own target detection function interface according to the detection logic, thereby implementing the detection function corresponding to the detection logic, wherein the function call logic is designed for function inheritance according to different scanner nodes.

[0050] Specifically, the target scanner node first verifies the node ID of the received vulnerability detection data packet, confirms that the vulnerability detection data packet matches the target scanner node correctly, and then parses the vulnerability detection data packet to obtain the detection logic contained in the vulnerability detection data packet, wherein the detection logic has multiple types. After the target scanner node determines the type of detection logic, it uses its own function call logic to call the target detection function interface corresponding to the type of detection logic, thereby realizing the detection function corresponding to the type of detection logic.

[0051] In an optional embodiment of the present invention, the detection function corresponding to the target detection function interface is the same as the detection logic, and the target detection function interface includes any one of the following: an interface for starting scanner node vulnerability detection, an interface for stopping scanner node vulnerability detection, an interface for obtaining the current scanner node vulnerability detection progress, and an interface for obtaining the current scanner node vulnerability detection result.

[0052] For example, when the target scanner node parses the vulnerability detection data packet and obtains the detection logic for starting the scanner node, the target scanner node will use its own function call logic to call the interface for starting the scanner node vulnerability detection, thereby realizing the function of starting the scanner node vulnerability detection.

[0053] In order to support the specific detection logic calls of different scanner nodes, the scanner node node is based on the designed vulnerability detection communication protocol specification, and an interface call encapsulation is performed on each specific detection logic (i.e., the above-mentioned target detection function interface), to implement the vulnerability detection data packet parsing of the management server, and reserve a specific function interface for calling the scanner (i.e., the above-mentioned function call logic can be functionally inherited and implemented by different scanner nodes based on their own function logic to the architecture interface), and finally completes the result response to each communication interaction with the management server.

[0054] In an embodiment of the present invention, a communication method for vulnerability detection is provided, which is applied to a communication protocol architecture composed of a management server and multiple scanner nodes of different communication protocols, including: the management server sends a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and multiple scanner nodes of different communication protocols; the target scanner node parses the vulnerability detection data packet to obtain the detection logic contained in the vulnerability detection data packet, and uses its own function call logic to call its own target detection function interface according to the detection logic, thereby realizing the detection function corresponding to the detection logic, wherein the function call logic is designed for function inheritance according to different scanner nodes. From the above description, it can be seen that the communication method for vulnerability detection of the present invention can achieve the purpose of unified communication and management of multiple scanner nodes with different communication protocols through a management server. The communication management is more universal and unrestricted. It can cope with the scenario where different network areas in a complex network environment adopt specific scanner nodes specifically for the assets in the current area, which alleviates the technical problem that the existing communication method for vulnerability detection cannot achieve the purpose of unified management of multiple different scanner nodes through a management server, that is, the communication management has poor universality and is limited.

[0055] In an optional embodiment of the present invention, before the management server sends a vulnerability detection data packet of the vulnerability detection communication protocol to the target scanner node, the method further includes:

[0056] Establish a communication connection between the management server and the target scanner node.

[0057] Specifically, the vulnerability detection communication method of the present invention is based on a communication protocol architecture composed of a management server and multiple scanner nodes with different communication protocols. Before the management server communicates with a target scanner node among the scanner nodes with different communication protocols, it is necessary to first establish a communication connection between the management server and the target scanner node, thereby realizing vulnerability detection communication between the management server and the target scanner node.

[0058] In an optional embodiment of the present invention, establishing a communication connection between a management server and a target scanner node includes:

[0059] The communication connection between the management server and the target scanner node is established by means of identity certificates.

[0060] Specifically, when establishing a communication connection between the management server and the target scanner node, both the management server and the target scanner node need to provide their respective identity certificates. The management server and the target scanner node use corresponding keys to verify the identity certificates provided by both parties. After both parties pass the verification, a communication connection is established between the management server and the target scanner node.

[0061] In an optional embodiment of the present invention, the vulnerability detection data packet and the target detection function interface are expandable.

[0062] Specifically, since vulnerability detection data packets can be divided into different types according to the specific functional operations they contain, when the specific functional operations required by the management server for the vulnerability detection scanner node change, the vulnerability detection data packet can be correspondingly expanded and updated according to the needs of the management server at any time. For example: the management server requires the target scanner node to suspend detection, then the vulnerability detection data packet sent by the management server will be correspondingly expanded and updated to a data packet containing a method for pausing the vulnerability detection of the scanner node, and then sent to the corresponding target scanner node. After receiving the vulnerability detection data packet, the target scanner node parses it to obtain the detection logic for pausing the scanner node, and uses its own function call logic to call the target detection function interface, where the target detection function interface will be correspondingly expanded and updated to an interface for pausing the vulnerability detection of the scanner node, and finally the function of pausing the vulnerability detection of the scanner node is realized.

[0063] In the vulnerability detection communication method of the present invention, the management server provides a service interface (used to construct the above-mentioned vulnerability detection data packet) using a specified vulnerability detection communication protocol through a server program, and the scanner node node provides a node certificate to establish a communication connection with the authenticated management server, and then adopts the agreed vulnerability detection communication protocol to complete the entire vulnerability detection communication process between the management server and the scanner node. That is, this method can solve the technical problem that a plurality of different scanner nodes cannot be uniformly managed by a management server due to different communication protocols between different scanner nodes. By providing a unified and standardized scanner communication interface (used to construct the above-mentioned vulnerability detection data packet), the scanner node implements specific functions of the encapsulation interface (i.e., the target detection function interface and function call logic), thereby solving the problem of being unable to use a unified management server based on a unified vulnerability detection communication protocol framework.

[0064] Embodiment 2:

[0065] An embodiment of the present invention further provides a communication device for vulnerability detection, which is mainly used to execute the communication method for vulnerability detection provided in the first embodiment of the present invention. The following is a detailed introduction to the communication device for vulnerability detection provided in the embodiment of the present invention.

[0066] Figure 2 is a schematic diagram of a communication device for vulnerability detection according to an embodiment of the present invention. Figure 2 As shown, the device mainly includes: a sending unit 10, a parsing and calling unit 20, wherein:

[0067] The sending unit is used for the management server to send a vulnerability detection data packet of the vulnerability detection communication protocol to the target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and scanner nodes of multiple different communication protocols.

[0068] The parsing and calling unit is used for the target scanner node to parse the vulnerability detection data packet, obtain the detection logic contained in the vulnerability detection data packet, and use its own function calling logic to call its own target detection function interface according to the detection logic, thereby realizing the detection function corresponding to the detection logic, wherein the function calling logic is designed for function inheritance according to different scanner nodes.

[0069] In an embodiment of the present invention, a communication device for vulnerability detection is provided, which is applied to a communication protocol architecture composed of a management server and multiple scanner nodes of different communication protocols, including: the management server sends a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and multiple scanner nodes of different communication protocols; the target scanner node parses the vulnerability detection data packet to obtain the detection logic contained in the vulnerability detection data packet, and uses its own function call logic to call its own target detection function interface according to the detection logic, thereby realizing the detection function corresponding to the detection logic, wherein the function call logic is designed for function inheritance according to different scanner nodes. From the above description, it can be seen that the communication method for vulnerability detection of the present invention can achieve the purpose of unified communication and management of multiple scanner nodes with different communication protocols through a management server. The communication management is more universal and unrestricted. It can cope with the scenario where different network areas in a complex network environment adopt specific scanner nodes specifically for the assets in the current area, which alleviates the technical problem that the existing communication method for vulnerability detection cannot achieve the purpose of unified management of multiple different scanner nodes through a management server, that is, the communication management has poor universality and is limited.

[0070] Optionally, the data format of the vulnerability detection communication protocol includes: XML data format.

[0071] Optionally, the vulnerability detection data packet includes any of the following: a data packet for starting vulnerability detection of a scanner node, a data packet for stopping vulnerability detection of a scanner node, a data packet for obtaining the progress of vulnerability detection of a current scanner node, and a data packet for obtaining the result of vulnerability detection of a current scanner node.

[0072] Optionally, the detection function corresponding to the target detection function interface is the same as the detection logic, and the target detection function interface includes any one of the following: an interface for starting scanner node vulnerability detection, an interface for stopping scanner node vulnerability detection, an interface for obtaining the current scanner node vulnerability detection progress, and an interface for obtaining the current scanner node vulnerability detection result.

[0073] Optionally, the device is also used to: establish a communication connection between the management server and the target scanner node.

[0074] Optionally, the device is also used to: establish a communication connection between the management server and the target scanner node by means of an identity certificate.

[0075] Optionally, the vulnerability detection data packet and target detection function interface may be extended.

[0076] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0077] like Figure 3 As shown, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the communication method for vulnerability detection as described above.

[0078] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memories and processors, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, the above-mentioned vulnerability detection communication method can be executed.

[0079] The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 601. The above processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.

[0080] Corresponding to the above-mentioned communication method for vulnerability detection, an embodiment of the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned communication method for vulnerability detection.

[0081] The communication device for vulnerability detection provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present application are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. It can be clearly understood by technicians in the relevant field that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0082] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely 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 communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0083] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0084] 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.

[0085] In addition, each functional unit in the embodiments provided in 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.

[0086] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or partly contribute to the prior art 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 a number of instructions for an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the vehicle marking method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0087] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0088] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A communication method for vulnerability detection, characterized in that: Applied to a communication protocol architecture consisting of a management server and multiple scanner nodes of different communication protocols, the method comprises: The management server sends a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and the scanner nodes of the plurality of different communication protocols; The target scanner node parses the vulnerability detection data packet to obtain the detection logic contained in the vulnerability detection data packet, and uses its own function call logic to call its own target detection function interface according to the detection logic, thereby realizing the detection function corresponding to the detection logic, wherein the function call logic is designed for function inheritance according to different scanner nodes; The management server has multiple detection logic calling interfaces, each of which implements the construction of a vulnerability detection data packet of a detection logic, and sends a vulnerability detection data packet corresponding to a specific functional operation to the target scanner node; On the scanner node, based on the designed vulnerability detection communication protocol specification, the interface call is encapsulated for each specific detection logic to implement the vulnerability detection data packet parsing of the management server, and a specific functional interface for calling the scanner is reserved to complete the result response of each communication interaction with the management server.

2. The method according to claim 1, characterized in that The data format of the vulnerability detection communication protocol includes: XML data format.

3. The method according to claim 1, characterized in that The vulnerability detection data packet includes any of the following: a data packet for starting vulnerability detection of a scanner node, a data packet for stopping vulnerability detection of a scanner node, a data packet for obtaining the progress of vulnerability detection of a current scanner node, and a data packet for obtaining the result of vulnerability detection of a current scanner node.

4. The method according to claim 1, characterized in that: The detection function corresponding to the target detection function interface is the same as the detection logic, and the target detection function interface includes any one of the following: an interface for starting scanner node vulnerability detection, an interface for stopping scanner node vulnerability detection, an interface for obtaining the current scanner node vulnerability detection progress, and an interface for obtaining the current scanner node vulnerability detection result.

5. The method according to claim 1, characterized in that Before the management server sends a vulnerability detection data packet of the vulnerability detection communication protocol to the target scanner node, the method further includes: A communication connection is established between the management server and the target scanner node.

6. The method according to claim 5, characterized in that Establishing a communication connection between the management server and the target scanner node includes: A communication connection is established between the management server and the target scanner node by means of an identity certificate.

7. The method according to claim 1, characterized in that The vulnerability detection data packet and the target detection function interface are expandable.

8. A communication device for vulnerability detection, characterized in that: Applied to a communication protocol architecture consisting of a management server and multiple scanner nodes of different communication protocols, the device comprises: A sending unit, configured for the management server to send a vulnerability detection data packet of a vulnerability detection communication protocol to a target scanner node, wherein the vulnerability detection communication protocol is a unified communication protocol between the management server and the scanner nodes of the plurality of different communication protocols; A parsing and calling unit, used for the target scanner node to parse the vulnerability detection data packet, obtain the detection logic contained in the vulnerability detection data packet, and call its own target detection function interface according to the detection logic using its own function calling logic, thereby realizing the detection function corresponding to the detection logic, wherein the function calling logic is designed for function inheritance according to different scanner nodes; The management server has multiple detection logic calling interfaces, each of which implements the construction of a vulnerability detection data packet of a detection logic, and sends a vulnerability detection data packet corresponding to a specific functional operation to the target scanner node; On the scanner node, based on the designed vulnerability detection communication protocol specification, the interface call is encapsulated for each specific detection logic to implement the vulnerability detection data packet parsing of the management server, and a specific functional interface for calling the scanner is reserved to complete the result response of each communication interaction with the management server.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute the method according to any one of claims 1 to 7.