Network security competition method and device combining artificial intelligence and static analysis

By combining artificial intelligence and static code analysis in the cybersecurity competition, automating the discovery of vulnerabilities and generating attack routes, the problem of traditional competition relies on manual operations is solved, and a more efficient, accurate and innovative competition process is achieved.

CN119089448APending Publication Date: 2024-12-06INTEGRITY TECH GRP INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411120299.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Traditional cybersecurity competitions rely on manual operations, lack efficiency and innovation, and fail to make full use of artificial intelligence and static code analysis technologies.

Method used

Combining artificial intelligence and static code analysis, static code analysis tools are used to discover vulnerabilities without executing code, and use machine learning models to generate attack routes to automatically answer competition questions.

Benefits of technology

It improves the automation, availability, accuracy and efficiency of network security competitions, reduces human resources investment, and enhances the automation vulnerability mining capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089448A_ABST
    Figure CN119089448A_ABST
Patent Text Reader

Abstract

According to the network security competition method and device combining artificial intelligence and static analysis, accurate content in codes is fed back to the artificial intelligence through static code analysis, the artificial intelligence gives a correct attack route after analysis, and vulnerabilities existing in the environment are automatically utilized to answer questions. The problem that various security challenges are solved by excessively depending on manual operation of participants in a traditional network security competition is solved, and the automatic vulnerability mining capability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a network security competition method and device combining artificial intelligence and static analysis. Background Art

[0002] Traditional cybersecurity competitions, such as Capture The Flag (CTF), usually rely on participants' manual operations to solve various security challenges. This method places high demands on the participants' professional knowledge, and even for the same topic, participants may need to practice multiple times to master it. Currently, artificial intelligence and static code analysis technologies have been widely used in many fields. However, these advanced technologies have not been fully utilized in traditional cybersecurity competitions, and the efficiency and innovation of the competitions need to be improved. Summary of the invention

[0003] The present invention aims to provide a network security competition method and device combining artificial intelligence and static analysis to overcome the above problems or at least partially solve the above problems.

[0004] To achieve the above object, the technical solution of the present invention is specifically implemented as follows:

[0005] One aspect of the present invention provides a network security competition method combining artificial intelligence and static analysis, comprising:

[0006] Get the code analysis questions issued by the competition platform;

[0007] Analyze the vulnerabilities of the static code of the topic through artificial intelligence;

[0008] Obtain an attack route, and attack and answer questions on the competition platform through the attack route;

[0009] Determine whether the answer is successful. If successful, the competition platform will add points after submitting the specified content; if unsuccessful, the competition platform will not add points.

[0010] Optionally, analyzing the vulnerabilities of the static code of the topic by artificial intelligence includes:

[0011] Use static code analysis tools to analyze source code or compiled versions without actually executing the program or script, and report possible errors, vulnerabilities, or practices that do not conform to programming standards.

[0012] Optionally, obtaining the attack route includes:

[0013] Obtain training data and train machine learning models;

[0014] An attack route is generated through the machine learning model.

[0015] Optionally, the training data includes: vulnerability analysis, source tracing analysis, traffic analysis, attack analysis, command interpretation, network security knowledge question and answer, high-quality network security training sets, etc., data sets related to network security.

[0016] Another aspect of the present invention provides a network security competition device combining artificial intelligence and static analysis, comprising:

[0017] The acquisition module is used to obtain the code analysis questions issued by the competition platform;

[0018] An analysis module, used to analyze the vulnerabilities of the static code of the topic through artificial intelligence;

[0019] An attack module, used to obtain an attack route, and attack and answer questions on the competition platform through the attack route;

[0020] The judgment module is used to judge whether the answer is successful. If successful, the competition platform will add points after submitting the specified content; if unsuccessful, the competition platform will not add points.

[0021] Optionally, the analysis module analyzes the vulnerabilities of the static code of the title through artificial intelligence in the following manner:

[0022] Use static code analysis tools to analyze source code or compiled versions without actually executing the program or script, and report possible errors, vulnerabilities, or practices that do not conform to programming standards.

[0023] Optionally, the attack module obtains the attack route in the following manner:

[0024] Obtain training data and train machine learning models;

[0025] An attack route is generated through the machine learning model.

[0026] Optionally, the training data includes: vulnerability analysis, source tracing analysis, traffic analysis, attack analysis, command interpretation, network security knowledge question and answer, high-quality network security training sets, etc., data sets related to network security.

[0027] Another aspect of the present invention provides an electronic device, comprising: a processor, a memory;

[0028] The memory is used to store computer programs;

[0029] The processor is used to execute the network security competition method combining artificial intelligence and static analysis as described above by calling the computer program.

[0030] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the network security competition method combining artificial intelligence and static analysis is implemented.

