Diversified penetration test tool generation method and device

By building a customized platform framework for penetration testing tools with continuous availability and high scalability, and performing security reinforcement based on the conditions of the target network environment, the problem of insufficient security and scalability of penetration testing tools in complex dynamic network environments in the existing technology is solved. Efficient penetration testing tool generation and dynamic adaptability are achieved.

CN118784289APending Publication Date: 2024-10-15NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410838684.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing adaptive assembly technology of penetration testing tools is difficult to follow changes in security mechanisms in complex dynamic network environments, resulting in security risks in the generated tools, poor functional scalability, and low coding credibility, and cannot effectively support subsequent iterations of tools and confusion and mutation confrontation. Work.

Method used

Adopt diversified penetration testing tool generation methods and build a customized platform framework with continuous availability and high scalability based on atomic assembly. Combined with the target network environment, through code security, communication security and environmental security reinforcement, the tool can be intelligently deformed and Anti-virus software to meet the operating requirements of specific environments.

Benefits of technology

It improves the dynamic adaptability of penetration testing tools, reduces the development and management burden, improves tool assembly efficiency and confrontation capabilities, and realizes the efficient generation of comprehensive penetration testing tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784289A_ABST
    Figure CN118784289A_ABST
Patent Text Reader

Abstract

The invention discloses a diversified penetration test tool generation method and device, and the method comprises the steps: processing N penetration test tools under a loading tool directory, and obtaining penetration test tool information; the penetration test tool information comprises N information acquisition functions, N initialized data structures and N penetration test tool IDs; analyzing the penetration test task to obtain test task information; according to the test task information, processing the penetration test tool information to obtain a first penetration test tool; the first penetration testing tool is fully reinforced, and the diversified penetration testing tool is obtained. According to the method, intelligent deformation non-killing and safety reinforcement can be carried out on the penetration test tool according to the characteristics of a test target and the condition of a target network security system, and then the comprehensive penetration test tool which covers all test processes, meets the requirements of a test scheme, meets the operation requirements of a specific target environment and can achieve test efficiency is packaged and generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a method and device for generating diversified penetration testing tools. Background Art

[0002] In the real network environment, due to the existence of various factors such as node deployment, business changes, and defense reinforcement, the target network's composition structure, operating status, business carrying, and defense mechanism are in a flexible and dynamic state of change. In this dynamic target network change environment, considering the inefficient generation mode of penetration testing tools, the situation that they cannot run safely when running in the actual target network, such as being killed, channel cutoff, and trapping, it leads to the lag and limitation of target intelligence information acquisition, and cannot effectively support subsequent penetration testing of the target network. Therefore, forming a set of efficient penetration testing tool customization assembly methods and assembling penetration testing tools with high target defense confrontation capabilities has always been one of the key research contents in the existing network penetration testing field.

[0003] At present, the adaptive assembly generation technology of penetration testing tools in China is far from mature. Existing solutions mainly focus on the automatic generation of codes, scripts, and programs. They are usually directly based on classic formalization and model-driven methods to study the generation of functional codes, automatic test scripts, control programs, etc. of key software. On the one hand, the application scope is single, and the target applicability of the generation tool cannot be improved; on the other hand, the complexity and dynamic change characteristics of the target network environment are often ignored, and it is difficult to keep up with the dynamic change trend of the target security mechanism, resulting in the automatically generated functional code, automatic test scripts, control programs, etc. There are operational security risks in the actual target network; on the other hand, the automatically generated functions have poor scalability, low coding credibility, and chaotic application specifications, which is not conducive to reducing the development workload and management burden of functional performance testing and iterative evolution, and it is difficult to effectively support subsequent automated traceability and confrontation work such as tool code obfuscation mutation. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and device for generating diversified penetration testing tools. Focusing on the actual needs of the network defense field for diversified penetration testing tools, based on the idea of ​​"flexible component assembly, safe and reliable operation", a method for generating diversified penetration testing tools is proposed based on atomic assembly. The method mainly designs and constructs a penetration testing tool customization platform framework with continuous availability and high scalability, realizes rapid integration of penetration testing tools based on custom strategies, and performs security reinforcement on customized tools in combination with the target network security system. Then, the method encapsulates and generates a comprehensive penetration testing tool that meets the operating requirements of a specific target environment and can achieve penetration testing efficiency, thereby improving the dynamic adaptability of the customized assembly of penetration testing tools as the target environment changes.

[0005] In order to solve the above technical problems, a first aspect of an embodiment of the present invention discloses a method for generating a diversified penetration testing tool, the method comprising:

[0006] S1, process N penetration testing tools in the loading tool directory to obtain penetration testing tool information, where N is a positive integer;

[0007] The penetration testing tool information includes N information acquisition functions, N initialization data structures and N penetration testing tool IDs;

[0008] S2, analyzing the penetration test task to obtain the test task information;

[0009] S3, processing the penetration testing tool information according to the test task information to obtain a first penetration testing tool;

[0010] S4, fully reinforce the first penetration testing tool to obtain a diversified penetration testing tool.

[0011] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of N penetration testing tools under the loading tool directory to obtain penetration testing tool information includes:

[0012] S11, analyzing N penetration testing tools in the loading tool directory to obtain N information acquisition functions;

[0013] S12, initializing the data structures of the N penetration testing tools according to the N information acquisition functions to obtain N initialized data structures;

[0014] S13, assigning IDs to the N penetration testing tools according to the N initialization data structures to obtain N penetration testing tool IDs.

[0015] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the analyzing the penetration test task to obtain the test task information includes:

[0016] S21, analyzing the penetration test task to obtain target vulnerability information of the target environment;

[0017] S22, analyzing the target vulnerability information of the target environment to obtain defense mechanism information;

[0018] S23, analyzing the defense mechanism information to obtain platform and service type information;

[0019] S24, integrating the target vulnerability information, the defense mechanism information, and the platform and service type information to obtain test task information.

