Electric power Internet of Things system container vulnerability detection method based on deep learning

By building a system call whitelist and a deep learning anomaly detection model in the power Internet of Things system, the problem of failing to effectively detect vulnerabilities in the power Internet of Things system in the existing technology is solved, and efficient and accurate vulnerability detection is achieved.

CN118862086APending Publication Date: 2024-10-29WUXI POWER SUPPLY BRANCH OF STATE GRID JIANGSU ELECTRIC POWER CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410898019.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing technologies fail to effectively consider system call characteristics in power Internet of Things systems, resulting in poor vulnerability detection and high false alarm rates, which cannot meet the needs of power business scenarios.

Method used

A method based on deep learning is used to perform static analysis on the power Internet of Things system, build a system call whitelist, perform data preprocessing and quantitative scoring through sliding windows and TF-IDF algorithms, and build an anomaly detection model based on structural features and semantic features. Classification determination of system call sequences.

Benefits of technology

It improves the accuracy and efficiency of vulnerability detection, reduces the false positive rate, and is suitable for vulnerability detection with high detection rate and low false positive rate in power Internet of Things systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862086A_ABST
    Figure CN118862086A_ABST
Patent Text Reader

Abstract

The invention discloses a deep learning-based container vulnerability detection method and system for an electric power Internet of Things system. Performing static analysis on the container to obtain a system call set needing to be called in a container application running process; performing risk level classification on the system call function, and determining a system call white list from the system call set according to the level classification; the method comprises the following steps: constructing an operation environment of edge equipment containers of a power Internet of Things system, collecting system call data of a plurality of containers, preprocessing the system call data to obtain a system call sequence, and filtering the system call sequence based on a system call white list; performing quantitative scoring and redundancy elimination on the system call sequence according to the risk level classification and the frequency characteristics; and a deep learning anomaly detection model is constructed, the trained model is used to carry out classification determination on the system call sequence after redundancy elimination, and an abnormal sequence is alarmed. According to the scheme, the vulnerability false alarm rate is reduced while the vulnerability detection efficiency of the power Internet of Things system is improved, so that the safety of the container and the application program is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of security detection, and in particular relates to a method for detecting container vulnerabilities in an electric power Internet of Things system based on deep learning. Background Art

[0002] With the rapid development of IoT technology and smart devices, the security issues of power IoT devices and data have become increasingly prominent. The many security vulnerabilities in power IoT devices may lead to privacy data leakage and even cause serious network security incidents in the power IoT system.

[0003] With the development of cloud computing technology, containers have been widely used in various fields. Compared with traditional virtual machine technology, container technology has the advantages of fast startup and low resource consumption, and can be deployed and expanded more efficiently, with better compatibility. However, the situation of containers in specific scenarios such as power business scenarios is relatively complicated.

[0004] In most cases based on the power Internet of Things scenario, multiple containers share a kernel with the host. This means that the application inside the container can initiate system calls to the host kernel like regular processes on the host. As an interface between the application and the system, the system call links the user state with the kernel state, which is crucial for the entire system. In the latest version of the container engine, more than 300 system calls can be used. Once these system calls are used improperly, they will cause risk vulnerabilities and even provide attackers with larger attack targets. Therefore, the reasonable analysis of system calls has gradually become one of the focuses of power Internet of Things security detection.

[0005] Existing technologies for intrusion detection of container system calls are mostly implemented through machine learning or deep learning methods. These methods do not take into account the system call characteristics of the power Internet of Things system, so they are not targeted for applications in the power Internet of Things scenario. In addition, a single container may generate millions of system calls per second during normal operation. Such a large amount of data will cause great load and pressure on the detection model, which will also increase the false alarm rate and add risks to the evaluation of the entire system. Existing methods are relatively simple in selecting sequence features and cannot effectively improve the efficiency of container vulnerability detection. Summary of the invention

[0006] In order to solve the deficiencies in the prior art, the present invention provides a power Internet of Things system container vulnerability detection method based on deep learning, so as to solve the technical problems that the existing method is not suitable for power business scenarios, the system call features are not fully considered, resulting in poor vulnerability detection effect and high false alarm rate.

