Automatic penetration testing method and system based on large language model driving

Through the automated penetration testing method driven by the large language model and combined with multi-role agents, it solves the problems of low efficiency, high cost and low intelligence of existing penetration testing, achieves efficient and accurate penetration testing, adapts to new threats and Reduces human error.

CN118779883AInactive Publication Date: 2024-10-15BEIJING TUWO TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410820610.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing penetration testing relies on manual methods, which are inefficient, highly subjective in results, difficult to cover unknown risks, and costly. Automated tools are not highly intelligent, have a high false positive rate, and are difficult to adapt to new security threats.

Method used

Adopt an automated penetration testing method driven by large language models, analyze front-end code and image analysis through large models, and combine multi-role agents (commanders, penetration testing engineers, code audits, report writing, data analysis and image analysis) for task decomposition and execution to achieve fully automated penetration testing.

Benefits of technology

It improves the efficiency and accuracy of penetration testing, reduces costs, enables 24-hour uninterrupted testing, reduces human errors, and can quickly adapt to emerging vulnerabilities and threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779883A_ABST
    Figure CN118779883A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic penetration test method and system based on large language model driving, the system utilizes a fine-tuned large language model to realize automation and high efficiency of penetration test, the system can generate a targeted penetration test scheme according to the characteristics of a target system, and after execution of each step, the penetration test scheme can be automatically carried out. A penetration test scheme is adjusted in time according to feedback, and a penetration test process is driven by utilizing reasoning and decision-making capabilities of a large model; according to the invention, the efficiency and accuracy of penetration testing are effectively improved, the labor cost is reduced, and powerful technical support is provided for the field of network security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention provides a technology related to the field of cyberspace security technology, particularly to penetration testing related technologies and artificial intelligence large language model related technologies. Background Art

[0002] At present, penetration testing is mainly carried out manually, which is very dependent on the professional skills and experience of penetration testers. Although this method is flexible and can deal with complex security issues, it has the following shortcomings:

[0003] (1) Inefficiency: Manual penetration testing requires a lot of time and effort, especially when facing a large network environment. Testers may need to spend weeks or even months to conduct a comprehensive penetration test.

[0004] (2) The results are highly subjective: Since the results of penetration testing depend largely on the skills and experience of the tester, there may be a high degree of subjectivity, and the repeatability and comparability of the test results are poor.

[0005] (3) It is difficult to cover all potential risks: Manual penetration testing can often only test known security vulnerabilities and threats, but it is difficult to fully cover unknown risks.

[0006] (4) High cost: Since penetration testing requires professionals to conduct it, the labor cost is high. If the number of target assets is large and the relationships are complex, the time cost will be further increased.

[0007] Although some automated penetration testing tools and technologies based on machine learning technologies such as neural networks have emerged in recent years to assist in penetration testing tasks, these tools and technologies still have the following defects:

[0008] (1) Low intelligence: Most of the current automated penetration testing tools can only execute pre-defined test cases and are powerless against complex attack scenarios and unknown security threats.

[0009] (2) High false alarm rate: Since automated penetration testing tools lack sufficient support from artificial intelligence and machine learning technologies, they may have a high false alarm rate when faced with complex and changing network environments.

[0010] (3) Difficulty in adapting to new security threats: As network security threats continue to evolve and escalate, existing automated penetration testing tools often find it difficult to keep up with the pace of change and are unable to respond to new security threats in a timely and effective manner.

[0011] With the emergence of large language models, it has become possible to use artificial intelligence for reasoning and decision-making. Currently, there are very few products that use large models to drive penetration testing, and none of them can be fully automated. They all rely on interaction with users to advance each step, and still cannot release the investment in human and time costs. Summary of the invention

[0012] In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides an automated penetration testing method and system driven by a large language model, which can effectively improve the efficiency of penetration testing services and reduce the cost of penetration testing.

[0013] In one aspect of the present invention, there is provided an automated penetration testing method driven by a large language model, comprising:

[0014] Design of automated penetration testing process driven by big models: Since the present invention is driven by big models, it is different from manual testing in many technical details. Therefore, the present invention designs a new penetration testing idea that is more suitable for big models. The manual testing steps are replaced by tool scanning and recognition, and the naked eye observation of manual testing is replaced by a combination of big model analysis of front-end code and image analysis. The big model extracts features from web page screenshots.

[0015] Multi-role working mode: The system includes five large model roles: commander agent, penetration test engineer agent, code audit engineer agent, report writing agent and data analyst agent, and one special function large model: image analysis large model.

