Action selection device for autonomous security verification with respect to network system using reinforcement learning, learning device, action selection method and program

The method addresses the challenge of handling larger state and action spaces in network vulnerability testing by using a graph-based approach with recursive learning, stabilizing the model to automate action selection in complex network environments.

JP2024126067AActive Publication Date: 2024-09-20KDDI CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023034209
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-20
Estimated Expiration
2043-03-07

AI Technical Summary

Technical Problem

Existing vulnerability testing methods for network systems face challenges in handling larger state and action spaces, requiring model restructuring when network topology or host count changes, and fail to consider the status of services on each machine.

Method used

A method that accurately represents larger state and action spaces by using a graph processing unit to observe the network system as a graph, considering local characteristics and past states, with recursive learning to stabilize the model and determine the next action.

Benefits of technology

Stabilizes learning to handle larger networks, clarifies the correspondence between learned weights and actions, and supports efficient security verification by automating the selection of actions in complex network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024126067000001
    Figure 2024126067000001
Patent Text Reader

Abstract

To provide a method which properly expresses a bigger state, and action space, in security verification on a network system, and a method which can receive these as input by the same model even if the number of network topologies or hosts differs.SOLUTION: By observing a state of a network system as a graph, in security verification using reinforcement learning, and dividing and processing a host and an action type in the inside, a strategy model which outputs action which should be taken next is adopted.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an action selection device, a learning device, an action selection method, and a program for autonomous security verification of a network system using reinforcement learning. [Background technology]

[0002] In vulnerability testing for network systems, there are cases where the state of the network system to be tested is observed and the action of the vulnerability testing based on the observed state is repeatedly selected. Vulnerability testing performed in this way can be said to be an example of a Markov decision process model. In this case, reinforcement learning can be applied to vulnerability testing by associating the state space in the Markov decision process with the state of the network system and the action space with the action for vulnerability testing. It is expected that applying reinforcement learning to vulnerability testing for network systems will enable efficient testing.

[0003] In addition, in recent years, in the security verification of network systems, a group of security experts form an attack team and perform a variety of realistic attacks on the system being verified, whether physical or virtual, to test the security response capabilities, etc. In such red teaming operations, the experts in charge of the attack team (red team) are required to have advanced knowledge, so it has been difficult to fully automate the exercise. However, with the advancement of IoT and other factors, information and networking are becoming increasingly sophisticated, and security verification of all devices will become essential. There is hope that the introduction of AI can automate this process.

[0004] Non-Patent Document 1 discloses research into the automation of penetration testing, which involves launching external attacks to invade a system and check the vulnerabilities of computers and networks, and proposes a model that performs reinforcement learning quickly and stably by hierarchizing the action space and limiting the number of actions output by each agent. However, in this model, the number of states acquired from the environment increases as the number of host machines and subnets increases. In addition, although information such as the OS and services running on the machine to be inspected is important in reality, the research in Non-Patent Document 1 does not take into account the state of the services running on each machine. Therefore, it is difficult to apply this model to a realistic network system.

[0005] Generally, a penetration test is one of the vulnerability testing methods, and a vulnerability testing is considered to be a specific action for verifying security. The strict definition of the term "security verification" used in this specification will be described later. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] Patent application No. 2022-129996 (Application date: August 17, 2022, Title of invention: State representation device, learning device, state representation method, and state representation program) [Non-patent literature]

[0007] [Non-Patent Document 1] K. Tran et al., “Deep hierarchical reinforcement agents for automated penetration testing,” Proc. International Workshop on Adaptive Cyber ​​Defense, 2021. Summary of the Invention [Problem to be solved by the invention]

[0008] In existing research, only limited settings have been considered for the state space observed from the environment and the action space selected by the agent. Therefore, application to larger state and action spaces is a challenge. In addition, existing research could only handle the same environment as the trained network system. Therefore, if the network topology or number of hosts was different, it was necessary to change the model structure. To address these challenges, it is desirable to develop methods that can accurately represent larger state and action spaces, as well as methods that can accept different network topologies and numbers of hosts as input into the same model.

[0009] Incidentally, the aforementioned Patent Document 1 (prior application) proposes an apparatus etc. for obtaining an efficient representation (graph) showing the state of a network system, and suggests that the convergence of reinforcement learning can be improved by using the apparatus etc., but does not disclose any specific method for verifying the security of a network system.

