A training method, device, electronic equipment and medium for attack simulation model

Through the training of action strategies and evaluation learning neural networks, an attack simulation model is generated, which solves the problem of existing BAS's strong dependence on test cases and improves the flexibility and effect of attack simulation.

CN118378682BActive Publication Date: 2024-10-25NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410826732.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-25
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The existing intrusion and attack simulation system (BAS) relies heavily on pre-programmed attack test cases, lacks flexibility, and cannot effectively generate new attack scenarios, resulting in poor attack simulation results.

Method used

By obtaining the current state information of the system under test, converting it into a state vector and inputting it into the action strategy learning neural network, selecting the target attack action, attacking the system, updating the state information, inputting the evaluation learning neural network, calculating the loss function value, training the action strategy and evaluation Learn neural networks to generate attack simulation models, independent of test cases.

Benefits of technology

It realizes attack action selection based on the current status, improves the flexibility and effect of attack simulation, does not rely on pre-programmed test cases, and can generate efficient attack plans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378682B_ABST
    Figure CN118378682B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a training method, device, electronic device and medium for an attack simulation model, which relates to the field of communication security technology, including: obtaining current state information, converting the current state information into a first state vector, and inputting the action strategy learning neural network to obtain the probability of each attack action in a preset attack library; selecting a target attack action based on the preset attack library and the probability of each attack action; attacking the system to be tested according to the target attack action, and obtaining the updated state information of the system to be tested; converting the updated state information into a second state vector; inputting the first state vector and the second state vector into an evaluation learning neural network to obtain the estimated value of the target attack action; calculating the first loss function value based on the target attack action and the estimated value, and calculating the second loss function value based on the estimated value and the actual attack value; using the trained action strategy learning neural network as an attack simulation model. The attack simulation effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication security technology, and in particular to a training method, device, electronic equipment and medium for an attack simulation model. Background Art

[0002] As cyber threats continue to evolve and intensify, the attack surface of cyber attacks is expanding, and how to verify the security and defense effectiveness of the system has become a problem faced by security operators. Breach and Attack Simulation (BAS) is a tool in the field of network security that can evaluate the security and vulnerability of the system by simulating the ideas and methods of attackers invading the system, and provide visual reports to help enterprises or institutions grasp the network security risk status in a timely manner, so as to provide more comprehensive and effective protection against various network attacks.

[0003] The current BAS can simulate the attacker's attack behavior against assets such as border networks, internal networks, and terminal machines from the attacker's perspective. The specific method is to pre-compile attack test cases and execute attack test cases through scripts to attack the system to detect the security of the overall system. However, this method is highly dependent on pre-compile attack test cases and lacks flexibility. When the existing attack test cases cannot play an effective role, it is impossible to further generate new attack plans, resulting in poor attack simulation results. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a training method, device, electronic device and medium for an attack simulation model, so as to solve the problem of strong dependence on pre-compiled attack test cases and poor attack simulation effect. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a training method for an attack simulation model, comprising:

[0006] Acquire current state information of the system to be tested, and convert the current state information into a first state vector;

[0007] Inputting the first state vector into the action strategy learning neural network to obtain the probability of each attack action in the preset attack library;

[0008] Selecting a target attack action based on the preset attack library and the probability of each attack action;

[0009] Attacking the system under test according to the target attack action to obtain updated status information of the system under test;

[0010] Converting the updated state information into a second state vector;

[0011] Inputting the first state vector and the second state vector into an evaluation learning neural network to obtain an estimated value of the target attack action, wherein the estimated value is used to represent an attack effect of the target attack action;

[0012] Calculate a first loss function value based on the target attack action and the estimated value, and calculate a second loss function value based on the estimated value and the actual attack value;

[0013] The action strategy learning neural network and the evaluation learning neural network are trained based on the first loss function value and the second loss function value, and the trained action strategy learning neural network is used as an attack simulation model.

[0014] In a possible implementation manner, after attacking the system to be tested according to the target attack action and obtaining updated status information of the system to be tested, the method further includes:

[0015] Based on the log of the system to be tested and the feedback information of the target attack action, the actual attack value of the target attack action is determined.

[0016] In a possible implementation, the selecting a target attack action based on the preset attack library and the probability of each attack action includes:

[0017] The attack action with the highest probability is used as the target attack action; or,

[0018] Generate a random number;

[0019] If the random number is less than the exploration rate of the attack action, randomly selecting an action from the preset attack library as the target attack action;

[0020] If the random number is greater than the exploration rate, the attack action with the highest probability is used as the target attack action.

[0021] In a possible implementation, the exploration rate decreases as the number of training times increases.

[0022] In a possible implementation, the current status information includes: information of each device in the system to be tested and a connection relationship between the devices, the information of each device includes basic information, working status and vulnerability status of each device, and the vulnerability status is used to indicate the current anti-attack capability of the device;

[0023] The converting the current state information into a first state vector comprises:

[0024] Converting the information of each device in the system to be tested and the connection relationship between the devices into a knowledge graph;

[0025] The knowledge graph is converted into the first state vector.

[0026] In a possible implementation, the current status information includes: basic information, working status, and vulnerability status of each device in the system to be tested, wherein the vulnerability status is used to indicate the current anti-attack capability of the device;

[0027] The converting the current state information into a first state vector comprises:

[0028] The basic information, working status and vulnerability status of each device in the system to be tested are converted into a first state vector.

[0029] In a possible implementation, determining the actual attack value of the target attack action based on the log of the system to be tested and the feedback information of the target attack action includes:

[0030] If the feedback information is successful, and there is no log information for the target attack action in the log, determining that the actual attack value is a first value;

[0031] If the feedback information is successful, and the log information for the target attack action in the log indicates that the target attack action has been detected, determining that the actual attack value is a second value;

