A method, system and device for perceptual security protection based on network port protection device

Through the perceived security protection method based on the network port protection device, using the risk matrix method, 0-1 integer planning and support vector machine and other technologies, a multi-level blocking model is built, which solves the problem of inconvenience in the management of idle network ports in the network environment and improves the problem of "inconvenience in the management of idle network ports" in the network environment. Network security protection efficiency and security.

CN118611997BActive Publication Date: 2024-11-08STATE GRID ZHEJIANG ELECTRIC POWER CO LTD HANGZHOU POWER SUPPLY CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411087734.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-08
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

The prior art has cumbersome, inflexible and difficult to track when managing and protecting idle network ports in large-scale network environments, resulting in the risk of inefficient network security management and security vulnerabilities.

Method used

Adopt the perceived security protection method based on the network port protection device, by obtaining the level parameters of network transmission events, predicting attack risks, adjusting port communication strategies, building a multi-level network port blocking model, detecting and optimizing blocking strategies in real time, including the use risks Matrix method, 0-1 integer planning, support vector machine algorithm and Q-Learning reinforcement learning algorithm.

Benefits of technology

It realizes automated management of the network port, improves network security protection capabilities, reduces the risk of unauthorized equipment access and data leakage, reduces manual blocking workload, and improves management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611997B_ABST
    Figure CN118611997B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system and device for perceptual security protection based on a network port protection device, wherein the method includes obtaining the level parameters of the network transmission event transmitted by the current network port, determining the corresponding blocking network port granularity scheme according to the network attack risk level, and adjusting the port communication strategy in the network topology by using a 0-1 integer programming method; analyzing the blocking network port granularity scheme and the port communication strategy, controlling the network port protection device to receive the analysis result, and blocking the network port to be blocked; constructing a multi-level network port blocking model according to the network port protection device data and the network port data to be blocked, inputting the network port transmission event data detected in real time into the multi-level network port blocking model, and determining the corresponding blocking strategy based on the output result of the multi-level network port blocking model. The method proposed by the present invention can effectively improve the efficiency and response speed of network security protection, while ensuring the smooth execution of key tasks and the stable operation of the network system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a perception security protection method, system and equipment based on a network port protection device. Background Art

[0002] In today's highly information-based society, network security has become an important issue that cannot be ignored in all walks of life. Whether it is an enterprise, a government agency or an individual user, they are all facing various threats from cyberspace, such as hacker attacks, virus transmission, data leakage, etc. In order to effectively respond to these threats and protect the security of key information assets, network security protection methods are constantly innovating and developing. Network ports (network ports) are one of the potential security risks as interfaces for network devices to communicate with the outside world. Many network attacks are carried out by exploiting unblocked or improperly managed network ports.

[0003] At present, the protection of idle network ports mainly adopts manual blocking. However, this method has many shortcomings:

[0004] 1. Inconvenient to manage: In a large-scale network environment, manually blocking each idle network port is a tedious and time-consuming task that is difficult to manage effectively.

[0005] 2. Inflexible: As network topology and requirements change, the usage of network ports will also change. Manual blocking cannot quickly adapt to these changes, which may lead to unnecessary waste of resources or security vulnerabilities.

[0006] 3. Difficult to track and audit: Manual blocking is difficult to track and audit, and it is impossible to accurately record the blocking and opening of network ports, which brings challenges to security management and compliance. Summary of the invention

[0007] The present invention aims to provide a perception security protection method based on a network port protection device to solve the technical problem of how to automatically manage the network port protection device, thereby achieving the technical effect of improving network security protection capabilities.

[0008] In order to solve the above technical problems, an embodiment of the present invention provides a perception security protection method based on a network port protection device, which is applied to a network topology connected to a network port protection device, and includes the following steps:

[0009] Obtaining level parameters of the network transmission event currently transmitted by the network port, wherein the level parameters include event confidentiality level, event time level and event personnel level;

[0010] Predicting the network attack risk level faced by the network transmission event based on the confidentiality level and risk matrix method, and determining the corresponding network port blocking granularity scheme according to the network attack risk level;

[0011] Based on the event time level and the event personnel level, a 0-1 integer programming method is used to adjust the port communication strategy in the network topology;

[0012] Analyze the network port blocking granularity scheme and the port communication strategy;

[0013] Control the network port protection device to receive the analysis result, block the network port to be blocked, and obtain the location distribution and device parameters of the network port protection device in the network topology and the traffic characteristics and behavior characteristics of the network port to be blocked in real time;

[0014] Constructing a multi-level network port blocking model according to the location distribution, the device parameters, the traffic characteristics and the behavior characteristics;

[0015] In the actual security protection process, the network port transmission event data detected in real time is input into the multi-level network port blocking model, and the corresponding blocking strategy is determined based on the output result of the multi-level network port blocking model.

[0016] As one of the preferred solutions, after determining the corresponding network port blocking granularity solution according to the network attack risk level, it also includes:

[0017] Acquire historical attack information, and extract a decision attribute set that affects the selection of blocking granularity from the historical attack information;

[0018] Using the hierarchical analysis method to compare the importance of each decision attribute in the decision attribute set, and obtain the weight of each decision attribute in the decision attribute set;

[0019] Quantifying each decision attribute in the decision attribute set, constructing a fuzzy evaluation matrix according to the quantized values ​​and corresponding weights, and obtaining the comprehensive evaluation membership of each area of ​​the fuzzy evaluation matrix through fuzzy matrix synthesis operation;

[0020] The network port blocking granularity scheme is optimized according to the comprehensive evaluation membership.

[0021] As one of the preferred solutions, the port communication strategy in the network topology of the network transmission event is adjusted by using a 0-1 integer programming method based on the event time level and the event personnel level, including:

[0022] Extracting the flow index of each communication port in the network topology, and constructing a port cascade matrix by performing correlation analysis and statistical modeling on the flow index, wherein the port cascade matrix reflects the dependency strength between each port;

[0023] Based on the port dependency constraints of the port cascade matrix, the event time level constraints and the event personnel level constraints, a 0-1 integer programming model with ports as basic units is established;

[0024] Solve the 0-1 integer programming model and configure the port communication strategy according to the obtained optimal solution.

[0025] As one preferred solution, the network port protection device includes an electronic safety lock and an electronic key.

[0026] As one of the preferred solutions, the multi-level network port blocking model is constructed according to the location distribution, the device parameters, the real-time traffic characteristics and the real-time behavior characteristics, including:

[0027] The multi-level network port blocking model is constructed by integrating location distribution, equipment parameters, traffic characteristics and behavioral characteristics using the support vector machine algorithm. The multi-level network port blocking model includes a convergence layer model, an access layer model and a core layer model. The convergence layer model is used to focus on the frequency of external connections of the source IP, the access layer model is used to focus on the number of sensitive port scans of the destination IP, and the core layer model is used to focus on the sudden increase in cross-segment communication traffic.

[0028] As one of the preferred solutions, the network port transmission event data includes network port transmission event data at the network layer, and the blocking strategy includes discarding processing; then, the network port transmission event data detected in real time is input into the multi-level network port blocking model, and the corresponding blocking strategy is determined based on the output result of the multi-level network port blocking model, including:

[0029] Performing abnormality judgment on the network port transmission event data at different network layers, and setting a dynamic threshold matching the link bandwidth and the device processing capability according to the abnormality judgment result;

[0030] When the multi-level network port blocking model detects that the amplitude of network port transmission event data at the network layer exceeds the dynamic threshold, the network port transmission event data is identified as malicious traffic data and the malicious traffic data is discarded.

[0031] As one preferred solution, the real-time detected network port transmission event data is input into the multi-level network port blocking model, and the corresponding blocking strategy is determined based on the output result of the multi-level network port blocking model, which further includes:

[0032] Through the association of traffic probes and logs, malicious traffic data blocked by network port protection devices at different network levels and task coordination data when handling the malicious traffic data are obtained;

[0033] Using a signature-based IDS intrusion detection system to identify and classify the malicious traffic data and obtain blocking effect data;

[0034] The blocking strategy is optimized based on the task coordination data and the blocking effect data.

[0035] As one of the preferred solutions, the multi-level network port blocking model is optimized based on the task collaboration data and the blocking effect data, including:

[0036] Based on the task collaboration data and the blocking effect data, a Q-Learning reinforcement learning algorithm is used to guide and optimize a multi-level network port blocking model through reward values;

[0037] Adjust the blocking strategies at each level based on the optimized multi-level network port blocking model.

[0038] As one of the preferred solutions, if the multi-level network port blocking model monitors an abnormal event in a blocking device, the backup device is quickly switched through traffic mirroring and session persistence methods, the emergency response process is initiated, and traffic restrictions and session migration are performed according to the severity of the abnormal event.

[0039] Another embodiment of the present invention provides a perception security protection system based on a network port protection device, which is applied to a network topology connected to the network port protection device, and includes the following modules:

[0040] An acquisition module, used to acquire level parameters of the network transmission event currently transmitted by the network port, wherein the level parameters include event confidentiality level, event time level and event personnel level;

[0041] A planning module, used to predict the network attack risk level faced by the network transmission event based on the confidentiality level and risk matrix method, and determine the corresponding network port blocking granularity plan according to the network attack risk level;

[0042] An adjustment module, configured to adjust a port communication strategy in a network topology of the network transmission event by using a 0-1 integer programming method based on the event time level and the event personnel level;

[0043] A blocking module, used to control the network port protection device to block the network port to be blocked according to the blocking network port granularity scheme and the port communication strategy, and to obtain in real time the location distribution and device parameters of the network port protection device in the network topology and the traffic characteristics and behavior characteristics of the network port to be blocked;

[0044] A construction module, used to construct a multi-level network port blocking model according to the location distribution, the device parameters, the traffic characteristics and the behavior characteristics;

[0045] The output module is used to input the real-time detected network port transmission event data into the multi-level network port blocking model during the actual security protection process, and determine the corresponding blocking strategy based on the output result of the multi-level network port blocking model.

[0046] As one preferred solution, the planning module is further used for:

[0047] Acquire historical attack information, and extract a decision attribute set that affects the selection of blocking granularity from the historical attack information;

[0048] Using the hierarchical analysis method to compare the importance of each decision attribute in the decision attribute set, and obtain the weight of each decision attribute in the decision attribute set;