[0010] In order to solve the above-mentioned problems, the present invention aims to provide a method for accurately expressing a larger state and action space, and a method for receiving these as inputs in the same model even when the network topology or number of hosts is different.To this end, the present invention aims to provide a model for security verification using reinforcement learning, which observes the state of a network system as a graph, takes into account local features of the graph, takes into account past states of the network system, and further divides and processes hosts and action types internally to output the next action to be taken. [Means for solving the problem]

[0011] The behavior selection device of the present invention includes a graph processing unit that receives as input a graph representing the state of a network system to be subject to security verification using a triplet of a set of nodes corresponding to hosts in the network system, a set of edges corresponding to the connection relationships of the hosts, and a set of feature vectors of nodes corresponding to feature vectors indicating each of the hosts' attribute information, and outputs a vector representing the characteristics of the entire graph, a local feature processing unit that receives as inputs the vector representing the characteristics of the entire graph and the set of feature vectors of the nodes of the graph, and outputs a vector taking into account local features of the graph, a recursive learning processing unit that receives as input the vector taking into account the local features of the graph, and outputs a vector taking into account the past state of the network system, and a host / behavior type selection processing unit that receives as input the vector taking into account the past state, and outputs a vector indicating the probability of the next action to be taken for security verification.

[0012] The recursive learning processing unit may receive a hidden vector as input in addition to a vector taking into account local features of the graph, output an updated hidden vector in addition to a vector taking into account past states, and receive the updated hidden vector as a hidden state vector for the next processing time.

[0013] The host / behavior type selection processing unit may decompose the vector taking into account the past state into a vector representing the host and a vector representing the behavior type, and by multiplying these matrices, obtain a value including both the host and the behavior type, and based on this, obtain a vector indicating the probability of the behavior.

[0014] In addition, the learning device of the present invention is a learning device that performs reinforcement learning to optimize a function indicating an action to be taken for security verification targeting a network system, and the function is a policy function that receives as an argument a state that takes into account local characteristics of a graph representing the state of the network system to be subject to security verification, and returns the probability of the next action to be taken for security verification taking into account the past states of the network system.

[0015] In addition, the behavior selection method of the present invention includes a graph processing step of receiving as input a graph representing the state of a network system to be subject to security verification by a triplet of a set of nodes corresponding to hosts in the network system, a set of edges corresponding to the connection relationships of the hosts, and a set of feature vectors of nodes corresponding to feature vectors indicating each of the attribute information of the hosts, and outputting a vector representing the characteristics of the entire graph; a local feature processing step of receiving as input the vector representing the characteristics of the entire graph and the set of feature vectors of the nodes of the graph, and outputting a vector taking into account local features of the graph; a recursive learning processing step of receiving as input the vector taking into account the local features of the graph, and outputting a vector taking into account the past state of the network system; and a host / behavior type selection processing step of receiving as input the vector taking into account the past state, and outputting a vector indicating the probability of the next action to be taken for security verification.

[0016] The recursive learning processing step may receive a hidden vector as input in addition to a vector taking into account local features of the graph, add it to a vector taking into account past states, output an updated hidden vector, and receive the updated hidden vector as a hidden state vector for the next processing time.

[0017] The host / behavior type selection processing step may decompose the vector taking into account the past state into a vector representing the host and a vector representing the behavior type, and by multiplying these matrices, obtain a value including both the host and the behavior type, and based on this, obtain a vector indicating the probability of the behavior.

[0018] Furthermore, the behavior selection program according to the present invention may be a program for causing a computer to function as the behavior selection device described above. Effect of the Invention

[0019] According to the present invention, by providing a graph processing unit, it becomes possible to express in detail the state of the network that is the subject of security verification. Furthermore, the local feature processing unit and the recursive learning processing unit make it possible to stabilize complex learning, including graph processing. In addition, the host and behavior type selection processing unit uses different functions to determine the host that is the subject of the behavior and the behavior type, so that the correspondence between the weights learned by each function and the behavior is clarified, and learning becomes even more stable. By stabilizing learning, it becomes possible to handle larger-scale networks that are difficult to learn using existing methods. [Brief description of the drawings]

[0020] [Figure 1] 1 is a block diagram showing an example of a functional configuration of a behavior selection device according to an embodiment of the present invention. [Diagram 2] 1 is a flowchart showing an example of a procedure of a behavior selection method according to an embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram illustrating an example of a policy model according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] An example of an embodiment of the present invention will now be described. First, definitions of terms used to describe the embodiments of the present invention are provided below.

[0022] "Security verification" refers to the act of scanning a system, infiltrating it, and attempting to execute commands in order to discover vulnerabilities and other defects in a system and to evaluate whether they could be used as attacks.