[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions.

[0008] The present invention first discloses a method for detecting container vulnerabilities in an electric power Internet of Things system based on deep learning, and the method comprises the following steps:

[0009] Step 1: Perform static analysis on the power IoT system container to obtain the system call set that needs to be called during the operation of the container application;

[0010] Step 2: classify the system call functions in the power Internet of Things system according to their functions, and determine a system call whitelist from the system call set according to the risk classification;

[0011] Step 3: construct an operating environment for the edge device container of the power Internet of Things system, collect and preprocess the system call data of multiple containers in the operating environment, obtain a system call sequence, and filter the system call sequence based on the system call whitelist;

[0012] Step 4: Quantitatively score and remove redundancy of the system call sequence according to the risk level classification and frequency characteristics of the system call function in the power Internet of Things system;

[0013] Step 5: Build a deep learning anomaly detection model and perform model training. Use the trained model to classify and determine the de-redundant system call sequence and issue an alarm for abnormal sequences.

[0014] The present invention further includes the following preferred embodiments:

[0015] The static analysis of the electric power Internet of Things system container to obtain a set of system calls that need to be called during the operation of the container application further includes:

[0016] Get the target binary file in the container, disassemble the target binary file into assembly code using a disassembly tool, and analyze the calling relationship in the code;

[0017] Get the system call number stored in eax or rax, then determine the system call function corresponding to the system call number, save the system call number and the system call function in a text document as a key-value pair, and obtain the system call set that needs to be called during the running of the container application.

[0018] Determining a system call whitelist from the system call set according to the level classification further comprises:

[0019] The system call functions are divided into high risk level, medium risk level and low risk level, and the system calls with low risk level in the system call set are retained to obtain a system call whitelist.

[0020] The collecting and preprocessing of system call data of multiple containers to obtain a system call sequence further includes:

[0021] The system call name in the system call data is extracted, and the system call name is processed into a system call number according to the system call table file; thereby the system call data collected during the operation of the container is converted into a system call sequence.

[0022] The method of quantitatively scoring and removing redundancy of the system call sequence according to the risk level classification and frequency characteristics of the system call function in the electric power Internet of Things system further includes:

[0023] A sliding window is used to split a long sequence of system calls into multiple short sequences.

[0024] According to the risk level of the system call function in the power Internet of Things system, a risk score is assigned to it; the TF-IDF algorithm is selected to characterize the frequency characteristics of the system call, and the system call risk score and the TF-IDF algorithm are combined to quantify and score multiple short sequences:

[0025]

[0026] TF-IDF(Seq i )=TF(Seq i )*IDF(Seq i )

[0027] Among them, Seq i For the i-th system call short sequence, countSeq i For short sequence Seq i The number of occurrences in the system call sequence, Score j For short sequence Seq i The risk score of the system call function in the system call sequence, countSeq is the total number of short sequences in the system call sequence, TF(Seq i ) is a short sequence Seq i The frequency of words in the system call sequence; countSys is the total number of system call sequence entries in the database, countSys i Contains short sequence Seq i The number of system call sequence entries, IDF(Seq i ) is the system call short sequence Seq i The inverse word frequency of i Quantitative score TF-IDF(Seq i );

[0028] Redundant short sequences with scores below a predefined score threshold are removed.

[0029] The model training further comprises:

[0030] Select the Adam optimizer, take the cross entropy loss function Loss as the objective function, and continuously minimize the loss function through a finite number of iterations to achieve the best model effect. The classification results and loss function are specifically expressed as:

[0031]

[0032]

[0033] Among them, N is the number of training samples, y is the true label of the sample, For the prediction results.

[0034] The present invention also discloses a power Internet of Things system container vulnerability detection system based on deep learning using the above-mentioned power Internet of Things system container vulnerability detection method based on deep learning, comprising:

[0035] The system call set acquisition module is used to perform static analysis on the power Internet of Things system container and obtain the system call set that needs to be called during the operation of the container application;

[0036] A system call whitelist determination module, used to classify the system call functions according to their functions in the electric power Internet of Things system, and determine a system call whitelist from the system call set according to the risk classification;

[0037] A system call sequence filtering module is used to build an operating environment for edge device containers of the power Internet of Things system, collect system call data of multiple containers in the operating environment and perform preprocessing to obtain a system call sequence, and filter the system call sequence based on the system call whitelist;

[0038] A system call sequence de-redundancy module is used to quantify and de-redundant the system call sequence according to the risk level classification and frequency characteristics of the system call function in the power Internet of Things system;

[0039] The deep learning anomaly detection module is used to build a deep learning anomaly detection model and perform model training. The trained model is used to classify and determine the de-redundant system call sequence and issue an alarm for abnormal sequences.

[0040] Accordingly, the present application also discloses a terminal, including a processor and a storage medium;

[0041] The storage medium is used to store instructions;

[0042] The processor is used to operate according to the instructions to execute the steps of the aforementioned deep learning-based power Internet of Things system container vulnerability detection method.

[0043] Correspondingly, the present application also discloses a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the aforementioned deep learning-based power Internet of Things system container vulnerability detection method are implemented.

[0044] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for detecting container vulnerabilities in an electric power Internet of Things system based on deep learning, constructs a system call whitelist according to the actual situation of the electric power Internet of Things system, and filters data through the whitelist, thereby reducing the amount of dynamic analysis data processing and improving detection efficiency; an anomaly detection model is constructed by mining the frequency characteristics, structural characteristics, and semantic characteristics of system call functions in the electric power Internet of Things system, comprehensively considering the system call characteristics in the electric power business scenario, conforming to the actual situation of the electric power business, improving the accuracy of anomaly detection, and reducing the false alarm rate of vulnerability detection by examining the security of the system call. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of the deep learning-based power Internet of Things system container vulnerability detection method in the present invention.

[0046] Figure 2 It is a flowchart of building a system call whitelist in an embodiment of the present invention.

[0047] Figure 3 It is an overall architecture diagram of the deep learning anomaly detection model in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0049] The embodiments described in this application are only some embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.