[0049] Quantifying each decision attribute in the decision attribute set, constructing a fuzzy evaluation matrix according to the quantized values ​​and corresponding weights, and obtaining the comprehensive evaluation membership of each area of ​​the fuzzy evaluation matrix through fuzzy matrix synthesis operation;

[0050] The network port blocking granularity scheme is optimized according to the comprehensive evaluation membership.

[0051] As one preferred solution, the adjustment module is specifically used for:

[0052] Extracting the flow index of each communication port in the network topology, and constructing a port cascade matrix by performing correlation analysis and statistical modeling on the flow index, wherein the port cascade matrix reflects the dependency strength between each port;

[0053] Based on the port dependency constraints of the port cascade matrix, the event time level constraints and the event personnel level constraints, a 0-1 integer programming model with ports as basic units is established;

[0054] Solve the 0-1 integer programming model and configure the port communication strategy according to the obtained optimal solution.

[0055] As one preferred solution, the building block is specifically used for:

[0056] The multi-level network port blocking model is constructed by integrating location distribution, equipment parameters, traffic characteristics and behavioral characteristics using the support vector machine algorithm. The multi-level network port blocking model includes a convergence layer model, an access layer model and a core layer model. The convergence layer model is used to focus on the frequency of external connections of the source IP, the access layer model is used to focus on the number of sensitive port scans of the destination IP, and the core layer model is used to focus on the sudden increase in cross-segment communication traffic.

[0057] As one preferred solution, the network port transmission event data includes network port transmission event data at the network level, and the blocking strategy includes discarding processing; then, the output module is specifically used to:

[0058] Performing abnormality judgment on the network port transmission event data at different network layers, and setting a dynamic threshold matching the link bandwidth and the device processing capability according to the abnormality judgment result;

[0059] When the multi-level network port blocking model detects that the amplitude of network port transmission event data at the network layer exceeds the dynamic threshold, the network port transmission event data is identified as malicious traffic data and the malicious traffic data is discarded.

[0060] As one preferred solution, the output module is specifically used for:

[0061] Through the association of traffic probes and logs, malicious traffic data blocked by network blocking devices at different network levels and task coordination data when handling the malicious traffic data are obtained;

[0062] Using a signature-based IDS intrusion detection system to identify and classify the malicious traffic data and obtain blocking effect data;

[0063] The blocking strategy is optimized based on the task coordination data and the blocking effect data.

[0064] As one preferred solution, the output module is further specifically used for:

[0065] Based on the task collaboration data and the blocking effect data, a Q-Learning reinforcement learning algorithm is used to guide and optimize a multi-level network port blocking model through reward values;

[0066] Adjust the blocking strategies at each level based on the optimized multi-level network port blocking model.

[0067] As one preferred solution, the output module is further specifically used for:

[0068] If the multi-level network port blocking model monitors an abnormal event in a blocking device, the backup device is quickly switched through traffic mirroring and session preservation methods, the emergency response process is started, and traffic restriction and session migration are performed according to the severity of the abnormal event.

[0069] Another embodiment of the present invention provides a perceptual security protection device based on a network port protection device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the perceptual security protection method based on the network port protection device as described above.

[0070] Yet another embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the device where the computer-readable storage medium is located executes the computer program, the perception security protection method based on the network port protection device as described above is implemented.

[0071] Compared with the prior art, the embodiments of the present invention have the following advantages:

[0072] (1) The security protection scheme based on the network port protection device proposed in the present invention can effectively prevent unauthorized devices from accessing the network through the network port, thereby reducing the risk of illegal intrusion into the network. By blocking unused network ports, the possibility of data leakage through these ports can be reduced, thereby protecting sensitive information in the network from being stolen.

[0073] (2) For organizations with a large number of network devices, the solution of the present invention can greatly reduce the workload of manually blocking network ports by using a network port protection device, thereby improving management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 It is a flowchart of a perception security protection method based on a network port protection device in one embodiment of the present invention;

[0075] Figure 2 It is a schematic diagram of the structure of the electronic safety lock of the network port protection device in one embodiment of the present invention before being inserted into the physical network port;

[0076] Figure 3 It is a schematic diagram of the structure of the electronic safety lock of the network port protection device in one embodiment of the present invention when it is inserted into the physical network port;

[0077] Figure 4 It is a schematic diagram of the structure of the electronic safety lock of the network port protection device in one embodiment of the present invention after being inserted into the physical network port;

[0078] Figure 5 It is a schematic diagram of the principle of the sensing technology based on line sequence recognition of the network port protection device in one embodiment of the present invention;

[0079] Figure 6 It is a structural schematic diagram of a perception safety protection system based on a network port protection device in one embodiment of the present invention;

[0080] Figure 7 It is a schematic diagram of a perception safety protection device based on a network port protection device in one embodiment of the present invention. DETAILED DESCRIPTION

[0081] 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. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. 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.

[0082] In the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0083] In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. The terms "vertical", "horizontal", "left", "right", "upper", "lower" and similar expressions used herein are only for illustrative purposes, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0084] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood by specific circumstances.

[0085] An embodiment of the present invention provides a perception security protection method based on a network port protection device. For details, see Figure 1 , comprising steps S1 to S7:

[0086] S1. Obtaining level parameters of the network transmission event currently transmitted by the network port, wherein the level parameters include the event confidentiality level, event time level and event personnel level;

[0087] S2. Predicting the network attack risk level faced by the network transmission event based on the confidentiality level and risk matrix method, and determining the corresponding network port blocking granularity scheme according to the network attack risk level;

[0088] Specifically, according to the confidentiality level of network transmission events, the risk assessment matrix method is used to conduct risk analysis and quantitative calculation from two dimensions: the possibility of network attacks and the severity of the impact after a successful attack, and the network attack risk level faced by each task space area is obtained. Network transmission events include network work tasks in daily operations.

[0089] For example, the risk assessment matrix approach is as follows:

[0090] First, the attack possibility and impact severity are divided into five levels, such as "very low, low, medium, high, and very high", and the corresponding numerical weights are assigned from 1 to 5;

[0091] Then, based on specific business scenarios, historical security event data is collected, the frequency of various attack methods and the extent of losses caused are counted, and the values ​​of each cell in the matrix are filled in. For example, for a critical core system, the probability of DDoS attack is "high" (value 4), and once successful, it can cause the system to be completely paralyzed, and the severity of the impact is "extremely high" (value 5). The risk value R = probability of occurrence P × severity of impact I, then the risk value of this attack is 4*5=20, which is a high risk level.

[0092] In fuzzy comprehensive evaluation, attack cost, attack difficulty, number of vulnerable points, etc. can be selected as evaluation indicators. The weight vector A=(0.3, 0.5, 0.2) is calculated according to the importance of the indicators. Each indicator is scored in turn to form a fuzzy matrix R. Finally, the comprehensive membership is calculated through matrix multiplication B=AR. If the result value is 0.75, it indicates that the security risk level faced by the area is relatively high and requires special attention.

[0093] The decision tree algorithm can build a multi-layer tree structure based on classic models such as C4.5 and CART. Taking "SQL injection attack" as an example, the root node can be set to "whether there is an injection vulnerability", and the child nodes are "yes" and "no" respectively. Then, under the "yes" branch, it is further subdivided into "protection measures deployment status", and the leaf nodes may include "WAF deployment, blacklist and whitelist configuration, code audit" and other protection measures. By recursively descending layer by layer, a complete SQL injection attack defense decision tree can be obtained.

[0094] During the construction of the attack graph, logical programming languages ​​such as ASP and BLP can be used to describe node attributes based on asset information, and node vulnerability can be characterized using standards such as CVSS. Undirected edges can be selected based on common network connectivity methods, and directed edges can be established based on attack and utilization relationships in vulnerability libraries such as CVE. During security orchestration and automated response, a series of response action atoms can be predefined, such as "blocking IP, locking accounts, and terminating processes", and standardized handling processes can be designed for different types of security incidents. When the intrusion detection system detects suspicious attack behavior, it matches the feature vector with the decision tree model to identify the most likely attack path, automatically build the corresponding defense orchestration, and send it to the security device for blocking. The entire process can be controlled within 100ms.

[0095] Furthermore, the risk level assessment results are mapped into the fuzzy comprehensive evaluation method to effectively deal with the uncertainty of indicator weights and the subjectivity of the assessment process, thereby improving the scientificity and rationality of risk assessment.

[0096] Preferably, in the embodiment of the present invention, after determining the corresponding network port blocking granularity scheme according to the network attack risk level in step S2, the method further includes:

[0097] S21, obtaining historical attack information, and extracting a decision attribute set that affects the selection of blocking granularity from the historical attack information;

[0098] S22, using the hierarchical analysis method to compare the importance of each decision attribute in the decision attribute set, and obtain the weight of each decision attribute in the decision attribute set;

[0099] S23, quantifying each decision attribute in the decision attribute set, constructing a fuzzy evaluation matrix according to the quantized values ​​and corresponding weights, and obtaining the comprehensive evaluation membership of each area of ​​the fuzzy evaluation matrix through fuzzy matrix synthesis operation;

[0100] S24, optimizing the network port blocking granularity scheme according to the comprehensive evaluation membership.

[0101] Specifically, based on the network segment range information controlled by the attacker, determine the source IP address segment from which the attacker may launch an attack, and by analyzing the network layer characteristics of the attack traffic, determine the network layer the attacker is in. Associate the attacker information with the risk assessment results, and comprehensively consider multi-dimensional attributes such as the attack source, network topology, and business importance to form a decision attribute set that affects the selection of blocking granularity.

[0102] The hierarchical analysis method is used to compare the importance of each decision attribute pairwise and construct a judgment matrix. The maximum eigenvalue and corresponding eigenvector W=[w_1, w_2,…, w_n] of the judgment matrix are calculated, and a consistency test is performed. According to the criterion of CR=CI / RI<0.1, the matrix is ​​determined to pass the test. CR is the consistency ratio, CI is the consistency index, and RI is the random consistency index. Finally, the weight distribution of the decision attributes is obtained.

[0103] The quantified values ​​of the decision attributes and the weights form a fuzzy judgment matrix R=

r_ij