[0032] If no feedback information is received, and the log information for the target attack action in the log indicates that the target attack action has been detected and intercepted, determining that the actual attack value is a third value;

[0033] The first value and the second value are both positive numbers, the first value is greater than the second value, and the third value is a negative number.

[0034] In a possible implementation manner, after determining the actual attack value of the target attack action based on the log of the system to be tested and the feedback information of the target attack action, the method further includes:

[0035] The current state information, the target attack action, the actual attack value and the updated state information are taken as a piece of experience data and stored in a playback buffer;

[0036] The step of training the action strategy learning neural network and the evaluation learning neural network based on the first loss function value and the second loss function value, and using the trained action strategy learning neural network as an attack simulation model, comprises:

[0037] Adjusting network parameters of the action strategy learning neural network based on the first loss function value;

[0038] Adjusting the network parameters of the evaluation learning neural network based on the second loss function value;

[0039] If the action strategy learning neural network or the evaluation learning neural network has not converged, determining whether the amount of experience data in the playback buffer reaches a preset threshold;

[0040] If yes, randomly sampling a preset amount of experience data from the playback buffer; training the action strategy learning neural network and the evaluation learning neural network based on the preset amount of experience data until both the action strategy learning neural network and the evaluation learning neural network converge, and using the action strategy learning neural network as the attack simulation model;

[0041] If not, the updated state information is used as the current state information, and the step of converting the current state information into the first state vector is returned until the action strategy learning neural network and the evaluation learning neural network converge, and the action strategy learning neural network is used as the attack simulation model.

[0042] In a second aspect, an embodiment of the present application provides a training device for an attack simulation model, comprising:

[0043] An acquisition module, used to acquire current state information of the system to be tested, convert the current state information into a first state vector; and input the first state vector into an action strategy learning neural network to obtain the probability of each attack action in a preset attack library;

[0044] A selection module, configured to select a target attack action based on the preset attack library and the probability of each attack action;

[0045] The acquisition module is further used to attack the system under test according to the target attack action to obtain updated status information of the system under test;

[0046] A conversion module, used for converting the updated state information into a second state vector;

[0047] The acquisition module is further used to input the first state vector and the second state vector into an evaluation learning neural network to obtain an estimated value of the target attack action, wherein the estimated value is used to represent an attack effect of the target attack action;

[0048] A calculation module, configured to calculate a first loss function value based on the target attack action and the estimated value, and calculate a second loss function value based on the estimated value and the actual attack value;

[0049] A training module is used to train the action strategy learning neural network and the evaluation learning neural network based on the first loss function value and the second loss function value, and use the trained action strategy learning neural network as an attack simulation model.

[0050] In a possible implementation manner, the device further includes:

[0051] The determination module is used to determine the actual attack value of the target attack action based on the log of the system to be tested and the feedback information of the target attack action.

[0052] In a possible implementation, the selection module is specifically configured to:

[0053] The attack action with the highest probability is used as the target attack action; or,

[0054] Generate a random number;

[0055] If the random number is less than the exploration rate of the attack action, randomly selecting an action from the preset attack library as the target attack action;

[0056] If the random number is greater than the exploration rate, the attack action with the highest probability is used as the target attack action.

[0057] In a possible implementation, the exploration rate decreases as the number of training times increases.

[0058] In a possible implementation, the current state information includes: information of each device in the system to be tested and the connection relationship between each device, the information of each device includes basic information, working status and vulnerability status of each device, and the vulnerability status is used to represent the current anti-attack capability of the device; the conversion module is specifically used to: convert the information of each device in the system to be tested and the connection relationship between each device into a knowledge graph; convert the knowledge graph into the first state vector; or,

[0059] The current state information includes: basic information, working status and vulnerability status of each device in the system to be tested, and the vulnerability status is used to represent the current anti-attack capability of the device; the conversion module is specifically used to: convert the basic information, working status and vulnerability status of each device in the system to be tested into a first state vector.

[0060] In a possible implementation, the determining module is specifically configured to:

[0061] If the feedback information is a successful feedback, and there is no log information for the target attack action in the log, determining that the actual attack value is a first value;

[0062] If the feedback information is a successful feedback, and the log information for the target attack action in the log is that the target attack action has been detected, determining that the actual attack value is a second value;

[0063] If no feedback information is received, and the log information for the target attack action in the log indicates that the target attack action has been detected and intercepted, determining that the actual attack value is a third value;

[0064] The first value and the second value are both positive numbers, the first value is greater than the second value, and the third value is a negative number.

[0065] In a possible implementation manner, the device further includes:

[0066] A storage module, used to store the current state information, the target attack action, the actual attack value and the updated state information as a piece of experience data in a playback buffer;

[0067] The training module is specifically used for:

[0068] Adjusting network parameters of the action strategy learning neural network based on the first loss function value;

[0069] Adjusting the network parameters of the evaluation learning neural network based on the second loss function value;

[0070] If the action strategy learning neural network or the evaluation learning neural network has not converged, determining whether the amount of experience data in the playback buffer reaches a preset threshold;

[0071] If yes, randomly sampling a preset amount of experience data from the playback buffer; training the action strategy learning neural network and the evaluation learning neural network based on the preset amount of experience data until both the action strategy learning neural network and the evaluation learning neural network converge, and using the action strategy learning neural network as the attack simulation model;

[0072] If not, the updated state information is used as the current state information, and the step of converting the current state information into the first state vector is returned until the action strategy learning neural network and the evaluation learning neural network converge, and the action strategy learning neural network is used as the attack simulation model.

[0073] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0074] Memory, used to store computer programs;

[0075] The processor is used to implement the method described in the first aspect when executing the program stored in the memory.

