Multi-level isolation and dynamic protection combined network protection method and system
Through the combination of multi-level isolation and dynamic protection, traditional network protection is solved, and the problem of difficulty in dealing with new attacks and balancing security and performance is realized, intelligent monitoring and dynamic protection of network traffic is realized, and the flexibility and effectiveness of network protection are improved. sex.
Patent Information
- Application Number
- CN202411223814.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-19
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional network protection methods are difficult to effectively deal with new and variant attack methods, and it is difficult to balance security and performance, resulting in service performance degradation or inability to effectively resist attacks.
Using a combination of multi-level isolation and dynamic protection, the isolation inclination angle is realized to limit permissions and resources by monitoring network traffic, detecting abnormal data packets, obtaining threat intelligence, generating dynamic protection strategies, and dynamically adjusting the isolation inclination according to the security needs of the service. Access, balance security and performance.
It improves the flexibility and effectiveness of network protection, can dynamically respond to the security needs of different services, enhance the protection of high-risk services, and optimizes performance to ensure the stability and security of services.
Smart Images

Figure CN118984247A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network protection, and in particular to a network protection method and system combining multi-level isolation and dynamic protection. Background Art
[0002] With the rapid development of information technology, the security threats in cyberspace are becoming increasingly severe. Traditional network security protection methods, such as firewalls, intrusion detection systems (IDS) and intrusion prevention systems (IPS), have played an important role in protecting networks from malicious attacks and data leaks. These technologies provide basic protection for network security by monitoring network traffic in real time, detecting and blocking potential malicious activities. However, with the continuous evolution and complexity of network attack technologies, the traditional single-layer protection mechanism has gradually revealed its limitations.
[0003] Traditional protection methods often rely on static rule bases and feature matching, which makes it difficult to effectively deal with new and variant attack methods. Attackers constantly change their attack methods and bypass existing protection mechanisms, which greatly reduces the detection rate and protection effect of traditional protection systems.
[0004] In addition, as business requirements for continuity and availability continue to increase, how to ensure service performance and stability while ensuring security has become an urgent issue to be resolved. Traditional protection methods often find it difficult to strike a balance between security and performance. Overly strict protection strategies may lead to a decline in service performance, while overly loose protection strategies may not be able to effectively resist attacks. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a network protection method and system combining multi-level isolation and dynamic protection.
[0006] In a first aspect, the present application proposes a network protection method combining multi-level isolation and dynamic protection, including: monitoring network traffic and detecting abnormal data packets;
[0007] Acquire threat intelligence based on the abnormal data packet;
[0008] generating a dynamic protection strategy based on the threat intelligence;
[0009] Isolate different services in different containers;
[0010] Monitor protection status and automatically adjust protection strategies;
[0011] During the isolation process, different isolation angles are used according to different security requirements of the services, where the isolation angle is the strength of the isolation.
[0012] More specifically, in the above technical solution, different isolation angles are adopted according to different security requirements of the services, which specifically includes: obtaining the security risk level of the service, and determining the initial value of the isolation angle according to the security risk level;
[0013] For high-risk services, the isolation angle value is set to a larger value to increase the permission control, resource restrictions and network access control of the container;
[0014] For low-risk services, set the isolation angle value to a smaller value to reduce permission control, resource restrictions, and network access control on the container.
[0015] More specifically, in the above technical solution, different isolation inclination angles are adopted according to different security requirements of the services, and further include: dynamically adjusting the isolation inclination angle value according to historical data and real-time monitoring data;
[0016] When adjusting the isolation inclination value, the optimal isolation inclination value is obtained by balancing safety and performance;
[0017] According to the change of the isolated inclination value, the permission control, resource limitation and network access control of the container are dynamically adjusted.
[0018] More specifically, in the above technical solution, obtaining the security risk level of the service specifically includes:
[0019] Get a list of all services;
[0020] Extracting multi-dimensional features of the service based on the list,
[0021] Based on the multi-dimensional features, the services and applications are divided into three security risk levels: high, medium and low using the preset K-Means clustering algorithm.
[0022] The multi-dimensional features include static image-level features and dynamic runtime features;
[0023] The static image layer features include image size and number of layers, and the dynamic runtime features include CPU usage, memory usage, and network traffic.
[0024] More specifically, in the above technical solution, the isolation process also includes:
[0025] Acquire a pre-established isolation strategy configuration file, wherein the isolation strategy configuration file stores an isolation inclination angle threshold determined according to the coherence between different services;
[0026] Obtain metadata information of at least two services through the list of services to be isolated, wherein the metadata information includes service functions, dependencies, and data interactions;
[0027] Calculating the coherence between at least two services according to the metadata information;
[0028] If the coherence is higher than the isolation inclination angle threshold, a first isolation rule is generated for at least two services, wherein the first isolation rule adopts an isolation inclination angle smaller than a preset threshold value to allow communication and data exchange between services;
[0029] If the coherence is lower than the isolation inclination angle threshold, a second isolation rule is generated for at least two services, and the second isolation rule adopts an isolation inclination angle greater than a preset threshold to limit direct interaction between services.
[0030] More specifically, in the above technical solution, real-time monitoring of network traffic and detection of abnormal data packets specifically include:
[0031] Obtain network traffic data, parse the traffic data, and extract traffic features, where the traffic features include source IP, destination IP, port number, and protocol type;
[0032] According to the normal network traffic data, obtain the normal distribution range of the traffic data and the ratio of the protocol type, and establish a normal traffic model;
[0033] For each abnormal pattern category, sample data in each category is obtained, feature vectors are extracted, an abnormality detection model is trained using a support vector machine algorithm, and C and gamma parameters of the abnormality detection model are optimized through grid search;
[0034] When monitoring network traffic in real time, predict the characteristics of new data packets to determine whether they belong to known abnormal patterns;
[0035] If the data packet is judged to be abnormal, a security alarm is triggered and relevant information of the data packet is recorded.
[0036] More specifically, in the above technical solution, generating a dynamic protection strategy based on the threat intelligence specifically includes:
[0037] Classify the threat intelligence to obtain potential threat types;
[0038] Based on potential threat types, mining association rules between different threat intelligence;
[0039] The association rules are converted into protection strategy rules to dynamically generate protection strategies.
[0040] In the second aspect, the present application proposes a network protection system combining multi-level isolation and dynamic protection, including:
[0041] The first processing module: monitors network traffic and detects abnormal data packets;
[0042] The second processing module is used to obtain threat intelligence based on the abnormal data packet.
[0043] The third processing module generates a dynamic protection strategy based on the threat intelligence;
[0044] The fourth processing module: isolate different services in different containers;
[0045] The fifth processing module: monitors the protection status and automatically adjusts the protection strategy;
[0046] During the isolation process, different isolation angles are used according to different security requirements of the services, where the isolation angle is the strength of the isolation.
[0047] In a third aspect, the present application further proposes a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the methods described above when executing the computer program.
[0048] In a fourth aspect, the present application further proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the above items is implemented.
[0049] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 It is a flowchart of a network protection method combining multi-level isolation and dynamic protection provided by an embodiment of the present invention;
[0052] Figure 2 It is a structural diagram of a network protection system combining multi-level isolation and dynamic protection provided by an embodiment of the present invention;
[0053] Figure 3 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0055] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0056] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0057] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0058] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0059] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0060] See also Figure 1The present application proposes a network protection method combining multi-level isolation and dynamic protection, including: S101, monitoring network traffic and detecting abnormal data packets; S102, obtaining threat intelligence based on the abnormal data packets; S103, generating dynamic protection strategies based on the threat intelligence; S104, isolating different services in different containers; S105, monitoring protection status and automatically adjusting protection strategies; in the isolation process, different isolation angles are adopted according to the different security requirements of the services, and the isolation angle is the strength of isolation.
[0061] Monitor network traffic in real time and detect abnormal data packets; obtain threat intelligence based on abnormal data packets and identify potential threats; generate dynamic protection strategies based on threat intelligence; achieve multi-level isolation through containerization technology, and use Docker to isolate different services in independent containers to prevent the spread of attacks; monitor the status of the protection system in real time and automatically adjust the protection strategy.
[0062] In the process of containerized isolation, different isolation angles are used according to the security requirements of different services. The isolation angle refers to the strength of isolation, which can be achieved by adjusting parameters such as container permissions, resource restrictions, and network access control. For high-risk services, a stricter isolation angle is used; for low-risk services, a relatively loose isolation angle is used. Flexible isolation angle settings can achieve a balance between security and performance.
[0063] This method uses containerization technologies such as Docker to deploy different services in independent containers to achieve logical isolation. This isolation mechanism fundamentally limits potential cross-service attacks. Even if a service is successfully penetrated, the attacker cannot directly access or control other services. In addition, the use of container orchestration tools (such as Kubernetes) can flexibly configure resource quotas and network policies to achieve multi-layer isolation at the resource level and network level.
[0064] Obtain network traffic data and extract key features of network traffic data, including source IP address, destination IP address, port number and protocol type; input key features into the pre-built LSTM-based anomaly detection model to determine whether the network traffic data is a suspicious data packet; if the network traffic data is a suspicious data packet, trigger the threat intelligence collection mechanism, call the preset threat intelligence platform API interface, and obtain threat intelligence information related to the suspicious data packet; based on the threat intelligence information, use the random forest algorithm to evaluate and classify the potential threats of the suspicious data packet, obtain the threat level of the suspicious data packet, and generate corresponding dynamic protection strategies based on the threat level; use the container orchestration tool to containerize and isolate different services, determine the risk level of each service based on the threat level of the suspicious data packet, and map the risk level to the corresponding isolation angle parameter;
[0065] Specifically, a convolutional neural network is used to analyze network traffic in real time, and suspicious data packets are identified through a trained anomaly detection model. The model takes the traffic message content, message length, message arrival time interval and other features as input, and outputs the anomaly probability of the data packet. If the anomaly probability exceeds the threshold of 8, the threat intelligence collection mechanism is triggered, and threat intelligence such as domain names, IPs, and file hashes related to suspicious traffic are collected through web crawlers, honeypots and other technologies. Machine learning algorithms such as support vector machines are used to classify the collected threat intelligence, and the threats are divided into different types such as DDoS attacks, vulnerability exploits, and malware. The severity of each type of threat is inferred based on the Bayesian network, and corresponding protection strategies are automatically generated, such as banning malicious IPs and limiting suspicious traffic rates.
[0066] In some embodiments, different isolation angles are adopted according to the different security requirements of the services, specifically including: obtaining the security risk level of the service, and determining the initial value of the isolation angle according to the security risk level; for high-risk services, the isolation angle value is set to a larger value, and strict container permission control, resource restrictions and network access control policies are adopted; for low-risk services, the isolation angle value is set to a smaller value, and relatively loose container permission control, resource restrictions and network access control policies are adopted.
[0067] Through machine learning algorithms, such as decision trees or support vector machines, the isolation angle value is dynamically adjusted according to historical data and real-time monitoring data to adapt to changes in security requirements of services and applications; when adjusting the isolation angle value, through reinforcement learning algorithms, such as Ql earning or policy gradient, the balance between security and performance is weighed to find the optimal isolation angle setting; according to changes in the isolation angle value, the permission control, resource restriction and network access control policy of the container are dynamically adjusted to ensure that the isolation strength matches the security requirements; the running status of services and applications is continuously monitored, and security events and performance indicator data are collected to optimize the isolation angle setting and related control policies to achieve a dynamic balance between security and performance.
[0068] When determining the initial value of the isolation angle, the risk level can be divided into three levels: high, medium, and low according to the security risk level of the service. For high-risk services, such as payment systems, the isolation angle is set to 80°, and strict container permission control is adopted, such as prohibiting containers from running in privileged mode and limiting container access to host resources; in terms of resource restrictions, the CPU and memory limit values can be set to 2 times and 5 times the average usage of the service respectively; in terms of network access control, only containers are allowed to access designated security domains, and communication with other high-risk services is prohibited. For medium- and low-risk services, such as internal office systems, the isolation angle is set to 30°, and relatively loose permission control is adopted to allow containers to access specific host resources; in terms of resource restrictions, the CPU and memory limit values can be set to 2 times the average usage of the service; in terms of network access control, containers are allowed to communicate with other low-risk services. When dynamically adjusting the isolation angle value, a decision tree algorithm can be used to determine whether the security risk level of the service has changed based on historical security event data and real-time monitoring indicators, such as the number of abnormal processes and changes in network traffic. When it is detected that the security risk level of the service increases, the isolation angle value is adjusted and increased by 10°-20°; when the security risk level decreases, the isolation angle value is reduced by 5°-10°. At the same time, the Ql earning reinforcement learning algorithm is used to set the reward function of security and performance, such as the ratio of isolation strength to service response time, to continuously try and optimize the isolation angle value to find the best balance between security and performance. According to the change of the isolation angle value, the control strategy of the container is dynamically adjusted. When the isolation angle value increases, the strictness of the permission control and resource restriction of the container is correspondingly increased, such as reducing the limit value of CPU and memory by 10%-20%; when the isolation angle value decreases, the permission control and resource restriction of the container are relaxed, such as increasing the limit value of CPU and memory by 20%-30%.
[0069] It is understandable that this application dynamically adjusts the network access control policy of the container based on the correspondence between the isolation angle value and the security domain. For example, when the isolation angle value is greater than 60°, the container is only allowed to access the high security domain; when the isolation angle value is less than 30°, the container is allowed to access the medium and low security domains. By continuously monitoring the operating status of the service, security events and performance indicator data are collected to optimize the isolation angle setting and related control policies.
[0070] Optionally, use anomaly detection algorithms, such as Isolation Forest or LSTM, to analyze monitoring data and identify potential security threats and performance bottlenecks. Adjust the isolation angle value and control strategy based on the analysis results. For example, when abnormal network traffic is detected, increase the isolation angle value by 20° and limit the network bandwidth of the container; when the CPU utilization is found to be continuously too high, reduce the isolation angle value by 10° and increase the CPU limit value of the container. Through continuous monitoring, analysis, and optimization, a dynamic balance between service security and performance is achieved.
[0071] In some embodiments, during the process of containerized isolation, different isolation angle ratios are used according to the security requirements of different services and applications. For high-risk services, such as core databases, authentication servers, etc., a higher isolation angle ratio is used to limit the permissions and resource access of the container; for medium-risk services, such as Web application servers, a moderate isolation angle ratio is used; for low-risk services, such as front-end static page servers, a lower isolation angle ratio is used. Through a reasonable isolation angle ratio, the overall performance of the system is improved while ensuring security;
[0072] Obtain a list of all services and applications in the containerized system, and extract multi-dimensional features of the services and applications, wherein the multi-dimensional features include static image layer features and dynamic runtime features; wherein the static image layer features include image size and number of layers, and the dynamic runtime features include CPU usage, memory usage, and network traffic;
[0073] Based on the extracted feature vectors, the services and applications are divided into three security risk levels: high, medium, and low using a preset K-Means clustering algorithm;
[0074] For different security risk levels, an isolation policy suitable for the current service or application risk level is matched from a preset container isolation policy template library; wherein the container isolation policy template includes configuration parameters in multiple dimensions such as computing resource limitation, storage resource isolation, network communication control, and permission management.
[0075] Specifically, first, through the API interface of the container orchestration platform Kubernetes, such as the kubectl getpods command, a list of all services and applications running in the system is obtained. Then, according to the business importance, data sensitivity and other factors of each service or application, feature vectors are extracted and classified using the K-Means clustering algorithm. For example, business importance and data sensitivity are quantified into 0-5 points, corresponding to the two dimensions in the vector, and the cluster to which each service belongs is determined by calculating the Euclidean distance, and finally three security risk levels of high, medium and low are formed.
[0076] Then, we preset isolation policy templates for each level. For example, the CPU and memory resource limits for high-risk levels are set to 1 core and 2 GB respectively. Storage is isolated by block devices. Only whitelisted IPs are allowed for external network communication. The principle of least privilege is used for image pulling and container startup. Through the YAML configuration file of Kubernetes, the applicable isolation policy template is matched for each Pod, and the configuration is sent to the container runtime through the kubectl apply ly command. In the production environment, tools such as Prometheus and Grafana are used to continuously monitor the CPU, memory, disk I / O and other indicators of the container. Data with a granularity of 1 minute is taken, and dynamic thresholds or machine learning algorithms such as LSTM are used to detect whether a single container indicator exceeds the baseline set by the isolation policy by 3 standard deviations. Once an abnormality is found, an alarm is immediately sent to the operation and maintenance personnel through the AlertManager, and the KubernetesAPI is called to dynamically adjust the resource limit of the container, such as reducing the CPU to 5 cores and the memory to 1 GB, to prevent abnormal containers from affecting other services. For trusted images, we release permissions through Domain types such as sv i rt_apache_t of SEL inux, or set comp lain mode through AppArmor to improve container performance without affecting security. Every quarter, we reorganize the service list according to business changes, refer to the latest CVE vulnerability library, evaluate the effectiveness of existing isolation policies, update policy templates in a timely manner, optimize resource utilization, and finally form a set of adaptive container isolation best practices.
[0077] In some embodiments, when implementing containerized isolation, it is necessary to consider the coherence between different services. Coherence refers to the dependencies and interaction methods between services. For highly coherent services, such as different components in a microservice architecture, a smaller isolation angle is used to allow communication and data exchange between them; for low-coherence services, such as application systems of different departments, a larger isolation angle is used to limit direct interaction between them. By reasonably setting the coherence of containerized isolation, normal collaboration between services can be maintained while ensuring security.
[0078] Obtain a pre-established isolation policy configuration file, in which an isolation inclination angle threshold value determined according to the coherence between services is stored; obtain metadata information of at least two services from a service registration center, wherein the metadata information includes service functions, dependencies, and data interactions; based on the metadata information, use a cosine similarity algorithm to calculate the coherence between the at least two services; if the coherence is higher than the isolation inclination angle threshold value, generate targeted isolation rules for the at least two services, wherein the targeted isolation rules use an isolation inclination angle less than a preset threshold value to allow necessary communication and data exchange between services; if the coherence is lower than the isolation inclination angle threshold value, generate strict isolation rules for the at least two services, wherein the strict isolation rules use an isolation inclination angle greater than a preset threshold value to limit direct interaction between services;
[0079] Optionally, continuously monitor the interaction behavior between the at least two services to obtain service call logs and indicator data; dynamically group the at least two services using the K-Means clustering algorithm based on the service call logs and indicator data; optimize the isolation rules while ensuring security based on the results of the dynamic grouping to improve service collaboration efficiency; obtain weekly isolation rule audit results, the audit results including isolation effects and business impacts between services; obtain business change information and security incident information; and adjust the isolation rules in a timely manner based on the audit results, business change information, and security incident information.
[0080] Specifically, in order to determine the appropriate isolation inclination threshold, a clustering algorithm can be used to group services, and the coherence score is obtained by calculating the similarity between services. The score result is normalized between 0 and 1, and the median 5 is taken as the initial threshold and stored in the isolation policy configuration file. The system obtains the list of services to be isolated every hour, extracts service metadata information, including service name, version number, dependency, etc., and constructs a service coherence matrix. If the coherence between services is higher than 8, an isolation inclination of 30 degrees is used to generate isolation rules that allow HTTP and RPC communication; if the coherence is lower than 2, an isolation inclination of 60 degrees is used to generate strict isolation rules that only allow DNS resolution. The isolation rules are converted into Kubernetes network policies and Istio service grid rules and applied to the container orchestration platform. Call logs and indicator data between services are collected, and the isolation inclination threshold is adjusted every day using a reinforcement learning algorithm to maximize service availability while ensuring security. Audit the isolation rules every week, calculate the rule blocking rate and false alarm rate, and trigger an alarm for manual review when the blocking rate is higher than 5% or the false alarm rate is higher than 1%. Adjust the isolation strategy based on business changes and security incidents, update the isolation inclination threshold, generate new isolation rules and automatically issue them to ensure dynamic matching of the isolation mechanism with business needs.
[0081] It should be noted that in a containerized isolation environment, it is necessary to monitor the operating status and security events of each container in real time, and dynamically adjust the isolation angle based on the monitoring results. When abnormal behavior or potential threats are detected, the isolation angle of the corresponding container is automatically increased to restrict its permissions and resource access; when the threat is lifted or the abnormal behavior disappears, the isolation angle is automatically restored to a normal level. Through real-time response and dynamic adjustment, security threats can be quickly responded to and the impact range of attacks can be reduced.
[0082] Monitor network traffic in real time and detect abnormal data packets, including:
[0083] Obtain network traffic data, use packet capture tools to parse the data packets, and obtain key features such as source IP, destination IP, port number, and protocol type; obtain the characteristic pattern of normal traffic through statistical analysis based on normal network traffic data, including the distribution range of each feature and the proportion of protocol types, and establish a normal traffic model; for each abnormal pattern category, obtain sample data in the category, extract feature vectors, and use support vector machine algorithm to train the anomaly detection model. The support vector machine model uses RBF kernel function, and optimizes the C and gamma parameters of the model through grid search; when monitoring network traffic in real time, use the trained support vector machine anomaly detection model to predict new data packet features to determine whether it belongs to a known abnormal pattern; if the data packet is determined to be abnormal, a security alarm is triggered, and relevant information such as abnormal type, source IP, and destination IP is recorded.
[0084] Specifically, in the network traffic monitoring system, by deploying traffic mirroring and data collection engines, data packets transmitted in the network are obtained in real time. The collected data packets are first passed through the parsing module to extract key feature fields such as source IP address, destination IP address, source port number, destination port number, and protocol type. At the same time, based on historical normal traffic data, the system uses machine learning algorithms such as K-Means clustering or hidden Markov model to establish a baseline model that reflects normal network behavior patterns. When a new data packet arrives, the system compares its feature vector with the baseline model and calculates the similarity score. If the score is lower than a preset threshold such as 8, the data packet is judged to be abnormal and added to the abnormal data set. For the accumulated abnormal data packets, the system uses the density-based DBSCAN clustering algorithm, using the Euclidean distance as the similarity measure, and automatically divides different abnormal pattern categories. For each type of abnormal pattern, the support vector machine SVM or random forest algorithm with Gaussian kernel function is selected, and the binary classification model is trained using abnormal samples and normal samples to obtain an abnormal detector. In the real-time detection stage, features are extracted from newly arrived data packets and input into the anomaly detector of the corresponding category for prediction. If classified as an anomaly, an alarm log is generated to record the source and destination address, port, protocol, anomaly type, timestamp and other information of the data packet for source tracing analysis.
[0085] Optionally, based on the detection results, the system automatically adjusts security policies, updates the malicious IP list, dynamically blocks suspicious port access, and improves the overall protection effect. Through iterative optimization of machine learning algorithms and dynamic adjustment of security policies, the system can continuously enhance its ability to detect unknown threats and provide intelligent protection for network security.
[0086] Obtain threat intelligence based on abnormal data packets and identify potential threats; generate dynamic protection strategies based on threat intelligence.
[0087] For the threat intelligence library, the K-means clustering algorithm is used to classify the threat intelligence to obtain potential threat types; according to the potential threat types, the April association rule mining algorithm is used to mine the association rules between different threat intelligence; the association rules are converted into protection strategy rules, and targeted protection strategies are dynamically generated; the protection strategies are deployed to network security devices to perform real-time detection of network traffic; if network traffic that meets the protection strategy rules is detected, corresponding protection measures are executed.
[0088] Specifically, in the process of collecting network data packets, network packet capture tools such as Wi reshark can be used to monitor and capture network traffic in real time. By parsing the captured data packets, key features such as source IP address, destination IP address, port number, protocol type, etc. are extracted to build a data packet feature library. According to the pre-set abnormal data packet rules, such as abnormal data packet length, abnormal payload content, etc., the collected data packets are identified and judged. If the data packet is judged to be abnormal, the relevant threat intelligence of the data packet, such as attack type, attack source, etc., is extracted and updated to the threat intelligence library. Clustering algorithms such as K-means are used to classify the threat intelligence in the threat intelligence library to identify potential threat types such as DDoS attacks and Web attacks. Combined with known threat cases and protection experience in the expert knowledge base, association rule mining algorithms such as April are used to discover association rules between different threat intelligence, such as a certain type of DDoS attack often occurs at the same time as a certain Web attack. The mined association rules are converted into protection policy rules. For example, when a DDoS attack is identified, the corresponding Web application firewall rules are automatically enabled. Finally, the generated protection policy rules are automatically sent to the network security equipment to detect and protect network traffic in real time and block potential threats in time. Through the continuous iteration and optimization of the above process, intelligent identification and adaptive protection of network security threats can be achieved, effectively improving the level of network security protection.
[0089] See also Figure 2 , the present application also proposes a network protection system combining multi-level isolation and dynamic protection, including:
[0090] The first processing module: monitors network traffic and detects abnormal data packets;
[0091] The second processing module is used to obtain threat intelligence based on the abnormal data packet.
[0092] The third processing module generates a dynamic protection strategy based on the threat intelligence;
[0093] The fourth processing module: isolate different services in different containers;
[0094] The fifth processing module: monitors the protection status and automatically adjusts the protection strategy;
[0095] During the isolation process, different isolation angles are used according to different security requirements of the services, where the isolation angle is the strength of the isolation.
[0096] It is understandable that if Figure 1 The contents of the network protection method embodiment combining multi-level isolation and dynamic protection shown in the figure are applicable to the network protection system embodiment combining multi-level isolation and dynamic protection. The functions specifically implemented by the network protection system embodiment combining multi-level isolation and dynamic protection are similar to those in the embodiment of FIG. Figure 1 The network protection method embodiment combining multi-level isolation and dynamic protection shown in FIG. 1 is the same as that shown in FIG. 1 , and the beneficial effects achieved are the same as those of FIG. Figure 1 The beneficial effects achieved by the network protection method embodiment combining multi-level isolation and dynamic protection shown are also the same.
[0097] It should be noted that the information interaction, execution process and other contents between the above-mentioned systems are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0098] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0099] See also Figure 3 The embodiment of the present invention further provides a computer device 3, comprising: a memory 302 and a processor 301 and a computer program 303 stored in the memory 302. When the computer program 303 is executed on the processor 301, a network protection method combining multi-level isolation and dynamic protection as described in any one of the above methods is implemented.
[0100] The computer device 3 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0101] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0102] In some embodiments, the memory 302 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 302 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart memory card (Smart Med iaCard, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 3. Further, the memory 302 may also include both an internal storage unit of the computer device 3 and an external storage device. The memory 302 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 302 may also be used to temporarily store data that has been output or is to be output.
[0103] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a network protection method combining multi-level isolation and dynamic protection as described in any of the above methods is implemented.
[0104] In this embodiment, if the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0105] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A network protection method combining multi-level isolation and dynamic protection, characterized in that: include: Monitor network traffic and detect abnormal data packets; Acquire threat intelligence based on the abnormal data packet; generating a dynamic protection strategy based on the threat intelligence; Isolate different services in different containers; Monitor protection status and automatically adjust protection strategies; During the isolation process, different isolation angles are used according to different security requirements of the services, where the isolation angle is the strength of the isolation.
2. According to claim 1, the network protection method combining multi-level isolation and dynamic protection is characterized in that: According to different security requirements of the service, different isolation angles are adopted, specifically including: obtaining the security risk level of the service, and determining the initial value of the isolation angle according to the security risk level; For high-risk services, the isolation angle value is set to a larger value to increase the permission control, resource restrictions and network access control of the container; For low-risk services, set the isolation angle value to a smaller value to reduce permission control, resource restrictions, and network access control on the container.
3. According to claim 2, the network protection method combining multi-level isolation and dynamic protection is characterized in that: According to different security requirements of the services, different isolation angles are adopted, and the isolation angle value is dynamically adjusted according to historical data and real-time monitoring data; When adjusting the isolation inclination value, the optimal isolation inclination value is obtained by balancing safety and performance; According to the change of the isolated inclination value, the permission control, resource limitation and network access control of the container are dynamically adjusted.
4. The network protection method combining multi-level isolation and dynamic protection according to claim 2 is characterized in that: Get the security risk level of the service, including: Get a list of all services; Extracting multi-dimensional features of the service based on the list, Based on the multi-dimensional features, the services and applications are divided into three security risk levels: high, medium and low using the preset K-Means clustering algorithm. The multi-dimensional features include static image-level features and dynamic runtime features; The static image layer features include image size and number of layers, and the dynamic runtime features include CPU usage, memory usage, and network traffic.
5. According to claim 1, the network protection method combining multi-level isolation and dynamic protection is characterized in that: The quarantine process also includes: Acquire a pre-established isolation strategy configuration file, wherein the isolation strategy configuration file stores an isolation inclination angle threshold determined according to the coherence between different services; Obtain metadata information of at least two services through the list of services to be isolated, wherein the metadata information includes service functions, dependencies, and data interactions; Calculating the coherence between at least two services according to the metadata information; If the coherence is higher than the isolation inclination angle threshold, a first isolation rule is generated for at least two services, wherein the first isolation rule adopts an isolation inclination angle smaller than a preset threshold value to allow communication and data exchange between services; If the coherence is lower than the isolation inclination angle threshold, a second isolation rule is generated for at least two services, and the second isolation rule adopts an isolation inclination angle greater than a preset threshold to limit direct interaction between services.
6. The network protection method combining multi-level isolation and dynamic protection according to claim 1 is characterized in that: Monitor network traffic in real time and detect abnormal data packets, including: Obtain network traffic data, parse the traffic data, and extract traffic features, where the traffic features include source IP, destination IP, port number, and protocol type; According to the normal network traffic data, obtain the normal distribution range of the traffic data and the ratio of the protocol type, and establish a normal traffic model; For each abnormal pattern category, sample data in each category is obtained, feature vectors are extracted, an abnormality detection model is trained using a support vector machine algorithm, and C and gamma parameters of the abnormality detection model are optimized through grid search; When monitoring network traffic in real time, predict the characteristics of new data packets to determine whether they belong to known abnormal patterns; If the data packet is judged to be abnormal, a security alarm is triggered and relevant information of the data packet is recorded.
7. The network protection method combining multi-level isolation and dynamic protection according to claim 1 is characterized in that: Generate a dynamic protection strategy based on the threat intelligence, specifically including: Classify the threat intelligence to obtain potential threat types; Based on potential threat types, mining association rules between different threat intelligence; The association rules are converted into protection strategy rules to dynamically generate protection strategies.
8. A network protection system combining multi-level isolation and dynamic protection, characterized in that: include: The first processing module: monitors network traffic and detects abnormal data packets; The second processing module is used to obtain threat intelligence based on the abnormal data packet. The third processing module generates a dynamic protection strategy based on the threat intelligence; The fourth processing module: isolate different services in different containers; The fifth processing module: monitors the protection status and automatically adjusts the protection strategy; During the isolation process, different isolation angles are used according to different security requirements of the services, where the isolation angle is the strength of the isolation.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Container network micro-isolation protection method, device and equipment and storage medium
CN116155604A
Multi-service-system-oriented security isolation method and device for fusion type terminal
CN117240564A
Communication information security risk early warning management and control method and system based on big data
CN117955712A
Cited By
Protection method, device and equipment of car networking service platform and storage medium
CN119835068A
Method, device and equipment for protecting internet of vehicles service platform and storage medium
CN119835068B
Network security situation awareness method based on multi-layer defense architecture
CN120692094A
Container network hierarchical access control method, device and equipment based on iptables, medium and program product
CN121367611A