[0104] For example, by analyzing the source IP addresses and TTL values ​​of attack traffic, it was found that 90% of malicious traffic came from three overseas address segments. Combined with global BGP routing topology data, the attackers were mainly located in the backbone network layer of multinational operators, controlling about 1,000 IP addresses. According to the risk assessment report, attacks corresponding to these address segments can cause key business interruption for more than 6 hours, with an average loss of 1 million yuan per hour, and the risk level is "high risk". Based on internal security protection standards, it was initially determined to implement strict IP-level blocking for these address segments. A 4*4 judgment matrix was constructed using the hierarchical analysis method, considering the attack scale, attack capability, number of vulnerabilities, and asset importance as decision attributes, and calculating the weight vector W=[0.48, 0.15, 0.29, 0.08]. The consistency test passed when CR=0.021<0.1. Through scoring and evaluation, the membership matrix of each area on the four attributes was obtained. The fuzzy weighted average synthesis operator B=W·R was used, combined with the entropy weight method to further eliminate subjective bias, and the comprehensive membership of the external area, DMZ area, office area, and core area was finally obtained to be 0.83, 0.65, 0.41, and 0.27, respectively. Based on this, the preliminary plan was fine-tuned to form a differentiated blocking strategy. The multi-source features of 30 types of security events were fused, and 13 key feature subsets were screened out using the isolation forest algorithm. The attack tracing and evolution prediction model was built based on the support vector machine with a confidence level of 85%. The sliding window mechanism was used to incrementally update the model every day, and the response time for attack variant identification was shortened to less than 4 hours. After half a year of operation optimization, while blocking malicious traffic, the availability of key services remained above 99.99%, effectively achieving the dynamic defense goal of "strict blocking in high-risk areas and loose control in low-risk areas". Among them, if the risk level is high and the attacker can control a large range of network segments, it will be blocked at the network layer; if the risk level is low and the attacker can only control a single IP, it can be blocked at the transport layer.

[0105] Specifically, according to the risk assessment report and the attack source tracing analysis results, the security risk level faced by each area and the range of network segments controlled by the attacker are obtained. Referring to the STRIDE threat modeling framework, a multi-indicator risk quantification system is designed from the dimensions of attack possibility and attack impact, and the qualitative risk description is converted into measurable risk values ​​and network segment coverage data. Network topology discovery and asset mapping tools are used to count the number of online devices, open ports, and vulnerability distribution in different areas in real time, and the network asset information is associated and mapped with the risk assessment results to provide a basis for refining the blocking granularity. The protocol characteristics and port distribution of the attack traffic are extracted through traffic mirroring and packet parsing methods, focusing on common application layer attack methods based on TCP / UDP protocols, such as SQL injection, remote code execution, and denial of service attacks. If it is found that the attacker can only control a single IP address and mainly uses specific application layer protocols to carry out attacks, priority is given to blocking at the transport layer, and the attack is prevented by limiting the communication between the suspicious IP and the target port. Deploy DPI devices at the network egress and configure ACL policies for areas with high risk levels and wide attack network segments. Based on source IP addresses and CIDR rules, discard all traffic from suspicious network segments to achieve coarse-grained network layer blocking.

[0106] For areas with lower risk levels and a limited number of controllable IP addresses, a five-tuple security policy is applied on the core switch or border router to filter traffic based on multi-dimensional conditions such as source and destination IP addresses, ports, and protocols to achieve more refined transport layer blocking. ACL configuration and management are simpler, but the granularity is coarser and can easily lead to excessive blocking. Although the five-tuple policy has more complex rules, it can control traffic more accurately and reduce false positives. Therefore, it is necessary to flexibly select and match these two blocking methods based on actual scenarios and protection needs.

[0107] In order to improve the flexibility and accuracy of blocking, the SDN controller is introduced to achieve dynamic adjustment of blocking strategies. The controller monitors network traffic and host behavior in real time, identifies suspicious traffic patterns and attack events, and dynamically evaluates attack risks in combination with the latest threat intelligence. Based on the evaluation results, it automatically generates and optimizes blocking strategies, adjusts the placement and scope of the strategy, and achieves dynamic optimization of blocking granularity.

[0108] S3, based on the event time level and the event personnel level, using a 0-1 integer programming method to adjust the port communication strategy in the network topology;

[0109] Preferably, in an embodiment of the present invention, the step of adjusting the port communication strategy in the network topology of the network transmission event based on the event time level and the event personnel level by using a 0-1 integer programming method includes:

[0110] S31, extracting the flow index of each communication port in the network topology, and constructing a port cascade matrix by performing correlation analysis and statistical modeling on the flow index, wherein the port cascade matrix reflects the dependency strength between each port;

[0111] S32, based on the port dependency constraint of the port cascade matrix, the constraint of the event time level and the constraint of the event personnel level, establish a 0-1 integer programming model with ports as basic units;

[0112] S33, solving the 0-1 integer programming model, and configuring the port communication strategy according to the obtained optimal solution.

[0113] Specifically, according to the importance and urgency of the work task, the time requirement for task completion is quantitatively evaluated. Combined with the communication mode and frequency of the task, the key factors affecting the end-to-end delay, such as link bandwidth, transmission distance, number of interactions, etc., are analyzed, and the delay constraint threshold for port selection is set accordingly. At the same time, the number of personnel involved in the task and their geographical distribution are counted to estimate the range of communication network segments that need to be covered. The network traffic deep analysis method is used to extract the traffic indicators of various communication ports in real time, such as packet size, packet interval, number of concurrent connections, etc. Through correlation analysis and statistical modeling, the intrinsic connection between different ports in terms of delay sensitivity, traffic mode, functional coupling, etc. is characterized, and a port cascade matrix is ​​constructed. The matrix uses quantitative indicators to measure the dependency strength between ports, such as normalizing the protocol type similarity, traffic correlation coefficient, application co-occurrence frequency, etc. to the 0-1 interval. The larger the value, the closer the association.

[0114] On this basis, a 0-1 integer programming model with ports as the basic unit is established, defining:

[0115] Decision variables Indicates whether to block port i. The objective function is set to minimize the protection efficiency loss in the form of:

[0116] ,in Represents the efficiency loss weight caused by blocking port i.

[0117] The delay constraint and coverage constraint are expressed as and ,in and They represent the delay contribution and coverage contribution of port i respectively, and T and C are the corresponding constraint constants.

[0118] At the same time, a series of port dependency constraints are introduced according to the port cascade matrix, such as:

[0119] , which means that when port j is blocked, port i must also be blocked.

[0120] To solve the integer programming model, the branch-and-bound algorithm is used for implicit enumeration. During the search process, the linear relaxation technique is used to quickly evaluate the lower bound of the objective function, prune infeasible solutions, and improve the convergence speed. The final approximate optimal solution is a set of key port combinations that meet the requirements of latency and coverage and maximize the efficiency of network security protection.

[0121] For tasks with extremely high real-time requirements, such as VoIP calls and online transactions, the communication delay tolerance is usually at the order of 100ms. At this time, it is necessary to focus on the commonly used application layer ports of TCP / UDP, such as HTTP port 80, HTTPS port 443, and RDP port 3389. For cross-regional collaboration, remote office and other scenarios, the distribution of personnel may cover multiple network segments such as headquarters, branches, and mobile offices. Port selection must also take into account the connectivity requirements of the network layer such as ICMP. Through traffic control methods such as port mirroring and bypass detection, the traffic change trend of key ports is continuously monitored. Using machine learning-based anomaly detection algorithms, a dynamic baseline of port traffic is established to detect abnormal deviation behavior in a timely manner. Once it is identified that indicators such as port response delay and packet loss rate exceed the threshold, the blocked port range is dynamically adjusted, and the traffic of suspicious ports is restricted through mechanisms such as ACL and QoS to alleviate network congestion and ensure the communication quality of core ports. Under the guidance of the zero-trust security framework, the port blocking policy is uniformly issued by an independent policy control point. Through trusted identity authentication and dynamic authorization mechanisms, refined access control management at the port granularity is achieved to improve the consistency and auditability of communication security policies. The policy control point configures the corresponding port blocking policy template according to the security requirements of different tasks, and uses automated orchestration tools and process scripts to dynamically bind the constraint parameters in the template with task attributes, personnel attributes and other environmental variables in the task management process to trigger real-time policy updates.

[0122] For example, taking the operation and maintenance management task of a key business system as an example, through the statistical analysis of historical work orders, it is found that the average time taken for the standard emergency response process from receiving the report to completing the response is 15 minutes, and the relevant personnel are distributed in 5 different subnets, such as the network management center, computer room, development and testing. Through bypass mirroring, the normal communication traffic of the business is fully collected and feature analyzed, and the traffic statistics of 53 TCP / UDP ports are extracted. The Pearson correlation coefficient and Jaccard similarity coefficient algorithms are used to calculate the correlation strength between ports from the dimensions of protocol semantics, traffic timing, and destination port distribution, and a 53*53 port cascade matrix is ​​constructed. On this basis, 150 binary decision variables are used to describe the blocking status of each port, and a 0-1 integer programming model is constructed. The model is solved by Lingo software, and the optimal solution is searched within 10 seconds, and 22 key ports are selected as blocking objects. For applications such as VoIP calls and video conferencing that are sensitive to latency, the port range of RTP and RTCP is reduced to 8000-10000, and ICMP traffic is opened to support physical link detection across network segments. By linking with Zeek, the communication behavior of key ports is continuously monitored based on the port's historical traffic template and anomaly detection algorithm, abnormal traffic such as DDOS attacks is promptly identified, and access control policies are automatically issued to limit the speed of suspicious ports. After the abnormality stops, the restrictions are automatically removed. Use iptables to record and analyze the access behavior of typical ports such as TCPSyn and TCPAck in a fine-grained manner to evaluate the blocking effect and optimize the strategy. Use Python scripts to integrate the JSON file of the port blocking template with the REST interface of the task management tool to achieve automated linkage between security policies and personnel behavior.

[0123] Furthermore, according to the solution results of the 0-1 integer programming model, the port blocking strategy is adjusted in real time, including focusing on blocking suspicious ports to ensure priority passage of critical business traffic; if the task has high real-time requirements and a large number of participants, the blocking of dynamic ports and private ports should be minimized.

[0124] With security orchestration and automation as the overall framework, coordinate various port security protection measures. Obtain the solution results of the 0-1 integer programming model in real time through the SDN controller, dynamically send the returned key port list to the security devices in the network, and perform automatic adjustment of the port blocking strategy to ensure that the key business ports have the highest priority. The blocking strategy for non-critical ports adopts a risk-based dynamic threshold mechanism, and adaptively determines the blocking intensity according to the threat score of the port and the change of traffic pattern, taking into account both security and performance. The rules adopt the IF-THEN form to set a multi-dimensional condition combination; quantitative evaluation and anomaly detection are performed on the suspicious degree of the port.