[0020] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the penetration testing tool information according to the test task information to obtain the first penetration testing tool includes:

[0021] Analyze the test task information, and if source code level assembly is required, process the penetration test tool information using a function code embedding method to obtain a first penetration test tool;

[0022] If source code level assembly is not required, the penetration testing tool information is processed using a module combination-based customization method to obtain a first penetration testing tool.

[0023] As an optional implementation, in the first aspect of the embodiment of the present invention, the first penetration testing tool is fully reinforced to obtain a diversified penetration testing tool, including:

[0024] S41, performing code security protection reinforcement on the first penetration testing tool to obtain a second penetration testing tool;

[0025] S42, performing communication security protection reinforcement on the second penetration testing tool to obtain a third penetration testing tool;

[0026] S43, performing environmental security protection reinforcement on the third penetration testing tool to obtain a diversified penetration testing tool.

[0027] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the code security protection reinforcement of the first penetration testing tool to obtain the second penetration testing tool includes:

[0028] S411, encrypting the first penetration testing tool to obtain an encrypted penetration testing tool;

[0029] S412, performing data compression processing on the encrypted penetration testing tool to obtain a compressed penetration testing tool;

[0030] S413, performing anti-killing processing on the compressed penetration testing tool to obtain an anti-killing penetration testing tool;

[0031] S414, secretly storing the anti-killing penetration testing tool to obtain a second penetration testing tool.

[0032] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the communication security protection reinforcement of the second penetration testing tool to obtain the third penetration testing tool includes:

[0033] S421, performing network layer covert communication on the second penetration testing tool to obtain a first covert penetration testing tool;

[0034] S422, performing transport layer covert communication on the first covert penetration testing tool to obtain a second covert penetration testing tool;

[0035] S423, performing application layer covert communication on the second covert penetration testing tool to obtain a third penetration testing tool.

[0036] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the environmental security protection reinforcement of the third penetration testing tool is performed to obtain a diversified penetration testing tool, including:

[0037] S431, performing environmental security identification on the third penetration testing tool to obtain a fourth penetration testing tool;

[0038] S432, performing data flow defense evasion on the fourth penetration testing tool to obtain a fifth penetration testing tool;

[0039] S433, performing data clearing and self-destruction processing on the fifth penetration testing tool to obtain a diversified penetration testing tool.

[0040] A second aspect of an embodiment of the present invention discloses a device for generating a diversified penetration testing tool, the device comprising:

[0041] The penetration test information acquisition module is used to process N penetration test tools in the loading tool directory to obtain penetration test tool information, where N is a positive integer;

[0042] The penetration testing tool information includes N information acquisition functions, N initialization data structures and N penetration testing tool IDs;

[0043] The test task information acquisition module is used to analyze the penetration test task and obtain the test task information;

[0044] A first testing tool acquisition module, configured to process the penetration testing tool information according to the testing task information to obtain a first penetration testing tool;

[0045] A diversified penetration testing tool acquisition module is used to fully reinforce the first penetration testing tool to obtain a diversified penetration testing tool.

[0046] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the processing of N penetration testing tools under the loading tool directory to obtain penetration testing tool information includes:

[0047] S11, analyzing N penetration testing tools in the loading tool directory to obtain N information acquisition functions;

[0048] S12, initializing the data structures of the N penetration testing tools according to the N information acquisition functions to obtain N initialized data structures;

[0049] S13, assigning IDs to the N penetration testing tools according to the N initialization data structures to obtain N penetration testing tool IDs.

[0050] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the analyzing the penetration test task to obtain the test task information includes:

[0051] S21, analyzing the penetration test task to obtain target vulnerability information of the target environment;

[0052] S22, analyzing the target vulnerability information of the target environment to obtain defense mechanism information;

[0053] S23, analyzing the defense mechanism information to obtain platform and service type information;

[0054] S24, integrating the target vulnerability information, the defense mechanism information, and the platform and service type information to obtain test task information.

[0055] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the processing of the penetration testing tool information according to the test task information to obtain the first penetration testing tool includes:

[0056] Analyze the test task information, and if source code level assembly is required, process the penetration test tool information using a function code embedding method to obtain a first penetration test tool;

[0057] If source code level assembly is not required, the penetration testing tool information is processed using a module combination-based customization method to obtain a first penetration testing tool.

[0058] As an optional implementation, in the second aspect of the embodiment of the present invention, the first penetration testing tool is fully reinforced to obtain a diversified penetration testing tool, including:

[0059] S41, performing code security protection reinforcement on the first penetration testing tool to obtain a second penetration testing tool;

[0060] S42, performing communication security protection reinforcement on the second penetration testing tool to obtain a third penetration testing tool;

[0061] S43, performing environmental security protection reinforcement on the third penetration testing tool to obtain a diversified penetration testing tool.

[0062] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the code security protection reinforcement of the first penetration testing tool to obtain the second penetration testing tool includes:

[0063] S411, encrypting the first penetration testing tool to obtain an encrypted penetration testing tool;

[0064] S412, performing data compression processing on the encrypted penetration testing tool to obtain a compressed penetration testing tool;

[0065] S413, performing anti-killing processing on the compressed penetration testing tool to obtain an anti-killing penetration testing tool;

[0066] S414, secretly storing the anti-killing penetration testing tool to obtain a second penetration testing tool.

[0067] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the communication security protection reinforcement of the second penetration testing tool to obtain the third penetration testing tool includes:

[0068] S421, performing network layer covert communication on the second penetration testing tool to obtain a first covert penetration testing tool;

[0069] S422, performing transport layer covert communication on the first covert penetration testing tool to obtain a second covert penetration testing tool;

[0070] S423, performing application layer covert communication on the second covert penetration testing tool to obtain a third penetration testing tool.

[0071] As an optional implementation, in the second aspect of the embodiment of the present invention, the environmental security protection reinforcement of the third penetration testing tool is performed to obtain a diversified penetration testing tool, including:

[0072] S431, performing environmental security identification on the third penetration testing tool to obtain a fourth penetration testing tool;

[0073] S432, performing data flow defense evasion on the fourth penetration testing tool to obtain a fifth penetration testing tool;

[0074] S433, performing data clearing and self-destruction processing on the fifth penetration testing tool to obtain a diversified penetration testing tool.

[0075] A third aspect of the present invention discloses another device for generating a diversified penetration testing tool, the device comprising:

[0076] A memory storing executable program code;

[0077] a processor coupled to the memory;

[0078] The processor calls the executable program code stored in the memory to execute part or all of the steps in the method for generating a diversified penetration testing tool disclosed in the first aspect of an embodiment of the present invention.

[0079] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0080] The present invention focuses on the flexible and rapid construction requirements of diversified penetration testing tools with high confrontation and high adaptability, and designs a penetration testing tool customization platform framework with continuous availability and high scalability. It can intelligently select a functional framework that is suitable for the penetration testing task, match and select a variety of single-function penetration testing tool components, and according to the characteristics of the test target and the target network security system, the penetration testing tool is intelligently transformed to avoid killing and security reinforcement from three aspects: tool code security, tool communication security, and tool environment security. Then, it encapsulates and generates a comprehensive penetration testing tool that covers various test processes, meets the requirements of the test plan, meets the operating requirements of a specific target environment, and can achieve test efficiency. This greatly saves a lot of development, modification, and cross-compilation work in the process of splicing multiple types of tool components, effectively improves the efficiency of tool assembly and shortens the tool generation time, and improves the dynamic adaptability of the customized assembly of the penetration testing tool as the target environment changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0082] Figure 1 It is a flowchart of a method for generating a diversified penetration testing tool disclosed in an embodiment of the present invention;

[0083] Figure 2 It is a flowchart of another method for generating a diversified penetration testing tool disclosed in an embodiment of the present invention;

[0084] Figure 3 It is a defense confrontation process based on sandbox simulation detection disclosed in an embodiment of the present invention;

[0085] Figure 4It is a structural schematic diagram of a diversified penetration testing tool generating device disclosed in an embodiment of the present invention;

[0086] Figure 5 It is a structural schematic diagram of another diversified penetration testing tool generating device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0087] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not 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.

[0088] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.

[0089] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0090] The present invention discloses a method and device for generating diversified penetration testing tools, the method comprising: processing N penetration testing tools under a loading tool directory to obtain penetration testing tool information, where N is a positive integer; the penetration testing tool information comprises N information acquisition functions, N initialization data structures and N penetration testing tool IDs; analyzing a penetration testing task to obtain test task information; processing the penetration testing tool information according to the test task information to obtain a first penetration testing tool; and fully reinforcing the first penetration testing tool to obtain a diversified penetration testing tool. The present invention can select a functional framework adapted to the penetration test task situation, match and select multiple single-function penetration test tool components, and intelligently transform the penetration test tool from three aspects: tool code security, tool communication security, and tool environment security, according to the characteristics of the test target and combined with the target network security system. The penetration test tool is protected from killing and reinforced from three aspects, and then encapsulated and generated to cover various test processes, meet the requirements of the test plan, meet the operation requirements of a specific target environment, and achieve test performance. A comprehensive penetration test tool can be greatly saved in the process of splicing multiple types of tool components. A large amount of development, modification, and cross-compilation work can be effectively improved, the efficiency of tool assembly can be effectively improved, the tool generation time can be shortened, and the dynamic adaptability of the customized assembly of the penetration test tool can be improved as the target environment changes. The following are detailed descriptions.

[0091] Embodiment 1

[0092] See also Figure 1 , Figure 1 1 is a flow chart of a method for generating a diversified penetration testing tool disclosed in an embodiment of the present invention. Figure 1 The described diversified penetration testing tool generation method is applied to the field of network security technology, providing an efficient penetration testing tool customization assembly method, assembling a penetration testing tool with a high target defense and confrontation capability, which is not limited in the embodiments of the present invention. Figure 1 As shown, the diversified penetration testing tool generation method may include the following operations:

[0093] S1, process N penetration testing tools in the loading tool directory to obtain penetration testing tool information, where N is a positive integer;

[0094] Penetration testing is a method of evaluating the security performance of a computer network system by simulating hacker attacks. Penetration testing tools are methods for conducting penetration testing. They are stored in the loading tool directory and are selected and assembled according to the penetration testing task.

[0095] The penetration testing tool information includes N information acquisition functions, N initialization data structures and N penetration testing tool IDs;

[0096] S2, analyzing the penetration test task to obtain the test task information;

[0097] S3, processing the penetration testing tool information according to the test task information to obtain a first penetration testing tool;

[0098] S4, fully reinforce the first penetration testing tool to obtain a diversified penetration testing tool.

[0099] Optionally, the processing of N penetration testing tools in the loading tool directory to obtain penetration testing tool information includes:

[0100] S11, analyzing N penetration testing tools in the loading tool directory to obtain N information acquisition functions;

[0101] S12, initializing the data structures of the N penetration testing tools according to the N information acquisition functions to obtain N initialized data structures;

[0102] S13, assigning IDs to the N penetration testing tools according to the N initialization data structures to obtain N penetration testing tool IDs.

[0103] Optionally, the analyzing the penetration test task to obtain the test task information includes:

[0104] S21, analyzing the penetration test task to obtain target vulnerability information of the target environment;

[0105] S22, analyzing the target vulnerability information of the target environment to obtain defense mechanism information;

[0106] S23, analyzing the defense mechanism information to obtain platform and service type information;

[0107] S24, integrating the target vulnerability information, the defense mechanism information, and the platform and service type information to obtain test task information.

[0108] The test task information includes target vulnerability information, the defense mechanism information, and the platform and service type information;

[0109] Optionally, the processing the penetration testing tool information according to the test task information to obtain a first penetration testing tool includes:

[0110] Analyze the test task information, and if source code level assembly is required, process the penetration test tool information using a function code embedding method to obtain a first penetration test tool;

[0111] If source code level assembly is not required, the penetration testing tool information is processed using a module combination-based customization method to obtain a first penetration testing tool.

[0112] Determine whether source code level assembly is required based on the analysis results of the test task information;

[0113] Optionally, the first penetration testing tool is fully reinforced to obtain a diversified penetration testing tool, including:

[0114] S41, performing code security protection reinforcement on the first penetration testing tool to obtain a second penetration testing tool;

[0115] S42, performing communication security protection reinforcement on the second penetration testing tool to obtain a third penetration testing tool;

[0116] S43, performing environmental security protection reinforcement on the third penetration testing tool to obtain a diversified penetration testing tool.

[0117] Optionally, performing code security protection reinforcement on the first penetration testing tool to obtain a second penetration testing tool includes:

[0118] S411, encrypting the first penetration testing tool to obtain an encrypted penetration testing tool;

[0119] Code security protection reinforcement is: through multi-DEX reinforcement, DEX shelling, DEX function separation and VMP technology to prevent the code from being decompiled and reverse analyzed, code security protection reinforcement is carried out to obtain encrypted penetration testing tools;

[0120] S412, performing data compression processing on the encrypted penetration testing tool to obtain a compressed penetration testing tool;

[0121] Use the AES encryption algorithm to compress the encrypted penetration testing tool data to reduce the size of the test program and increase the security of the program; use virtual instruction-based tool reinforcement, implant non-test behavior code, etc. to shell and obfuscate the test program to obtain a compressed penetration testing tool;

[0122] S413, performing anti-killing processing on the compressed penetration testing tool to obtain an anti-killing penetration testing tool;

[0123] The anti-killing technology of the test program based on CPU predictive execution is adopted. Based on the information collected by the system, whitelist abuse, file anti-killing, feature code anti-killing, sensitive character replacement, adding junk instructions or modifying program entry, shell obfuscation and other methods are used to perform anti-killing processing on the program under black box conditions, and the final penetration testing tool is generated intelligently.

[0124] Whitelist abuse mainly targets the common antivirus software whitelists contained in the system. By forging signatures, the tools are disguised as system files or trusted whitelist files to avoid detection.

[0125] File anti-virus mainly targets macro virus files. It uses the OpenMCDF library to modify the CFBF file of MS Office and uses the MS-OVBA specification and features to confuse normal VBA code with penetration test code to generate anti-virus Office macro virus files. Anti-virus for other types of files is mainly achieved through code obfuscation.

[0126] Signature code anti-killing mainly uses signature code positioning technology to find the signature code and modify it to achieve anti-killing before packaging.

[0127] After the main tool for replacing sensitive characters is generated, sensitive characters such as "cmd", "exec", "rootkit", and "shell" are replaced by character splicing to reduce the chance of the code being statically detected and killed.

[0128] The obfuscation process is performed by adding a shell to make the tool universal and anti-killing in black box conditions, enhancing the survivability of the tool after delivery and the code's ability to resist reverse analysis, and generating the final penetration testing tool.

[0129] S414, secretly storing the anti-killing penetration testing tool to obtain a second penetration testing tool.

[0130] The hidden execution of the program is achieved through process injection, memory injection, remote code injection, and registry modification to obtain the second penetration testing tool.

[0131] Process injection: select system whitelist processes or services for injection;

[0132] Memory injection and remote code injection only exist in the memory when the tool is running. The penetration testing tool will not exist in the target environment at any other time. In this way, the test program can be hidden in the target system.

[0133] Memory injection methods include injection through CREATEREMOTETHREAD and LOADLIBRARY, PE injection, PROCESS HOLLOWING technology, thread execution hijacking technology, HOOK injection, injection and persistence by modifying the registry, APC injection and ATOMBOMBING, additional window memory injection, SHIMS injection, IAT HOOKING and INLINEHOOKING, etc.

[0134] Remote code injection is mainly implemented using commands of system-provided tools such as PowerShell. PowerShell can directly load remote code into memory without downloading it. In this way, the penetration test code can be better hidden.

[0135] Optionally, performing communication security protection reinforcement on the second penetration testing tool to obtain a third penetration testing tool includes:

[0136] S421, performing network layer covert communication on the second penetration testing tool to obtain a first covert penetration testing tool;

[0137] The network layer covert communication uses a covert communication tunnel based on the IPv6 protocol and ICMP protocol network layer protocol to achieve covert data transmission and network penetration;

[0138] S422, performing transport layer covert communication on the first covert penetration testing tool to obtain a second covert penetration testing tool;

[0139] Transport layer covert communication uses TCP, UDP, SOCKS and other transport layer protocols combined with port forwarding technology, port mapping technology and port multiplexing technology to build a covert communication tunnel to achieve covert data transmission;

[0140] S423, performing application layer covert communication on the second covert penetration testing tool to obtain a third penetration testing tool.

[0141] Application layer covert communication uses SSH, HTTP, HTTPS, DNS and other application layer protocols combined with port multiplexing technology to build covert communication tunnels to achieve covert data transmission;

[0142] Optionally, the third penetration testing tool is subjected to environmental security protection reinforcement to obtain a diversified penetration testing tool, including:

[0143] S431, performing environmental security identification on the third penetration testing tool to obtain a fourth penetration testing tool;

[0144] After the test program enters the intranet environment, the first thing to do is to identify the environment security. Depending on the environment, different security policies are selected and different security tools are released:

[0145] When it is detected that a binary analysis tool is running or the program is being debugged in the current environment, this function will immediately activate the data clearing and self-destruction functions to destroy important data, reducing the risk of software being reverse engineered.