[0023] "Environment" refers to the network system that is the target of security verification. The environment receives an action (command) from an agent (described later), executes the action within the environment, and then returns to the agent a state that represents the inside of the environment and a reward at that time. The reward is, for example, a value that indicates whether an attack was successful or not.

[0024] An "agent" is an entity that selects its next action (a command to the environment) based on the state and reward received from the environment. An agent has a function that receives the state as an argument and returns the next action to be taken (or its probability). A reinforcement learning algorithm is used to optimize this function. The function that receives the state as an argument and returns the probability of the next action to be taken is called a "policy function."

[0025] A "reinforcement learning algorithm" refers to an algorithm that optimizes a function (a specific example is a policy function) that selects an action so as to maximize the expected value of the accumulated reward when a series of states and actions are taken.

[0026] The set of "actions for security verification" is composed of the Cartesian product of the hosts in the environment and the types of actions that can be performed on each host. As a concrete example, there are three types of hosts H a , H b , H c Assume that there are two types of behaviors, A1 and A2. Here, a host is a host machine in the system, and a behavior type is an action to be performed on each host. More specifically, a behavior type corresponds to a port scan or the execution of a privilege escalation command. In this example, the set A of behaviors is a Cartesian product of the host and the behavior type, resulting in a set with six elements. A = {(H a ,A1),(H a ,A2),(Hb ,A1),(H b ,A2),(H c ,A1),(H c ,A2)} It becomes.

[0027] In the present invention, in security verification using reinforcement learning, the current state of the network system is represented as a graph and input to the model, so a graph neural network (GNN) is used in the model. In this case, in order to stabilize the learning, a mechanism for processing local features and recursive learning is introduced, and further, a mechanism for processing the host targeted by the action and the action type with different functions is provided. These processes are performed in each processing unit (functional block) described later.

[0028] FIG. 1 is a block diagram showing the functional configuration of a behavior selection device 1 in this embodiment. The behavior selection device 1 is an information processing device (computer) including an input unit 10, a control unit 20, a storage unit 30, an output unit 30, and also a communication unit and the like (not shown).

[0029] The control unit 20 is a part that controls the entire behavior selection device 1, and realizes each mechanism in this embodiment by appropriately reading and executing various programs stored in the storage unit 30. The control unit 20 may be a CPU.

[0030] The storage unit 30 is a storage area for various programs for causing the hardware group to function as the behavior selection device 1, various data, etc., and may be a ROM, RAM, flash memory, hard disk drive (HDD), solid state drive (SSD), etc.

[0031] The control unit 20 includes a graph processing unit 21, a local feature processing unit 22, a recursive learning processing unit 23, and a host / behavior type selection processing unit 24. As shown in Fig. 1, each processing unit is implemented as a functional block in the control unit 20, and the processing in each processing unit is performed by a CPU reading out a corresponding program.

[0032] FIG. 2 is a flowchart showing the procedure of the behavior selection method in this embodiment. In step S1, the action selection device 1 receives as an input a graph representing the state of the environment. In step S2, the behavior selection device 1 performs graph processing to output a vector representing the characteristics of the entire received graph.

[0033] In step S3, the behavior selection device 1 performs local feature processing to output a vector that takes into account local features of the graph, based on a vector representing the features of the entire graph and a set of feature vectors of the nodes of the graph. In step S4, the behavior selection device 1 performs a recursive learning process.

[0034] In step S5, the behavior selection device 1 performs a host / behavior type selection process. In step S6, the result of the host / behavior type selection process is output. Specific examples of the processing in each processing unit and each processing step will be explained in the proposed method in the policy model described later.

[0035] In security verification using reinforcement learning, a reinforcement learning algorithm optimizes a function that selects actions for security verification through interaction between the environment and the agent so that verification proceeds efficiently.

[0036] The present invention targets a reinforcement learning algorithm that uses a policy function, and a model of the policy function is called a policy model. The action selection device 1 in Fig. 1 is an embodiment of the policy model as a device. The arguments of the policy model (policy function) include the state received from the environment. The state is a value or a set of values ​​that represent the properties of the network system that is the subject of security inspection at that time. Here, it refers to a value that quantifies and expresses information on the number and connection relationships of host machines included in the network system, and the operating systems and applications running on each host machine, as a vector.

[0037] The output of the policy model is the next action to be taken for security verification and its probability. As a specific example, it may be expressed as a vector consisting of the same number of elements as the number of possible actions. In this case, the sum of each element of the vector is 1, and each element represents the probability of taking the corresponding action. Based on the value obtained from the output of the policy model, the actual action, i.e., the next action to be taken for security verification, is determined. Usually, the action corresponding to the largest value of each element of the vector (the action with the highest probability) is selected.

