Safety equipment linkage processing method and system based on reinforcement learning

CN118694558APending Publication Date: 2024-09-24STATE GRID SHANDONG ELECTRIC POWER CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410530537.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

[0007]为克服上述现有技术的不足,本发明提供了基于强化学习的安全设备联动处置方法及系统,基于各个安全设备的安全事件日志,进行攻击行为的识别及联动处置策略的最优化,解决安全设备仍然停留在“单兵作战”的问题,充分提高网络安全的防护效率

Benefits of technology

[0037] The present invention collects security event logs of each security device, identifies attack behavior through a state machine, and uses reinforcement learning methods to obtain the response actions of each security device to the attack behavior, and then forms a linkage disposal strategy for linking each security device to the attack behavior. Carry out disposal to optimize the joint disposal strategy, solve the problem of security equipment still remaining in "individual operations", and fully improve the protection efficiency of network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694558A
    Figure CN118694558A
Patent Text Reader

Abstract

The invention provides a security equipment linkage processing method and system based on reinforcement learning, and relates to the technical field of Internet security, and the specific scheme comprises the steps: obtaining security event logs of all security equipment in a power system, and carrying out the preprocessing of the security event logs; identifying an attack behavior based on the preprocessed data; through reinforcement learning, response actions of the security devices to the attack behaviors are obtained, and then a linkage processing strategy is formed and used for linking the security devices to process the attack behaviors; wherein the reinforcement learning is based on a Q-1 earni ng algorithm, an action set and a reward function of each security device are defined, and an optimal action in a current state is selected as a response to an attack behavior; according to the method, attack behavior identification and linkage processing strategy optimization are carried out based on the security event logs of the security devices, the problem that the security devices still stay in individual combat is solved, and the protection efficiency of network security is fully improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of Internet security technology, and in particular relates to a security device linkage processing method and system based on reinforcement learning. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] As the company's digitalization continues to deepen, the boundaries of network security protection continue to expand, network security exposure becomes wider and wider, and security threats to the company's internal and external networks are also increasing. Various attack methods are becoming increasingly rich and technologies are becoming more mature. The company faces severe network security challenges.

[0004] Network security protection focuses on physical security equipment. This is due to the large number and variety of devices, inconsistent protocols, and limited protection methods, making it unable to fully meet the requirements of building a comprehensive network security protection system. Due to the large number of security equipment vendors, diverse types, diverse technical approaches, and complex protocols, security operations and maintenance are extremely complex and inefficient. When faced with network security incidents, various devices cannot effectively and promptly coordinate protection and respond to security incidents. This leads to isolated security protection across different networks and regions, making it impossible to identify connections between security incidents occurring in different networks and regions, and preventing coordinated security equipment response and defense against complex attacks.

[0005] Currently, there is a lack of unified standards to define the linkage behavior between security devices, resulting in differences between different linkage solutions, making interaction and collaboration between devices difficult; the lack of unified standards also makes cross-vendor device integration more difficult, limiting the flexibility and scalability of linkage solutions; at the same time, existing security device linkage solutions are usually based on predefined rules or scripts to trigger and execute linkage operations. This static linkage method may not be able to cope with complex and dynamic security events and cannot flexibly adapt to different threat scenarios; therefore, when dealing with new threats and unknown events, the response capabilities of existing linkage solutions may be limited; existing security device linkage solutions usually lack intelligent decision-making capabilities and cannot perform autonomous threat analysis and decision-making. They usually rely on predefined rules and logic to trigger linkage operations, and cannot make intelligent decisions based on real-time security intelligence and contextual information, which may lead to false alarms, missed alarms, or inability to respond to complex security threats in a timely manner.

[0006] The existing security equipment linkage solution cannot meet current needs, and the network security protection efficiency is not high. Summary of the Invention

[0007] In order to overcome the shortcomings of the above-mentioned existing technologies, the present invention provides a security device linkage disposal method and system based on reinforcement learning. Based on the security event logs of each security device, it identifies attack behaviors and optimizes the linkage disposal strategy, solves the problem that security devices are still stuck in "single-soldier combat", and fully improves the protection efficiency of network security.