[0125] Combined with global threat intelligence, similarity calculation and anomaly scoring are performed on unknown or suspicious port traffic. If it exceeds the preset threshold, it will be automatically included in the key blocking targets. For latency-sensitive key business applications, the corresponding ports are identified, and exclusive priority resource pools are reserved in the blocking strategy. With the help of service quality assurance mechanisms such as DiffServ and IntServ, key business flows are identified through ports, and priority marking, dedicated queue scheduling, and reserved bandwidth resources are performed on their messages to improve end-to-end communication quality. When the number of task participants is large, a risk-adaptive identity authentication mechanism is introduced to dynamically adjust the authentication strength based on factors such as the degree of abnormality of user behavior and the level of operational risk. For the exception release ports authorized by legitimate users, user identity confirmation and behavior analysis are performed to minimize additional overhead while ensuring security and improve user experience. A defense-in-depth architecture with intrusion detection and protection linkage is adopted to synchronize suspicious port information identified by each security device to the security information and event management system. The frequent item set mining algorithms Apriori and FP-growth are used to mine suspicious port combination patterns from massive port access logs and build a threat intelligence map. Time series anomaly detection algorithms such as STL and SARIMA are applied to timely discover mutation points, periodic anomalies and other patterns from the port traffic time series, realizing multi-dimensional comprehensive analysis of port threats.

[0126] For example, by analyzing the top 100 business application systems in the entire network, it was found that 85% of key businesses use well-known ports below 1024. The top 20 port list obtained based on 0-1 integer programming is used as a priority protection object, and a high-priority port group is created in the SDN controller. For the remaining non-critical ports, the Jenks natural fracture method is used to divide their abnormal behavior scores into 5 levels based on the traffic statistics of the past 3 months. High-risk ports with scores above level 4 are dynamically added to the key blocking list and notified to the security administrator for review. More than 40 multi-dimensional features of port access are extracted through log analysis, and an anomaly detection model is built using the isolation forest algorithm to issue real-time warnings for suspicious ports with an accuracy rate of 90%. For the Web service of Nginx proxy, TCP80 and 443 ports are mapped to DiffServ service levels EF and AF to ensure low-latency forwarding of Web traffic and control link utilization within 75%. Access LDAP to implement user authentication and PAM authorization. For the FTP21 port of developers and the 1521 port of database administrators, they are dynamically added to the whitelist after passing the two-factor authentication. At the same time, the Apriori algorithm is used to mine the suspicious port combination {445, 4444, 4899} from the NIDS log of one month, and a frequent pattern tree is constructed in the FP-growth algorithm to form an early warning for the attacker's lateral penetration behavior and realize the automatic association of port threat intelligence.

[0127] S4, controlling the network port protection device to block the network port to be blocked according to the blocking network port granularity scheme and the port communication strategy, and respectively obtaining the location distribution, device parameters, real-time traffic characteristics and real-time behavior characteristics of the network port to be blocked of the network port protection device in the network topology;

[0128] Specifically, the blocking network port granularity scheme refers to the level of detail at which network ports are restricted or blocked, and the port communication strategy defines which ports should be allowed or blocked. The blocking network port granularity scheme and the port control strategy obtained in steps S2 and S3 are used to send a control signal to the network port protection device, and the network port protection device is controlled by the control signal to block the network port to be blocked.

[0129] Preferably, in an embodiment of the present invention, the network port protection device includes an electronic safety lock and an electronic key.

[0130] Wherein, the network port protection device refers to Figure 2 , Figure 3 , Figure 4 , Figure 2 The figure shows a schematic diagram of the structure of the electronic safety lock of the network port protection device of the present invention before being inserted into the physical network port. Figure 3 The figure shows a schematic diagram of the structure of the electronic safety lock of the network port protection device of the present invention before being inserted into the physical network port. Figure 4 The structure diagram of the electronic safety lock of the network port protection device of the present invention after being inserted into the physical network port is shown. The network port protection device is composed of an electronic safety lock and an electronic key. The electronic safety lock adopts an anti-reverse insertion layout design. After being inserted into the physical network port, the iron core is automatically popped out and locked. The electronic safety lock cannot be pulled out in the locked state, realizing the locking function of the device; the electronic key adopts an authorized unlocking design. After connecting the electronic safety lock, it is matched through the identity authentication key. After the identity matching is successful, the memory alloy spring is controlled to deform and drive the iron core to move up and down, realizing the unlocking function of the device.

[0131] In order to realize the perception of the network port protection device, the perception technology based on line sequence recognition in the present invention mainly relies on customized modules. For details, please refer to Figure 5 , Figure 5 The schematic diagram of the principle of the perception technology based on line sequence recognition of the network port protection device of the present invention is shown. It includes: on the connection module at one end of the network port, a new arrangement and combination is formed by a random 8-bit line sequence. Normal communication requires the same line sequence at the other end to be used. Even if the network cable is intercepted by a hacker, it cannot be used, so as to achieve the security protection goal of anti-intrusion. For the first time, port protection perception based on line sequence recognition of the network cable is realized. The perception technology based on network connection uses a directional encryption verification algorithm to generate data packets, sends data packets through the real-time network to verify the online status of the device, accurately monitors the abnormal situation of the device, and realizes real-time perception of the network connection status.

[0132] Specifically, through the network topology discovery tool, the location distribution information of network port protection devices such as firewalls, IPS, and WAF deployed throughout the network is obtained, including the network area, subnet division, upstream and downstream connection relationship, etc.; the D3.js visualization tool is used to generate a logical topology view of the blocking device; adversarial detection mechanisms such as honeypots and deception defense are deployed in the network architecture to capture suspicious behaviors such as scanning and intrusion in the network, and extract the attacker's operation methods, tools used, frequent IP addresses and other behavioral characteristics. The density clustering algorithm DBSCAN is used to cluster the behavioral data and identify different malicious behavior patterns. The silhouette coefficient of the clustering results is evaluated, and the multi-dimensional behavioral features are mapped to a two-dimensional plane through dimensionality reduction algorithms such as t-SNE, which intuitively shows the distribution of different types of malicious behaviors in the feature space. NetFlow, sFlow and other traffic monitoring protocols are used to sample and analyze the traffic at the network exit location. For DDoS attack scenarios, key features such as source address distribution, protocol type, and packet length of the traffic are extracted; for port scanning behavior, the frequency distribution law of the destination port number is analyzed in detail.

[0133] S5. Constructing a multi-level network port blocking model according to the location distribution, the device parameters, the traffic characteristics, and the behavior characteristics;

[0134] Preferably, in an embodiment of the present invention, the multi-level network port blocking model is constructed based on the location distribution, the device parameters, the real-time traffic characteristics and the real-time behavior characteristics, including: integrating the location distribution, device parameters, traffic characteristics and behavior characteristics, and using the support vector machine algorithm to construct a multi-level network port blocking model. Among them, the aggregation layer model focuses on the frequency of external connections of the source IP, the access layer model focuses on the number of sensitive port scans of the destination IP, and the core layer model focuses on the sudden increase in cross-segment communication traffic.

[0135] S6. In the actual security protection process, the network port transmission event data detected in real time is input into the multi-level network port blocking model, and the corresponding blocking strategy is determined based on the output result of the multi-level network port blocking model.

[0136] Preferably, in an embodiment of the present invention, the network port transmission event data includes network port transmission event data at the network layer, and the blocking strategy includes discarding processing; then, the network port transmission event data detected in real time is input into the multi-level network port blocking model, and the corresponding blocking strategy is determined based on the output result of the multi-level network port blocking model, including:

[0137] Performing abnormality judgment on the network port transmission event data at different network layers, and setting a dynamic threshold matching the link bandwidth and the device processing capability according to the abnormality judgment result;

[0138] When the multi-level network port blocking model detects that the amplitude of network port transmission event data at the network layer exceeds the dynamic threshold, the network port transmission event data is identified as malicious traffic data and the malicious traffic data is discarded.

[0139] Specifically, when the sudden increase in traffic exceeds the preset value, the suspicious flow is directed to the DPI-based cleaning module, which extracts application layer information such as HTTP request headers and DNS query domain names, comprehensively judges the maliciousness, and only limits the speed of attacks with low attack intensity, while directly discarding confirmed malicious flows. For intensive port scanning, Web scanning and other behaviors, the reputation mechanism is used to dynamically adjust the defense strength; the anomaly detection model is encapsulated as a standard VNF, and the MANO orchestrator schedules computing, storage, and bandwidth resources from the virtual resource pool to complete the instantiation and configuration of the VNF. Using message queues such as Kafka, the abnormal events generated by each VNF are sent to the central controller in real time, and the blocking rules are quickly matched through policy engines such as Drools. The SDN controller is connected, and the OpenFlow southbound interface is used to complete the grayscale delivery of blocking routes at the millisecond level. The malicious traffic and suspicious behaviors output by the models at each level are correlated and analyzed, and the attack links of organized threats such as botnets and APTs are discovered using graph algorithms and social network analysis.

