Electric power system container escape identification system and method based on kernel call construction process behavior tree

By constructing a container escape detection tree, automatically extracting and correlating behavioral features, and identifying container escape behaviors, the problem of difficulty in identifying indirect escape behaviors and reliance on manual participation in the existing technology is solved, and the identification ability and detection efficiency of container escape behaviors are improved.

CN118535283APending Publication Date: 2024-08-23NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410622794.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-23

Smart Images

  • Figure CN118535283A
    Figure CN118535283A
Patent Text Reader

Abstract

The invention belongs to the technical field of computer security and network security, and particularly provides a power system container escape identification method based on a kernel call construction process behavior tree, which comprises the following steps: identifying initial container nodes on a host machine, and organizing the nodes to construct an escape detection tree; monitoring and preprocessing an audit log of a host machine, extracting process behavior characteristics of the container, and constructing a behavior characteristic observation chain based on the process behavior characteristics; creating a new process is continuously monitored, a process feature chain is searched, the new process is traced to a container node on the escape detection tree, and a perfect container escape detection tree is constructed; and judging whether the process escapes or not according to the perfected container escape detection tree. According to the method, the container escape detection tree is constructed and perfected through the effects of the modules, whether direct escape or cascade escape occurs is judged based on the container escape detection tree, and various escape behaviors of the container can be effectively identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer security and network security, and in particular to a power system container escape identification system and method based on kernel call construction of process behavior tree. Background Art

[0002] In the context of the widespread adoption of cloud computing and service-oriented architecture, container technology has become increasingly important because it provides an efficient, scalable, and highly isolated operating environment. Container technologies, such as Docker and Kubernetes, allow developers to package applications and their dependent environments together to ensure the consistency and portability of applications in different environments. Although containers provide an isolated execution environment, they still run on the host's operating system and share the same kernel with other containers. Therefore, there may be security risks caused by incomplete resource isolation and inadequate resource restrictions. Attackers can exploit vulnerabilities in the host kernel to attack containers, causing the container to escape, allowing the container to obtain higher permissions and access the host and other containers on the host.

[0003] Traditional container escape detection methods include NS-Detector and HOC-Detector. NS-Detector detects container escape behavior based on namespace changes. This detection method can effectively identify escape behaviors caused by changes in the namespace of the child process of the process in the container, but it cannot effectively identify indirect escape behaviors achieved by modifying the kernel service or daemon process configuration. HOC-Detector can effectively identify indirect and direct escape behaviors, but escape behavior identification depends on the construction of heterogeneous observation chains, which itself requires modeling of various escape processes and depends on the selection of observation points. A lot of manual participation is required in the process, and once the observation points are not selected accurately, the detection accuracy will be reduced.

[0004] In order to solve the problems existing in the above-mentioned prior art, technicians in this field have made many efforts. For example, Chinese patent application CN116302325A discloses a container escape protection method, system, storage medium and device, which can effectively prevent hackers from using the DockerinDocker mode to cause greater damage to the host machine by intercepting the execution of illegal instructions in the container and intercepting the creation of illegal containers. However, there is still a lack of effective identification of various types of container escape behaviors. Summary of the invention

[0005] To solve the above problems, the present invention provides a power system container escape identification method based on kernel call to build a process behavior tree. The container escape detection tree is constructed and improved through the container identification and organization module, the behavior feature extraction and observation chain construction module and the new process monitoring and identity tracking module. The escape behavior detection module is used to determine whether a direct escape or a cascade escape occurs, which can effectively identify various types of container escape behaviors.

[0006] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is a power system container escape identification system based on kernel call to build a process behavior tree, characterized in that it includes a container identification and organization module, a behavior feature extraction and observation chain construction module, a new process monitoring and identity tracking module and an escape process identification module; the container identification and organization module is used to identify the initial container node on the host machine, and organize it into a multi-branch tree structure to form a container escape detection tree; the behavior feature extraction and observation chain construction module is used to monitor and preprocess the audit log of the host machine, extract the container process behavior features, and build a behavior observation chain based on these features; the new process monitoring and identity tracking module is used to continuously monitor the creation of new processes through the configured auditd service rules, search the process feature chain, and trace the new process to the container node on the escape detection tree to build a perfected container escape detection tree; the escape process identification module is used to determine whether an escape phenomenon occurs according to the perfected container escape detection tree process.

[0007] A method for identifying power system container escape based on kernel call construction process behavior tree, the method comprising the following steps:

[0008] Step S1: The container identification and organization module identifies the initial container nodes on the host machine and organizes these nodes to build an escape detection tree;

[0009] Step S2: The behavior feature extraction and observation chain construction module extracts the behavior features of the container process by monitoring and preprocessing the audit log of the host machine, and constructs a behavior feature observation chain based on the process behavior features;

[0010] Step S3: The new process monitoring and identity tracking module continuously monitors the creation of new processes through the configured auditd service rules, searches for process feature chains, and traces the new processes to the container nodes on the escape detection tree to build a complete container escape detection tree;

[0011] Step S4: The escape behavior detection module determines whether the process has escaped according to the improved container escape detection tree.

[0012] Furthermore, in step S1, the container identification and organization module identifies the initial container nodes on the host machine and organizes these nodes to construct the escape detection tree. The specific method is:

[0013] Step S1-1: The container identification and organization module extracts container creation information [C1, C2, C3...C m ], establish a single-node tree with the host machine root process as the root node; among them, C i represents the host container, and m represents the number of host containers;

[0014] Step S1-2: The container identification and organization module retrieves and records the process information of each container in the initial state, and extracts the process [T1, T2...T k ] and build the process chain of container C1 [C1T1,C1T2,C1T3....C1T k ]; where k represents the number of processes of container C1 in the initial state;

[0015] Step S1-3: Complete C2, C3...C in sequence m The process chain of the container is established, and the escape detection tree is constructed by combining the host root process information and container identification information.

[0016] Further, in step S2, the behavior feature extraction and observation chain construction module extracts the behavior features of the container process by monitoring and preprocessing the audit log of the host machine, and the specific method of constructing the behavior feature observation chain based on the process behavior features is as follows:

[0017] Step S2-1: The behavior feature extraction and observation chain construction module extracts the behavior events generated by the container process information from the host audit log and tracks and records them, which is expressed as: [B1, B2, ... B n ]; among them, B i Indicates the behavioral events generated by each process;

[0018] Step S2-2: Place container C i As the head node, C i T1,C i T2,...C i T k As the neighboring node of the head node, construct the initial K-fork feature chain;

[0019] Step S2-3: Substitute [B1, B2, ... B n ] Link to C in the order of events i T i After the container process node, the construction of the behavior observation chain is completed; where 1≤i≤k.

[0020] Furthermore, in step S3, the new process monitoring and identity tracking module continuously monitors the creation of new processes through the configured auditd service rules, searches for process feature chains, and traces the new processes to the container nodes on the escape detection tree. The specific method for constructing the improved container escape detection tree is as follows:

[0021] Step S3-1: The new process monitoring and identity tracking module continuously monitors new process creation activities through the configured auditd service rules;

[0022] Step S3-2: When a new process is detected to be created on the host, the behavior observation chain is searched through the DFS algorithm to retrieve the container behavior directly related to the creation of the new process;

[0023] Step S3-3: Pack the matched new process behavior information into a new node, represented as: C i T i H k , and add it to the child nodes of the corresponding container node to build a complete container escape detection tree.

[0024] Furthermore, in step S4, the specific method by which the escape behavior detection module determines whether an escape phenomenon occurs according to the improved container escape detection tree process is:

[0025] Step S4-1: Collecting process C i T i With C i T i H k The context and attribute information between them, including user ID uid, group ID gid, capabilities Capabilities, SELinux context, and process security attributes AppArmor;

[0026] Step S4-2: assigning different weight parameters to each indicator in the process context and attribute information;

[0027] Step S4-3: Calculate the process C through the authority scoring formula i T i With C i T i H k The final score is compared with When , the container C is judged i There is direct escape behavior; the authority score calculation formula is:

[0028] P=(W uid ×V uid )+(W gid ×V gid )+∑(W cap ×Vcap )+(W selinux ×V selinux )+(W apparmor ×V apparmor ), where W uid , W gid , W cap , W selinux , W apparmor They are user ID uid, group ID gid, capabilities, SELinux context, and weights of process security attributes; V uid 、V gid 、V cap 、V selinux 、V apparmor They are the actual weight values ​​of user ID uid, group ID gid, capabilities, SELinux context, and process security attributes; P is the final score.

[0029] Further, in step S4-3, when container processes C1T1, C1T2, ....C1T k There is no escape behavior, but the generated child processes [C1T1H1, C1T2H2....C1T i H k ] When there is an escape behavior, the calculation formula is used to determine whether container C1 has a cascade escape behavior. The specific method is:

[0030] The cascade escape score G of container C1 is calculated by the calculation formula, which is expressed as: W NEV +W EV =1; then compare G with the set threshold. When G is less than the threshold, it is determined that the container has cascade escape behavior. Otherwise, it is determined that the container does not have cascade escape behavior. Wherein, G represents the cascade escape score of container C; W EV , W NEV Respectively represent the weight value of the escaped process and the weight value of the non-escaped process; V EC 、V NEC Respectively represent the number of escaped processes and the number of non-escaped processes; H N Indicates the total number of nodes in the child process.

[0031] The technical solution of the present invention has the following beneficial effects:

[0032] 1. The present invention identifies the initial node through the container identification and organization module, and organizes the nodes to build a container escape detection tree. The behavior feature extraction and observation chain construction module extracts the container process behavior features and establishes a behavior observation chain. The new process monitoring and identity tracking module builds and improves the container escape detection tree. Finally, the escape behavior detection module determines whether a direct escape or cascade escape occurs based on the improved escape detection tree. It can effectively identify various types of container escape behaviors and improve the container escape behavior recognition capability.

[0033] 2. The present invention identifies the container process, automatically extracts the behavior features and associates and binds the newly generated process of the host machine with the behavior, constructs a container escape detection tree, combines the escape judgment module to implement container escape judgment, realizes a fully automatic process escape detection method, and improves the efficiency of container escape identification.

[0034] 3. The present invention proposes a direct escape judgment method and a cascade escape judgment method for easy escape judgment, which can not only identify escape behaviors with namespace changes, but also identify indirect escape behaviors such as those achieved by executing a rebound shell command, greatly improving the ability to identify container escape behaviors. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments and in conjunction with the accompanying drawings.

[0036] Figure 1 It is a framework diagram of the power system container escape identification method based on kernel call construction process behavior tree described in the present invention.

[0037] Figure 2 It is a flow chart of the power system container escape identification method based on kernel call construction process behavior tree described in the present invention.

[0038] Figure 3 This is the container escape detection tree structure diagram in the initial state.

[0039] Figure 4 It is a structural diagram of the container behavior observation chain.

[0040] Figure 5 This is the improved container escape detection tree structure diagram. DETAILED DESCRIPTION

[0041] The technical solution of the present invention is further described below in conjunction with the accompanying drawings, but is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be included in the protection scope of the present invention.

[0042] like Figure 1 As shown, the present invention proposes a power system container escape identification system based on kernel call construction of process behavior tree, including a container identification and organization module, a behavior feature extraction and observation chain construction module, a new process monitoring and identity tracking module and an escape process identification module, wherein the container identification and organization module is used to identify the initial container node on the host machine, and organize it into a multi-branch tree structure to form a container escape detection tree; the behavior feature extraction and observation chain construction module is used to monitor and preprocess the audit log of the host machine, extract the container process behavior features, and build a behavior observation chain based on these features; the new process monitoring and identity tracking module is used to continuously monitor the creation of new processes through the configured auditd service rules, search the process feature chain, and trace the new process to the container node on the escape detection tree to build a perfected container escape detection tree; the escape process identification module is used to determine whether an escape phenomenon occurs according to the perfected container escape detection tree process.

[0043] like Figure 2 As shown, the present invention proposes a power system container escape identification method based on kernel call construction process behavior tree, the method comprising the following steps:

[0044] Step S1: The container identification and organization module identifies the initial container nodes on the host and organizes these nodes to build an escape detection tree. The specific method is as follows:

[0045] Step S1-1: The container identification and organization module extracts container creation information from the audit log and establishes a single-node tree [C1, C2, C3...C m ]; among them, C i Represents the host container, and m represents the number of host containers.

[0046] Step S1-2: The container identification and organization module retrieves and records the process information of each container in the initial state, and extracts the process [T1, T2...T k ] and build the process chain of container C1 [C1T1,C1T2,C1T3....C1T k ]; where k represents the number of processes of container C1 in the initial state.

[0047] Step S1-3: Complete C2, C3...C in sequence m The process chain of the container is established, and the escape detection tree is constructed by combining the host root process information and container identification information.