[0076] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0077] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.

[0078] By adopting the above technical solution, after converting the current state information of the system to be tested into a first state vector, the first state vector is input into the action strategy learning neural network, thereby obtaining the probability of each attack action in the preset attack library, and subsequently the target attack action can be selected based on the preset attack library and the probability of each action in the preset attack library, and the system to be tested is attacked to obtain the updated state information of the system to be tested. Then the second vector corresponding to the first state vector and the updated state information is input into the evaluation learning neural network, and the estimated value of the target attack action can be obtained. The first loss function value is calculated based on the target attack action and the estimated value, and the action strategy learning neural network is trained based on the first loss function value, so that the attack action with the highest probability output by the action strategy learning neural network can generate as large an attack value as possible. The second loss function value is calculated based on the estimated value and the actual attack value, and the evaluation learning neural network is trained based on the second loss function value, so that the estimated value output by the evaluation learning neural network is closer to the actual attack value, so that the estimated value used when training the action strategy learning neural network is more accurate, and the accuracy of the action strategy learning neural network is improved. Finally, the trained action strategy learning neural network is used as an attack simulation model. The attack simulation model can accurately output the attack action with the highest current attack value based on the current state of the system to be tested, does not depend on test cases, and can improve the attack effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0080] Figure 1 A flowchart of a training method for an attack simulation model provided in an embodiment of the present application;

[0081] Figure 2 A schematic diagram of a training process of an attack simulation model provided in an embodiment of the present application;

[0082] Figure 3 A schematic diagram of a deployment environment provided for an embodiment of the present application;

[0083] Figure 4 A schematic diagram of the structure of a training device for an attack simulation model provided in an embodiment of the present application;

[0084] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0085] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0086] To facilitate understanding, the relevant terms involved in the embodiments of the present application are first explained.

[0087] Knowledge graph: A graph-like structure used to organize and represent knowledge. It connects entities and relationships to establish semantic associations and reasoning so that machines can better understand and utilize knowledge.

[0088] Reinforcement learning: is a machine learning method that learns how to make optimal decisions to maximize cumulative rewards by interacting with the system under test.

[0089] Vectorized representation: It is the process of converting data or text into vectors. It expresses the characteristics of data in the form of vectors and gives specific meaning to each dimension. Vectorized representation is widely used in fields such as machine learning and natural language processing, and can provide efficient data processing and computing capabilities.

[0090] Vulnerability detection: refers to scanning and testing the security vulnerabilities of the target system to discover the security risks and vulnerabilities in the target system.

[0091] Vulnerability Exploitation: refers to an attacker taking advantage of known or unknown security vulnerabilities in the target system to obtain unauthorized access rights or perform malicious operations.

[0092] Payload: refers to the malicious code or data delivered to the target system during a network attack.

[0093] Post-exploitation: After successfully invading the target system, the attacker further explores and exploits vulnerabilities, privilege escalation, and persistent access within the target system in order to obtain more sensitive information, move laterally, or further damage the target system to achieve their malicious purposes.

[0094] Adversarial Tactics Techniques and CommonKnowledge (ATT&CK) framework: is a knowledge base for describing and analyzing network attack techniques and behaviors. It provides a detailed attack matrix covering various attack techniques, tactics, and processes to help security teams understand and combat threat behaviors and improve network defense and detection capabilities.

[0095] The present application embodiment provides a method for training an attack simulation model, which is applied to an electronic device, and the electronic device may be a terminal, server or other device with model training capability. Figure 1 As shown, the method includes:

[0096] S101. Acquire current state information of a system to be tested, and convert the current state information into a first state vector.

[0097] The system to be tested may be a network system, for example, the network system includes terminals, servers, network devices and security devices. The network devices may include devices such as routers and switches for providing network communications, and the security devices may be devices such as firewall devices for ensuring network security.

[0098] S102: Input the first state vector into the action strategy learning neural network to obtain the probability of each attack action in the preset attack library.

[0099] The preset attack library includes various attack actions involved in the simulated attack steps, for example, the simulated attack steps may include vulnerability detection, vulnerability exploitation, authority maintenance and post-penetration, etc. The preset attack library may include vulnerability scanning in the vulnerability detection step, attack payload in the vulnerability exploitation step and lateral movement in the post-penetration step, etc. Lateral movement refers to further attacking other targets in the system under test after successfully attacking an attack target in the system under test.

[0100] The action space range of the preset attack library can include all links involved in the attack simulation, which is relatively comprehensive and applicable to multiple stages of the attack simulation.

[0101] The action strategy learning neural network can be a Transformer, a Convolutional Neural Network (CNN) or a Recurrent Neural Network (RNN), and the number of layers of the action strategy learning neural network can be 5 layers, 7 layers, etc., which is not specifically limited in the embodiments of the present application. The output result of the action strategy learning neural network is the probability of each attack action in the preset attack library.

[0102] S103: Select a target attack action based on a preset attack library and the probability of each attack action.

[0103] S104: Attack the system to be tested according to the target attack action to obtain updated status information of the system to be tested.

[0104] S105. Convert the updated state information into a second state vector.

[0105] The method of converting the updated state information into the second state vector is the same as the method of converting the current state information into the first state vector.

[0106] S106. Input the first state vector and the second state vector into the evaluation learning neural network to obtain an estimated value of the target attack action.

[0107] The output of the evaluation learning neural network is the estimated value of the target attack action. The estimated value is used to represent the attack effect of the target attack action, that is, the attack effect produced after the target attack action attacks the system under test. The better the attack effect, the greater the estimated value.

[0108] S107. Calculate a first loss function value based on the target attack action and the estimated value, and calculate a second loss function value based on the estimated value and the actual attack value.