[0146] For the virtual machine environment, the integrity and functionality of the system are judged based on the programs installed in the system and the service information running. Only when the current virtual machine environment is judged to be a normal virtual machine can the subsequent functions be run; when it is judged that there are reverse analysis tools in the environment and the system functions are incomplete, the third penetration testing tool will run the disguised function and appear harmless to the outside world; for the debugging mode, the third penetration testing tool has an anti-debugging function and can clear sensitive information in time. In addition, when the test program has an escape function, the test program will also launch an escape attack for the virtualized environment.

[0147] For honeypots, sandboxes and other environments, judgments are mainly made based on characteristics such as system integrity and interactivity. Specifically, the third penetration testing tool is simulated and executed in a sandbox environment. Based on the feedback of execution results, training and learning are carried out to improve the anti-debugging ability, anti-virtual execution ability and Rootkit hiding ability of relevant programs in penetration testing tasks, so as to cope with detection based on virtual machine environment and dynamic debugging detection, and avoid detection by host antivirus software and active defense mechanisms.

[0148] After the above processing, the third penetration testing tool is used to perform environmental security identification, and a fourth penetration testing tool is obtained;

[0149] S432, performing data flow defense evasion on the fourth penetration testing tool to obtain a fifth penetration testing tool;

[0150] According to the specific situation of the isolated intranet, multiple methods such as time limit and flow limit, slow scanning, traffic obfuscation, half-connection scanning, FIN scanning, random scanning, source address spoofing, fragment scanning, distributed scanning, legal packet detection, built-in detection tool detection, etc. are selected for detection and scanning. Traffic data defense avoidance can repackage tools with scanning and detection functions. The traffic packets that need to be sent by the original tool scanning and detection are processed by data traffic defense avoidance, so as to achieve the purpose of avoiding the security strategy of the isolated intranet.

[0151] The time-limited and flow-limited strategies restrict the scanning time and volume of scanning traffic; slow scanning restricts the time interval of scanning traffic; traffic obfuscation obfuscates the target by adding a small amount of scanning traffic to the normal traffic inside the target, making it more difficult to detect abnormal traffic; semi-connected scanning does not respond to handshakes during scanning, that is, it does not establish a connection, to prevent the scanning traffic from being recorded in the log; FIN scanning only sends FIN connection data packets during scanning to detect target activities; random scanning implements detection scanning by constructing irregular data packets while avoiding security software detection; source address spoofing modifies the source address of the data packet during scanning to increase the difficulty of locating the initiator of the scan; fragmented scanning fragments the scanning data packet to prevent a single complete data packet from being identified; distributed scanning, after occupying multiple machines in the intranet, controls different machines to send different scanning packets to achieve a complete detection scan; legal detection uses normal data traffic packets rather than data packets with obvious malice to detect and analyze the returned information; built-in detection tool detection uses the machine's own tools for detection.

[0152] After the above processing, the fifth penetration testing tool is obtained;

[0153] S433, performing data clearing and self-destruction processing on the fifth penetration testing tool to obtain a diversified penetration testing tool.

[0154] When the test program is delivered, it will first check the security of the environment. When the security test passes, the hidden storage function can be called to release the main part of the test program. When the security test fails, the self-destruction program can be started in time. When self-destruction is performed, the secret key will be soft-destroyed first, and then the file data will be soft-destroyed by random overwriting of disk encoding data.

[0155] Embodiment 2

[0156] See also Figure 2 , Figure 2 1 is a flow chart of another method for generating a diversified penetration testing tool disclosed in an embodiment of the present invention. Figure 2 The described diversified penetration testing tool generation method is applied to the field of network security technology, providing an efficient penetration testing tool customization assembly method, assembling a penetration testing tool with a high target defense and confrontation capability, which is not limited in the embodiments of the present invention. Figure 2 As shown, the diversified penetration testing tool generation method may include the following operations:

[0157] 1. Construction of a custom assembly platform for penetration testing tools

[0158] In the process of building a customized assembly platform for penetration testing tools, we mainly define the calling timing and interface specifications of various basic function plug-ins / functions for tool customization and assembly, form a set of tool customization and assembly standards and a corresponding penetration testing tool assembly engine, and realize the intelligent customized generation of penetration testing tools based on the process production line of basic functions, assembly and reinforcement. Under the premise of improving the efficiency, autonomy and standardization of penetration testing tool generation, we ensure the availability and target adaptability of penetration testing tools.

[0159] Specifically, it is necessary to plan the various tools and functional tools required in the target-oriented penetration test process from the perspective of top-level design, and formulate a set of unified penetration test tool specifications to unify the naming rules and interface standards, so that the penetration test tools can be plug-and-play and uniformly managed. Each tool needs to be designed according to the tool specification. One is a functional tool plug-in in the form of source code, and the other is a functional tool function in the form of an executable file. The penetration test tool customization assembly platform needs to choose which tools to assemble, uninstall, and reinforce according to the specific target environment, implantation method, infection mode, etc.

[0160] During the penetration testing tool assembly process, first load all the tools in the tool directory, obtain the information acquisition function of each tool, initialize the data structure of each tool, and provide a registration mechanism to provide a specific ID for each tool; then, according to the penetration testing task, based on the target vulnerability, defense mechanism, defense strategy, platform and service type in the target environment situation, determine the specific method of tool customization and assembly, including code embedding and function combination, and finally transform and reinforce the generated tools through compression, encryption, obfuscation, etc. The penetration testing tool customization and assembly process is as follows: Figure 2 shown.

[0161] 2. Automatic orchestration of penetration testing tools based on software definition

[0162] The unified description of the penetration testing tool's functions, orchestration visualization and automatic policy conversion, and orchestration policy verification technical means are adopted to respectively realize the description of the penetration testing tool's resource image package, type, version, function, target vulnerability exploitation point, loading exploitation strategy and other target attributes; realize the automatic conversion of orchestration visualization and application instance configuration scripts and loading strategies; and realize effective verification of the tool's function, tool configuration rationality, loading execution process and other aspects.

[0163] The specific implementation of tool assembly includes the following typical methods:

[0164] 1) Control and guard test tool assembly