[0050] In view of the shortcomings of the prior art, the present invention proposes a method and system for detecting container vulnerabilities in a power Internet of Things system based on deep learning, which performs static analysis on container applications and determines a system call whitelist in combination with the characteristics of the power Internet of Things system. The system call sequence is filtered based on the obtained system call whitelist, and a deep learning anomaly detection model is constructed on this basis. Abnormal behavior detection is performed through the deployment of the trained model, which is suitable for vulnerability detection with high detection rate and low false alarm rate in the power Internet of Things system.

[0051] See also Figure 1 As shown, the deep learning-based power Internet of Things system container vulnerability detection method disclosed in the present invention includes the following steps:

[0052] Step 1: Perform static analysis on the power IoT system container to obtain the set of system calls that need to be called during the operation of the container application.

[0053] See also Figure 2 First, obtain the target binary file in the container, disassemble the target binary file into assembly code through the disassembly tool objdump, and analyze the calling relationship in the code. In the assembler, the system call passes the system call number to the register eax or rax, then triggers a soft interrupt, switches to kernel mode and requests related kernel services. Get the system call number stored in eax or rax, and then refer to the Linux system call table to determine the system call function corresponding to the system call number, and save the system call number and the system call function in the form of a key-value pair in a text document, which is the system call set S that needs to be called during the operation of the container application.

[0054] Step 2: Classify the risk level of the system call function according to the function of the system call function in the electric power Internet of Things system, and determine the system call whitelist from the system call set according to the level classification.

[0055] The risk level classification includes classifying system call functions into high risk level, medium risk level and low risk level, and obtaining a system call whitelist by retaining system calls with low risk levels in the system call set S.

[0056] Specifically, firstly, the system call functions are divided into file-related operations, process-related operations, process communication-related operations, network-related operations, memory-related operations and other functional types according to the functions they provide. The general classification principle is:

[0057] High-risk sensitive operations that can directly help attackers achieve the goal of escalating privileges, controlling the system, or undermining the stability and integrity of the system are classified as high-risk.

[0058] In addition to high-risk operations, system calls that may be used to organize malicious behavior or assist in completing malicious behavior are classified as medium-risk.

[0059] Low-risk or no-risk operations such as information viewing are classified as low-risk.

[0060] For file-related operations, system calls that may cause changes in file content or modify sensitive attributes such as file permissions and owners generally have higher security risks. For example, the open system call is a key function for obtaining input parameters (file descriptors) for various file operations, the truncate series of functions can truncate file content and control file length, and the sync series of operations can synchronize the content in memory to the corresponding file on disk. All of them may cause changes in sensitive file content, so they are considered high-risk system call functions.

[0061] The classification results of file system call risk levels are shown in Table 1, where risk level 1 belongs to high risk level, risk level 2 belongs to medium risk level, and risk level 3 belongs to low risk level.

[0062]

[0063]

[0064] Table 1

[0065] The classification results for the remaining categories are similar.