[0048] Specifically, Figure 3As shown in the figure, by analyzing the initialization process of the Docker container, it can be found that dockerd sends a container creation instruction to the container runtime management engine containerd through the gRPC interface. Then containerd creates container-shim and calls runc through container-shim to start the container. Based on the audit log of the Linux host, the activity data of the container-shim process can be extracted. When the container creation instruction is detected, the container process information can be comprehensively extracted based on the detailed data of the instruction and added to the multi-branch tree branch with root as the root node as the initialization node of the container process to build a container escape detection tree.

[0049] Step S2: The behavior feature extraction and observation chain construction module extracts the behavior features of the container process by monitoring and preprocessing the audit log of the host machine, and constructs a behavior feature observation chain based on the process behavior features; the specific method is:

[0050] Step S2-1: The audit log of the Linux host contains a large amount of data, which records various events that occur on the system, including but not limited to user login, system call, file access, etc. The behavior feature extraction and observation chain construction module extracts the behavior events generated by the container process information from the audit log of the host machine and tracks and records them, which is expressed as: [B1, B2, ... B n ]; among them, B i Represents the behavioral events generated by each process.

[0051] Step S2-2: Take container C1 as the head node, [C1T1, C1T2, C1T3....C1T k ] as the adjacent node of the head node to construct the initial K-fork behavior feature chain.

[0052] Step S2-3: Substitute [B1, B2, ... B n ]Link to C1T in chronological order of events i After the container process node, the construction of the behavior feature observation chain is completed; among them, the behavior feature observation chain constructed by 1≤i≤k is as follows Figure 4 shown.

[0053] Step S3: The new process monitoring and identity tracking module continuously monitors the creation of new processes through the configured auditd service rules, searches for process feature chains, and traces the new processes to the container nodes on the escape detection tree to build a complete container escape detection tree. The specific method is as follows:

[0054] Step S3-1: The new process monitoring and identity tracking module continuously monitors the new process creation activities through the configured auditd service rules, and processes the context and attribute information of the new process.

[0055] Specifically, when the configured auditd service rule is: -a always, exit -F arch=b64 -S execve, it means that the rule records all events that attempt to execute the execve system call, which basically covers the startup of all new processes and the creation of all new processes on the monitoring host.

[0056] Step S3-2: When a new process is detected to be created on the host, the behavior observation chain is searched through the DFS algorithm to retrieve the container behavior directly related to the creation of the new process.

[0057] Step S3-3: Pack the matched new process behavior information into a new node, represented as: C i T i H k , and add it to the child node of the corresponding container node to build a complete container escape detection tree; the constructed complete container escape detection tree is as follows Figure 5 shown.

[0058] Specifically, process creation can usually be divided into two ways: direct and indirect. Direct creation is based on specific system calls including fork(), vfork(), clone(), and exec() functions. Indirect process creation includes: by writing or modifying system services such as systemd or daemon configuration in Linux, specific scripts or programs can be automatically executed when the system starts or under specific circumstances, such as cron jobs, to create processes; or setting up a service that listens to a port, triggering the execution of a program or script when a specific network request is received, thereby creating a new process; or exploiting software vulnerabilities to execute malicious code, thereby indirectly creating a new process. The present invention continuously tracks the new process creation behavior on the host machine through a new process monitoring and identity tracking module. When a new process is created, it is retrieved based on the container behavior observation chain and combined with the DFS algorithm to determine whether the process creation behavior is included; for example, when the fork() function is called, the cron instruction is called, and the command to create a rebound shell is written, etc., when the behavior related to process creation is identified, this round of search is terminated, and the attributes and context information of the new process are integrated into a new node, which is attached to the container process subnode that triggers this behavior, so as to assist in the subsequent identification of container escape behavior.

[0059] Step S4: The escape behavior detection module determines whether an escape phenomenon occurs according to the improved container escape detection tree process.

[0060] Based on the improved container escape behavior observation tree, the nodes of the detection tree and their child nodes are added to the discrimination tree one by one through the BFS algorithm for permission discrimination. If the score of the new process is higher than that of the parent process, it is determined that the container process has direct escape behavior. The specific method is as follows:

[0061] Step S4-1: Collecting process C i T i With C i T i H k The context and attribute information between them, including user ID uid, group ID gid, capabilities Capabilities, SELinux context, and process security attributes AppArmor;

[0062] Step S4-2: assign different weight parameters to each indicator in the process context and attribute information.