[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0009] A first aspect of the present invention provides a security device linkage processing method based on reinforcement learning.

[0010] The reinforcement learning-based security device linkage disposal method includes:

[0011] Obtain security event logs of all safety devices in the power system and pre-process the security event logs;

[0012] Identify attack behaviors based on pre-processed data;

[0013] Through reinforcement learning, the response actions of each security device to the attack behavior are obtained, and then a linkage disposal strategy is formed to coordinate the various security devices to deal with the attack behavior;

[0014] Among them, the reinforcement learning is based on the Ql earning algorithm, which defines the action set and reward function of each security device and selects the optimal action in the current state as a response to the attack behavior.

[0015] Furthermore, the security equipment includes an intrusion detection system, a firewall, a vulnerability scanning system and a router.

[0016] Furthermore, the preprocessing includes normalization and aggregation;

[0017] The normalization is to clean and standardize the event data and unify the format;

[0018] The aggregation is to eliminate duplicate events, classify similar events, and reduce large amounts of event data to a manageable range.

[0019] Furthermore, the specific implementation of the aggregation is:

[0020] (1) Determine the target time period to be aggregated and aggregate only the security event logs whose timestamps fall within the target time period;

[0021] (2) Perform correlation analysis and merge the security event logs within the target time period, and merge the related security event logs into one security event log.

[0022] Furthermore, the identification of attack behavior is achieved through a state machine;

[0023] The state machine is a decision tree that defines attack behavior. By matching the pre-processed data with the decision tree, it is determined whether the pre-processed data is an attack behavior.

[0024] Furthermore, the Q-learning algorithm is used to learn a strategy for selecting the best action under different states; in each training iteration, an action is selected based on the current state, and the Q value in the Q-table is updated based on the reward and the next state.

[0025] Further, the state is defined as a state vector consisting of source IP address, source port, destination IP address, destination port, protocol type, operation type and event type;

[0026] The action is defined as an action vector consisting of a set of actions of each security device;

[0027] The reward is defined as the feedback of the safety device to the action when the state is transferred.

[0028] A second aspect of the present invention provides a safety equipment linkage disposal system based on reinforcement learning.

[0029] The security equipment linkage disposal system based on reinforcement learning includes a data acquisition module, an attack identification module, and a strategy learning module:

[0030] The data acquisition module is configured to: acquire security event logs of all security devices in the power system and pre-process the security event logs;

[0031] The attack identification module is configured to: identify attack behaviors based on the pre-processed data;

[0032] The strategy learning module is configured to: obtain the response actions of each security device to the attack behavior through reinforcement learning, and then form a linkage disposal strategy for linking each security device to handle the attack behavior;

[0033] Among them, the reinforcement learning is based on the Ql earning algorithm, which defines the action set and reward function of each security device and selects the optimal action in the current state as a response to the attack behavior.

[0034] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of the reinforcement learning-based security device linkage processing method as described in the first aspect of the present invention.

[0035] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and runnable on the processor. When the processor executes the program, it implements the steps in the reinforcement learning-based security device linkage disposal method as described in the first aspect of the present invention.

[0036] One or more of the above technical solutions have the following beneficial effects:

[0037] The present invention collects security event logs of various security devices, identifies attack behaviors through a state machine, and uses reinforcement learning methods to obtain the response actions of various security devices to the attack behaviors, thereby forming a linkage disposal strategy for linking various security devices to handle the attack behaviors, realizing the optimization of the linkage disposal strategy, solving the problem that security devices still remain in "single-soldier combat", and fully improving the protection efficiency of network security.

[0038] Advantages of additional aspects of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0040] Figure 1 This is a flow chart of the method of the first embodiment. DETAILED DESCRIPTION

[0041] It should be noted that the following detailed description is illustrative and is intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meaning as commonly understood by those skilled in the art to which the present application belongs.

[0042] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or combinations thereof.