[0066] Step 3: Build an operating environment for the edge device container of the power Internet of Things system, collect and preprocess the system call data of multiple containers in the operating environment, obtain a system call sequence, and filter the system call sequence based on the system call whitelist.

[0067] Furthermore, the container engine and system environment used in the power Internet of Things environment are used to deploy corresponding system call collection tools to build the operating environment of the edge device container of the power Internet of Things system. The container engine is selected as the mainstream engine in the industry, and the operating system environment is Ubuntu 18.04. The collection of system call data of the multiple containers uses the Linux system call tracking tool strace, and a shell script is used on the host machine to run the strace tool to monitor the data generated by the container system call.

[0068] The preprocessing of the collected data further includes:

[0069] First, extract the system call name from the system call data, and then process the system call name into the system call number according to the system call table system_tableS file; after the above processing, the system call data collected during container operation can be converted into a system call sequence, such as "195 195 195 1955 3...4 45 45 4 240 45 265168", which is convenient for subsequent processing.

[0070] The filtering of the system call sequence according to the system call whitelist further comprises:

[0071] If all system call functions in the sequence are in the whitelist, it is judged as a normal sequence, no alarm is triggered, and the program runs normally; if there is a system call function in the sequence that does not belong to the system call list, the sequence is input into the deep learning detection model for further judgment.

[0072] Step 4: Quantitatively score and remove redundancy of the system call sequence according to the risk level classification and frequency characteristics of the system call function in the power Internet of Things system.

[0073] Firstly, based on the N-Gram idea of ​​natural language processing, a sliding window method is used to split the long sequence of system calls into multiple short sequences.

[0074] Then, according to the risk level of the system call function in the power Internet of Things system, a risk score is assigned to it. For example, a high-risk system call is given a risk score of "3", a medium-risk system call is given a risk score of "2", and a low-risk system call is given a risk score of "1". In this example, the TF-IDF algorithm is selected to characterize the frequency characteristics of the system call, and the system call short sequence is quantitatively scored by combining the system call risk score and the TF-IDF algorithm, which is specifically expressed as:

[0075]

[0076] TF-IDF(Seq i )=TF(Seq i )*IDF(Seq i )

[0077] Among them, Seq i For the i-th system call short sequence, countSeq i For short sequence Seq i The number of occurrences in the system call sequence, Score j For short sequence Seq i The risk score of the system call function in the system call sequence, countSeq is the total number of short sequences in the system call sequence, TF(Seq i ) is a short sequence Seqi The frequency of words in the system call sequence; countSys is the total number of system call sequence entries in the database, countSys i Contains short sequence Seq i The number of system call sequence entries, IDF(Seq i ) is the system call short sequence Seq i The inverse word frequency of i Quantitative score TF-IDF(Seq i ).

[0078] Finally, a suitable scoring threshold is pre-selected, and redundant short sequences with scores lower than the scoring threshold are removed, and only short sequences that can represent the characteristics of the system call sequence are input into the deep learning detection model.

[0079] Step 5: Build a deep learning anomaly detection model and perform model training. Use the trained model to classify and determine the de-redundant system call sequence and issue an alarm for abnormal sequences.

[0080] The deep learning anomaly detection model includes a structural feature extraction network and a semantic feature extraction network. The model structure is as follows: Figure 3 shown.

[0081] The structural feature extraction network first converts the system call sequence into a system call trajectory graph, represented as G = (V, E), where V = {V1, V2, ..., V n} represents a node in the system call trajectory graph, the value of the node is one of all system call functions, E represents the connection between different system calls, the connection direction is the execution order of the two system calls, and the node features are initialized using the network centrality measurement value; then the system call trajectory graph is input into the graph neural network to obtain the structural features of the system call sequence.

[0082] In a preferred embodiment, five network centrality metrics, Katz, Betweenness, Closesness, Pagerank, and Harmonic, are used to initialize node features, and finally a d-dimensional vector of N samples, i.e., a feature matrix X, is generated as the input of the network model; the system call trajectory graph adjacency matrix A and the feature matrix X are input into the graph neural network. The graph neural network is constructed based on the graph convolutional network GCN, and consists of two layers of graph convolution layers, one layer of pooling layer, and one layer of fully connected layer. The first two layers are feature learning layers, and the last two layers compress the data to improve the robustness of the features. The two layers of feature learning layers perform graph convolution according to the node features in each graph to obtain the output node vector, and then sum all the output node vectors of each graph, and pass them into the maximum pooling layer and the linear layer to obtain the structural feature H. GCN , the specific process is expressed as:

[0083]

[0084] Where I is the identity matrix, is the degree matrix of the adjacency matrix, σ(·) is the linear activation function, H (l-1) is the input of the lth graph convolutional layer, H (l) is the output of layer l, is the weight parameter matrix obtained from the training of the l-1th layer, d1 and d2 are the feature dimensions of input and output respectively; the feature matrix X is the input H of the first layer of graph convolutional layer (0) , the output H after two layers of convolution (2) After passing into the maximum pooling layer and the linear layer, the structural feature H is obtained GCN , and obtain the final graph structure representation.

[0085] The semantic feature extraction network first embeds the system call sequence in combination with the risk quantification score of the system call in the power Internet of Things system, and then inputs it into the long short-term memory network to obtain the semantic features of the system call sequence.

[0086] First, the word embedding model Word2Vec's continuous bag-of-word model (CBOW) is used to vectorize each short sequence in the system call sequence to obtain the d-dimensional short vector corresponding to each short sequence. After normalization, the short vector is combined with the short sequence Seq obtained in step 4. i Quantitative score TF-IDF(Seq i ) and input it into the BiLSTM network. The BiLSTM network concatenates the output of the forward LSTM and the output of the backward LSTM, and then inputs it into the fully connected layer and weights it through the attention matrix to obtain the contextual semantic feature H BiLSTM , specifically expressed as:

[0087] H BiLSTM =AH

[0088] A=Softmax(W2tanh(W1H T ))

[0089]

[0090] Where S = [s1, s2, ..., s n ] is the d-dimensional short vector s corresponding to the n short sequences after normalization i The concatenated sequence is input into the BiLSTM model. is the output of the forward LSTM at time t, is the output of the backward LSTM; and The concatenated hidden state output at time t Input to the fully connected layer to get H = [h1,h2,...,h n ]; A is the self-attention weight assignment matrix, W1 is the sequence weight matrix, W2 is the weight matrix that integrates multiple features, and the probability of the attention matrix is ​​output through the Softmax function.

[0091] H GCN With H BiLSTM The final joint feature H is obtained by splicing concat , specifically expressed as:

[0092] H concat =Concat(H GCN ,H BiLSTM )

[0093] Finally, the joint features are input into the Softmax activation function through the fully connected layer to obtain the classification result.

[0094] The structural features and semantic features are further processed to obtain classification results, and alarms are issued for abnormal sequences.

[0095] The training of the deep learning detection model further includes:

[0096] Select the Adam optimizer, use the cross entropy loss function Loss as the objective function, and continuously minimize the loss function through a finite number of iterations to achieve the best model effect. The classification results and loss function are specifically expressed as:

[0097]

[0098] Among them, N is the number of training samples, y is the true label of the sample, The trained detection model is deployed in the power Internet of Things to detect abnormal behavior.

[0099] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for detecting container vulnerabilities in an electric power Internet of Things system based on deep learning, constructs a system call whitelist according to the actual situation of the electric power Internet of Things system, and filters data through the whitelist, thereby reducing the amount of dynamic analysis data processing and improving detection efficiency; an anomaly detection model is constructed by mining the frequency characteristics, structural characteristics, and semantic characteristics of system call functions in the electric power Internet of Things system, comprehensively considering the system call characteristics in the electric power business scenario, conforming to the actual situation of the electric power business, improving the accuracy of anomaly detection, and reducing the false alarm rate of vulnerability detection by examining the security of the system call.

[0100] The present invention may be a system, a method and / or a computer program product. The present invention also discloses a deep learning-based power Internet of Things system container vulnerability detection system based on the aforementioned deep learning-based power Internet of Things system container vulnerability detection method, comprising:

[0101] The system call set acquisition module is used to perform static analysis on the power Internet of Things system container and obtain the system call set that needs to be called during the operation of the container application;

[0102] A system call whitelist determination module, used to classify the system call functions according to their functions in the electric power Internet of Things system, and determine a system call whitelist from the system call set according to the risk classification;

[0103] A system call sequence filtering module is used to build an operating environment for edge device containers of the power Internet of Things system, collect system call data of multiple containers in the operating environment and perform preprocessing to obtain a system call sequence, and filter the system call sequence based on the system call whitelist;