[0109] Among them, in the embodiment of the present application, each attack action in the preset attack library is converted into an action vector in advance. In this step, the first loss function value can be calculated based on the action vector and the estimated value of the target attack action.

[0110] As an example, one-hot encoding can be used to convert each attack action in the preset attack library into an action vector. The attack actions in the preset attack library can be arranged together to form an action dictionary, and the length of the action vector of each attack action is the same as the length of the action dictionary. For an action vector of an attack action, the value of the corresponding position of the attack action in the action dictionary is 1, and the values ​​of the other positions are all 0.

[0111] For example, the action dictionary is: action1, action2, action3, ..., actionN.

[0112] Then the action vector of action 1 is (1, 0, 0, ..., 0), the action vector of action 2 is (0, 1, 0, ..., 0), the action vector of action 3 is (0, 0, 1, ..., 0), and so on.

[0113] S108. Train the action strategy learning neural network and the evaluation learning neural network based on the first loss function value and the second loss function value, and use the trained action strategy learning neural network as an attack simulation model.

[0114] According to the method, after the current state information of the system to be tested is converted into a first state vector, the first state vector is input into the action strategy learning neural network, thereby obtaining the probability of each attack action in the preset attack library. Subsequently, the target attack action can be selected based on the preset attack library and the probability of each action in the preset attack library, and the system to be tested is attacked to obtain the updated state information of the system to be tested. Then, the second vector corresponding to the first state vector and the updated state information is input into the evaluation learning neural network, and the estimated value of the target attack action can be obtained. The first loss function value is calculated based on the target attack action and the estimated value, and the action strategy learning neural network is trained based on the first loss function value, so that the attack action with the highest probability output by the action strategy learning neural network can generate as large an attack value as possible. The second loss function value is calculated based on the estimated value and the actual attack value, and the evaluation learning neural network is trained based on the second loss function value, so that the estimated value output by the evaluation learning neural network is closer to the actual attack value, thereby making the estimated value used when training the action strategy learning neural network more accurate, and improving the accuracy of the action strategy learning neural network. Finally, the trained action strategy learning neural network is used as an attack simulation model. The attack simulation model can accurately output the attack action with the highest current attack value based on the current state of the system to be tested, does not depend on test cases, and can improve the attack effect.

[0115] In one embodiment of the present application, the current status information includes: information of each device in the system to be tested and the connection relationship between each device. The information of each device includes basic information, working status and vulnerability status of each device. The vulnerability status is used to indicate the current anti-attack capability of the device.

[0116] Each device in the system under test is an asset in the system under test. The basic information of each device includes the device type, the device operating system type and version. The working status can include unknown, normal and abnormal. The vulnerability status can include unknown, no vulnerability, vulnerability exists and vulnerability description. The vulnerability description can be the description information of the patch existing in the device's operating system.

[0117] The connection relationship refers to whether there is a connection between devices and the status of the connection. The connection status is normal or faulty.

[0118] On this basis, in the above S101, converting the current state information into the first state vector can be specifically implemented as follows:

[0119] The information of each device in the system to be tested and the connection relationship between the devices are converted into a knowledge graph; and the knowledge graph is converted into a first state vector.

[0120] Among them, the nodes in the knowledge graph are used to represent devices, and the edges in the knowledge graph are used to represent the connection relationship between devices.

[0121] As an example, the first state vector may include {device name; device attribute relationship; device attribute type 1, device attribute value 1; device attribute type 2, device attribute value 2;…; device attribute type N, device attribute value N; device connection relationship; connected device 1 name; connected device 2 name;…, connected device M name}.

[0122] The device name may be represented by a device ID, the value of the device attribute relationship in the first state vector is a first preset value, such as 1001, and the value of the device connection relationship in the first state vector is a second preset value, such as 1002.

[0123] The device attribute type may include the device type, operating system type and operating system version. For example, the device attribute type in the first state vector above represents the device type, the device attribute value 1 represents the server, the device attribute type 2 represents the operating system type, and the device attribute value 2 represents the A system.

[0124] It should be noted that each element included in the above-mentioned first state vector is in the form of a word vector. Specifically, each element can be converted into a word vector by using a natural language processing (NLP) task or a pre-trained language model. For example, the pre-trained language model can be a model using word to vector (Word2Vec).

[0125] In another embodiment of the present application, the current status information includes: basic information, working status and vulnerability status of each device in the system to be tested, and the vulnerability status is used to indicate the current anti-attack capability of the device;

[0126] On this basis, the current state information is converted into a first state vector, which can be specifically realized as follows: basic information, working state and vulnerability state of each device in the system to be tested are converted into the first state vector.

[0127] Specifically, each item of information included in the current state information may be converted into a word vector, and the word vectors may be concatenated into a first state vector.

[0128] In this way, the current state information of the device under test can be accurately vectorized so that the action strategy learning neural network and the evaluation learning neural network can accurately obtain output results based on the first state vector.

[0129] In some embodiments of the present application, the above S103, selecting a target attack action based on a preset attack library and the probability of each attack action, includes the following two implementation methods:

[0130] Method 1: Use the attack action with the highest probability as the target attack action.

[0131] Method 2: Generate a random number. If the random number is less than the exploration rate of the attack action, randomly select an action from the preset attack library as the target attack action; if the random number is greater than the exploration rate, select the attack action with the highest probability as the target attack action.

[0132] Among them, the exploration rate refers to the exploration rate when exploring attack actions. The exploration rate can range from 0 to 1. The larger the exploration rate, the greater the possibility of exploring attack actions other than the attack action with the highest probability. In this way, when the generated random number is less than the exploration rate, a large number of unknown states of the system under test can be explored during the training process, thereby realizing automatic exploration to simulate more attack actions, reduce dependence on test cases, and have the ability to discover new risks. When the random number is greater than the exploration rate, the existing knowledge can be fully utilized, that is, the output results of the action strategy learning neural network can be used to make decisions, which can improve flexibility.