[0031] It can be seen that, through the network security competition method and device combining artificial intelligence and static analysis provided by the present invention, the precise content in the code is fed back to the artificial intelligence through static code analysis, and the artificial intelligence gives the correct attack route after analysis, and automatically exploits the vulnerabilities in the environment to answer questions. This solves the problem of over-reliance on manual operations of contestants to solve various security challenges in traditional network security competitions, and improves the ability of automated vulnerability mining. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0033] Figure 1 A flowchart of a network security competition method combining artificial intelligence and static analysis provided by an embodiment of the present invention;

[0034] Figure 2 A specific example flow chart of a network security competition method combining artificial intelligence and static analysis provided in an embodiment of the present invention;

[0035] Figure 3 A schematic diagram of the structure of a network security competition device combining artificial intelligence and static analysis provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0037] Figure 1 A flowchart of a network security competition method combining artificial intelligence and static analysis provided by an embodiment of the present invention is shown. Figure 2 A specific example flow chart of a network security competition method combining artificial intelligence and static analysis provided by an embodiment of the present invention is shown, see Figure 1 and Figure 2The network security competition method combining artificial intelligence and static analysis provided by the embodiment of the present invention includes:

[0038] S1, obtain the code analysis topic issued by the competition platform;

[0039] S2, analyzes the vulnerabilities of the static code of the question through artificial intelligence.

[0040] As an optional implementation of an embodiment of the present invention, analyzing the vulnerabilities of the static code of the question through artificial intelligence includes: using a static code analysis tool to analyze the source code or compiled version without actually executing the program or script, and reporting possible errors, vulnerabilities or practices that do not comply with programming standards.

[0041] Specifically, the present invention first prepares a suitable static code analysis tool: a static code analysis tool is a tool that can automatically check source code to find potential problems. They analyze source code or compiled versions without actually executing the program or script, and report possible errors, vulnerabilities, or practices that do not meet programming standards. Extract the code where there may be vulnerabilities and the corresponding vulnerability description.

[0042] S3, obtaining the attack route, and attacking and answering the questions on the competition platform through the attack route.

[0043] As an optional implementation of the embodiment of the present invention, obtaining the attack route includes: obtaining training data, training the machine learning model; and generating the attack route through the machine learning model. The training data includes: vulnerability analysis, source tracing analysis, traffic analysis, attack analysis, command interpretation, network security knowledge questions and answers, high-quality network security training sets, and other data sets related to network security.

[0044] Specifically, the present invention secondly prepares a suitable large language model: a machine learning model trained using massive data, which can generate a coherent and human-text-like model, wherein the training data can include vulnerability analysis, source tracing analysis, traffic analysis, attack analysis, command interpretation, network security knowledge question and answer, high-quality network security training sets, etc., data sets related to network security, to ensure that the large language model can correctly process the results of static code analysis to generate the correct attack route.

[0045] S4, judging whether the answer is successful. If successful, the competition platform will add points after submitting the specified content; if unsuccessful, the competition platform will not add points.

[0046] Specifically, the present invention can detect errors in advance, perform taint analysis, improve code quality, reduce software defects, and ensure security without the need for code execution through static code analysis. It can automate learning and adaptability, process complex and large-scale data, run at high speed and continuously, and reduce errors through artificial intelligence. The precise content of the code can be fed back to the artificial intelligence through static code analysis. After analysis, the artificial intelligence gives the correct attack route and automatically exploits the vulnerabilities in the environment.

[0047] It can be seen that traditional network security competitions cannot combine artificial intelligence to improve the efficiency and innovation of the competition. Even the same topic requires a lot of human resources. Compared with traditional network security competitions, the network security competition method combining artificial intelligence and static analysis provided by the embodiment of the present invention is automated, usable, accurate, efficient and innovative in combination with artificial intelligence and static code analysis. It greatly reduces the investment in human resources and improves the ability of automated vulnerability mining.

[0048] Figure 3 The schematic diagram of the structure of the network security competition device combining artificial intelligence and static analysis provided by an embodiment of the present invention is shown. The network security competition device combining artificial intelligence and static analysis applies the above method. The following is only a brief description of the structure of the network security competition device combining artificial intelligence and static analysis. For other matters not covered, please refer to the relevant description in the network security competition method combining artificial intelligence and static analysis. Figure 3 The network security competition device combining artificial intelligence and static analysis provided by the embodiment of the present invention includes:

[0049] The acquisition module is used to obtain the code analysis questions issued by the competition platform;

[0050] Analysis module, used to analyze the static code vulnerabilities of the question through artificial intelligence;

[0051] The attack module is used to obtain the attack route and attack the questions on the competition platform through the attack route;