[0063] Specifically, for .uid weight, the root user weight is set to 3, the system user weight is set to 2, and the ordinary user weight is set to 1; for .gid weight, the root group weight is set to 3, the system group weight is set to 2, and the ordinary group weight is set to 1; for .Capabilities weight, the weight of each key capability such as CAP_SYS_ADMIN, CAP_NET_ADMIN is set to 1, and the weight of each non-key capability is set to 0.5; for .SELinux context weight, the high security level Enforcing mode has a weight of -2, and the Permissive or Disabled mode has a weight of 0; for (5).AppArmor, the Enforcing mode weight is -2, and the Complaint or Disabled mode weight is 0.

[0064] Step S4-3: Calculate the process C through the authority scoring formula i T i With C i T i H k The final score is compared with When , the container C is judged i There is direct escape behavior; the authority score calculation formula is:

[0065] P=(W uid ×V uid )+(W gid ×V gid )+∑(W cap ×V cap )+(W selinux ×V selinux )+(Wapparmor ×V apparmor ), where W uid , W gid , W cap , W selinux , W apparmor They are user ID uid, group ID gid, capabilities, SELinux context, and weights of process security attributes; V uid 、V gid 、V cap 、V selinux 、V apparmor They are the actual weight values ​​of user ID uid, group ID gid, capabilities, SELinux context, and process security attributes; P is the final score.

[0066] When container processes C1T1, C1T2....C1T k There is no escape behavior, but the generated child processes [C1T1H1, C1T2H2....C1T k H k ] When there is an escape behavior, the calculation formula is used to determine whether container C1 has a cascade escape behavior. The specific method is: the cascade escape score G of container C1 is calculated by the calculation formula, which is expressed as: W NEV +W EV =1; then compare G with the set threshold. When G is less than the threshold, it is determined that the container has cascade escape behavior. Otherwise, it is determined that the container does not have cascade escape behavior. Wherein, G represents the cascade escape score of container C; W EV , W NEV They represent the weight of the escaped process and the weight of the non-escaped process, respectively, and their value range is [0,1]; V EC 、V NEC Respectively represent the number of escaped processes and the number of non-escaped processes; H N Indicates the total number of nodes in the child process.

[0067] The present invention identifies the initial node through the container identification and organization module, and organizes the nodes to build a container escape detection tree, extracts the container process behavior characteristics and establishes a behavior observation chain through the behavior feature extraction and observation chain construction module, builds and improves the container escape detection tree through the new process monitoring and identity tracking module, and finally determines whether a direct escape or cascade escape occurs based on the improved escape detection tree through the escape behavior detection module. It can effectively identify various types of container escape behaviors and improve the container escape behavior recognition capability.

[0068] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A power system container escape identification system based on kernel call construction process behavior tree, characterized in that: It includes a container identification and organization module, a behavior feature extraction and observation chain construction module, a new process monitoring and identity tracking module and an escape process identification module; the container identification and organization module is used to identify the initial container node on the host machine and organize it into a multi-branch tree structure to form a container escape detection tree; the behavior feature extraction and observation chain construction module is used to monitor and pre-process the audit log of the host machine, extract the behavior features of the container process, and build a behavior observation chain based on these features; the new process monitoring and identity tracking module is used to continuously monitor the creation of new processes through the configured auditd service rules, search the process feature chain, and trace the new process to the container node on the escape detection tree to build a complete container escape detection tree; The escape process identification module is used to determine whether an escape phenomenon occurs according to the improved container escape detection tree process.

2. A method for identifying power system container escape based on kernel call construction process behavior tree, implemented based on the power system container escape identification system based on kernel call construction process behavior tree according to claim 1, characterized in that: The method comprises the following steps: Step S1: The container identification and organization module identifies the initial container nodes on the host machine and organizes these nodes to build an escape detection tree; Step S2: The behavior feature extraction and observation chain construction module extracts the behavior features of the container process by monitoring and preprocessing the audit log of the host machine, and constructs a behavior feature observation chain based on the process behavior features; Step S3: The new process monitoring and identity tracking module continuously monitors the creation of new processes through the configured auditd service rules, searches for process feature chains, and traces the new processes to the container nodes on the escape detection tree to build a complete container escape detection tree; Step S4: The escape behavior detection module determines whether the process has escaped according to the improved container escape detection tree.