[0133] Optionally, the initial value of the exploration rate is a preset value, and the exploration rate decreases as the number of training times increases. For example, in each training round, the exploration rate is reduced linearly or exponentially. Alternatively, a corresponding relationship table between the number of training times and the exploration rate can be set. As the number of training times increases, the value of the exploration rate also gradually decreases. In each training process, the exploration rate corresponding to the current number of training times can be obtained from the corresponding relationship table.

[0134] In this way, in the early stage of training the attack simulation model, a large number of unknown states can be explored. As the number of training times increases, the exploration rate is gradually reduced, which can increase the possibility of making decisions by using the output results of the action strategy learning neural network. It can balance the exploration needs and the needs of making decisions by using the output results of the action strategy learning neural network, thereby continuously optimizing the learning and convergence process of the action strategy learning neural network.

[0135] In some embodiments of the present application, after the above S104, attacking the system to be tested according to the target attack action and obtaining updated status information of the system to be tested, the method further includes:

[0136] Based on the log of the system under test and the feedback information of the target attack action, the actual attack value of the target attack action is determined.

[0137] The actual attack value is a guide for the action strategy learning neural network and the evaluation learning neural network. The size of the actual attack value depends on the attack effect of the target attack action. If a larger attack effect is produced, the actual attack value is larger, for example, it can be 50; if a general attack effect is produced, the actual attack value is smaller, for example, it can be 10; if the attack fails, the reward is a negative value, for example, it can be -1.

[0138] Specifically, if the feedback information is successful, and there is no log information for the target attack action in the log, then the actual attack value is determined to be the first value;

[0139] If the feedback information is success, and the log information for the target attack action in the log is that the target attack action has been detected, then the actual attack value is determined to be the second value;

[0140] If no feedback information is received, and the log information for the target attack action in the log is that the target attack action has been detected and intercepted, then the actual attack value is determined to be the third value;

[0141] The first value and the second value are both positive numbers, the first value is greater than the second value, and the third value is a negative number.

[0142] As an example, the first value is 50, the second value is 10, and the third value is -1.

[0143] For example, the target attack action is to access a malicious domain name used by ransomware. The security devices in the system under test should have the ability to intercept the target attack action.

[0144] In this case, if the feedback information of the system to be tested is success, it means that the malicious domain name has been successfully accessed, and there is no log information for the target attack behavior in the log, which means that the security device has not detected the target attack action and has not intercepted the target attack action. The effect of this attack is good, and the actual attack value is large.

[0145] If the feedback information of the system to be tested is success, but the log information recorded in the log is that the target attack action has been detected, it means that the security device did not intercept the target attack action after detecting it, and has successfully accessed it according to the malicious domain name, which means that the attack is partially effective, the attack effect is average, and the actual attack effect is average.

[0146] If the system under test does not provide any feedback, and the log information recorded in the log indicates that the target attack action has been detected and intercepted, it means that the attack has completely failed, and no feedback has been successfully provided according to the malicious domain name, and the actual attack effect is poor.

[0147] By adopting this method, the actual attack value of the target attack action can be accurately determined based on the log of the system under test and the feedback information of the system under test on the target attack action. It has better objectivity and feasibility, and can ensure the effect of reinforcement learning, so that the trained attack simulation model can output attack actions that can produce better attack effects.

[0148] In some embodiments of the present application, the above S108, training the action strategy learning neural network and the evaluation learning neural network based on the first loss function value and the second loss function value, and using the trained action strategy learning neural network as an attack simulation model, can be specifically implemented as follows:

[0149] The network parameters of the action strategy learning neural network are adjusted based on the first loss function value, and the network parameters of the evaluation learning neural network are adjusted based on the second loss function value. If the action strategy learning neural network or the evaluation learning neural network does not converge, the updated state information is used as the current state information and returned. Figure 1 The step of converting the current state information into the first state vector is repeated until the action strategy learning neural network and the evaluation learning neural network converge, and the trained action strategy learning neural network is used as the attack simulation model.

[0150] By adopting this method, the action strategy learning neural network and the evaluation learning neural network can be trained online based on the real system to be tested, so that the final attack simulation model can accurately output attack actions with good attack effects on the system to be tested, thereby accurately verifying the security of the system to be tested from the attacker's perspective. In addition, human experience can be converted into model capabilities through neural network training, reducing dependence on humans.

[0151] In some embodiments of the present application, after determining the actual attack value of the target attack action, the method further includes:

[0152] The current state information, target attack action, actual attack value and updated state information are taken as one piece of experience data and stored in the playback buffer.

[0153] On this basis, the above S108, training the action strategy learning neural network and the evaluation learning neural network based on the first loss function value and the second loss function value, and using the trained action strategy learning neural network as an attack simulation model, can be specifically implemented as follows:

[0154] Step 1: Adjust the network parameters of the action strategy learning neural network based on the first loss function value.

[0155] Step 2: Adjust the network parameters of the evaluation learning neural network based on the second loss function value.

[0156] Step 3: If the action strategy learning neural network or the evaluation learning neural network has not converged, it is determined whether the amount of experience data in the playback buffer reaches a preset threshold.

[0157] It can be understood that if the action strategy learning neural network and the evaluation learning neural network have converged, the action strategy learning neural network is used as a simulated attack model.

[0158] If the judgment result is yes, that is, the amount of experience data in the playback buffer reaches the preset threshold, then execute step 4; if the judgment result is no, that is, the amount of experience data in the playback buffer does not reach the preset threshold, then execute step 5.

