Distributed containerized application security management method, system and equipment and storage medium

By deploying real-time monitoring engine and machine learning models in containerized applications and dynamically adjusting security policies, the problem of traditional security management slow response in dynamic environments is solved, real-time security monitoring and threat response of containerized applications is realized, and security is improved and adaptability.

CN118916115APending Publication Date: 2024-11-08SHENZHEN HONGYUAN BODE NEW ENERGY TECH DEV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410936492.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Traditional security management solutions are difficult to adapt to the dynamically changing containerized environment, and cannot adjust security policies in real time to deal with emerging threats, resulting in slow response in the system and ineffective in protecting the security of distributed containerized applications.

Method used

Adopt a distributed containerized application security management method, by deploying a real-time monitoring engine on each container node, collecting security status information in real time, and using machine learning models for in-depth security analysis, dynamically adjusting security policies, including network isolation policies and access Control list adjustments, monitor and handle abnormal behaviors in real time.

Benefits of technology

Real-time security monitoring and dynamic policy adjustment for containerized applications are realized, and quickly respond to security threats is responded to, which significantly improves security and adaptability, reduces potential security vulnerabilities, optimizes resource usage and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916115A_ABST
    Figure CN118916115A_ABST
Patent Text Reader

Abstract

The invention relates to a distributed containerized application security management method, system and equipment and a storage medium, relates to the technical field of computer security, and aims to provide comprehensive and dynamic security protection for distributed containerized application by utilizing technologies such as real-time monitoring, machine learning and automatic strategy adjustment. Through real-time monitoring and dynamic security policy adjustment, the system not only can quickly respond to various security threats, but also can automatically apply necessary protection measures, thereby greatly reducing potential security vulnerabilities. The advanced machine learning technology is used for abnormal behavior prediction, the system can effectively prevent risks, and the safety is further improved. In addition, the system also has the capabilities of automatic compliance management and detailed audit tracking, optimizes resource use, reduces cost, improves operation efficiency, and ensures data protection and privacy. The characteristics enable the system to become an ideal safe solution for modern enterprises in a containerized environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer security technology, and specifically to a distributed containerized application security management method, system, device and storage medium. Background Art

[0002] With the popularity of cloud computing and microservice architecture, more and more enterprises are using containerization technology to deploy and manage their applications. Containerized applications provide high portability, rapid deployment, and easy scalability, greatly improving the development and operation and maintenance processes. However, this distributed and dynamic environment also introduces new security management challenges. Traditional security measures often assume a relatively stable and centralized environment, while the elasticity and distributed characteristics of containerized applications make security boundaries blurred and security threats more complex.

[0003] Current security management solutions often rely on static security policies and manual configurations, which are difficult to adapt to dynamically changing container environments. Once an application is deployed, security settings often remain unchanged until the next manual update. This results in a slow response to emerging threats and an inability to adjust security policies in real time to address changing security risks.

[0004] In order to effectively protect distributed containerized applications, a new security management mechanism is needed that can automatically adapt to environmental changes, monitor security status in real time, and dynamically adjust security policies based on real-time data. This mechanism should be able to work together between different containers and data centers in different geographical locations to ensure the consistency and security of the entire distributed system.

[0005] In view of the above background, the present invention proposes a dynamic security management method and system based on distributed containerized applications, which uses technologies such as real-time monitoring, machine learning, and automated policy adjustment to provide comprehensive and dynamic security protection for distributed containerized applications. The system can automatically adjust security policies based on real-time collected data and behavior analysis, respond to new threats and risks in a timely manner, and significantly improve the security and adaptability of containerized applications. Summary of the invention

[0006] In order to solve the problems of the prior art, the present invention provides a distributed containerized application security management method, system, device and storage medium.

[0007] In order to solve the above technical problems, the present invention is implemented through the following technical solutions: a distributed containerized application security management method, system, device and storage medium:

[0008] Step 1: deploy a real-time monitoring engine on each distributed container node to collect security status information of the container on the node, where the security status information includes at least one of the container's network connection, resource usage, and application behavior log;

[0009] Step 2: Report the collected information to the central security management module, which is configured in the cloud or cluster management server to facilitate centralized management and large-scale data processing;

[0010] Step 3: The central security management module conducts in-depth security analysis of the reported information using preset security rules and machine learning models; the machine learning model is a pre-trained anomaly detection model that can identify abnormal patterns of real-time behavior based on historical normal behavior data;