[0104] A system call sequence de-redundancy module is used to quantify and de-redundant the system call sequence according to the risk level classification and frequency characteristics of the system call function in the power Internet of Things system;

[0105] The deep learning anomaly detection module is used to build a deep learning anomaly detection model and perform model training. The trained model is used to classify and determine the de-redundant system call sequence and issue an alarm for abnormal sequences.

[0106] Based on the spirit of the present invention, those skilled in the art can easily think that a computer program product can be obtained based on the aforementioned deep learning-based power Internet of Things system container vulnerability detection method. The computer program product may include a computer-readable storage medium, which carries computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure. That is, the present application also includes a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the aforementioned deep learning-based power Internet of Things system container vulnerability detection method.

[0107] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, - but not limited to - electrical storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, punch card or groove protrusion structure with instructions stored thereon and any suitable combination of the above. Computer readable storage medium used here is not interpreted as instantaneous signal itself, such as radio wave or other free propagating electromagnetic wave, electromagnetic wave propagated by waveguide or other transmission medium (for example, light pulse by optical fiber cable) or electrical signal transmitted by wire.

[0108] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0109] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for detecting container vulnerabilities in a power Internet of Things system based on deep learning, characterized in that: The following steps are involved: Step 1: Perform static analysis on the power IoT system container to obtain the system call set that needs to be called during the operation of the container application; Step 2: classify the system call functions in the power Internet of Things system according to their functions, and determine a system call whitelist from the system call set according to the risk classification; Step 3: construct an operating environment for the edge device container of the power Internet of Things system, collect and preprocess the system call data of multiple containers in the operating environment, obtain a system call sequence, and filter the system call sequence based on the system call whitelist; Step 4: Quantitatively score and remove redundancy of the system call sequence according to the risk level classification and frequency characteristics of the system call function in the power Internet of Things system; Step 5: Build a deep learning anomaly detection model and perform model training. Use the trained model to classify and determine the de-redundant system call sequence and issue an alarm for abnormal sequences.

2. The method for detecting container vulnerabilities in a power Internet of Things system based on deep learning according to claim 1 is characterized in that: The static analysis of the electric power Internet of Things system container to obtain a set of system calls that need to be called during the operation of the container application further includes: Get the target binary file in the container, disassemble the target binary file into assembly code using a disassembly tool, and analyze the calling relationship in the code; Get the system call number stored in eax or rax, then determine the system call function corresponding to the system call number, save the system call number and the system call function in a text document as a key-value pair, and obtain the system call set that needs to be called during the running of the container application.

3. The method for detecting container vulnerabilities in a power Internet of Things system based on deep learning according to claim 2 is characterized in that: Determining a system call whitelist from the system call set according to the level classification further comprises: The system call functions are divided into high risk level, medium risk level and low risk level, and the system calls with low risk level in the system call set are retained to obtain a system call whitelist.

4. The method for detecting container vulnerabilities in a power Internet of Things system based on deep learning according to claim 3 is characterized in that: The collecting and preprocessing of system call data of multiple containers to obtain a system call sequence further includes: The system call name in the system call data is extracted, and the system call name is processed into a system call number according to the system call table file; thereby the system call data collected during the operation of the container is converted into a system call sequence.

5. The method for detecting container vulnerabilities in a power Internet of Things system based on deep learning according to claim 4 is characterized in that: The method of quantitatively scoring and removing redundancy of the system call sequence according to the risk level classification and frequency characteristics of the system call function in the electric power Internet of Things system further includes: Use sliding windows to split long system call sequences into multiple short sequences; According to the risk level of the system call function in the power Internet of Things system, a risk score is assigned to it; the TF-IDF algorithm is selected to characterize the frequency characteristics of the system call, and the system call risk score and the TF-IDF algorithm are combined to quantify and score multiple short sequences: TF-IDF(Seq i )=TF(Seq i )*IDF(Seq i ) Among them, Seq i For the i-th system call short sequence, countSeq i For short sequence Seq i The number of occurrences in the system call sequence, Score j For short sequence Seq i The risk score of the system call function in the system call sequence, countSeq is the total number of short sequences in the system call sequence, TF(Seq i ) is a short sequence Seq i The frequency of words in the system call sequence; countSys is the total number of system call sequence entries in the database, countSys i Contains short sequence Seq i The number of system call sequence entries, IDF(Seq i ) is the system call short sequence Seq i The inverse word frequency of i Quantitative score TF-IDF(Seq i ); Redundant short sequences with scores below a predefined score threshold are removed.