[0159] Step 4: randomly sample a preset number of experience data from the playback buffer; train the action strategy learning neural network and the evaluation learning neural network based on the preset number of experience data until both the action strategy learning neural network and the evaluation learning neural network converge, and use the action strategy learning neural network as an attack simulation model.

[0160] Among them, if there is enough experience data in the playback buffer, the experience data can be used for offline training. For example, for a piece of experience data, the current state information included in the experience data can be converted into a first state vector, and the first state vector is input into the action strategy learning neural network to obtain the probability of each attack action in the preset attack library, and then the target attack action is selected based on the preset attack library and the probability of each attack action. Then, the updated state information included in the experience data is converted into a second state vector, and the first state vector and the second state vector are input into the evaluation learning neural network to obtain the attack value of the target attack action output by the evaluation learning neural network. Then, the first loss function value is calculated based on the attack action with the highest probability and the attack value, and the second loss function value is calculated based on the estimated value and the actual work value included in the experience data. Then, the network parameters of the action strategy learning neural network are adjusted by the first loss function value, and the network parameters of the evaluation learning neural network are adjusted based on the second loss function value.

[0161] Step 5: Use the updated state information as the current state information, return to the step of converting the current state information into the first state vector, until the action strategy learning neural network and the evaluation learning neural network converge, and use the action strategy learning neural network as the attack simulation model.

[0162] By adopting this method, after the amount of experience data in the playback buffer reaches a preset threshold, the experience data in the playback buffer can be used for offline training, which can reduce the number of interactions with the system to be tested during the training process. Because in the training process, the most time-consuming step is the step of interacting with the system to be tested. Directly using the experience data in the playback buffer, there is no need to interact with the system to be tested, which can improve training efficiency and data utilization.

[0163] It is understandable that after obtaining the attack simulation model, if the attack simulation model needs to be further optimized later, the attack simulation model can be optimized and trained using the experience data in the playback buffer to continuously improve the accuracy of the attack simulation model.

[0164] Taking the enterprise system as an example, the schematic diagram of the training method of the attack simulation model provided in the embodiment of the present application is as follows: Figure 2 In the embodiment of the present application, training can be performed based on a reinforcement learning method, and reinforcement learning can learn to make the best decision by interacting with the environment to obtain the maximum benefit.

[0165] Before training, the action strategy learning neural network and the evaluation learning neural network parameters are initialized, which may include weights and biases. The playback buffer is also initialized to store experience data later.

[0166] In the embodiment of the present application, the environment refers to the enterprise system, and the enterprise system state (i.e., the current state information of the system to be tested) can be obtained, and then the enterprise system state is converted into a first state vector, and then input into the action strategy learning neural network, and the action strategy learning neural network will output the probability of each attack action in the preset attack library. Then, based on the probability of each attack action, the target attack action is selected, and the target attack action is applied to the environment, so that the state of the enterprise system is updated. At this time, the action reward (i.e., the actual attack value) can be determined based on the log of the enterprise system and the feedback information of the device.

[0167] Then, the new state of the enterprise system can be obtained, converted into a second state vector, the first state vector and the second state vector are input into the evaluation learning neural network, and the evaluation learning network outputs an estimated value.

[0168] Then, a first loss function value is calculated based on the selected target attack action and the estimated value, and the network parameters of the action strategy learning neural network are updated based on the first loss function value.

[0169] A second loss function value is calculated based on the estimated value and the action reward, and network parameters of the evaluation learning neural network are updated based on the second loss function value.

[0170] Subsequently, cyclic training is performed until the number of training rounds reaches the preset number of rounds, or the action strategy learning neural network and the evaluation learning neural network converge, and the trained action strategy learning neural network is used as the attack simulation model.

[0171] After obtaining the attack simulation model, the intelligent attack simulation system can be deployed. The deployment environment is as follows: Figure 3 As shown, the enterprise office / production domain includes enterprise assets and attack simulators, and the Internet Technology (IT) management domain includes an intelligent attack simulation system and an asset log system.

[0172] The intelligent attack simulation system includes an attack simulation model. In actual applications, the attack simulation model generates the probability of each attack action in the preset attack library based on the current state information of the enterprise. After the attack simulator obtains the probability of each attack action, it selects the attack action with the highest probability to attack the enterprise assets. Then the intelligent attack simulation system can obtain the attack results generated by this attack action from the asset log system, receive feedback information on the enterprise assets, and improve the protection of the enterprise assets based on the attack results and feedback information.

[0173] The attack simulation model of the embodiment of the present application is applicable to a variety of systems to be tested and has a wide range of applications.

[0174] Corresponding to the above method embodiment, the present application embodiment also provides a training device for an attack simulation model, such as Figure 4 As shown, the device comprises:

[0175] The acquisition module 401 is used to acquire the current state information of the system to be tested, convert the current state information into a first state vector; and input the first state vector into the action strategy learning neural network to obtain the probability of each attack action in the preset attack library;

[0176] A selection module 402, for selecting a target attack action based on a preset attack library and the probability of each attack action;

[0177] The acquisition module 401 is further used to attack the system under test according to the target attack action and obtain updated status information of the system under test;

[0178] A conversion module 403, configured to convert the updated state information into a second state vector;

[0179] The acquisition module 401 is further used to input the first state vector and the second state vector into the evaluation learning neural network to obtain an estimated value of the target attack action, where the estimated value is used to represent the attack effect of the target attack action;

[0180] A calculation module 404, configured to calculate a first loss function value based on the target attack action and the estimated value, and to calculate a second loss function value based on the estimated value and the actual attack value;

[0181] The training module 405 is used to train the action strategy learning neural network and the evaluation learning neural network based on the first loss function value and the second loss function value, and use the trained action strategy learning neural network as an attack simulation model.