[0165] Load and package the different components required in the target test, including communication, functional, anti-killing, and control classes. Assembly methods include real-time assembly and one-time assembly. Different assembly methods are applied to different scenarios, and the assembly method to be adopted needs to be determined according to the actual situation. Among them, real-time assembly is to transfer the remote loader to the target host and execute it after the test obtains the target permission. The loader is connected to the server through the network protocol. The server can upload the plug-in to the target host on demand according to different functional requirements, and the target host automatically loads the plug-in to achieve real-time assembly; one-time assembly is to check all the required components, and then assemble them into an executable file that can be executed on the target host to achieve one-time assembly.

[0166] 2) Breakthrough test tool assembly

[0167] Mainly based on fingerprint information, vulnerability information, network information and other data, all the required components are calculated through correlation analysis, and the tool components are packaged in sequence to support one-click exploitation. The assembly methods include the assembly of vulnerabilities and the assembly of vulnerabilities and shellcode. Among them, the assembly of vulnerabilities and vulnerabilities is adopted when multiple vulnerabilities need to be used in conjunction with each other. It is mainly used to assemble multiple vulnerabilities together when multiple vulnerabilities cooperate with each other to obtain target permissions. For example, for a post-authorization RCE vulnerability, it is necessary to assemble the password and the background RCE vulnerability together, authenticate first, and then execute the EXP test tool to obtain target control. For example, the browser RCE vulnerability is to bind the sandbox escape vulnerability with the command execution vulnerability to achieve the escape and load the command execution vulnerability to control the target host; the assembly of vulnerability and shellcode is to convert the program into shellcode form when there is a one-click RCE, and combine it into the vulnerability exploitation tool to achieve a one-click remote command execution breakthrough test tool.

[0168] 3. Penetration testing tools and security reinforcement technology

[0169] (1) Tool code security reinforcement

[0170] (a) Test program is obfuscated

[0171] It has functions such as data encryption and data compression. It can encrypt the main part of the test program through the AES encryption algorithm and perform data compression to reduce the size of the test program and increase the security of the program. It also uses virtual instruction-based tool reinforcement, implants non-test behavior codes, and other methods to encapsulate and obfuscate the test program.

[0172] (b) Intelligent anti-killing test program

[0173] The anti-killing technology of the test program based on CPU predictive execution is adopted. Based on the information collected by the system, whitelist abuse, file anti-killing, feature code anti-killing, sensitive character replacement, adding junk instructions or modifying program entry, shell obfuscation and other methods are used to perform anti-killing processing on the program under black box conditions, and the final penetration testing tool is generated intelligently.

[0174] Whitelist abuse mainly targets the common antivirus software whitelists contained in the system. By forging signatures, the tools are disguised as system files or trusted whitelist files to avoid detection.

[0175] File anti-virus mainly targets macro virus files. It uses the OpenMCDF library to modify the CFBF file of MS Office and uses the MS-OVBA specification and features to confuse normal VBA code with penetration test code to generate anti-virus Office macro virus files. Anti-virus for other types of files is mainly achieved through code obfuscation.

[0176] Signature code anti-killing mainly uses signature code positioning technology to find the signature code and modify it to achieve anti-killing before packaging.

[0177] After the main tool for replacing sensitive characters is generated, sensitive characters such as "cmd", "exec", "rootkit", and "shell" are replaced by character splicing to reduce the chance of the code being statically detected and killed.

[0178] The obfuscation process is performed by adding a shell to make the tool universal and anti-killing in black box conditions, enhancing the survivability of the tool after delivery and the code's ability to resist reverse analysis, and generating the final penetration testing tool.

[0179] (c) Hidden Storage

[0180] After the test program is delivered to the target network, the tool needs to encrypt or compress it, release the main part of the test program after delivery, and hide the released program deep in the system directory through file hiding, file replacement, etc. and start the test program. The hidden execution of the program can be achieved through process injection, memory injection, remote code injection, registry modification and other methods.

[0181] Process injection mainly selects system whitelist processes or services for injection; memory injection and remote code injection will only exist in the memory when the tool is running. The penetration testing tool will not exist in the target environment at any other time. In this way, the test program can be hidden in the target system.

[0182] Memory injection methods include injection through CREATEREMOTETHREAD and LOADLIBRARY, PE injection, PROCESS HOLLOWING technology, thread execution hijacking technology, HOOK injection, injection and persistence by modifying the registry, APC injection and ATOMBOMBING, additional window memory injection, SHIMS injection, IAT HOOKING and INLINEHOOKING, etc.

[0183] Remote code injection is mainly implemented using commands of system-provided tools such as PowerShell. PowerShell can directly load remote code into memory without downloading it. In this way, the penetration test code can be better hidden.

[0184] (2) Tool communication security reinforcement

[0185] (a) Network layer covert communication

[0186] The network layer covert transmission uses a covert communication tunnel based on the IPv6 protocol and ICMP protocol network layer protocol to achieve covert data transmission and network penetration.

[0187] IPv6 tunnel communication encapsulates IPv6 packets into IPv4 protocol packets. Since the data in the IPv4 packets is encapsulated by the IPv6 protocol, the traffic monitoring equipment cannot identify it and it can pass normally. When the data packet reaches the target machine, it will first decapsulate the IPv4 packet, then decapsulate the IPv6 packet, and finally identify the IPv6 packet to achieve the purpose of hidden data transmission.

[0188] ICMP tunnel communication: When the transport layer protocol traffic is blocked within the network, the data packets of the transport layer such as TCP / UDP / SOCKS can be disguised as ICMP traffic for forwarding. To build an ICMP tunnel, you need to install the server and client separately.

[0189] (b) Transport layer covert communication

[0190] Use TCP, UDP, SOCKS and other transport layer protocols combined with port forwarding technology, port mapping technology and port multiplexing technology to build a covert communication tunnel to achieve covert data transmission.