[0043] The main contents of this invention include the problem that various security devices used in the current power system are still stuck in "single-soldier combat". Based on the needs of building a full-scenario security protection system, a one-click response system for security policies is proposed. According to the ever-changing network conditions, a linkage disposal technology of one-click disposal, rapid blocking and policy convergence of security threats is realized based on SSH protocol remote connection.

[0044] Based on the data of power safety equipment, and targeting safety equipment of different manufacturers and different technical routes, we can realize the collection, analysis, and linkage control of various heterogeneous safety equipment data, build a linkage disposal plan for heterogeneous safety equipment, introduce the correlation analysis technology in data mining into the processing and analysis of heterogeneous security incidents, define linkage strategies, organically integrate various safety technologies, design intelligent strategy queries based on reinforcement learning, and realize the mapping of security incidents to linkage disposal strategies.

[0045] Since different security devices generate a large amount of security audit data, and with the diversification and concealment of network attacks, relying solely on simple logs for local analysis cannot meet current needs; the present invention reduces the number of security event logs by performing correlation analysis on the security event logs generated by security devices, and stores all security devices as a training set for deep learning. The Q value of policy execution is calculated through the Ql earning algorithm to obtain the optimal policy query route, thereby improving the efficiency and accuracy of policy query; various network security technologies are organically integrated, and the energy Internet security defense system is comprehensively deployed to realize automatic response and linkage disposal of power system security equipment.

[0046] Example 1

[0047] In one embodiment of the present disclosure, a security device linkage processing method based on reinforcement learning is provided, such as Figure 1 As shown, the following steps are included:

[0048] Step S1: Obtain security event logs of all security devices in the power system and pre-process the security event logs.

[0049] Furthermore, the security equipment includes an intrusion detection system, a firewall, a vulnerability scanning system and a router.

[0050] Specifically, network security devices such as intrusion detection systems (IDS), firewalls (FW), vulnerability scanning systems and routers generate a large number of security event logs. By setting up a device access layer in the power system to be responsible for the access of security devices, and configuring log receivers at the device access layer, the security event logs of all security devices are collected and summarized; the security event log here is an alarm log, that is, an alarm log is generated when the security device detects a suspected attack risk.

[0051] For the sake of explanation, we take SQL injection attack as an example and provide a specific security event log:

[0052] Timestamp: 2022-01-10 12:03:54

[0053] Source IP:192.168.1.150

[0054] Dest i nat ion IP:203.0.113.80

[0055] Protocol:HTTP

[0056] Event Type:Intrus ion Detect ion

[0057] Attack Signature:SQL Injection Attempt

[0058] URL: http: / / www.exampl e.com / logi n.php? username=admin%27%20OR% 201%3D1%20--

[0059] Act i on:B l ocked

[0060] The specific explanation is:

[0061] Timestamp: Indicates the date and time when an event occurs, based on Coordinated Universal Time (UTC).

[0062] Source IP: Indicates the source IP address of the attack traffic.

[0063] Destination IP: indicates the target IP address of the attack traffic.

[0064] Protocol: Indicates the network protocol used for the attack, in this case HTTP.

[0065] Event Type: Indicates the type of event, which is intrusion detection in this case.

[0066] Attack Signature: Indicates the specific type of attack detected, in this case a SQL injection attempt.

[0067] URL: Indicates the URL address of the attack attempt, here is http: / / www.example.com / login.php?username=admin%27%20OR%201%3D1%20-- (attempt to inject username parameter).

[0068] Action: Indicates the system's response to the attack, here it is Blocked.

[0069] The security event log entry for the SQL injection network attack provides detailed information about a specific attack event, including the source and target address of the attack, the protocol used, the type of attack detected (SQL injection), and the response action taken. These logs can help network administrators detect and prevent potential SQL injection attacks, protecting the security of applications and databases.

[0070] Furthermore, the preprocessing includes normalization and aggregation;

[0071] The normalization is to clean and standardize the event data and unify the format;

[0072] The aggregation is to eliminate duplicate events, classify similar events, and reduce large amounts of event data to a manageable range.