[0011] Step 4: Dynamically adjust the security policy based on the analysis results, and implement the adjusted security measures on the corresponding nodes through the security policy execution unit integrated with the container orchestration tool. The security policy adjustment includes but is not limited to the adjustment of network isolation policy, access control list (ACL), and application sandbox parameters.

[0012] Step 5: Apply behavior learning and anomaly detection algorithms to monitor application behaviors in the container in real time, identify and handle abnormal behaviors.

[0013] Further, deploy a real-time monitoring engine and select appropriate monitoring tools: You can choose host-level monitoring tools such as Prometheus, Zabbix, or container-level monitoring tools such as cAdvisor and Container Pilot. These tools can collect information such as container network connections, resource usage, and application behavior logs. Node deployment: Deploy the selected monitoring tool on each distributed container node to ensure that the container security status information on each node can be collected in real time. Information reporting and central security management module, cloud or cluster management server deployment: The central security management module can be deployed on the cloud or cluster management server. This can use the security management service of the cloud service provider (such as AWS Security Hub, Azure Security Center) or open source security management platform (such as OpenSCAP, OSSEC). Data reporting mechanism: Establish a reliable data transmission channel to report the information collected by the real-time monitoring engine to the central security management module. Security analysis and machine learning model, machine learning model selection and training: Use anomaly detection algorithms such as Isolation Forest and use historical normal behavior data for model training. Optimize model performance by adjusting parameters (such as the number of trees, subsample size, etc.). Data analysis: Use preset security rules combined with machine learning models to conduct in-depth security analysis of reported security status information. Dynamically adjust security policies. The scope of security policy adjustment includes but is not limited to network isolation policies, access control lists (ACLs), and application sandbox parameter adjustments. Integration of execution units and orchestration tools: Integrate security policy execution units with container orchestration tools (such as Kubernetes and Docker Swarm) to ensure fast and accurate execution of security policies on each node. Real-time monitoring and exception handling, application behavior learning and anomaly detection algorithms: Use supervised learning algorithms (such as decision trees and support vector machines) or unsupervised learning algorithms (such as isolation forests and autoencoders) to perform real-time monitoring and anomaly detection of application behaviors. Abnormal behavior processing: Based on the detected abnormal behavior, the system automatically executes preset response measures, such as isolating affected containers, recording logs, and issuing alarms.

[0014] The anomaly detection model consists of the following parts:

[0015] Data collection and processing: The real-time monitoring engine is deployed on each distributed container node and is responsible for collecting the security status information of the container;

[0016] The Isolation Forest algorithm is used as the core anomaly detection algorithm;

[0017] Use historical normal behavior data to train the Isolation Forest model. During the training process, adjust the parameters (such as the number of trees, subsample size, etc.) to optimize the performance of the model.

[0018] Based on the results of the anomaly detection model, the central security management module will dynamically adjust the security policy.

[0019] Further implementation of the isolation forest algorithm

[0020] Isolation Forest is an efficient unsupervised anomaly detection algorithm suitable for outlier detection in continuous data. Its core idea is to define anomalies as "outliers that are easily isolated", that is, points that are sparsely distributed and far away from dense groups.

[0021] Tool selection

[0022] Programming language choice: Python is a widely used language in the field of data science and machine learning with rich library support.

[0023] Core library: Scikit-learn is a powerful machine learning library in Python, which includes the implementation of the Isolation Forest algorithm.

[0024] Data processing libraries: Pandas for data preprocessing and analysis, and NumPy for numerical computation.

[0025] Visualization tools: Matplotlib and Seaborn are used for visualization of the results.

[0026] Environment requirements: Python 3.x version. Make sure the above libraries have been installed.

[0027] Implementation steps

[0028] Data acquisition and preprocessing:

[0029] Use Pandas to read data and view the data shape and characteristics through its methods.

[0030] To handle missing values, use the fillna() method to fill them with 0 or other appropriate values.

[0031] Generate a feature list of the dataset for subsequent anomaly detection.

[0032] Construct an isolation forest model:

[0033] Import IsolationForest model from sklearn.ensemble.

[0034] Initialize the model and set relevant parameters such as the number of trees (n_estimators) and subsampling size (max_samples).

[0035] Model training and prediction:

[0036] Use the fit() method to fit the training data set.

[0037] Use the predict() method to make predictions, and the returned label will be 1 for normal and -1 for abnormal.

[0038] You can use decision_function() to get the anomaly score for each data point.

[0039] Result evaluation and tuning:

[0040] Evaluate model performance through visualization or other evaluation metrics such as confusion matrix, precision, and recall.

[0041] Adjust model parameters as needed, such as increasing the number of trees or changing the subsampling size, to achieve better detection results.

[0042] Application and deployment:

[0043] Apply the trained model to new datasets to detect outliers in real time.

[0044] The model can be saved and loaded for easy application in different environments.

[0045] Through the above tools and steps, the isolation forest algorithm can be effectively implemented for anomaly detection. In practical applications, it is also necessary to adjust and optimize according to specific scenarios and data characteristics to achieve the best results.

[0046] Distributed containerized application security management system, including:

[0047] Real-time monitoring engine distributed in each container node;

[0048] A central security management module located in the cloud or cluster management server, which contains a machine learning model training submodule for updating and optimizing anomaly detection models based on continuously collected data;

[0049] A security policy execution unit that is in communication with the central security management module and is integrated with the container orchestration tool;

[0050] Implementation module of applied behavioral learning and anomaly detection algorithms;

[0051] A policy decision module for implementing dynamic security policy adjustments;

[0052] A user interface for displaying security status information, security events, and policy adjustment history, and receiving administrator input to manually adjust security policies.

[0053] Furthermore, building a distributed containerized application security management system is a task involving multiple components and complex steps. This system includes a real-time monitoring engine deployed on each container node to collect key security data; a central security management module located on the cloud or cluster management server, which contains a machine learning model training submodule to continuously optimize the anomaly detection model; a security policy execution unit integrated with the container orchestration tool, responsible for implementing security policies; an implementation module for application behavior learning and anomaly detection algorithms to identify potential threats; a policy decision module to dynamically adjust security policies based on analysis results; and a user interface that provides system status display and administrator operation interface.

[0054] To achieve these functions, a series of tools need to be selected. Use Prometheus or Zabbix as a real-time monitoring engine, OpenSCAP or OSSEC as the basis of the central security management module, and security policy enforcement tools integrated with Kubernetes or Docker Swarm to ensure that policies are enforced. At the same time, use Python and its machine learning libraries such as Scikit-learn to implement anomaly detection algorithms, and use Django or Flask and front-end libraries such as React to develop user interfaces.

[0055] The various parts of the system need to use encrypted communication to ensure data security, using security measures such as SSL / TLS certificates and VPN channels. The integration and testing of the entire system is also crucial. CI / CD tools such as Jenkins and test frameworks such as pytest can be used to automate the testing and deployment processes to ensure that all components work together and meet the expected performance and security requirements.

[0056] The real-time monitoring engine, the central security management module, the security policy execution unit and the application behavior learning and anomaly detection algorithm module transmit data through an encrypted channel to ensure the security of information;

[0057] Furthermore, in a distributed containerized application security management system, it is crucial to ensure the security of data transmission between the real-time monitoring engine, the central security management module, the security policy execution unit, and the application behavior learning and anomaly detection algorithm module. This requires the use of encrypted channels, such as TLS or VPN, to protect the data from being intercepted or tampered with during transmission. The central security management module must perform strict authentication and authorization checks on the received data to ensure the integrity and reliability of the data. In addition, all communications between modules should be end-to-end encrypted, and security audits and monitoring should be carried out continuously to identify and respond to any potential security threats. Through these comprehensive measures, the system can effectively protect the confidentiality and integrity of the data, thereby providing a secure and reliable management platform for the containerized environment.

[0058] The system has multi-tenancy and permission management functions to ensure data isolation and access control between different tenants;

[0059] Furthermore, in a distributed containerized application security management system, implementing multi-tenancy and permission management functions is the key to ensuring data isolation and access control. By designing an architecture that supports multi-tenancy and implementing role-based access control, the system can securely serve multiple customer organizations while ensuring that the data of each tenant is isolated from each other. Strengthen the authentication process and adopt fine-grained permission management to ensure that only authorized users can access specific resources. All stored and transmitted data should be encrypted to protect the confidentiality and integrity of the data. In addition, the system should provide an intuitive user interface that allows tenants to easily manage the permissions of their users and provide clear visual prompts of current user permissions. Through these comprehensive measures, the system not only enhances security, but also improves user trust, providing the necessary features for building modern, enterprise-level applications.