[0191] TCP / UDP tunnel communication builds communication links between isolated networks through port forwarding and port mapping. The server starts port monitoring, and the client forwards or maps the information received on the local port to the port monitored by the server to complete the tunnel establishment.

[0192] SOCKS proxy tunnel, the data packet is encapsulated using the SOCKS protocol to hide the real IP. When using the SOCKS proxy, the request sent by the client can be forwarded to the real target server.

[0193] (c) Application layer covert communication

[0194] Use SSH, HTTP, HTTPS, DNS and other application layer protocols combined with port multiplexing technology to build a covert communication tunnel to achieve covert data transmission.

[0195] SSH proxy tunnel, using SSH command to forward the local port to the specified port of the remote machine, thus bypassing the firewall to build a communication tunnel. In addition, SOCKS server can be established through SSH tunnel to achieve access to more resources.

[0196] There are two types of HTTP / HTTPS proxies. The first type of proxy server works in a similar principle to the SOCKS proxy and works at the application layer. The proxy server plays the role of a middleman. For the client connected to it, it is a server, and for the server to be connected, it is a client. The second type is to transmit TCP-based protocols in a tunnel manner through a WEB proxy server. It completes communication through the protocol body and implements any TCP-based application layer protocol proxy in HTTP / HTTPS mode.

[0197] DNS tunnels mainly have two modes: direct connection and relay. The direct connection mode is to communicate directly with the specified DNS Server by encapsulating the data encoding in the DNS protocol, and the relay mode is to construct a special DNS request and reach the destination DNS server through multiple layers of DNS relay to achieve communication. It is mostly suitable for communication between isolated networks and the Internet.

[0198] (3) Tool environment security reinforcement

[0199] (a) Environmental safety identification

[0200] The first thing the test program needs to do after entering the intranet environment is to check the security of the environment. Depending on the environment, different security policies are selected and different security tools are released. When it is detected that a binary analysis tool is running in the current environment or the program is being debugged, this function will immediately wake up the data clearing and self-destruction functions to destroy important data and reduce the risk of software being reversed.

[0201] For virtual machine environments, the program will judge the integrity and functionality of the system based on the programs installed on the system, the services running, and other information. Only when the current virtual machine environment is judged to be a normal virtual machine can the subsequent functions be run; when it is judged that there are reverse analysis tools in the environment and the system functions are incomplete, the program will run disguised functions and appear harmless to the outside world; for debugging mode, the program has anti-debugging functions and can clear sensitive information in a timely manner. In addition, when the test program has an escape function, the test program will also launch an escape attack for the virtualized environment.

[0202] For honeypots, sandboxes and other environments, judgments are mainly made based on characteristics such as system integrity and interactivity. Specifically, by simulating execution in a sandbox environment and based on feedback execution results, training and learning are used to improve the anti-debugging ability, anti-virtual execution ability and rootkit hiding ability of related programs in penetration testing tasks, so as to cope with detection based on virtual machine environments and dynamic debugging detection, and avoid detection by host antivirus software and active defense mechanisms. The defense confrontation process based on sandbox simulation detection is as follows: Figure 3 shown.

[0203] (b) Data traffic defense evasion

[0204] According to the specific situation of the isolated intranet, multiple methods such as time limit and flow limit, slow scanning, traffic obfuscation, half-connection scanning, FIN scanning, random scanning, source address spoofing, fragment scanning, distributed scanning, legal packet detection, built-in detection tool detection, etc. are selected for detection and scanning. Traffic data defense avoidance can repackage tools with scanning and detection functions. The traffic packets that need to be sent by the original tool scanning and detection are processed by data traffic defense avoidance, so as to achieve the purpose of avoiding the security strategy of the isolated intranet.

[0205] The time-limited and flow-limited strategies restrict the scanning time and volume of scanning traffic; slow scanning restricts the time interval of scanning traffic; traffic obfuscation obfuscates the target by adding a small amount of scanning traffic to the normal traffic inside the target, making it more difficult to detect abnormal traffic; semi-connected scanning does not respond to handshakes during scanning, that is, it does not establish a connection, to prevent the scanning traffic from being recorded in the log; FIN scanning only sends FIN connection data packets during scanning to detect target activities; random scanning implements detection scanning by constructing irregular data packets while avoiding security software detection; source address spoofing modifies the source address of the data packet during scanning to increase the difficulty of locating the initiator of the scan; fragmented scanning fragments the scanning data packet to prevent a single complete data packet from being identified; distributed scanning, after occupying multiple machines in the intranet, controls different machines to send different scanning packets to achieve a complete detection scan; legal detection uses normal data traffic packets rather than data packets with obvious malice to detect and analyze the returned information; built-in detection tool detection uses the machine's own tools for detection.

[0206] (c) Data Clearance and Self-Destruction

[0207] When the test program is delivered, it will first check the security of the environment. When the security test passes, the hidden storage function can be called to release the main part of the test program. When the security test fails, the self-destruction program can be started in time. When self-destruction is performed, the secret key will be soft-destroyed first, and then the file data will be soft-destroyed by random overwriting of disk encoding data.

[0208] Embodiment 3

[0209] See also Figure 4 , Figure 4 1 is a schematic diagram of a structure of a device for generating a diversified penetration testing tool disclosed in an embodiment of the present invention. Figure 4 The described diversified penetration testing tool generation device is applied to the field of network security technology, providing an efficient penetration testing tool customization assembly method, assembling a penetration testing tool with a high target defense and confrontation capability, which is not limited in the embodiments of the present invention. Figure 4 As shown, the diversified penetration testing tool generating device may include the following operations:

[0210] S301, a penetration test information acquisition module, used to process N penetration test tools in the loading tool directory to obtain penetration test tool information, where N is a positive integer;

[0211] The penetration testing tool information includes N information acquisition functions, N initialization data structures and N penetration testing tool IDs;

[0212] S302, a test task information acquisition module, used to analyze the penetration test task and obtain test task information;