[0073] Specifically, the specific steps of preprocessing are:

[0074] (1) Determine the target time period to be aggregated and only process the security event logs whose timestamps fall within the target time period;

[0075] (2) Standardize the security event logs within the target time period, specifically:

[0076] 1) Clean and standardize the security event log data. For log entries within the target time period, perform data cleaning and standardization operations to remove invalid data.

[0077] Detect and delete invalid or missing data, such as null values, duplicate values, and data in the wrong format; verify the accuracy and completeness of data, such as checking the data range, data type, format rules, etc.; repair, fill, or delete data that does not meet the conditions; use interpolation methods for missing data in logs.

[0078] 2) Convert data into a unified format, such as date and time format, number format, text format, etc.

[0079] This can be achieved using tools such as string processing functions and regular expressions. For data fields of the same type, unified naming and normalization are performed; for example, different units are converted to the same unit of measurement, uppercase or lowercase letters are used uniformly, etc.; outliers are detected and processed, and thresholds for outliers are set.

[0080] (3) Correlate and merge the security event logs within the target time period, and merge the related security event logs into one security event log.

[0081] Establish associations between logs from different security devices. For example, store the logs in a database and use a shared key field as a merge condition. Here, the source IP address is used as the key field to merge logs with the same source IP address. That is, through the data connection operation in the database, related log entries are merged into one record.

[0082] Step S2: Identify attack behaviors based on the pre-processed data.

[0083] Furthermore, the identification of attack behavior is achieved through a state machine;

[0084] The state machine is a decision tree that defines attack behavior. By matching the pre-processed data with the decision tree, it is determined whether the pre-processed data is an attack behavior.

[0085] The decision tree algorithm is a method for approximating discrete function values. It is a typical classification method that first processes the data, uses an inductive algorithm to generate readable rules and decision trees, and then uses the decision to analyze new data. In essence, the decision tree is a process of classifying data through a series of rules.

[0086] Constructing a decision tree essentially involves inducing a set of classification rules from a training dataset. There may or may not be multiple decision trees that correctly classify the training data. When selecting a decision tree, one should choose one that has minimal conflict with the training data and exhibits good generalization capabilities. Furthermore, the conditional probability model should not only provide a good fit for the training data but also provide good predictions for unknown data.

[0087] The construction of the decision tree in this embodiment is based on the alarm log of known attack behavior, and rules are defined for two types of attack behavior and false alarms. When the security event log to be identified arrives, the security event log is matched with the decision tree. If the match is successful, it is confirmed as an attack behavior. If the match is unsuccessful, it is indicated as a false alarm.

[0088] Step S3: Through reinforcement learning, the response actions of each security device to the attack behavior are obtained, and then a linkage disposal strategy is formed to link each security device to handle the attack behavior.

[0089] The reinforcement learning is based on the Ql earning algorithm, which defines the action set and reward function of each security device and selects the optimal action in the current state as a response to the attack behavior.

[0090] Furthermore, the Q-learning algorithm is used to learn a strategy for selecting the best action under different states; in each training iteration, an action is selected based on the current state, and the Q value in the Q-table is updated based on the reward and the next state.

[0091] Further, the state is defined as a state vector consisting of source IP address, source port, destination IP address, destination port, protocol type, operation type and event type;

[0092] The action is defined as an action vector consisting of a set of actions of each security device;

[0093] The reward is defined as the feedback of the safety device to the action when the state is transferred.

[0094] The Q-learning algorithm is a reinforcement learning algorithm based on a value function, which is used to learn the strategy of selecting the best action under different states. In each training iteration, an action is selected according to the current state, and the Q value in the Q-table is updated according to the reward and the next state. The update formula is:

[0095] Q(s,a)=Q(s,a)+α*(R+γ*max(Q(s',a'))-Q(s,a))

[0096] Where Q(s,a) is the Q-value of choosing action a in state s, R is the reward, s' is the next state, a' is the best action to choose in the next state, α is the learning rate (used to control the weight of new information), and γ is the discount factor (used to balance the importance of current rewards and future rewards).