[0060] The system includes detailed logging and auditing capabilities to track and audit the security status and operation records of the system.

[0061] Furthermore, in a distributed containerized application security management system, implementing detailed logging and auditing functions is key to ensuring transparency of security status and meeting operational audit requirements. The system should comprehensively record all key operations, such as user login, data access, and system configuration changes, and store them in a structured format for easy analysis. Audit mechanisms include regular inspections and real-time monitoring, as well as log analysis using automated tools to quickly identify abnormal behavior. To protect log data, it must be stored securely and measures must be taken to prevent tampering, such as using blockchain technology. In addition, the system provides a user-friendly interface and visualization tools to help administrators easily manage audit work and automatically generate compliance reports to meet legal and industry standards. Through these comprehensive measures, the system not only strengthens security protection, but also ensures transparency and traceability of operations, providing modern enterprises with a security solution that meets compliance requirements.

[0062] The central security management module is further configured with a machine learning model training submodule, which is used to update and optimize the anomaly detection model based on the continuously collected data; the system can be adapted to a variety of container orchestration tools, including but not limited to Kubernetes, Docker Swarm, and can dynamically adjust security settings according to different container environments.

[0063] Furthermore, the central security management module is the core of the distributed containerized application security management system. It is equipped with a machine learning model training submodule, which is responsible for continuously collecting data and optimizing the anomaly detection model to improve the system's ability to identify new threats. In addition, the system is designed with a wide range of adaptability and supports a variety of container orchestration tools, such as Kubernetes and Docker Swarm. It can automatically adjust security settings according to different container environments to ensure that security policies always match the current environment. This combination of flexibility and intelligence ensures that the system maintains the best security status in a dynamically changing containerized application environment.

[0064] A secure container construction device, the device comprising: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run the one or more program instructions to execute the steps of a secure container construction method as described in any one of the above items.

[0065] Furthermore, the secure container building device is a computing device specially designed to optimize the security of the containerized environment. It integrates a high-performance processor and a large-capacity memory, where the memory stores the operating system and the program instructions required to execute the secure container building method. The processor is responsible for executing these instructions and implementing security measures including image scanning, access control, and real-time monitoring to ensure that the entire process from container creation to operation is protected. In this way, the device can effectively prevent security threats while maintaining the high performance and flexibility of containerized applications.

[0066] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of a method for constructing a secure container as described in any one of the above items.

[0067] Further computer-readable storage media is the cornerstone of the secure container construction method, which stores computer programs that contain comprehensive security measures. When these programs are executed by the processor, they implement key security steps such as image scanning, access control, and real-time monitoring, thereby ensuring that the entire process from container creation to operation is secure. This storage medium not only serves as a physical carrier of data, but also provides a continuously updated and optimized security environment for containerized applications through the program instructions stored thereon, protecting them from potential security threats.

[0068] The beneficial effects of the present invention are:

[0069] 1. Through real-time monitoring and dynamic security policy adjustment, the system of the present invention can not only respond quickly to various security threats, but also automatically apply necessary protection measures, greatly reducing potential security vulnerabilities. By using advanced machine learning technology to predict abnormal behavior, the system can effectively prevent risks and further improve security. In addition, the system also has automated compliance management and detailed audit tracking capabilities to optimize resource utilization, reduce costs, improve operational efficiency, and ensure data protection and privacy. These features make the system an ideal security solution for modern enterprises in containerized environments. It not only strengthens security protection, but also supports enterprises to quickly adapt to market and technological changes and maintain business continuity and competitiveness;

[0070] 2. Through real-time monitoring and dynamic security policy adjustment, the system can quickly respond to newly discovered security threats, automatically apply patches or update policies, and reduce security vulnerabilities in the system; using machine learning to predict abnormal behavior, it can identify risks before problems occur, so as to take preventive measures to avoid potential data leaks or system damage;

[0071] 3. Through continuous monitoring and recording, the system helps companies easily cope with various IT compliance requirements, such as GDPR, HIPAA, etc., and automatically generates compliance reports; detailed logging and auditing functions ensure that all operations can be traced, meet the internal and legal audit requirements of the enterprise, and provide a complete review track when necessary;