[0140] For example, 112 high-interaction honeypots were deployed to obtain the attacker's behavior log data, and the Word2Vec algorithm was used to embed the operation commands into a 128-dimensional real vector space. The embedded vectors were clustered using the DBSCAN algorithm, with the parameters ε=0.2 and MinPts=5, to obtain 18 typical malicious behavior clusters. On the SPAN port of the core switch, sFlow was used to sample one of the 512 data packets, and the number of times the source IP communicated with different destination IPs within one minute was analyzed. If the number exceeded 100, the corresponding traffic was mirrored to the anomaly detection VNF. The SVM model used the RBF kernel function, and the optimal parameters C=15 and γ=0.08 were obtained through grid search. The detection rate of new samples was stable at more than 95%. After detecting suspicious traffic, the DPI module extracted the URL path of the HTTP request and compared it with the known webshell feature library. If the matching degree exceeded 0.9, the source IP was added to the blacklist for 30 minutes and the speed was limited to 10KB / s. The MANO platform uses templated TOSCA files to orchestrate virtual resources such as 2 vCPUs, 4GB memory, and 1Gbps bandwidth required to block VNFs, and dynamically scales the number of VNF instances based on anomaly detection results. The Kibana platform based on Elasticsearch is used to design a multi-dimensional security situation visualization view. The time series distribution of the number of attack events in each region within a week is presented through contour maps, and the proportion of threatening behaviors in different dimensions is displayed with radar maps. Combined with the attacker's portrait, the administrator is assisted in quickly judging the situation and evaluating the effectiveness of defense. The detection logs at all levels are returned to the anomaly detection model, and the model effect is continuously optimized using the online learning mechanism to improve the detection rate in complex environments and reduce the false alarm rate. The Kibana front-end designs a heat map of the regional distribution of attack events, which can drill down to the proportion of the number of alarms in each province and city, and assist in judging the latest methods with the operating system, browser and other portrait information of the attacker's terminal. The log data of anomaly detection is streamed back to the model training set through the Kafka queue, and the gradient descent method is used to fine-tune the parameters, which increases the detection rate by 1.5 percentage points and reduces the false alarm rate by 0.8 percentage points on average per cycle.

[0141] Preferably, in an embodiment of the present invention, the step 6, inputting the real-time detected network port transmission event data into the multi-level network port blocking model, and determining the corresponding blocking strategy based on the output result of the multi-level network port blocking model, further includes:

[0142] S61, obtaining malicious traffic data blocked by network port protection devices at different network levels and task coordination data when handling the malicious traffic data through traffic probes and log association;

[0143] S62, using a signature-based IDS intrusion detection system to identify and classify the malicious traffic data to obtain blocking effect data;

[0144] S63. Optimize the blocking strategy based on the task coordination data and the blocking effect data.

[0145] Preferably, in an embodiment of the present invention, the step S63, optimizing the multi-level network port blocking model based on the task collaboration data and the blocking effect data, includes:

[0146] S631, based on the task collaboration data and the blocking effect data, using a Q-Learning reinforcement learning algorithm to guide and optimize a multi-level network port blocking model through a reward value;

[0147] S632. Adjust the blocking strategies at each level according to the optimized multi-level network port blocking model.

[0148] Preferably, in the embodiment of the present invention, it also includes:

[0149] If the multi-level network port blocking model monitors an abnormal event in a blocking device, it will quickly switch to a backup device through traffic mirroring and session preservation methods, start the emergency response process, and perform traffic restriction and session migration according to the severity of the abnormal event.

[0150] Specifically, through the flow probe and log association, the malicious traffic data blocked by the blocking devices at different network levels are obtained, including the number of attack events, the size of attack traffic, the blocking response time, etc. The signature-based IDS intrusion detection system is used to finely identify and classify malicious traffic, and the difference characteristics of the blocking effect at each level are statistically analyzed according to the dimensions such as the attacker's IP location and the duration of the attack, so as to form a blocking effect evaluation report for the entire network.

[0151] Apply the Apriori algorithm for association rule mining, take the blocking effect data such as attack type and attack intensity and the coordination data such as the response time of task handling personnel as commodity items, and use the minimum support of 0.2 and the minimum confidence of 0.8 as parameters to mine the strong association rules between the two types of data, and establish an association model between blocking effect and task coordination. Refer to the Nash equilibrium in game theory, construct the utility function of multi-level blocking measures, conduct a benefit-cost analysis on different blocking strategy combinations triggered by the rules, and form a quantitative evaluation system for blocking strategies. Build a network confrontation simulation environment, use Mininet to build the topology, and simulate various attack scenarios through the Ostinato traffic generator.

[0152] The reinforcement learning model is trained. The state space includes multiple attributes such as the blocking rate, load, and policy configuration of each level of blocking equipment. The action space is defined as the adjustment range of the security policy parameters of each device. The reward function is designed by combining immediate rewards and long-term rewards. The greater the cumulative blocking volume in the short term, the higher the reward. The reward converges when the false blocking rate and missed blocking rate are stable at an acceptable level in the long term. Through continuous trial and error, the optimal blocking strategy combination is learned. Combined with the policy gradient method of reinforcement learning, the selection probability distribution of blocking actions at each level is adaptively adjusted, the time decay rate of the blacklist is automatically optimized at the access layer, the aging time of the session table is adjusted in real time at the aggregation layer, and the threshold of flow anomaly detection is dynamically changed at the core layer to achieve continuous optimization of port blocking granularity.

[0153] The meta-learning concept is introduced, and the hyperparameter K is used as the meta-optimization target to automatically select the number of agents and exploration rate in the reinforcement learning model to quickly adapt to different protection scenarios. Using the transfer learning algorithm, the trained agent model can be reused between similar network environments, and the blocking strategy can be quickly deployed through a small amount of incremental training. Access control is performed from top to bottom in the tree topology, from the access switch to the core switch and then to the security domain boundary, and authentication and authorization are strictly performed layer by layer. Honeypot trapping, threat intelligence tracing and other means are used to preemptively discover the source of the attack and change passive defense to active sniping. Deploy SOAR-based automated response orchestration at the aggregation layer, comprehensively analyze and judge multi-level alarm information, dynamically schedule security resources, form a globally optimal comprehensive protection plan, use blockchain to build a trusted group intelligence joint defense network, share the blocking effect evaluation of each node on the chain, and realize real-time iterative updates of the joint defense strategy through smart contracts.

[0154] For example, a flow probe is deployed on the access layer switch, and the DDoS attack traffic blocked by the device in the past hour is collected to be 5Gbps, and there are 200 attack events. At the same time, the NetFlow log is associated with the core router, and it is found that the same attack traffic blocked in the same time period is 2Gbps, the number of events is 150, and the average blocking response time is 200ms. The signature-based Snort intrusion detection system is used to finely identify and classify malicious traffic through feature library matching, and 50MB of SQL injection attack traffic from a certain country is detected, which lasts for 15 minutes. Using the Apriori association rule mining algorithm, the minimum support is set to 2 and the minimum confidence is set to 8. It is found that the confidence of the association rule between "SQL injection attack" and "response time greater than 1 minute" is 85%, that is, when an SQL injection attack occurs, there is a high probability that the task handling personnel will cooperate with a long response time.

[0155] Referring to the Nash equilibrium in game theory, assuming that the utility functions of different blocking measures obey exponential distribution, the optimal combination of blocking strategies can be obtained by numerically solving the Nash equilibrium point. The blacklist filtering utility of the access layer is 6, the session table restriction utility of the aggregation layer is 3, and the flow anomaly detection utility of the core layer is 1. The overall utility of the joint protection reaches 753, which is higher than the deployment of each separately. A Mininet network simulation environment is built, and the Ostinato traffic generator is used to simulate various attack scenarios such as DDoS and vulnerability exploitation to train the reinforcement learning model. The state attributes of the access layer blocking device include blocking rate, load, blacklist configuration, etc. The action is to adjust the time decay rate of the blacklist, and the current value is 8.

[0156] Through optimization algorithms such as gradient descent to minimize long-term cumulative rewards, after 10,000 rounds of iterative training, the optimal decay rate is found to be 9, at which point the port blocking granularity is optimal. Meta-learning is introduced, and the hyperparameter K is set as the number of agents in the reinforcement learning model. The best K value is automatically selected through grid search. In the DDoS protection scenario, K is set to 4, which are deployed at the access layer, aggregation layer, core layer, and security domain boundary, respectively, to coordinate and optimize the blocking strategy.

[0157] Using the transfer learning algorithm, the intelligent agent model trained in the DDoS scenario is migrated to the protection of vulnerability exploitation attacks, and quickly adapts through a small amount of incremental training. Access control is performed from top to bottom in the tree topology. First, the legitimacy of the source IP is strictly authenticated on the core switch, then the user identity is strictly identified on the aggregation switch, and finally the user behavior is strictly audited on the access switch. Honeypot trapping, threat intelligence tracing and other means are used to preemptively discover the source of the attack. A high-interaction honeypot is deployed, disguised as a Struts2 service, to record all attack types, source IP and other information, and push it to the threat intelligence platform in real time. Deploy SOAR-based automated response orchestration at the aggregation layer, set 20 business linkage rules, and realize the automated handling of security incidents. Use blockchain to build a trusted group intelligence joint defense network, deploy 5 nodes on the chain as joint defense members, share their respective blocking effect evaluations, and automatically trigger smart contracts when the policy configuration of the joint defense node changes, and iterate and update the joint defense strategy in real time to improve the overall protection level of the entire network.

[0158] Furthermore, if the blocking effect data meets the task coordination requirements, a positive reward value is obtained through the reinforcement learning model; if the blocking effect data affects the task coordination efficiency, a negative reward value is obtained through the reinforcement learning model.

[0159] Specifically, the key demand indicators of task collaboration are summarized based on historical data, such as application response time, concurrent processing capacity, bandwidth utilization, etc. The weight of each indicator is calculated using the hierarchical analysis method; the fuzzy comprehensive evaluation method is used to select the common triangle membership function, and the blocking effect data is mapped to the membership value of the key indicator. Then, the comprehensive matching degree is calculated by weighted average to quantify the degree to which the blocking effect meets the task collaboration requirements. The reward value level is designed in the reinforcement learning model, and the comprehensive matching degree and various resource consumption indicators are divided into four levels of instant reward values.

[0160] Through correlation analysis and Granger causality test, the key factors that affect task performance due to blocking measures are screened out, and the causal relationship is determined. If there is a significant causal relationship between the rule hit rate of the blocking engine and the business request timeout rate, the rule hit rate is included in the dynamic adjustment factor of the reward function. When the hit rate is lower than the preset value, the penalty intensity of the negative reward is increased by the preset value. The sliding window mechanism is used to extract multi-granular features from network flow logs. Differentiated window lengths are set for key network paths and device nodes involved in collaborative tasks to construct a hierarchical traffic state feature space.

[0161] When a task has serious anomalies such as service interruption or data loss, the risk prevention mechanism of the reinforcement learning model is triggered. An exponentially decaying forgetting mechanism is used to dynamically amplify negative rewards. The forgetting factor increases exponentially with the duration of the anomaly. At the same time, a conservative exploration strategy is enabled to reduce the exploration rate, solidify the current optimal strategy, and suspend attempts at new strategies until the abnormal state is resolved before resuming normal learning. Real-time assessment of environmental risks and agent exploration levels, automatically switching to safe mode when thresholds are exceeded. Construct a prior distribution of reward values ​​based on domain knowledge, preset corresponding reward value change trends for known common abnormal scenarios, and use the prior distribution as a regular term of the reward function during the training of the reinforcement learning model to speed up convergence. Adopt an adaptive dynamic programming algorithm to make rolling predictions of cumulative rewards for a period of time in the future, automatically adjust the discount factor, and weigh short-term and long-term benefits to make the strategy more robust.