[0038] The policy model is composed of four types of processing units, namely, a graph processing unit, a local feature processing unit, a recurrent learning processing unit, and a host / behavior type selection processing unit. Below, we will explain specific examples of processing in each processing unit with reference to Figure 3, which shows the proposed method in the policy model.

[0039] The graph processor (graph processor 21 in FIG. 3) receives the state of the environment, which is the network system to be inspected, as a graph G=(V,E,X) and calculates a vector h G Here, V is a set of nodes in the graph, corresponding to a set of hosts in the network system, E is a set of edges in the graph, corresponding to a set of host connections, and X is a set of feature vectors of the nodes, corresponding to a set of feature vectors indicating attribute information of each host. The attribute information includes information such as the OS and applications installed on each host. In addition, it can also include information on the progress of vulnerability testing (for example, whether a port scan has been performed, whether intrusion has already been successful, etc.).

[0040] Incidentally, a representation (graph) showing the state of the environment, which is the network system to be inspected, can be obtained efficiently by using, for example, the device proposed in the above-mentioned Patent Document 1 (prior application).

[0041] The local feature processor (local feature processor 22 in FIG. 3) processes the feature of the entire graph output from the graph processor h GIt takes as input a set of feature vectors of nodes, X, and calculates a vector c G Here, by referring to the value of X, h G A value that takes into account the local features of each node is assigned (weighted) to each node. Specific examples of local feature processing include attention mechanisms (also called "attention mechanisms" or "attention") and processing using clustering. Figure 3 shows a case where an attention mechanism is used as local feature processing.

[0042] The recursive learning processor (recursive learning processor 23 in FIG. 3) processes the vector c G and the hidden state vector g is taken, and the vector z G and outputs the updated hidden state vector g'. Here, the input hidden state vector g is the hidden state vector g' output in the previous processing, in other words, the hidden state vector in the previous processing is received and updated. Note that in the case of the first processing, an arbitrary value is set for the hidden state vector g. By recording past states using a hidden state vector, it is possible to acquire new representations based on previously observed states (past history). This makes it possible to output different actions, for example, even if the same state is observed repeatedly.

[0043] Specific examples of processing in the recurrent learning processing unit include LSTM (Long Short-Term Memory), GRU (Gated Recurrent Unit), and RNN (Recurrent Neural Network). Figure 3 shows a case where GRU is used as the recurrent learning process.

[0044] Please note that g and g' shown in Figure 3 are not inputs and outputs to and from the outside, but are hidden state vectors passed between previous and subsequent processing times in the same policy model. As mentioned above, g shown in Figure 3 receives the hidden state vector g' output in the processing time of the previous time, and g' shown in Figure 3 is passed to the processing time of the later time to become the hidden state vector g.

[0045] The host / behavior type selection processor (host / behavior type selection processor 24 in FIG. 3) calculates the vector z G It receives a vector a, which indicates the probability of the next action, and outputs the vector z G Let v be the host vector. h and a vector v a The matrix product v h T ×v a We obtain a value that includes both the host and the action type by using the vector a, which indicates the probability of the action.

[0046] In FIG. 3, the host / behavior type selection processing unit 24 calculates a vector z G Let v be the host vector. h and a vector v a We also show that the matrix product v h T ×v a This shows that we have obtained vector a, which indicates the probability of an action (host and action type).

[0047] It should be noted that the host / behavior type selection processor, particularly the part that processes behavior type selection, can be configured hierarchically. As a specific example, behavior types can be hierarchically divided into "strategy" and "tactics." Here, "strategy" refers to a comprehensive course of action, and specific examples in security verification include scanning and intrusion. "Tactics" refers to specific actions, and specific examples in security verification include executing a port scan or process scan corresponding to a scan, and executing an intrusion command via the SMB (Server Message Block) or RDP (Remote Desktop Protocol) service corresponding to an intrusion.

[0048] Also, the vector v h and v a may be expanded to matrices. In addition, vectors (or expanded matrices) v h and v a may be constrained to be orthogonal. For example, v h and v a The number of dimensions of v can be forced to be the same. h and v a If is orthogonal, then the host and the action type can be represented independently, which may further improve performance.

[0049] In addition, this embodiment makes it possible, for example, to express in detail the state of the network system that is the subject of security verification, and by stabilizing the learning for optimizing the policy function for selecting actions for security verification, it becomes possible to accommodate larger-scale networks. This makes it possible to contribute to Goal 9 of the United Nations-led Sustainable Development Goals (SDGs), which is to "Develop resilient infrastructure, promote sustainable industrialization and foster innovation."