6. The method for detecting container vulnerabilities in a power Internet of Things system based on deep learning according to claim 5 is characterized in that: The model training further comprises: Select the Adam optimizer, take the cross entropy loss function Loss as the objective function, and continuously minimize the loss function through a finite number of iterations to achieve the best model effect. The classification results and loss function are specifically expressed as: Among them, N is the number of training samples, y is the true label of the sample, For the prediction results.

7. A power Internet of Things system container vulnerability detection system based on deep learning, characterized in that: include: The system call set acquisition module is used to perform static analysis on the power Internet of Things system container and obtain the system call set that needs to be called during the operation of the container application; A system call whitelist determination module, used to classify the system call functions according to their functions in the electric power Internet of Things system, and determine a system call whitelist from the system call set according to the risk classification; A system call sequence filtering module is used to build an operating environment for edge device containers of the power Internet of Things system, collect system call data of multiple containers in the operating environment and perform preprocessing to obtain a system call sequence, and filter the system call sequence based on the system call whitelist; A system call sequence de-redundancy module is used to quantify and de-redundant the system call sequence according to the risk level classification and frequency characteristics of the system call function in the power Internet of Things system; The deep learning anomaly detection module is used to build a deep learning anomaly detection model and perform model training. The trained model is used to classify and determine the de-redundant system call sequence and issue an alarm for abnormal sequences.

8. The deep learning-based power Internet of Things system container vulnerability detection system according to claim 7 is characterized in that: The system call set acquisition module is further used to: Get the target binary file in the container, disassemble the target binary file into assembly code using a disassembly tool, and analyze the calling relationship in the code; Get the system call number stored in eax or rax, then determine the system call function corresponding to the system call number, save the system call number and the system call function in a text document as a key-value pair, and obtain the system call set that needs to be called during the running of the container application.

9. The deep learning-based power Internet of Things system container vulnerability detection system according to claim 8 is characterized in that: The system calls the whitelist determination module, further used to: The system call functions are divided into high risk level, medium risk level and low risk level, and the system calls with low risk level in the system call set are retained to obtain a system call whitelist.

10. The deep learning-based power Internet of Things system container vulnerability detection system according to claim 9 is characterized in that: The system call sequence filtering module is further used to: The system call name in the system call data is extracted, and the system call name is processed into a system call number according to the system call table file; thereby the system call data collected during the operation of the container is converted into a system call sequence.

11. The power Internet of Things system container vulnerability detection system based on deep learning according to claim 10 is characterized in that: The system call sequence de-redundancy module is further used for: Use sliding windows to split long system call sequences into multiple short sequences; According to the risk level of the system call function in the power Internet of Things system, a risk score is assigned to it; the TF-IDF algorithm is selected to characterize the frequency characteristics of the system call, and the system call risk score and the TF-IDF algorithm are combined to quantify and score multiple short sequences: TF-IDF(Seq i )=TF(Seq i )*IDF(Seq i ) Among them, Seq i For the i-th system call short sequence, countSeq i For short sequence Seq i The number of occurrences in the system call sequence, Score j For short sequence Seq i The risk score of the system call function in the system call sequence, countSeq is the total number of short sequences in the system call sequence, TF(Seq i ) is a short sequence Seq i The frequency of words in the system call sequence; countSys is the total number of system call sequence entries in the database, countSys i Contains short sequence Seq i The number of system call sequence entries, IDF(Seq i ) is the system call short sequence Seq i The inverse word frequency of i Quantitative score TF-IDF(Seq i ); Redundant short sequences with scores below a predefined score threshold are removed.

12. The power Internet of Things system container vulnerability detection system based on deep learning according to claim 11 is characterized in that: The deep learning anomaly detection module is used to: Select the Adam optimizer, take the cross entropy loss function Loss as the objective function, and continuously minimize the loss function through a finite number of iterations to achieve the best model effect. The classification results and loss function are specifically expressed as: Among them, N is the number of training samples, y is the true label of the sample, For the prediction results.

13. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the deep learning-based power Internet of Things system container vulnerability detection method according to any one of claims 1-6.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the deep learning-based power Internet of Things system container vulnerability detection method described in any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Container intrusion detection method and system

    CN119249414A

  • Container intrusion detection method and system

    CN119249414B