[0162] For example, by analyzing multi-source data such as user feedback, system logs, and network traffic in the task collaboration process, 15 key performance indicators were extracted, and the hierarchical analysis method was used to construct a pairwise judgment matrix of indicators, and CR=0.05<0.1 was calculated. Through consistency test, the weights of each indicator were finally determined, such as response time 0.25, error rate 0.15, and throughput 0.2. Five commonly used membership function forms such as broken line and trapezoid were selected to correspond to different trends of task satisfaction. When blocking caused the response time to deteriorate from 0.3s to 1.5s and the error rate to rise from 0.1% to 2%, the matching degree decreased from 0.95 to 0.6 through weighted average calculation. According to the corresponding relationship between the matching degree and the system SLA, the reward value was mapped to four levels, with excellent being 0.9-1.0, +1 point, good being 0.7-0.9, +0.5 point, medium being 0.4-0.7, -0.5 point, and poor being 0-0.4, -1 point. At the same time, for every 1% of CPU resources, 10MB of memory, and 2% of bandwidth consumed, an additional 0.1 point will be deducted.

[0163] Based on Pearson correlation analysis, it is found that the correlation coefficient between the blocking rule hit rate and the service timeout rate is 0.8, and the Granger causality test P value is 0.01<0.05, indicating a significant causal relationship. When the hit rate drops from 80% to 20%, the penalty intensity is dynamically increased to 1.5 times to guide model adjustment. For the traffic data of the border switch, access switch, and aggregation switch, sliding windows are set according to seconds, minutes, and 5 minutes, respectively, and 18 features such as flow rate and packet rate are extracted to reconstruct the state space. When it is detected that the service interruption exceeds 1 minute and the network delay is higher than 500ms for 5 minutes, the forgetting factor is increased from 0.9 to 0.99, the negative reward is doubled, the exploration rate is reduced by 90%, and the conservative learning state is entered. For DDoS attack scenarios, a reward prior is set, and the average reward value of the last 10 attacks is taken as the prior mean. The standard deviation is set to 20% of the mean to construct a Gaussian distribution.

[0164] When the reward value of the new strategy is lower than the prior mean by 2 standard deviations, the manual guidance exploration direction is triggered. Adaptive dynamic programming is used, and the initial discount factor is set to 0.9. For each successful avoidance of an exception, the discount factor is reduced by 0.05, and for each failure, the discount factor is increased by 0.1. The short-term and long-term rewards are weighed to improve the adaptability of the strategy.

[0165] Specifically, the communication behavior characteristics of hosts in different network areas are extracted in real time through network traffic mirroring and deep packet inspection methods, including IP addresses, port numbers, protocol types, message lengths, etc. A regional threat assessment model is built based on the attack graph, and factors such as attacker capabilities, vulnerability distribution, and attack paths are comprehensively considered to design a threat scoring index system. The security status of each area is quantitatively analyzed to obtain a regional threat index as a basis for dynamically adjusting the blocking level.

[0166] According to the learning results of the Q-Learning algorithm, the abnormal traffic patterns of each defense link in response to common attacks are analyzed. For DDoS attacks, stricter blocking measures are taken in border protection. For port scanning, source IP restrictions are strengthened in the access authentication link. By evaluating the possibility of different attacks in each link, the blocking level of defense measures such as border protection, access authentication, and traffic cleaning is adjusted differently.

[0167] Use graphical modeling tools to draw task execution flow charts, marking the geographical location distribution and collaboration methods involved in different stages. Through structured analysis, extract data flow patterns such as local collaboration and remote collaboration, and build a cross-regional communication whitelist for targeted release. If the task is mainly in the same location, perform identity authentication and legitimacy checks on the traffic whose source IP and destination IP belong to the same local network segment during the network access phase, set it as trusted traffic, and appropriately relax the blocking level during traffic supervision and QoS assurance. If the task is mainly remote collaboration, use secure tunneling technologies such as IPSec to encrypt and transmit cross-regional business traffic.

[0168] Based on the trustworthiness of users and devices, fine-grained access control and security policy management are performed on cross-regional traffic, including setting up independent remote access channels in the traffic scheduling link to release necessary traffic. The time schedule and key nodes of the integrated tasks are used to dynamically adjust the release strategy of cross-regional traffic, including using reinforcement learning algorithms to optimize the release rules in real time, dynamically adjusting the reward and punishment functions according to the task progress and risk assessment, weighing the benefits and risks brought by the release, and adaptively generating the optimal strategy. Algorithms such as Markov decision process and Monte Carlo tree search are used to evaluate and optimize cross-regional traffic control measures to improve the real-time and effectiveness of strategy formulation.

[0169] For example, a regional threat assessment model is built based on the attack graph. Network topology and vulnerability information is obtained through asset mapping, vulnerability scanning, etc., and 5,000 attack events are extracted from the threat intelligence library. The attack path prediction model is trained using a neural network algorithm, and the threat score of each region is calculated to generate a threat index of 0-100. When the index is greater than 80, the blocking threshold of the DDoS protection rule is lowered by 20%, and when the index is less than 20, the threshold is increased by 30%. By analyzing the frequency and timing characteristics of data packets such as TCPSyn and TCPAck, the isolation forest algorithm is used to detect DDoS attacks. For attack traffic with a confidence level greater than 99%, it is directly discarded at the access switch.

[0170] Visio is used to draw task flow charts for cross-regional collaboration, and key scenarios such as file sharing and remote meetings are marked. Business process mining algorithms are used to analyze the data exchange patterns between different departments, and it is found that the data request from department A to department B accounts for 78%, and most of them are large file transfers. Therefore, TCP traffic of more than 1G between the A and B intranets is specifically released, and sensitive data is filtered through the DLP system. For cross-regional VPN links, IPSec tunnels are deployed and the national secret SM2 and SM4 algorithms are used for encryption and authentication. Based on the idea of ​​combining the RBAC model and the ABAC model, a fine-grained cross-domain access control strategy is designed. By analyzing user behavior in the past 7 days, 20 high-confidence abnormal access patterns are identified using the association rule mining algorithm.

[0171] The PPO algorithm in reinforcement learning is used to update the release strategy every 30 minutes. The state space contains 18 features such as threat index, traffic statistics, and task progress. The reward function comprehensively considers factors such as task completion rate, delay jitter rate, and number of security incidents. After 1,000 rounds of training, the average reward value increased from 0.2 to 0.9.

[0172] Build a trusted strategy coordination mechanism based on blockchain and a security model sharing mechanism driven by federated learning; through the federated learning framework, realize cross-regional threat intelligence sharing and security model collaborative training under the premise of protecting data privacy, further enhance the detection performance and generalization ability of machine learning algorithms, and thus significantly improve the overall security protection level of the system in response to regional emergencies. Build a blockchain network on the Ethereum platform, use the Solidity language to write identity authentication and authorization management smart contracts, and use the Truffle framework for automated testing. Through the federated learning framework PySyft, cross-regional anomaly detection model training is realized without leaking original data, and the model accuracy rate is increased from 85% to.

[0173] Furthermore, the operation of network port blocking is monitored, and performance evaluation indicators and abnormal alarm rules are formulated. If a blocking device encounters a performance bottleneck or abnormal interruption that exceeds the preset concurrent connection threshold, the backup device is quickly switched through traffic mirroring and session persistence methods, and the emergency response process is initiated. At the same time, traffic restrictions and session migration are performed according to the severity of the incident.

[0174] Specifically, SNMP, Syslog and other protocols are used to collect key performance indicators and operating status data such as CPU utilization, memory occupancy, new connection rate, number of concurrent sessions, and connection table utilization from different types of network port protection devices such as firewalls, IDS, and WAF, and report them to the monitoring platform for centralized analysis and visual display. Differentiated alarm rules are formulated for different types of equipment, and machine learning algorithms are used to dynamically learn and refresh the historical performance baseline of the equipment. Abnormal fluctuations and change trends are discovered in a timely manner through multi-indicator joint analysis. When the threshold is exceeded, an alarm is automatically triggered and the alarm level is divided according to the degree of deviation.

[0175] Deploy an SDN controller based on the NETCONF protocol at the traffic convergence point, mirror suspected attack traffic with a certain sampling granularity by issuing standard OpenFlow flow table rules, and use the session-maintained hash strategy and load balancing algorithm to divert the mirrored traffic to the DPI deep detection cluster to achieve real-time analysis of the entire traffic and abnormal behavior identification, and link with security devices such as IPS to form a closed-loop abnormal traffic disposal. For identified malicious traffic such as DDoS attacks and port scans, automatically generate refined filtering rules, call the management interface or customized tools provided by the blocking device manufacturer, quickly issue and deploy security policies, and give priority protection to key business traffic.

[0176] Combined with the business priority and risk level, differentiated speed limit, offline, redirection and other treatments are carried out for abnormal sessions, and gray list, blacklist, whitelist, reputation score and other mechanisms are flexibly used to achieve refined traffic control. Build a highly available master-slave architecture, and use tools such as Keepalived and Pacemaker to achieve fault switching and state synchronization when the blocking device fails or has serious performance bottlenecks. The rapid drift of virtual IP addresses is completed through the VRRP protocol to ensure seamless migration of business traffic. Initiate emergency plans according to the severity of the incident, formulate quantitative event evaluation standards, comprehensively consider multiple dimensional factors such as the scope of impact, duration, attack intensity, business loss, etc., and clarify the emergency response measures corresponding to events of different levels; standardize and automate the alarm, analysis, decision-making, disposal and other links, and realize automatic arrangement and execution of emergency response processes through predefined workflows and scripts, greatly shortening the event processing time. Afterwards, review the entire emergency response process, sort out problems and deficiencies, and optimize and adjust the configuration parameters, protection strategies, alarm thresholds, etc. of the blocking device in combination with the cause analysis of the failure.