[0182] Optionally, the device further comprises:

[0183] The determination module is used to determine the actual attack value of the target attack action based on the log of the system to be tested and the feedback information of the target attack action.

[0184] Optionally, the selection module 402 is specifically configured to:

[0185] Use the attack action with the highest probability as the target attack action; or,

[0186] Generate a random number;

[0187] If the random number is less than the exploration rate of the attack action, a random action is selected from the preset attack library as the target attack action;

[0188] If the random number is greater than the exploration rate, the attack action with the highest probability will be used as the target attack action.

[0189] Optionally, the exploration rate decreases as the number of training epochs increases.

[0190] Optionally, the current status information includes: information of each device in the system to be tested and connection relationships between the devices, the information of each device includes basic information, working status and vulnerability status of each device, and the vulnerability status is used to indicate the current anti-attack capability of the device;

[0191] The conversion module 403 is specifically used for:

[0192] Convert the information of each device in the system to be tested and the connection relationship between the devices into a knowledge graph;

[0193] Convert the knowledge graph into the first state vector.

[0194] Optionally, the current status information includes: basic information, working status and vulnerability status of each device in the system to be tested, and the vulnerability status is used to indicate the current anti-attack capability of the device;

[0195] The conversion module 403 is specifically used for:

[0196] The basic information, working status and vulnerability status of each device in the system to be tested are converted into a first state vector.

[0197] Optionally, a module is determined, specifically for:

[0198] If the feedback information is a successful feedback, and there is no log information for the target attack action in the log, then the actual attack value is determined to be the first value;

[0199] If the feedback information is a successful feedback, and the log information for the target attack action in the log is that the target attack action has been detected, then the actual attack value is determined to be the second value;

[0200] If no feedback information is received, and the log information for the target attack action in the log is that the target attack action has been detected and intercepted, then the actual attack value is determined to be the third value;

[0201] The first value and the second value are both positive numbers, the first value is greater than the second value, and the third value is a negative number.

[0202] Optionally, the device further comprises:

[0203] A storage module, used to store the current state information, the target attack action, the actual attack value and the updated state information as a piece of experience data in a playback buffer;

[0204] The training module 405 is specifically used for:

[0205] Adjusting the network parameters of the action strategy learning neural network based on the first loss function value;

[0206] Adjusting the network parameters of the evaluation learning neural network based on the second loss function value;

[0207] If the action strategy learning neural network or the evaluation learning neural network has not converged, determining whether the amount of experience data in the playback buffer reaches a preset threshold;

[0208] If yes, randomly sample a preset amount of experience data from the playback buffer; train the action strategy learning neural network and the evaluation learning neural network based on the preset amount of experience data until both the action strategy learning neural network and the evaluation learning neural network converge, and use the action strategy learning neural network as an attack simulation model;

[0209] If not, the updated state information is used as the current state information, and the step of converting the current state information into the first state vector is returned until the action strategy learning neural network and the evaluation learning neural network converge, and the action strategy learning neural network is used as the attack simulation model.

[0210] The present application also provides an electronic device, such as Figure 5 As shown, it includes a processor 501 , a communication interface 502 , a memory 503 and a communication bus 504 , wherein the processor 501 , the communication interface 502 , and the memory 503 communicate with each other via the communication bus 504 .

[0211] Memory 503, used for storing computer programs;

[0212] The processor 501 is used to implement the method steps in the above method embodiment when executing the program stored in the memory 503.

[0213] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0214] The communication interface is used for communication between the above electronic device and other devices.

[0215] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0216] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0217] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the training method of any of the above-mentioned attack simulation models are implemented.

[0218] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the training method of any attack simulation model in the above embodiments.

[0219] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0220] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0221] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0222] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A training method for an attack simulation model, characterized in that: include: Acquire current state information of the system to be tested, and convert the current state information into a first state vector, wherein the current state information includes: basic information, working state, and vulnerability state of each device in the system to be tested, and the vulnerability state is used to indicate the current anti-attack capability of the device; Inputting the first state vector into the action strategy learning neural network to obtain the probability of each attack action in the preset attack library; Selecting a target attack action based on the preset attack library or the probability of each attack action; Attacking the system under test according to the target attack action to obtain updated status information of the system under test; Converting the updated state information into a second state vector; Inputting the first state vector and the second state vector into an evaluation learning neural network to obtain an estimated value of the target attack action, wherein the estimated value is used to represent an attack effect of the target attack action; Calculate a first loss function value based on the target attack action and the estimated value, and calculate a second loss function value based on the estimated value and the actual attack value; The action strategy learning neural network is trained based on the first loss function value, the evaluation learning neural network is trained based on the second loss function value, and the trained action strategy learning neural network is used as an attack simulation model.

2. The method according to claim 1, characterized in that After attacking the system to be tested according to the target attack action and obtaining updated status information of the system to be tested, the method further includes: Based on the log of the system to be tested and the feedback information of the target attack action, the actual attack value of the target attack action is determined.

3. The method according to claim 1, characterized in that The selecting a target attack action based on the preset attack library or the probability of each attack action includes: The attack action with the highest probability is used as the target attack action; or, Generate a random number; If the random number is less than the exploration rate of the attack action, randomly selecting an action from the preset attack library as the target attack action; If the random number is greater than the exploration rate, the attack action with the highest probability is used as the target attack action.

4. The method according to claim 3, characterized in that The exploration rate decreases as the number of training times increases.

5. The method according to any one of claims 1 to 4, characterized in that: The current status information also includes: the connection relationship between the devices in the system to be tested; The converting the current state information into a first state vector comprises: Converting the information of each device in the system to be tested and the connection relationship between the devices into a knowledge graph; The knowledge graph is converted into the first state vector.