[0052] The judgment module is used to judge whether the answer is successful. If successful, the competition platform will add points after submitting the specified content; if unsuccessful, the competition platform will not add points.

[0053] As an optional implementation of the embodiment of the present invention, the analysis module analyzes the vulnerabilities of the static code of the question through artificial intelligence in the following manner:

[0054] Use static code analysis tools to analyze source code or compiled versions without actually executing the program or script, and report possible errors, vulnerabilities, or practices that do not conform to programming standards.

[0055] As an optional implementation of the embodiment of the present invention, the attack module obtains the attack route in the following manner:

[0056] Obtain training data and train machine learning models;

[0057] Generate attack routes through machine learning models.

[0058] As an optional implementation of an embodiment of the present invention, the training data includes: vulnerability analysis, source tracing analysis, traffic analysis, attack analysis, command interpretation, network security knowledge Q&A, high-quality network security training sets, etc., data sets related to network security.

[0059] It can be seen that traditional network security competitions cannot combine artificial intelligence to improve the efficiency and innovation of the competition. Even the same topic requires a lot of human resources. Compared with traditional network security competitions, the network security competition device combining artificial intelligence and static analysis provided by the embodiment of the present invention combines artificial intelligence and static code analysis with automation, usability, accuracy, high efficiency and innovation. It greatly reduces the investment of human resources and improves the ability of automatic vulnerability mining.

[0060] The present invention also provides an electronic device, comprising: a processor, a memory;

[0061] Memory for storing computer programs;

[0062] The processor is used to execute the network security competition method combining artificial intelligence and static analysis by calling a computer program.

[0063] It can be seen that the electronic device provided by the embodiment of the present invention, combined with artificial intelligence and static code analysis network security competition, has automation, usability, accuracy, high efficiency and innovation, which greatly reduces the investment of human resources and improves the ability of automatic vulnerability mining.

[0064] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the network security competition method combining artificial intelligence and static analysis as described above.

[0065] It can be seen that the computer-readable storage medium provided by the embodiment of the present invention, combined with artificial intelligence and static code analysis network security competition, has automation, usability, accuracy, high efficiency and innovation, greatly reducing the input of human resources and improving the ability of automated vulnerability mining.

[0066] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A cybersecurity competition method combining artificial intelligence and static analysis, It is characterized in that include: Get the code analysis questions issued by the competition platform; Analyze the vulnerabilities of the static code of the topic through artificial intelligence; Obtain an attack route, and attack and answer questions on the competition platform through the attack route; Determine whether the answer is successful. If successful, the competition platform will add points after submitting the specified content; if unsuccessful, the competition platform will not add points.

2. The method according to claim 1, It is characterized in that The vulnerabilities of the static code of the topic analyzed by artificial intelligence include: Use static code analysis tools to analyze source code or compiled versions without actually executing the program or script, and report possible errors, vulnerabilities, or practices that do not conform to programming standards.

3. The method according to claim 2, It is characterized in that The acquisition attack route includes: Obtain training data and train machine learning models; An attack route is generated through the machine learning model.

4. The method according to claim 3, It is characterized in that The training data includes: vulnerability analysis, source tracing analysis, traffic analysis, attack analysis, command interpretation, network security knowledge question and answer, high-quality network security training sets, etc., data sets related to network security.

5. A network security competition device combining artificial intelligence and static analysis, It is characterized in that include: The acquisition module is used to obtain the code analysis questions issued by the competition platform; An analysis module, used to analyze the vulnerabilities of the static code of the topic through artificial intelligence; An attack module, used to obtain an attack route, and attack and answer questions on the competition platform through the attack route; The judgment module is used to judge whether the answer is successful. If successful, the competition platform will add points after submitting the specified content; if unsuccessful, the competition platform will not add points.

6. The device according to claim 5, It is characterized in that The analysis module uses artificial intelligence to analyze the vulnerabilities of the static code of the title in the following manner: Use static code analysis tools to analyze source code or compiled versions without actually executing the program or script, and report possible errors, vulnerabilities, or practices that do not conform to programming standards.

7. The device according to claim 6, It is characterized in that The attack module obtains the attack route in the following ways: Obtain training data and train machine learning models; An attack route is generated through the machine learning model.

8. The device according to claim 7, It is characterized in that The training data includes: vulnerability analysis, source tracing analysis, traffic analysis, attack analysis, command interpretation, network security knowledge question and answer, high-quality network security training sets, etc., data sets related to network security.

9. An electronic device, It is characterized in that include: Processor, memory; The memory is used to store computer programs; The processor is used to execute the network security competition method combining artificial intelligence and static analysis as described in any one of claims 1 to 4 by calling the computer program.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the network security competition method combining artificial intelligence and static analysis as described in any one of claims 1 to 4 is implemented.