[0072] 4. Through intelligent analysis and application behavior learning, the system can allocate and optimize resource usage more effectively and avoid resource waste; automated security policy execution reduces the need for manual intervention, which helps reduce operation and maintenance costs in the long run, while reducing economic losses caused by security incidents. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 It is a schematic diagram of the overall system structure of the present invention.

[0074] Figure 2 It is a schematic diagram of the specific process structure of the present invention.

[0075] Figure 3 It is a schematic diagram of the overall logical framework flow of the present invention. DETAILED DESCRIPTION

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

[0077] Embodiment 1: Figure 1-3 The distributed containerized application security management method, system, device and storage medium shown in the figure ensure the security of distributed containerized applications through a comprehensive security management system, and realize real-time monitoring, security analysis, policy adjustment, application behavior learning and anomaly detection of containers.

[0078] Implementation steps

[0079] Step 1: Deploy the real-time monitoring engine

[0080] A real-time monitoring engine is deployed on each distributed container node.

[0081] These engines are responsible for collecting security status information such as container network connection information, resource usage, and application behavior logs.

[0082] Step 2: Report information to the central security management module

[0083] The collected information is reported to the central security management module through an encrypted channel. This module is configured in the cloud or cluster management server to ensure the security of data transmission.

[0084] Step 3: In-depth security analysis

[0085] Using preset security rules and machine learning models (such as the isolation forest algorithm), the central security management module conducts in-depth security analysis of the reported information.

[0086] Machine learning models identify anomalous patterns in real-time behavior based on historical normal behavior data.

[0087] Step 4: Dynamically adjust security policies

[0088] Based on the analysis results, dynamically adjust security policies, including but not limited to network isolation policies, access control lists (ACLs), and adjustment of application sandbox parameters.

[0089] The security policy execution unit is responsible for implementing the adjusted security measures on the corresponding nodes and integrating with the container orchestration tool to ensure fast and accurate execution.

[0090] Step 5: Apply behavioral learning and anomaly detection

[0091] Application behavior learning and anomaly detection algorithms monitor application behaviors within containers in real time.

[0092] Identify and handle abnormal behaviors, such as unauthorized data access and abnormal resource usage peaks.

[0093] System Components

[0094] Real-time monitoring engine: distributed in each container node, responsible for collecting key security information.

[0095] Central security management module: located in the cloud or cluster management server, performs data analysis and policy decision-making.

[0096] Security policy execution unit: communicates with the central security management module and is responsible for implementing security policies.

[0097] Anomaly detection model training submodule: Continuously update and optimize the anomaly detection model to adapt to new security threats.

[0098] User interface: displays security status information, events, and policy adjustment history, allowing administrators to manually adjust policies.

[0099] Through the above embodiments, the security of distributed containerized applications can be effectively managed and protected. The system can not only monitor and respond to security threats in real time, but also continuously improve its security through machine learning, providing a comprehensive security solution for modern distributed applications.

[0100] Embodiment 2: Figure 1-3 In the distributed containerized application security management method, system, device and storage medium shown, an enterprise-level application with multiple microservices is using Kubernetes as its container orchestration tool and is deployed and run on multiple cloud servers to ensure the security of its application and prevent potential network intrusions and data leaks.

[0101] Implementation steps

[0102] Deploy real-time monitoring engine

[0103] Operation: Deploy the Prometheus monitoring tool on each Kubernetes node.

[0104] Purpose: Collect container network connections, resource usage, and application behavior logs on each node.

[0105] Establishing a central security management module

[0106] Operation: Configure OpenSCAP on the cloud server as the central security management module.

[0107] Purpose: To centrally process and analyze monitoring data from each node and perform large-scale data processing.

[0108] Data reporting and machine learning model analysis

[0109] Action: Establish a secure data transmission channel to send the data collected by Prometheus to OpenSCAP.

[0110] Objective: To analyze data in OpenSCAP using a pre-trained Isolation Forest model to identify anomalous patterns.

[0111] Dynamically adjust security policies

[0112] Action: Automatically adjust Kubernetes network policies and ACL rules based on the analysis results of OpenSCAP.

[0113] Purpose: To prevent or isolate abnormal behavior and protect the system from potential threats.

[0114] Real-time monitoring and exception handling