6. The method according to any one of claims 1 to 4, characterized in that: The converting the current state information into a first state vector comprises: The basic information, working status and vulnerability status of each device in the system to be tested are converted into a first state vector.

7. The method according to claim 2, characterized in that The determining the actual attack value of the target attack action based on the log of the system to be tested and the feedback information of the target attack action includes: If the feedback information is successful, and there is no log information for the target attack action in the log, determining that the actual attack value is a first value; If the feedback information is successful, and the log information for the target attack action in the log indicates that the target attack action has been detected, determining that the actual attack value is a second value; If no feedback information is received, and the log information for the target attack action in the log indicates that the target attack action has been detected and intercepted, determining that the actual attack value is a third value; The first value and the second value are both positive numbers, the first value is greater than the second value, and the third value is a negative number.

8. The method according to claim 2 or 7, characterized in that: After determining the actual attack value of the target attack action based on the log of the system to be tested and the feedback information of the target attack action, the method further includes: The current state information, the target attack action, the actual attack value and the updated state information are taken as a piece of experience data and stored in a playback buffer; The step of training the action strategy learning neural network based on the first loss function value, training the evaluation learning neural network based on the second loss function value, and using the trained action strategy learning neural network as an attack simulation model includes: Adjusting network parameters of the action strategy learning neural network based on the first loss function value; Adjusting the network parameters of the evaluation learning neural network based on the second loss function value; If the action strategy learning neural network or the evaluation learning neural network has not converged, determining whether the amount of experience data in the playback buffer reaches a preset threshold; If yes, randomly sampling a preset amount of experience data from the playback buffer; training the action strategy learning neural network and the evaluation learning neural network based on the preset amount of experience data until both the action strategy learning neural network and the evaluation learning neural network converge, and using the action strategy learning neural network as the attack simulation model; If not, the updated state information is used as the current state information, and the step of converting the current state information into the first state vector is returned until the action strategy learning neural network and the evaluation learning neural network converge, and the action strategy learning neural network is used as the attack simulation model.

9. A training device for an attack simulation model, characterized in that: include: an acquisition module, configured to acquire current state information of the system to be tested, convert the current state information into a first state vector, wherein the current state information includes basic information, working state and vulnerability state of each device in the system to be tested, wherein the vulnerability state is used to indicate the current anti-attack capability of the device; and input the first state vector into an action strategy learning neural network to obtain the probability of each attack action in a preset attack library; A selection module, configured to select a target attack action based on the preset attack library or the probability of each attack action; The acquisition module is further used to attack the system under test according to the target attack action to obtain updated status information of the system under test; A conversion module, used for converting the updated state information into a second state vector; The acquisition module is further used to input the first state vector and the second state vector into an evaluation learning neural network to obtain an estimated value of the target attack action, wherein the estimated value is used to represent an attack effect of the target attack action; A calculation module, configured to calculate a first loss function value based on the target attack action and the estimated value, and calculate a second loss function value based on the estimated value and the actual attack value; A training module is used to train the action strategy learning neural network based on the first loss function value, train the evaluation learning neural network based on the second loss function value, and use the trained action strategy learning neural network as an attack simulation model.

10. The device according to claim 9, characterized in that The device also includes: The determination module is used to determine the actual attack value of the target attack action based on the log of the system to be tested and the feedback information of the target attack action.

11. The device according to claim 9, characterized in that The selection module is specifically used for: The attack action with the highest probability is used as the target attack action; or, Generate a random number; If the random number is less than the exploration rate of the attack action, randomly selecting an action from the preset attack library as the target attack action; If the random number is greater than the exploration rate, the attack action with the highest probability is used as the target attack action.

12. The device according to claim 10 or 11, characterized in that The current state information also includes: the connection relationship between the devices in the system to be tested; the conversion module is specifically used to: convert the information of the devices in the system to be tested and the connection relationship between the devices into a knowledge graph; convert the knowledge graph into the first state vector; or, The conversion module is specifically used to convert the basic information, working status and vulnerability status of each device in the system to be tested into a first state vector.

13. The device according to claim 10, characterized in that The determining module is specifically used for: If the feedback information is a successful feedback, and there is no log information for the target attack action in the log, determining that the actual attack value is a first value; If the feedback information is a successful feedback, and the log information for the target attack action in the log is that the target attack action has been detected, determining that the actual attack value is a second value; If no feedback information is received, and the log information for the target attack action in the log indicates that the target attack action has been detected and intercepted, determining that the actual attack value is a third value; The first value and the second value are both positive numbers, the first value is greater than the second value, and the third value is a negative number.

14. The device according to claim 10 or 13, characterized in that The device also includes: A storage module, used to store the current state information, the target attack action, the actual attack value and the updated state information as a piece of experience data in a playback buffer; The training module is specifically used for: Adjusting network parameters of the action strategy learning neural network based on the first loss function value; Adjusting the network parameters of the evaluation learning neural network based on the second loss function value; If the action strategy learning neural network or the evaluation learning neural network has not converged, determining whether the amount of experience data in the playback buffer reaches a preset threshold; If yes, randomly sampling a preset amount of experience data from the playback buffer; training the action strategy learning neural network and the evaluation learning neural network based on the preset amount of experience data until both the action strategy learning neural network and the evaluation learning neural network converge, and using the action strategy learning neural network as the attack simulation model; If not, the updated state information is used as the current state information, and the step of converting the current state information into the first state vector is returned until the action strategy learning neural network and the evaluation learning neural network converge, and the action strategy learning neural network is used as the attack simulation model.

15. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method according to any one of claims 1 to 8 when executing a program stored in a memory.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.