[0097] To further confirm the state space, the word segmentation method is used to extract keywords from the log: source IP address, source port, target IP address, target port, protocol type, operation type and event type. These keywords form a state vector to represent the current power system state.

[0098] Among them, the source IP address indicates the IP address of the host initiating the network connection; the destination IP address indicates the IP address of the target host of the network connection; the protocol type indicates the protocol used by the network connection, such as TCP, UDP, ICMP, etc.; the source port indicates the port number of the host initiating the connection; the destination port indicates the port number of the target host; the operation type indicates the action taken by the security device on the network connection, such as blocking, recording, releasing, etc.; the event type indicates the event type related to the network connection, such as intrusion detection, malware detection, access control rules, etc.

[0099] Further action definition is carried out to define the set of actions that the Ql earning model can take. For example, the action set of a firewall includes blocking traffic, sending an alert, and updating configurations, and the action set of an intrusion detection system includes blocking IP addresses, sending alerts, and updating rules. The actions of all security devices are integrated to form a larger action vector, such as [block traffic, send alerts, update configurations, block IP addresses, update rules...].

[0100] We further define a reward function based on the problem to provide feedback to the Ql earning model. The reward is defined based on the log information and policy of the security device. Based on the log information and the defined security policy, we provide a reward signal to the model. The reward function R(s,a) is specifically:

[0101] R(s,a)=w1*S(s,a)+w2*E(s,a)+w3*L(s,a)

[0102] Among them, R(s,a) is the reward value for selecting action a in state s, S(s,a) is the safety reward item, which is used to measure the contribution of the linkage action to the system security, E(s,a) is the efficiency reward item, which is used to measure the cost and efficiency factors of the linkage action, and L(s,a) is the long-term return reward item, which is used to measure the impact of the linkage action on the long-term security of the system; w1, w2, and w3 are weight parameters used to balance the importance of different reward items and the weight parameter range (0≤W1≤1, 0≤W2≤1, 0≤W3≤1, W1+W2+W3=1) sets the weight parameters.

[0103] When the model takes appropriate security operations or actions, positive rewards are given; when the model takes unsafe or inappropriate operations, negative rewards are given; the size of the reward can be adjusted according to the specific situation to encourage the model to learn better security behaviors; through continuous iterative training and evaluation processes, the reinforcement learning model and security policies are optimized by comparing and verifying with actual security incidents; as the model continues to learn and adjust, it will gradually improve the security performance of the system; for example, when the firewall successfully blocks a malicious IP address, a positive reward can be given, and when the firewall fails to block a malicious IP address, a negative reward can be given.

[0104] Further state transition and environmental feedback: Based on the logs and model policies of the security device, a state transition function is defined, which describes the process of the system transitioning from one state to the next after taking a specific action. At the same time, based on the state transition, the feedback of the security device to the action is simulated, such as recording logs, blocking connections, etc.

[0105] Furthermore, historical security event logs and corresponding attack behavior labels are collected as training sets for the deep learning Q-learning algorithm. Ql learning is trained and a Q table is used to help coordinate and comprehensively consider the linkage disposal of multiple security devices in global security decision-making.

[0106] In each training step, an action is selected based on the current state, the action is executed and the feedback (reward and next state) of the environment is observed; then, the Q-value function is updated according to the Ql earning algorithm to optimize the decision-making strategy of the model; this training iteration process is repeated until the model converges or the predetermined number of training times is reached.

[0107] After the training is completed, the trained Ql earning is used to learn the current status and obtain the optimal action of each device for the current attack behavior. It automatically blocks specific IP addresses, records logs, sends alarms, scans for vulnerabilities, and links security devices to handle network security attacks with one click, improving defense efficiency and achieving the effect of "joint combat".

[0108] Example 2

[0109] In one embodiment of the present disclosure, a security device linkage processing system based on reinforcement learning is provided, including a data acquisition module, an attack identification module, and a strategy learning module:

[0110] The data acquisition module is configured to: acquire security event logs of all security devices in the power system and pre-process the security event logs;

[0111] The attack identification module is configured to: identify attack behaviors based on the pre-processed data;

[0112] The strategy learning module is configured to: obtain the response actions of each security device to the attack behavior through reinforcement learning, and then form a linkage disposal strategy for linking each security device to handle the attack behavior;

[0113] The reinforcement learning is based on the Ql earning algorithm, which defines the action set and reward function of each security device and selects the optimal action in the current state as a response to the attack behavior.

[0114] Example 3

[0115] The purpose of this embodiment is to provide a computer-readable storage medium.

[0116] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the reinforcement learning-based security device linkage processing method as described in the first embodiment of the present disclosure.

[0117] Example 4

[0118] The purpose of this embodiment is to provide an electronic device.

[0119] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of the reinforcement learning-based security device linkage processing method as described in the first embodiment of the present disclosure are implemented.

[0120] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.

Claims

1. A security equipment linkage disposal method based on reinforcement learning, characterized in that: include: Obtain the security event logs of all safety devices in the power system and pre-process the security event logs; Identify attack behaviors based on preprocessed data; Through reinforcement learning, the response actions of each security device to the attack behavior are obtained, and then a linkage disposal strategy is formed to link various security devices to deal with the attack behavior; The reinforcement learning is based on the Q-learning algorithm, which defines the action set and reward function of each security device and selects the optimal action in the current state as a response to the attack behavior.

2. The security device linkage processing method based on reinforcement learning according to claim 1, characterized in that: The security equipment includes an intrusion detection system, a firewall, a vulnerability scanning system and a router.

3. The security device linkage processing method based on reinforcement learning according to claim 1, characterized in that: The preprocessing includes normalization and aggregation; The normalization is to clean and standardize the event data and unify the format; The aggregation is to eliminate duplicate events, classify similar events, and reduce a large amount of event data to a manageable range.

4. The security device linkage processing method based on reinforcement learning as claimed in claim 3 is characterized in that: The specific implementation of the aggregation is: (1) Determine the target time period to be aggregated, and aggregate only the security event logs whose timestamps are within the target time period; (2) Perform correlation analysis and merge the security event logs within the target time period, and merge the related security event logs into one security event log.

5. The security device linkage processing method based on reinforcement learning according to claim 1, characterized in that: The identification of attack behavior is achieved through a state machine; The state machine is a decision tree that defines attack behaviors. By matching the preprocessed data with the decision tree, it is determined whether the preprocessed data is an attack behavior.

6. The security device linkage processing method based on reinforcement learning according to claim 1, characterized in that: The Q-learning algorithm is used to learn the strategy of selecting the best action under different states; in each training iteration, an action is selected according to the current state, and the Q value in the Q-table is updated according to the reward and the next state.

7. The security device linkage processing method based on reinforcement learning according to claim 6 is characterized in that: The state is defined as a state vector consisting of source IP address, source port, destination IP address, destination port, protocol type, operation type and event type; The action is defined as an action vector consisting of a set of actions of each security device; The reward is defined as the feedback of the safety device to the action when the state is transferred.

8. A safety equipment linkage disposal system based on reinforcement learning, characterized in that: Including data acquisition module, attack identification module and strategy learning module: The data acquisition module is configured to: acquire the security event logs of all security devices in the power system and pre-process the security event logs; The attack identification module is configured to: identify attack behaviors based on the preprocessed data; The strategy learning module is configured to: obtain the response actions of each security device to the attack behavior through reinforcement learning, and then form a linkage disposal strategy for linking each security device to handle the attack behavior; The reinforcement learning is based on the Q-learning algorithm, which defines the action set and reward function of each security device and selects the optimal action in the current state as a response to the attack behavior.

9. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; a processor for executing the computer-readable instructions; Wherein, when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is executed.

10. A storage medium, characterized in that: The computer-readable instructions are non-transitorily stored, wherein when the computer-readable instructions are executed by a computer, the method of any one of claims 1 to 7 is performed.