[0050] Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. Furthermore, the effects described in the above-described embodiments are merely a list of the most preferable effects resulting from the present invention, and the effects of the present invention are not limited to those described in the embodiments.

[0051] 1 to 3 show an embodiment in which the local feature processing section, the recursive learning processing section, and the host / behavior type selection processing section are connected in series and the processing in each processing section is performed in the order in which they are connected, but this is not limiting. For example, the host / behavior type selection processing section may perform local feature processing or recursive learning processing again to further stabilize the learning. Furthermore, the processing unit may include functions that do not receive arguments from outside the processing unit, such as normalization processing and linear transformation. [Explanation of symbols]

[0052] 1. Behavior selection device (learning device) 10 Input section 20 Control section 21 Graph Processing Unit 22 Local feature processing unit 23 Recurrent learning processor 24 Host / behavior type selection processing section 30 Storage section

Claims

1. a graph processing unit that receives as input a graph representing the state of a network system to be verified for security by a triplet consisting of a set of nodes corresponding to hosts in the network system, a set of edges corresponding to connections of the hosts, and a set of feature vectors of nodes corresponding to feature vectors indicating attribute information of each of the hosts, and outputs a vector representing the features of the entire graph; a local feature processing unit that receives as input a vector representing a feature of the entire graph and a set of feature vectors of the nodes of the graph, and outputs a vector that takes into account local features of the graph; a recursive learning processor that receives as an input a vector that takes into account local features of the graph, and outputs a vector that takes into account past states of the network system; a host / action type selection processing unit that receives as an input a vector that takes into account the past state and outputs a vector that indicates a probability of an action to be taken next for security verification; An action selection device comprising:

2. 2. The behavior selection device of claim 1, wherein the recursive learning processing unit receives a hidden vector as input in addition to a vector taking into account local features of the graph, outputs an updated hidden vector in addition to a vector taking into account past states, and receives the updated hidden vector as a hidden state vector for processing at the next time.

3. 3. The behavior selection device according to claim 1, wherein the host / behavior type selection processing unit decomposes the vector taking into account the past state into a vector representing the host and a vector representing the behavior type, obtains a value including both the host and the behavior type by a matrix product of these, and obtains a vector indicating the probability of the behavior based on this.

4. A learning device that performs reinforcement learning to optimize a function that indicates an action to be taken for security verification of a network system, comprising: A learning device, wherein the function is a policy function that receives as an argument a state that takes into account local features of a graph representing the state of the network system to be subject to security verification, and returns the probability of the next action to be taken for security verification, taking into account past states of the network system.

5. a graph processing step of receiving as input a graph representing the state of a network system to be verified for security by a triplet consisting of a set of nodes corresponding to hosts in the network system, a set of edges corresponding to connections between the hosts, and a set of feature vectors of nodes corresponding to feature vectors indicating attribute information of each of the hosts, and outputting a vector representing the features of the entire graph; a local feature processing step of receiving as input a vector representing a feature of the entire graph and a set of feature vectors of the nodes of the graph, and outputting a vector taking into account local features of the graph; a recursive learning processing step of receiving as an input a vector taking into account local features of the graph and outputting a vector taking into account past states of the network system; a host / action type selection process step of receiving as an input a vector taking into account the past state and outputting a vector indicating a probability of an action to be taken next for security verification; The method includes the steps of:

6. 6. The behavior selection method according to claim 5, wherein the recursive learning processing step receives a hidden vector as input in addition to a vector taking into account local features of the graph, outputs an updated hidden vector in addition to a vector taking into account past states, and receives the updated hidden vector as a hidden state vector for processing at the next time.

7. 7. The behavior selection method according to claim 5 or claim 6, wherein the host / behavior type selection processing step decomposes a vector taking into account the past state into a vector representing a host and a vector representing an behavior type, obtains a value including both the host and the behavior type by a matrix product of these, and obtains a vector indicating the probability of a behavior based on this.

8. 3. An action selection program for causing a computer to function as the action selection device according to claim 1.

9. 4. An action selection program for causing a computer to function as the action selection device according to claim 3.

Citation Information

Patent Citations

  • Automatic test suite controller and program

    JP2022041790A

  • System and method for extending automated penetration testing to develop an intelligent and cost efficient security strategy

    US20110035803A1

  • State expression device, learning device, state expression method, and state expression program

    JP7663537B2