[0016] The large model completes task decomposition and execution: The commander agent is responsible for controlling and scheduling the overall task, decomposing the penetration test task, and sending the decomposed subtasks to the penetration test engineer agent one by one. The penetration test engineer agent selects appropriate commands or tools to test the target.

[0017] Code audit linkage: During the test, the penetration test engineer agent can be linked with the code audit engineer agent to conduct code audit work to discover potential vulnerabilities. The source code leaks discovered by the penetration test engineer will be transmitted to the code audit engineer for audit, and the audit results will be notified to the penetration test engineer to assist in completing the penetration test task. At the same time, the code audit engineer will audit the front-end code of each test page, extract the features, and feedback to the penetration test engineer.

[0018] Image analysis assistance: Use the image analyst model to assist in analyzing and collecting information on the target interface, extract the features of the target page, and inform the penetration test engineer. The penetration test engineer will make a comprehensive judgment based on the test results of the image analyst, code audit engineer, and his own integrated tools, and decide on the next action.

[0019] Information collection and classification: All collected personal information, such as email addresses, mobile phone numbers, names, etc., will be passed to the data analyst agent, which will classify the information and provide assistance in subsequent tests, such as generating more targeted weak passwords based on existing information.

[0020] Penetration test report generation: When the commander agent believes that the penetration test task is completed, it will inform the report writing agent, which will generate a detailed penetration test report.

[0021] Design a list of targets to be tested: Design a list of targets to be tested, and store all discovered targets in this list. During the penetration test, take out the targets from the list one by one for testing. If new targets are found during the test, continue to add them to the list until all targets in the list have been tested and the penetration test task is completed.

[0022] Prompt template presetting: In order to improve the accuracy and standardization of the big model's responses, multiple prompts are pre-set in the system to standardize the output format and content of the big model. This includes "System" level prompts and "User-Assistant" level prompts. "System" level prompts are used to set rules that the big model must always follow during task execution, and "User-Assistant" level prompts are used to standardize the response format of the big model.

[0023] Another aspect of the present invention further provides an automated penetration testing system driven by a large language model, comprising:

[0024] Fine-tuning module: used to fine-tune the pre-trained large model;

[0025] Commander Agent: used to decompose tasks, issue tasks, and control the progress of penetration testing;

[0026] Penetration test engineer agent: responsible for completing the penetration test work;

[0027] Code Audit Engineer Agent: responsible for code auditing of leaked source code and open source source code;

[0028] Report writing agent: responsible for writing penetration test reports.

[0029] Data Analyst Agent: Responsible for classifying and storing sensitive data and personal information discovered during the penetration test, and providing it if needed in subsequent executions.

[0030] Image analysis agent: responsible for analyzing the screenshots of the target interface and extracting page features.

[0031] Fine-tuning of large models: Use books, papers and other materials related to penetration testing to fine-tune the large model to give it more professional knowledge in the field of penetration testing.

[0032] The present invention discloses an automated penetration testing system driven by a large language model. As a preferred method, the fine-tuning module includes: collecting existing books, papers and other materials related to penetration testing, and fine-tuning the pre-trained large model so that the large model has more professional knowledge in the field of penetration testing and can be more inclined to the field of penetration testing when responding.

[0033] The invention discloses an automated penetration test system based on a large language model. As a preferred method, the commander agent: directly communicates with the user, receives the user's instructions and target URL, decomposes the user's instructions into tasks, and guides the penetration test engineer to perform penetration work, and gives the next step of instructions based on the feedback of the penetration test engineer until the penetration test task is completed. After completion, an end signal is sent to the report writer to obtain a penetration test report.

[0034] The present invention discloses an automated penetration test system driven by a large language model. As a preferred method, the penetration test engineer agent includes: obtaining tasks from the commander agent, performing penetration test operations in accordance with the requirements of the tasks and its own knowledge base, and feeding back the results to the commander agent after completing the tasks. During the penetration test, the penetration test engineer agent selects corresponding tools and commands through the perception of the actual environment and its own knowledge base, calls and executes through the command line of the deployment environment, implements the test of the target system, and performs the next operation according to the target's return data until the penetration test engineer believes that the task has been completed; during the penetration test process, if the target is found to have source code leakage or use of open source code, it will be passed to the code audit engineer agent for code audit, and targeted testing will be performed based on the results; during the test process, the penetration test engineer agent will pass all vulnerability information to the report writing agent.