[0177] For example, by deploying ZabbixAgent to collect the core indicators of the network port protection device, the data is reported every 5 seconds. The firewall focuses on CPU utilization, memory usage, etc., the IDS focuses on the rate of new connections, the time taken to parse HTTP requests, etc., and the WAF focuses on the peak of concurrent sessions, the response error rate, etc. The ONE algorithm is used to perform unsupervised anomaly detection on each indicator. When the confidence reaches 4σ or above, an advanced alarm is triggered, and K-Means clustering is enabled to identify the root cause of the alarm. The SDN controller mirrors the traffic ratio of 1:1000 from the core switch to the bypass detection cluster every 30 seconds. The detection node is accelerated based on DPDK and realizes multi-core load balancing through RSS, RPS, etc. The DPI engine is based on the nDPI protocol parsing library, combined with XDP technology to filter obvious scanning and detection behaviors, and matches the remaining suspicious traffic with a custom Hyperscan feature library. Traffic with a threat intelligence hit rate of >80% is automatically sent to SuricataIPS for blocking. For unknown threats, the SIEM is linked to associate the relevant session information (AppID, Url, Cookie, etc.) with the global security log for source tracing. WAF performs feature engineering on common OWASP Top 10 vulnerabilities, extracts 62 traffic statistical features (flow rate, MTU, etc.) and 89 HTTP features (User-Agent, POST packet length, etc.), and builds a LightGBM classification model to achieve real-time detection and risk scoring.

[0178] When evaluating the severity of an incident, we use the analytic hierarchy process to construct a judgment matrix, score the vulnerability score, traffic share, and key assets, calculate the weight vector [0.2, 0.5, 0.3], and then select 5 secondary indicators for each dimension. For example, the secondary indicator of traffic share includes the current bandwidth utilization rate, the month-on-month growth rate of abnormal traffic, etc. The final weighted score is obtained, and emergency disposal is initiated when the score exceeds 85 points. We link Ansible to automatically distribute emergency plans such as local back-source or cross-computer room switching. The process orchestration engine parses the event definition of the BPMN2.0 standard to achieve rapid decision-making response for abnormal traffic speed limit, blocking, and redirection. In the review stage, we use the Neo4j graph database to build a knowledge graph. The nodes include equipment, events, personnel, environment, etc., and the edge relationships include disposal, impact, trigger, etc. We use the Cypher query language to quickly locate management weaknesses. On the digital twin platform, we build a simulation environment with a 4:1 device ratio, replay attack traffic based on the Locust traffic generation engine, and conduct an attack and defense confrontation evaluation on the protection plan. We use our self-developed reinforcement learning engine to continuously iterate and optimize blocking strategies, obtain status (traffic statistics, CPU load, etc.) through environmental interaction, execute actions (blocking, speed limiting, alarming, etc.), and use reward functions (taking into account business continuity, threat coverage, etc.) to guide learning. On average, the event detection rate and handling efficiency are improved by 5% every 10,000 iterations, achieving adaptive dynamic tuning of the strategy.

[0179] The perceptual security protection method based on the network port protection device disclosed in the present invention first evaluates the network attack risk level faced by each task space area from the two dimensions of attack possibility and impact severity through the risk assessment matrix method. Then, the fuzzy comprehensive evaluation method is used, combined with the risk level in the risk assessment report, and the network segment range controlled by the attacker and the network level of the blocked object are used as evaluation factors to construct a fuzzy evaluation matrix to determine the network port granularity that needs to be blocked. On this basis, the present invention adopts a 0-1 integer programming model to obtain the communication port number range according to the time requirements and personnel scale of the work task, and optimizes the network security protection efficiency with task real-time and communication coverage as constraints, and reasonably selects the communication port type of the blocked object. In addition, according to the network topology position and performance parameters of the network port protection device, the support vector machine model is used to fuse the traffic and behavior characteristics of the blocked object, and a multi-level network port blocking model is deployed to monitor and block abnormal network traffic in real time. In order to improve the blocking efficiency, the present invention also uses the Q-Learning reinforcement learning algorithm to associate and analyze the effect data of the network port blocking with the collaborative mode of the task. The reward value guides the model to adaptively adjust the strictness and port granularity of the blocking strategy to achieve the best network security protection effect. At the same time, performance evaluation indicators and abnormal alarm rules are formulated. Once the blocking device encounters a performance bottleneck or abnormal interruption, the traffic mirroring and session persistence technology are immediately used to quickly switch to the backup device, and traffic restriction and session migration measures are taken according to the severity of the incident. In general, the present invention can effectively improve the efficiency and response speed of network security protection, while ensuring the smooth execution of key tasks and the stable operation of the network system.

[0180] Another embodiment of the present invention provides a perception security protection system based on a network port protection device. For details, see Figure 6 , Figure 6 The structure diagram of the perception security protection system based on the network port protection device provided in one embodiment of the present invention is shown. It includes the following modules: acquisition module 11, planning module 12, adjustment module 13, blocking module 14, construction module 15, output module 16, wherein:

[0181] An acquisition module, used to acquire level parameters of the network transmission event currently transmitted by the network port, wherein the level parameters include event confidentiality level, event time level and event personnel level;

[0182] A planning module, used to predict the network attack risk level faced by the network transmission event based on the confidentiality level and risk matrix method, and determine the corresponding network port blocking granularity plan according to the network attack risk level;

[0183] An adjustment module, configured to adjust a port communication strategy in a network topology of the network transmission event by using a 0-1 integer programming method based on the event time level and the event personnel level;

[0184] A blocking module, used to control the network port protection device to block the network port to be blocked according to the blocking network port granularity scheme and the port communication strategy, and to obtain in real time the location distribution and device parameters of the network port protection device in the network topology and the traffic characteristics and behavior characteristics of the network port to be blocked;

[0185] A construction module, used to construct a multi-level network port blocking model according to the location distribution, the device parameters, the traffic characteristics and the behavior characteristics;

[0186] The output module is used to input the real-time detected network port transmission event data into the multi-level network port blocking model during the actual security protection process, and determine the corresponding blocking strategy based on the output result of the multi-level network port blocking model.

[0187] Preferably, in the embodiment of the present invention, the planning module is further used for:

[0188] Acquire historical attack information, and extract a decision attribute set that affects the selection of blocking granularity from the historical attack information;

[0189] Using the hierarchical analysis method to compare the importance of each decision attribute in the decision attribute set, and obtain the weight of each decision attribute in the decision attribute set;

[0190] Quantifying each decision attribute in the decision attribute set, constructing a fuzzy evaluation matrix according to the quantized values ​​and corresponding weights, and obtaining the comprehensive evaluation membership of each area of ​​the fuzzy evaluation matrix through fuzzy matrix synthesis operation;

[0191] The network port blocking granularity scheme is optimized according to the comprehensive evaluation membership.

[0192] Preferably, in the embodiment of the present invention, the adjustment module is specifically used for:

[0193] Extracting the flow index of each communication port in the network topology, and constructing a port cascade matrix by performing correlation analysis and statistical modeling on the flow index, wherein the port cascade matrix reflects the dependency strength between each port;

[0194] Based on the port dependency constraints of the port cascade matrix, the event time level constraints and the event personnel level constraints, a 0-1 integer programming model with ports as basic units is established;

[0195] Solve the 0-1 integer programming model and configure the port communication strategy according to the obtained optimal solution.

[0196] Preferably, in an embodiment of the present invention, the network port protection device includes an electronic safety lock and an electronic key.

[0197] Preferably, in the embodiment of the present invention, the building module is specifically used for:

[0198] The multi-level network port blocking model is constructed by integrating location distribution, equipment parameters, traffic characteristics and behavioral characteristics using the support vector machine algorithm. The multi-level network port blocking model includes a convergence layer model, an access layer model and a core layer model. The convergence layer model is used to focus on the frequency of external connections of the source IP, the access layer model is used to focus on the number of sensitive port scans of the destination IP, and the core layer model is used to focus on the sudden increase in cross-segment communication traffic.

[0199] Preferably, in an embodiment of the present invention, the network port transmission event data includes network port transmission event data at the network level, and the blocking strategy includes discarding processing; then, the output module is specifically used to:

[0200] Performing abnormality judgment on the network port transmission event data at different network layers, and setting a dynamic threshold matching the link bandwidth and the device processing capability according to the abnormality judgment result;

[0201] When the multi-level network port blocking model detects that the amplitude of network port transmission event data at the network layer exceeds the dynamic threshold, the network port transmission event data is identified as malicious traffic data and the malicious traffic data is discarded.

[0202] Preferably, in the embodiment of the present invention, the output module is specifically used for:

[0203] Through the association of traffic probes and logs, malicious traffic data blocked by network blocking devices at different network levels and task coordination data when handling the malicious traffic data are obtained;

[0204] Using a signature-based IDS intrusion detection system to identify and classify the malicious traffic data and obtain blocking effect data;

[0205] The blocking strategy is optimized based on the task coordination data and the blocking effect data.

[0206] Preferably, in the embodiment of the present invention, the output module is further specifically used for:

[0207] Based on the task collaboration data and the blocking effect data, a Q-Learning reinforcement learning algorithm is used to guide and optimize a multi-level network port blocking model through reward values;

[0208] Adjust the blocking strategies at each level based on the optimized multi-level network port blocking model.

[0209] Preferably, in the embodiment of the present invention, the output module is further specifically used for:

[0210] If an abnormal event is detected on a blocking device, the backup device is quickly switched through traffic mirroring and session preservation methods, the emergency response process is initiated, and traffic restriction and session migration are performed according to the severity of the abnormal event.

[0211] Another embodiment of the present invention provides a perception security protection device based on a network port protection device. For details, see Figure 7 , Figure 7 A schematic diagram of a perception security protection device based on a network port protection device provided in one embodiment of the present invention is shown, including a processor 21, a memory 22, and a computer program stored in the memory 22 and configured to be executed by the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned perception security protection method embodiment based on the network port protection device are implemented, for example Figure 1 or, the processor 21 implements the functions of each module in the above-mentioned device embodiments, such as the acquisition module 11, when executing the computer program.

[0212] Exemplarily, the computer program can be divided into one or more modules, and the one or more modules are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the perception security protection device based on the network port protection device. For example, the computer program can be divided into an acquisition module 11, a planning module 12, an adjustment module 13, a blocking module 14, a construction module 15, and an output module 16.