[0115] Action: Use anomaly detection algorithms to continuously monitor container behavior and immediately initiate pre-set response measures once an anomaly is found.

[0116] Purpose: To ensure that the system can respond to and handle security events in real time, such as recording logs and issuing alarms.

[0117] Operation process

[0118] User login:

[0119] Administrators log into the system through a secure user interface.

[0120] Check the security status:

[0121] View the security status information of the current Kubernetes cluster on the interface, including network activity, resource usage, and known security events.

[0122] Manually adjust the policy:

[0123] Manually update the Kubernetes network policy or Pod security settings based on the information displayed on the interface.

[0124] Auditing and Reporting:

[0125] View the security events and policy adjustment history generated by the system, as well as the results of security actions automatically performed by the system.

[0126] Feedback and Optimization:

[0127] Provide feedback to optimize anomaly detection models and security policies based on system operation status and security incident handling results.

[0128] Effect evaluation

[0129] Improved security: Through automated security policy adjustment and real-time exception handling, the need for manual intervention is reduced and the overall security of the system is improved.

[0130] Faster response: Real-time monitoring and rapid policy adjustment mechanisms enable the system to respond quickly to various security incidents and reduce potential losses.

[0131] Through this specific example, we can see the specific implementation process of the distributed containerized application security management method and its effect on improving the security of the entire system.

[0132] Based on the above, a distributed containerized application security management system implementation plan includes system deployment, data collection and analysis, security policy adjustment, real-time monitoring and user operation process. Through this solution, enterprises can effectively enhance the security of their microservice architecture and ensure a high level of security protection in a dynamically changing network environment.

[0133] The core advantages of this system are:

[0134] Automated monitoring and response: Through the cooperation of the real-time monitoring engine and the central security management module, the system can automatically detect and respond to security threats, reducing the need for manual intervention.

[0135] Intelligent security policy adjustment: Using machine learning models, the system can intelligently adjust security policies such as network isolation rules and access control lists based on real-time data to adapt to the ever-changing security environment.

[0136] User-friendly management interface: The system provides an intuitive management interface that allows administrators to easily view security status information, manually adjust policies, and perform audits and reports, thereby improving management efficiency and transparency.

[0137] Data protection and compliance: The system ensures the security of data transmission and storage through encrypted channels and multi-tenant permission management, while detailed logging and auditing functions support enterprises to meet compliance requirements.

[0138] The implementation of this system not only improves the security protection capabilities of enterprise applications, but also optimizes the security management process, allowing enterprises to focus more on business development without having to worry about potential network security threats. In addition, the flexibility and scalability of the system enables it to adapt to enterprises of all sizes and different container orchestration tools, ensuring long-term applicability and effectiveness.

[0139] In general, this distributed containerized application security management solution provides enterprises with a comprehensive security solution to help them maintain business continuity and data security in the face of increasingly complex network security challenges.

[0140] Embodiment three, as Figure 1-3 As shown in the figure, as enterprises increasingly adopt containerization technology, traditional security measures often cannot cope with the unique security challenges in container environments, such as unauthorized access and tampering of container images. A system is needed to ensure that the construction and operation of containers comply with the enterprise's security policies, while providing real-time monitoring and timely security updates.

[0141] An integrated secure container construction device is developed, using a computer-readable storage medium in which a computer program for implementing a secure container construction method is stored. The program is executed by a processor to ensure the full security of the container from creation to operation.

[0142] Equipment preparation:

[0143] Secure container building equipment: equipped with high-performance processors and sufficient storage capacity, such as SSD, to ensure efficient processing and data storage.

[0144] Computer-readable storage medium: pre-installed with computer programs including secure container construction methods, which are designed to execute a series of security policies.

[0145] Security policy definition:

[0146] Policy content: including container image scanning, access control, user rights management and real-time monitoring.

[0147] Policy implementation: These policies are encoded into computer programs in storage media and executed by processors to ensure the security of container builds and operations.

[0148] Container building process:

[0149] Image check: When a container build request is issued, the processor reads and executes the program instructions on the storage medium, first checking the integrity of the container image to ensure that it has not been tampered with.

[0150] Access control: Implement access control policies to ensure that only authenticated users can access container resources.

[0151] Container deployment and monitoring:

[0152] Deployment: The secure container is deployed on the host.