[0035] The present invention describes an automated penetration testing system driven by a large language model. As a preferred method, the code audit engineer agent includes: when the penetration test engineer performs a penetration testing task, when the website source code is obtained through a vulnerability or the source code is queried on a public website, the code audit engineer agent will perform a code audit on it, and hand over the audited vulnerabilities to the penetration test engineer for verification and utilization, and at the same time pass them to the report writing agent.

[0036] The present invention discloses an automated penetration testing system driven by a large language model. As a preferred method, the report writing agent includes: when the penetration test engineer performs the penetration test task, the detected vulnerability information will be transmitted to the report writing agent, and the code audit engineer will also transmit the detected vulnerability information to the report writing agent as the content material for the report writing. When the report writing agent receives the end signal sent by the commander agent, it will generate a penetration test report based on the received information and feedback it to the user as the result of this task.

[0037] The present invention describes an automated penetration testing system driven by a large language model. As a preferred method, the data analyst agent includes: when the penetration test engineer and the code audit engineer perform tasks, the discovered personal information will be transmitted to the data analyst, and the data analyst will classify and store the transmitted information. When used subsequently, the data analyst will provide data to assist the penetration test engineer in testing.

[0038] The present invention describes an automated penetration testing system driven by a large language model. As a preferred method, the image analysis agent includes: when analyzing the front-end code, in order to improve the comprehensiveness and accuracy of information collection, the image analysis agent will analyze the web page screenshots, extract the features of the page, and transmit them to the penetration test engineer to assist in the completion of the penetration test task.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] (1) Huge knowledge base: The present invention uses the method of fine-tuning the open source pre-trained large model to inject a large amount of penetration testing related knowledge into the large model, making it more professional in the field of penetration testing.

[0041] (2) High efficiency: The present invention can perform scanning, detection and analysis tasks around the clock with almost no human intervention. Compared with traditional manual penetration testing, automated penetration testing can complete the same task in a shorter time, greatly improving work efficiency.

[0042] (3) Low cost: Automated penetration testing reduces the reliance on high-paid security professionals, thus saving costs to a great extent. In addition, the automated system can repeatedly execute the same test process, ensuring the stability and consistency of the results, and helping to reduce errors caused by human factors.

[0043] (4) Efficient learning: For newly emerged vulnerabilities, the present invention can learn through fine-tuning and quickly master the exploitation methods of the vulnerabilities.

[0044] (5) Privacy protection: The present invention can adopt a full black box mode test, in which no test details are given during the test process, and no relevant exploit information of the vulnerability is given in the final penetration test report, so as to prevent the vulnerability from being leaked.

[0045] The automated penetration testing system of the present invention can be implemented by the following steps:

[0046] (1) Search for documents and datasets related to network security and penetration testing, perform preprocessing and feature extraction, and use them as datasets for fine-tuning.

[0047] (2) Use the dataset in (1) to fine-tune an open source pre-trained large model to obtain richer penetration testing-related knowledge.

[0048] (3) Prepare some commonly used penetration testing tools, such as NMAP, SQLMAP, etc., as the tool set of the present invention, for implementing various penetration testing operations.

[0049] (4) The big model is connected to the local tools through code. When executing tasks, the big model can call the tools of the deployment terminal through system code, and select the corresponding tools and commands based on its own knowledge base and the results of previous interactions, and execute them. After the execution is completed, the execution result data is filtered, and the valid data is selected and returned to the big model for analysis and decision-making.

[0050] Compared with the prior art, the beneficial effect of the present invention is in the field of penetration testing. Compared with the currently common manual testing, the present invention can achieve 24-hour all-weather operation, does not require manual intervention during the execution of a penetration testing task, and improves the speed and efficiency of task completion. Compared with other automated penetration testing products, the knowledge base of the large model used in the present invention is far richer than the machine learning model currently used by other products, which means that the present invention can implement some innovative testing techniques, thereby achieving unexpected results; compared with other penetration testing products driven by large models, the present invention integrates many penetration testing tools in the system, which can realize the large model directly calling local tools without manual operation, while other products require people in the middle as a series. In contrast, the present invention no longer requires manual intervention, reducing labor costs and time costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is the work flow chart of the present invention.

[0052] Figure 2 The figure is a flow chart of the working and data flow process of the present invention under decomposed tasks.

[0053] Figure 3 Design a diagram for a list of URLs.

[0054] Figure 4 Workflow diagram for code audit engineers.