3. The power system container escape identification method based on kernel call construction process behavior tree according to claim 2 is characterized in that: In step S1, the container identification and organization module identifies the initial container nodes on the host machine and organizes these nodes to construct the escape detection tree. The specific method is: Step S1-1: The container identification and organization module extracts container creation information [C1, C2, C3...C m ], establish a single-node tree with the host machine root process as the root node; among them, C i represents the host container, and m represents the number of host containers; Step S1-2: The container identification and organization module retrieves and records the process information of each container in the initial state, and extracts the process [T1, T2...T k ] and build the process chain of container C1 [C1T1,C1T2,C1T3....C1T k ]; where k represents the number of processes of container C1 in the initial state; Step S1-3: Complete C2, C3...C in sequence m The process chain of the container is established, and the escape detection tree is constructed by combining the host root process information and container identification information.

4. The power system container escape identification method based on kernel call construction process behavior tree according to claim 2 is characterized in that: In step S2, the behavior feature extraction and observation chain construction module extracts the behavior features of the container process by monitoring and preprocessing the audit log of the host machine, and the specific method of constructing the behavior feature observation chain based on the process behavior features is as follows: Step S2-1: The behavior feature extraction and observation chain construction module extracts the behavior events generated by the container process information from the host audit log and tracks and records them, which is expressed as: [B1, B2, ... B n ]; among them, B i Indicates the behavioral events generated by each process; Step S2-2: Place container C i As the head node, C i T1,C i T2,...C i T k As the neighboring node of the head node, construct the initial K-fork feature chain; Step S2-3: Substitute [B1, B2, ... B n ] Link to C in the order of events i T i After the container process node, the construction of the behavior observation chain is completed; where 1≤i≤k.

5. The power system container escape identification method based on kernel call construction process behavior tree according to claim 2 is characterized in that: In step S3, the new process monitoring and identity tracking module continuously monitors the creation of new processes through the configured auditd service rules, searches for process feature chains, and traces the new processes to the container nodes on the escape detection tree. The specific method for constructing the improved container escape detection tree is as follows: Step S3-1: The new process monitoring and identity tracking module continuously monitors new process creation activities through the configured auditd service rules; Step S3-2: When a new process is detected to be created on the host, the behavior observation chain is searched through the DFS algorithm to retrieve the container behavior directly related to the creation of the new process; Step S3-3: Pack the matched new process behavior information into a new node, represented as: C i T i H k , and add it to the child nodes of the corresponding container node to build a complete container escape detection tree.

6. The power system container escape identification method based on kernel call construction process behavior tree according to claim 2 is characterized in that: In step S4, the specific method by which the escape behavior detection module determines whether the process has escaped according to the improved container escape detection tree is: Step S4-1: Collecting process C i T i With C i T i H k The context and attribute information between them, including user ID uid, group ID gid, capabilities Capabilities, SELinux context, and process security attributes AppArmor; Step S4-2: assigning different weight parameters to each indicator in the process context and attribute information; Step S4-3: Calculate the process C through the authority scoring formula i T i With C i T i H k The final score is compared with When , the container C is judged i There is direct escape behavior; The formula for calculating the authority score is: P = (W uid ×V uid )+(W gid ×V gid )+∑(W cap ×V cap )+(W selinux ×V selinux )+(W apparmor ×V apparmor ), where W uid , W gid , W cap , W selinux , W apparmor They are user ID uid, group ID gid, capabilities, SELinux context, and weights of process security attributes; V uid 、V gid 、V cap 、V selinux 、V apparmor They are the actual weight values ​​of user ID uid, group ID gid, capabilities, SELinux context, and process security attributes; P is the final score.

7. The power system container escape identification method based on kernel call construction process behavior tree according to claim 6 is characterized in that: In step S4-3, when the container processes C1T1, C1T2, ....C1T k There is no escape behavior, but the generated child processes [C1T1H1, C1T2H2....C1T i H k ] When there is an escape behavior, the calculation formula is used to determine whether container C1 has a cascade escape behavior. The specific method is: The cascade escape score G of container C1 is calculated by the calculation formula, which is expressed as: W NEV +W EV =1; then compare G with the set threshold. When G is less than the threshold, it is determined that the container has cascade escape behavior. Otherwise, it is determined that the container does not have cascade escape behavior. Wherein, G represents the cascade escape score of container C; W EV , W NEV Respectively represent the weight value of the escaped process and the weight value of the non-escaped process; V EC 、V NEC Respectively represent the number of escaped processes and the number of non-escaped processes; H N Indicates the total number of nodes in the child process.