[0153] Real-time monitoring: The real-time monitoring system is activated at the same time, and the processor analyzes in real time to detect any abnormal behavior or potential threats.

[0154] Security Updates and Responses:

[0155] Security Updates: The system periodically checks for security updates and automatically downloads and applies new security patches or rules through the processor.

[0156] Incident response: When a security incident is detected, the system takes action according to preset response protocols, such as isolating the affected container or notifying the administrator.

[0157] Results and Benefits

[0158] Improved security: Automated security measures and continuous monitoring significantly improve the security of containers.

[0159] Improved efficiency: Automated processes reduce manual intervention and improve the efficiency of container deployment and operation.

[0160] Compliance assurance: The system records all operations and monitoring logs to facilitate auditing and compliance checks.

[0161] In summary, through this embodiment, enterprises can effectively respond to security challenges in container environments, ensure the safe and reliable operation of their containerized applications, and meet the needs of rapid deployment and efficient operation and maintenance.

[0162] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A distributed containerized application security management method, system, device and storage medium, characterized by: Step 1: Deploy a real-time monitoring engine on each distributed container node to collect security status information of the containers on the node; Step 2: Report the collected information to the central security management module, which is configured in the cloud or cluster management server; Step 3: Using preset security rules and machine learning models, the central security management module conducts in-depth security analysis of the reported information; Step 4: Dynamically adjust the security policy based on the analysis results, and implement the adjusted security measures at the corresponding nodes through the security policy execution unit; Step 5: Apply behavior learning and anomaly detection algorithms to monitor application behaviors in the container in real time, identify and handle abnormal behaviors.

2. The distributed containerized application security management method, system, device and storage medium according to claim 1, characterized in that: The security status information collected by the real-time monitoring engine includes at least one of the network connection, resource usage, and application behavior log of the container.

3. The distributed containerized application security management method, system, device and storage medium according to claim 1, characterized in that: The machine learning model used by the central security management module is a pre-trained anomaly detection model that can identify abnormal patterns of real-time behavior based on historical normal behavior data; The anomaly detection model consists of the following parts: Data collection and processing: The real-time monitoring engine is deployed on each distributed container node and is responsible for collecting the security status information of the container; The Isolation Forest algorithm is used as the core anomaly detection algorithm; Use historical normal behavior data to train the Isolation Forest model. During the training process, adjust the parameters (such as the number of trees, subsample size, etc.) to optimize the performance of the model. Based on the results of the anomaly detection model, the central security management module will dynamically adjust the security policy.

4. The distributed containerized application security management method, system, device and storage medium according to claim 1, characterized in that: The security policy adjustment includes but is not limited to the adjustment of network isolation policy, access control list (ACL), and application sandbox parameters.

5. The distributed containerized application security management method, system, device and storage medium according to claim 1 or 4, characterized in that: The security policy execution unit is integrated with the container orchestration tool to ensure fast and accurate execution of security policies on each node.

6. A distributed containerized application security management system, characterized by: Include: A real-time monitoring engine distributed across each container node; A central security management module located in the cloud or cluster management server; A security policy execution unit in communication with the central security management module; Implementation module of applied behavioral learning and anomaly detection algorithms; A policy decision module for implementing dynamic security policy adjustments; A user interface for displaying security status information, security events, and policy adjustment history, and receiving administrator input to manually adjust security policies.

7. The distributed containerized application security management system according to claim 6 is characterized in that: The real-time monitoring engine, the central security management module, the security policy execution unit and the application behavior learning and anomaly detection algorithm module transmit data through an encrypted channel to ensure the security of information; The system has multi-tenancy and permission management functions to ensure data isolation and access control between different tenants; The system includes detailed logging and auditing capabilities to track and audit the security status and operation records of the system.

8. The distributed containerized application security management method, system, device and storage medium according to claim 6, characterized in that: The central security management module is further configured with a machine learning model training submodule, which is used to update and optimize the anomaly detection model based on the continuously collected data; the system can be adapted to a variety of container orchestration tools, including but not limited to Kubernetes, Docker Swarm, and can dynamically adjust security settings according to different container environments.

9. A secure container construction device, characterized in that: The device includes: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a secure container construction method as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a secure container construction method as described in any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Equipment access control method and system based on security sandbox

    CN120050075A

  • Linux container security isolation system

    CN121523806A

  • A Linux container security isolation system

    CN121523806B