[0213] S303, a first testing tool acquisition module, configured to process the penetration testing tool information according to the testing task information to obtain a first penetration testing tool;

[0214] S304, a diversified penetration testing tool acquisition module is used to fully reinforce the first penetration testing tool to obtain a diversified penetration testing tool.

[0215] Embodiment 4

[0216] See also Figure 5 , Figure 5 1 is a schematic diagram of the structure of another diversified penetration testing tool generating device disclosed in an embodiment of the present invention. Figure 5The described diversified penetration testing tool generation device is applied to the field of network security technology, providing an efficient penetration testing tool customization assembly method, assembling a penetration testing tool with a high target defense and confrontation capability, which is not limited in the embodiments of the present invention. Figure 5 As shown, the diversified penetration testing tool generating device may include the following operations:

[0217] A memory 401 storing executable program codes;

[0218] a processor 402 coupled to the memory 401;

[0219] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the method for generating a diversified penetration testing tool described in the first and second embodiments.

[0220] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0221] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0222] Finally, it should be noted that the diversified penetration testing tool generation method and device disclosed in the embodiment of the present invention discloses only the preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, 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 invention.

Claims

1. A method for generating diversified penetration testing tools, It is characterized in that The method comprises: S1, process N penetration testing tools in the loading tool directory to obtain penetration testing tool information, where N is a positive integer; The penetration testing tool information includes N information acquisition functions, N initialization data structures and N penetration testing tool IDs; S2, analyzing the penetration test task to obtain the test task information; S3, processing the penetration testing tool information according to the test task information to obtain a first penetration testing tool; S4, performing security reinforcement on the first penetration testing tool to obtain a diversified penetration testing tool.

2. The method for generating a diversified penetration testing tool according to claim 1, It is characterized in that The N penetration testing tools under the loading tool directory are processed to obtain penetration testing tool information, including: S11, analyzing N penetration testing tools in the loading tool directory to obtain N information acquisition functions; S12, initializing the data structures of the N penetration testing tools according to the N information acquisition functions to obtain N initialized data structures; S13, assigning IDs to the N penetration testing tools according to the N initialization data structures to obtain N penetration testing tool IDs.

3. The method for generating a diversified penetration testing tool according to claim 1, It is characterized in that The penetration test task is analyzed to obtain test task information, including: S21, analyzing the penetration test task to obtain target vulnerability information of the target environment; S22, analyzing the target vulnerability information of the target environment to obtain defense mechanism information; S23, analyzing the defense mechanism information to obtain platform and service type information; S24, integrating the target vulnerability information, the defense mechanism information, and the platform and service type information to obtain test task information.

4. The method for generating a diversified penetration testing tool according to claim 1, It is characterized in that The step of processing the penetration testing tool information according to the test task information to obtain a first penetration testing tool includes: Analyze the test task information, and if source code level assembly is required, process the penetration test tool information using a function code embedding method to obtain a first penetration test tool; If source code level assembly is not required, the penetration testing tool information is processed using a module combination-based customization method to obtain a first penetration testing tool.

5. The method for generating a diversified penetration testing tool according to claim 1, It is characterized in that The security reinforcement of the first penetration testing tool to obtain a diversified penetration testing tool includes: S41, performing code security protection reinforcement on the first penetration testing tool to obtain a second penetration testing tool; S42, performing communication security protection reinforcement on the second penetration testing tool to obtain a third penetration testing tool; S43, performing environmental security protection reinforcement on the third penetration testing tool to obtain a diversified penetration testing tool.

6. The method for generating a diversified penetration testing tool according to claim 5, It is characterized in that The step of performing code security protection reinforcement on the first penetration testing tool to obtain a second penetration testing tool includes: S411, encrypting the first penetration testing tool to obtain an encrypted penetration testing tool; S412, performing data compression processing on the encrypted penetration testing tool to obtain a compressed penetration testing tool; S413, performing anti-killing processing on the compressed penetration testing tool to obtain an anti-killing penetration testing tool; S414, secretly storing the anti-killing penetration testing tool to obtain a second penetration testing tool.

7. The method for generating a diversified penetration testing tool according to claim 5, It is characterized in that The performing communication security protection reinforcement on the second penetration testing tool to obtain a third penetration testing tool includes: S421, performing network layer covert communication on the second penetration testing tool to obtain a first covert penetration testing tool; S422, performing transport layer covert communication on the first covert penetration testing tool to obtain a second covert penetration testing tool; S423, performing application layer covert communication on the second covert penetration testing tool to obtain a third penetration testing tool.

8. The method for generating a diversified penetration testing tool according to claim 5, It is characterized in that The environmental security protection reinforcement of the third penetration testing tool is performed to obtain a diversified penetration testing tool, including: S431, performing environmental security identification on the third penetration testing tool to obtain a fourth penetration testing tool; S432, performing data flow defense evasion on the fourth penetration testing tool to obtain a fifth penetration testing tool; S433, performing data clearing and self-destruction processing on the fifth penetration testing tool to obtain a diversified penetration testing tool.

9. A device for generating diversified penetration testing tools, It is characterized in that The device comprises: The penetration test information acquisition module is used to process N penetration test tools in the loading tool directory to obtain penetration test tool information, where N is a positive integer; The penetration testing tool information includes N information acquisition functions, N initialization data structures and N penetration testing tool IDs; The test task information acquisition module is used to analyze the penetration test task and obtain the test task information; A first testing tool acquisition module, configured to process the penetration testing tool information according to the testing task information to obtain a first penetration testing tool; A diversified penetration testing tool acquisition module is used to fully reinforce the first penetration testing tool to obtain a diversified penetration testing tool.

10. A device for generating diversified penetration testing tools, It is characterized in that The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the diversified penetration testing tool generation method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Information safety penetration testing method for distribution automation system

    CN104468267A

  • Complex defense mechanism-oriented adaptive penetration test method

    CN114205153A

  • Network security test method for isolation security mechanism

    CN114205154A