[0213] The processor 21 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 gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the perception safety protection device based on the network port protection device, and uses various interfaces and lines to connect the various parts of the entire perception safety protection device based on the network port protection device.

[0214] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the perception safety protection device based on the network port protection device by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0215] Wherein, if the module integrated with the perception safety protection device based on the network port protection device 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, 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, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, 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, etc.

[0216] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0217] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to perform the steps in the perception security protection method based on the network port protection device of the above embodiment, for example Figure 1 Steps S1 to S7 described in .

[0218] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A perception security protection method based on a network port protection device, characterized in that: Applied to a network topology connected to a network port protection device, the security perception method based on the network port protection device includes the following steps: Obtaining level parameters of the network transmission event currently transmitted by the network port, wherein the level parameters include event confidentiality level, event time level and event personnel level; Predicting the network attack risk level faced by the network transmission event based on the event confidentiality level and risk matrix method, and determining the corresponding network port blocking granularity scheme according to the network attack risk level; Based on the event time level and the event personnel level, a 0-1 integer programming method is used to adjust the port communication strategy in the network topology; Controlling the network port protection device to block the network port to be blocked according to the blocking network port granularity scheme and the port communication strategy, and respectively obtaining the location distribution, device parameters, real-time traffic characteristics and real-time behavior characteristics of the network port to be blocked of the network port protection device in the network topology; the network port protection device includes an electronic safety lock and an electronic key; Constructing a multi-level network port blocking model according to the location distribution, the device parameters, the real-time traffic characteristics, and the real-time behavior characteristics; In the actual security protection process, the network port transmission event data detected in real time is input into the multi-level network port blocking model, and the corresponding blocking strategy is determined based on the output result of the multi-level network port blocking model; the network port transmission event data includes network layer network port transmission event data, and the blocking strategy includes discarding processing; the network port transmission event data detected in real time is input into the multi-level network port blocking model, and the corresponding blocking strategy is determined based on the output result of the multi-level network port blocking model, including: Performing abnormality judgment on the network port transmission event data at different network layers, and setting a dynamic threshold matching the link bandwidth and the device processing capability according to the abnormality judgment result; When the multi-level network port blocking model detects that the amplitude of network port transmission event data at the network layer exceeds the dynamic threshold, the network port transmission event data is identified as malicious traffic data and the malicious traffic data is discarded.

2. The perception security protection method based on the network port protection device according to claim 1 is characterized in that: After determining the corresponding network port blocking granularity scheme according to the network attack risk level, it also includes: Acquire historical attack information, and extract a decision attribute set that affects the selection of blocking granularity from the historical attack information; Using the hierarchical analysis method to compare the importance of each decision attribute in the decision attribute set, and obtain the weight of each decision attribute in the decision attribute set; Quantifying each decision attribute in the decision attribute set, constructing a fuzzy evaluation matrix according to the quantized values ​​and corresponding weights, and obtaining the comprehensive evaluation membership of each area of ​​the fuzzy evaluation matrix through fuzzy matrix synthesis operation; The network port blocking granularity scheme is optimized according to the comprehensive evaluation membership.

3. The perception security protection method based on the network port protection device according to claim 1 is characterized in that: The step of adjusting the port communication strategy in the network topology of the network transmission event based on the event time level and the event personnel level by using a 0-1 integer programming method includes: Extracting the flow index of each communication port in the network topology, and constructing a port cascade matrix by performing correlation analysis and statistical modeling on the flow index, wherein the port cascade matrix reflects the dependency strength between each port; Based on the port dependency constraints of the port cascade matrix, the event time level constraints and the event personnel level constraints, a 0-1 integer programming model with ports as basic units is established; Solve the 0-1 integer programming model and configure the port communication strategy according to the obtained optimal solution.

4. The perception security protection method based on the network port protection device according to claim 1 is characterized in that: The constructing of a multi-level network port blocking model according to the location distribution, the device parameters, the real-time traffic characteristics and the real-time behavior characteristics includes: The multi-level network port blocking model is constructed by integrating location distribution, equipment parameters, traffic characteristics and behavioral characteristics using the support vector machine algorithm. The multi-level network port blocking model includes a convergence layer model, an access layer model and a core layer model. The convergence layer model is used to focus on the frequency of external connections of the source IP, the access layer model is used to focus on the number of sensitive port scans of the destination IP, and the core layer model is used to focus on the sudden increase in cross-segment communication traffic.

5. The perception security protection method based on the network port protection device according to claim 1 is characterized in that: After inputting the real-time detected network port transmission event data into the multi-level network port blocking model and determining the corresponding blocking strategy based on the output result of the multi-level network port blocking model, the method further includes: Through the association of traffic probes and logs, malicious traffic data blocked by network port protection devices at different network levels and task coordination data when handling the malicious traffic data are obtained; Using a signature-based IDS intrusion detection system to identify and classify the malicious traffic data and obtain blocking effect data; The blocking strategy is optimized based on the task coordination data and the blocking effect data.

6. The perception security protection method based on the network port protection device according to claim 5 is characterized in that: The optimizing the multi-level network port blocking model based on the task collaboration data and the blocking effect data includes: Based on the task collaboration data and the blocking effect data, a Q-Learning reinforcement learning algorithm is used to guide and optimize a multi-level network port blocking model through reward values; Adjust the blocking strategies at each level based on the optimized multi-level network port blocking model.

7. The perception security protection method based on the network port protection device according to claim 6 is characterized in that: Also includes: If the multi-level network port blocking model monitors an abnormal event in a blocking device, the backup device is quickly switched through traffic mirroring and session preservation methods, the emergency response process is started, and traffic restriction and session migration are performed according to the severity of the abnormal event.

8. A perception security protection system based on a network port protection device, characterized in that: Applied to a network topology connected to a network port protection device, the perception security protection system based on the network port protection device includes the following modules: An acquisition module, used to acquire level parameters of the network transmission event currently transmitted by the network port, wherein the level parameters include event confidentiality level, event time level and event personnel level; A planning module, used to predict the network attack risk level faced by the network transmission event based on the event confidentiality level and risk matrix method, and determine the corresponding network port blocking granularity plan according to the network attack risk level; An adjustment module, configured to adjust the port communication strategy in the network topology of the network transmission event by using a 0-1 integer programming method based on the event time level and the event personnel level; A blocking module, used to control the network port protection device to block the network port to be blocked according to the blocking network port granularity scheme and the port communication strategy, and to obtain in real time the location distribution and device parameters of the network port protection device in the network topology and the traffic characteristics and behavior characteristics of the network port to be blocked; The network port protection device includes an electronic safety lock and an electronic key; A construction module, used to construct a multi-level network port blocking model according to the location distribution, the device parameters, the traffic characteristics and the behavior characteristics; The output module is used to input the real-time detected network port transmission event data into the multi-level network port blocking model during the actual security protection process, and determine the corresponding blocking strategy based on the output result of the multi-level network port blocking model; the network port transmission event data includes the network layer network port transmission event data, and the blocking strategy includes discarding processing; the output module is specifically used to: Performing abnormality judgment on the network port transmission event data at different network layers, and setting a dynamic threshold matching the link bandwidth and the device processing capability according to the abnormality judgment result; When the multi-level network port blocking model detects that the amplitude of network port transmission event data at the network layer exceeds the dynamic threshold, the network port transmission event data is identified as malicious traffic data and the malicious traffic data is discarded.

9. The perception safety protection system based on the network port protection device according to claim 8 is characterized in that: The planning module is also used for: Acquire historical attack information, and extract a decision attribute set that affects the selection of blocking granularity from the historical attack information; Using the hierarchical analysis method to compare the importance of each decision attribute in the decision attribute set, and obtain the weight of each decision attribute in the decision attribute set; Quantifying each decision attribute in the decision attribute set, constructing a fuzzy evaluation matrix according to the quantized values ​​and corresponding weights, and obtaining the comprehensive evaluation membership of each area of ​​the fuzzy evaluation matrix through fuzzy matrix synthesis operation; The network port blocking granularity scheme is optimized according to the comprehensive evaluation membership.

10. The perception safety protection system based on the network port protection device according to claim 8, characterized in that: The adjustment module is specifically used for: Extracting the flow index of each communication port in the network topology, and constructing a port cascade matrix by performing correlation analysis and statistical modeling on the flow index, wherein the port cascade matrix reflects the dependency strength between each port; Based on the port dependency constraints of the port cascade matrix, the event time level constraints and the event personnel level constraints, a 0-1 integer programming model with ports as basic units is established; Solve the 0-1 integer programming model and configure the port communication strategy according to the obtained optimal solution.

11. The perception security protection system based on the network port protection device according to claim 8, characterized in that: The building blocks are specifically used for: The multi-level network port blocking model is constructed by integrating location distribution, equipment parameters, traffic characteristics and behavioral characteristics using the support vector machine algorithm. The multi-level network port blocking model includes a convergence layer model, an access layer model and a core layer model. The convergence layer model is used to focus on the frequency of external connections of the source IP, the access layer model is used to focus on the number of sensitive port scans of the destination IP, and the core layer model is used to focus on the sudden increase in cross-segment communication traffic.

12. The perception security protection system based on the network port protection device according to claim 8, characterized in that: The output module is specifically used for: Through the association of traffic probes and logs, malicious traffic data blocked by network blocking devices at different network levels and task coordination data when handling the malicious traffic data are obtained; Using a signature-based IDS intrusion detection system to identify and classify the malicious traffic data and obtain blocking effect data; The blocking strategy is optimized based on the task coordination data and the blocking effect data.

13. The perception safety protection system based on the network port protection device according to claim 12, characterized in that: The output module is further specifically used for: Based on the task collaboration data and the blocking effect data, a Q-Learning reinforcement learning algorithm is used to guide and optimize a multi-level network port blocking model through reward values; Adjust the blocking strategies at each level based on the optimized multi-level network port blocking model.

14. The perception safety protection system based on the network port protection device according to claim 13, characterized in that: The output module is further specifically used for: If the multi-level network port blocking model monitors an abnormal event in a blocking device, the backup device is quickly switched through traffic mirroring and session preservation methods, the emergency response process is started, and traffic restriction and session migration are performed according to the severity of the abnormal event.

15. A perception safety protection device based on a network port protection device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the perception security protection method based on the network port protection device as described in any one of claims 1-7.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the perception security protection method based on the network port protection device as described in any one of claims 1-7.