[0055] Figure 5 This is a workflow diagram for analyzing the front-end code according to the present invention. DETAILED DESCRIPTION

[0056] Reference will now be made in detail to exemplary embodiments of the present invention. The technical solutions 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, rather than all of the embodiments.

[0057] Example 1

[0058] The large model used in the present invention is a large model that is fine-tuned by collecting public books, blogs, papers and other materials related to penetration testing from the Internet. It is not a common general large model currently.

[0059] Figure 1 The specific process of the automated penetration test of the present invention is shown in FIG. Figure 1 The following steps are described in detail:

[0060] The commander, penetration test engineer, report writer, and code audit engineer are four assistants, each corresponding to a large model instance and responsible for different tasks.

[0061] In step 401, the user inputs a target into the system. The target will first be input to the commander.

[0062] In step 402, the commander decomposes the task and sends the first step task to the penetration test engineer.

[0063] In step 403, the penetration test engineer completes the task assigned by the commander through a series of penetration test operations and returns the results to the commander.

[0064] In step 404, the commander gives the next step instruction based on the feedback from the penetration test engineer.

[0065] Step 403 and step 404 are repeatedly executed until the task is completed.

[0066] In step 405, the penetration test engineer will pass the sensitive data discovered during the test, such as email, phone and other information, to the data analyst agent, and the data analyst will classify and process the data and retrieve it in subsequent tests.

[0067] In step 406, when the mission requires the retrieval of relevant data for testing, the commander will seek the corresponding data from the data analyst, and the data analyst will provide data of the corresponding category according to the classification when the data was stored.

[0068] In step 407, when the penetration test engineer finds a source code leak or the target uses open source code, the code audit engineer can be informed to obtain the source code for code auditing. The penetration test engineer will pass each detected vulnerability to the report writer as content material for the report writer.

[0069] In step 408, the code audit engineer reports the audit results to the penetration test engineer, and the penetration test engineer makes further attempts and exploits based on the results.

[0070] In step 409, the code audit engineer may also discover sensitive information such as email addresses when auditing the code, and this information will also be transmitted to the data analyst agent.

[0071] In step 410, the penetration test engineer will pass all vulnerability information and verification methods found during the test to the report writing agent as report writing material.

[0072] In step 411, the code audit engineer reports the audit results to the report writer as content material for the report writer.

[0073] In step 412, when the commander believes that the penetration test task has been completed, a completion signal is sent to the report writing.

[0074] In step 413, after the report writing receives the end signal, a penetration test report will be generated and presented to the user.

[0075] Figure 2 It is a data flow chart of the present invention, the deployed terminal, and the target system under a decomposed task, combined with Figure 2 The following steps are described in detail:

[0076] In step 414, the commander issues a task to the penetration test engineer.

[0077] In step 415, the penetration test engineer decides how to test, selects the corresponding tool, and calls the tool on the local terminal.

[0078] In step 416, in order to supplement the knowledge base of the intelligent agent, the present invention connects the external knowledge base with the penetration test engineer agent through LangChain, and queries the external knowledge base during testing.

[0079] In step 417, according to the tools and instructions given by the penetration test engineer, the local terminal actually calls the tool and sends a request to the target machine.

[0080] In step 418, a response is given to the tool's request and returned to the window of the local terminal.

[0081] In step 419, the present invention captures the return result from the command line window and transmits it back to the penetration test engineer after a series of cleaning. If the penetration test engineer believes that the task is not completed, steps 415 to 419 are repeated until the task is completed.

[0082] In step 420, the penetration test engineer considers the mission complete and informs the commander of the results.

[0083] Figure 3 It is the target URL list design diagram, combined with Figure 3 Describe in detail.

[0084] Step 421, during the test process, select a URL from the URL list in order and pass it to the intelligent agent.

[0085] Step 422, the penetration test function module of the present invention performs a penetration test on the URL.

[0086] Step 423, if a jump link is found in the page during the penetration test in step 422, the target URL is added to the URL list.

[0087] Step 424, when all URLs in the URL list are tested, an end signal "Success" is returned.

[0088] Figure 4 This is a flowchart of the auxiliary method used by the code audit engineer agent when processing the front-end page. Figure 4 Describe in detail.

[0089] Step 425, since the length of the front-end code is long and exceeds the context window of the large model, it cannot be transferred to the large model at one time. Therefore, the present invention divides the code into blocks through the text_splitter and document_loaders modules.

[0090] Step 426, the code blocks are passed to the code audit engineer agent in sequence.

[0091] In step 427, the code audit engineer will perform code audit analysis on all the previously passed code blocks as a prompt and generate a code audit report.

[0092] Figure 5 This is a flowchart of the present invention for a complete analysis of the front-end code, combined with Figure 5 Describe in detail.

[0093] Step 428, the fingerprint tool integrated in the present invention analyzes the front-end code.

[0094] In step 429, fingerprint will extract the result of feature matching from the front-end code according to the written rules.

[0095] In step 430, the feature matching results will be transmitted to the penetration test engineer agent.

[0096] In step 431, the front-end code is simultaneously transmitted to the code audit engineer agent.

[0097] Step 432: The code audit engineer audits the incoming code and generates an audit report.

[0098] In step 433, the audit report is transmitted to the penetration test engineer.

[0099] Step 434, during the penetration test, the present invention will render the interface through the selenium library and take a full-screen screenshot, and pass the screenshot into the image analysis model.

[0100] In step 435, the graphic analysis model will analyze the incoming screenshot, extract its features, and generate a text report.

[0101] In step 436, the text report will be transmitted to the penetration test engineer.

[0102] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. An automated penetration testing method driven by a large language model, characterized in that: include: Large model-driven automated penetration testing process design: optimize the penetration testing process and improve penetration testing efficiency; Multi-role working mode: six large model agents are enabled at the same time. The six large model agents assume different roles and are responsible for different tasks. The large models cooperate with each other to complete the penetration test task. The large model completes task decomposition and execution: The commander agent decomposes the penetration test task and completes the task assignment; Code audit linkage: During the test, the penetration test engineer agent can link with the code audit engineer agent to conduct code audit work to discover potential vulnerabilities; Image analysis assistance: Use image analyst agents to assist in analyzing and collecting information on the test target interface; Information collection and classification: The collected information is transmitted to the data analysis agent for data classification and storage, and retrieved when needed; Design a list of targets to be tested: Ensure the integrity of the penetration testing work by maintaining a list of targets to be tested; Prompt template preset: Preset multiple prompts to standardize the output format and content of large models.

2. The automated penetration testing method based on large language model drive according to claim 1, characterized in that: The large model-driven automated penetration testing process design method includes: analyzing the traditional penetration testing process, selecting steps that are not suitable for the large model, optimizing the design and replacing them, and designing a test process suitable for automated penetration testing driven by the large model.

3. The automated penetration testing method based on large language model drive according to claim 1 is characterized in that: The multi-role working mode method includes: designing six large model roles, commander agent, penetration test engineer agent, code audit engineer agent, report writing agent, data analyst agent and image analyst agent, which cooperate with each other to complete the penetration test task.

4. The automated penetration testing method based on large language model drive according to claim 1, characterized in that: The method for completing task decomposition and execution by a large model includes: a large model of a commander role completes the decomposition of a penetration test task, and sends the decomposed subtasks to the penetration test engineer agent one by one.

5. The automated penetration testing method based on large language model drive according to claim 1, characterized in that: The code audit linkage method includes: when completing the penetration test task, the source code leakage discovered by the penetration test engineer will be transmitted to the code audit engineer for audit, and the audit result will be notified to the penetration test engineer to assist in completing the penetration test task. At the same time, the code audit engineer will audit the front-end code of the test page, extract the features therein, and feed back to the penetration test engineer.

6. The automated penetration testing method based on large language model drive according to claim 1 is characterized in that: The image analysis assistance method includes: the image analyst analyzes and collects information on the target interface with the assistance of web page screenshots, extracts the features of the target page, and informs the penetration test engineer. The penetration test engineer makes a comprehensive judgment based on the test results of the image analyst intelligent body, the code audit engineer and his own integrated tools, and decides on the next action.

7. The automated penetration testing method based on large language model drive according to claim 1 is characterized in that: The information collection and classification method includes: all personal information collected during the penetration test, including but not limited to email addresses, mobile phone numbers, and names, will be transmitted to the data analyst agent, which will classify the information and provide assistance in subsequent tests.

8. The automated penetration testing method based on large language model drive according to claim 1, characterized in that: The method for designing a list of targets to be tested includes: designing a list of targets to be tested, storing all discovered targets in the list, and during penetration testing, taking out targets from the list in turn for testing. If new targets to be tested are discovered during the test, they continue to be added to the list until all targets in the list are tested and the penetration testing task is completed.

9. The automated penetration testing method based on large language model drive according to claim 1, characterized in that: The Prompt template presetting method includes: "System" level Prompt and The "User-Assistant" level prompt and the "System" level prompt are used to set rules that the large model must always follow during task execution. The "User-Assistant" level prompt is used to make standard requirements on the response format of the large model.

10. An automated penetration testing system driven by a large language model, characterized in that: include: Fine-tuning module: used to fine-tune the pre-trained large model; Commander Agent: used to decompose tasks, issue tasks, and control the progress of penetration testing; Penetration test engineer agent: responsible for completing the penetration test work; Code Audit Engineer Agent: responsible for code auditing of leaked source code and open source source code; Report writing agent: responsible for writing penetration test reports; Data Analyst Agent: Responsible for classifying and storing sensitive data and personal information found during the penetration test, and providing it if needed in subsequent executions; Image Analyst Agent: Responsible for analyzing screenshots of the target interface and extracting page features.

11. The automated penetration testing system according to claim 10, characterized in that: The fine-tuning module includes: collecting existing books, papers and other materials related to penetration testing, fine-tuning the pre-trained large model, improving the professional knowledge level of the large model in the field of penetration testing, and following the language of the penetration testing field when responding.

12. The automated penetration testing system according to claim 10, characterized in that: The commander intelligent agent includes: directly communicating with the user, receiving the user's instructions and target URL, decomposing the user's instructions into tasks, and guiding the penetration test engineer to perform penetration work, giving the next step of instructions based on the penetration test engineer's feedback until the penetration test task is completed. After completion, an end signal is sent to the report writer to obtain a penetration test report.

13. The automated penetration testing system according to claim 10, characterized in that: The penetration test engineer agent includes: obtaining tasks from the commander agent, performing penetration test operations in accordance with the requirements of the tasks and its own knowledge base, and after completing the tasks, feeding back the results to the commander agent.

14. The automated penetration testing system according to claim 13, characterized in that: The penetration test engineer agent includes: the penetration test engineer gives instructions, calls and executes through the command line of the deployment environment to implement the test of the target system, and performs the next step according to the return data of the target until the penetration test engineer believes that the task has been completed; during the penetration test process, if it is found that the target has source code leakage or use of open source code, it will be passed to the code audit engineer agent for code audit, and targeted testing will be carried out based on the results; during the test process, the penetration test engineer agent passes all vulnerability information to the report writing agent.

15. The automated penetration testing system according to claim 10, characterized in that: The code audit engineer agent includes: when the penetration test engineer performs a penetration test task, when the website source code is obtained through a vulnerability or the source code is queried on a public website, the code audit engineer agent will conduct a code audit on it and hand over the audited vulnerabilities to the penetration test engineer for verification and utilization.

16. The automated penetration testing system according to claim 10, characterized in that: The report writing agent includes: when the penetration test engineer performs the penetration test task, the detected vulnerability information is transmitted to the report writing agent, and the code audit engineer also transmits the detected vulnerability information to the report writing agent as the content material for report writing. When the report writing agent receives the end signal sent by the commander agent, it will generate a penetration test report based on the received information and feedback to the user as the result of this task.

17. The automated penetration testing system according to claim 10, characterized in that: The data analyst intelligent agent includes: when the penetration test engineer and the code audit engineer perform their tasks, the discovered personal information will be transmitted to the data analyst, and the data analyst will classify and store the transmitted information. When used subsequently, the data analyst will provide data to assist the penetration test engineer in testing.

18. The automated penetration testing system according to claim 10, characterized in that: The b analyst agent includes: when analyzing the front-end code, in order to improve the comprehensiveness and accuracy of information collection, the image analyst analyzes the web page screenshots, extracts the features of the page, and transmits them to the penetration test engineer to assist in the completion of the penetration test task.

Citation Information

Patent Citations

  • Automatic penetration test system based on AI

    CN111488587A

  • RPA robot software security penetration test technology based on artificial intelligence algorithm

    CN116089257A

  • Penetration test agent training and verification environment construction method and electronic equipment

    CN117097627A

  • Penetration testing method and system

    CN117354006A

  • Data analysis system based on multi-agent cooperation

    CN118210828A

Cited By

  • Large language model automatic penetration testing method based on multiple agents

    CN119025878A

  • Penetration test agent system driven by large language model and test method

    CN119150912A

  • Automatic penetration testing method and system with large language model as kernel

    CN119917403A

  • Penetration test knowledge injection method and system based on large language model

    CN120146179A

  • Automatic penetration testing method and device based on large model driving

    CN120602171A