Multi-network port protection method, device, electronic device and storage medium
By identifying abnormal characteristics through data mining and decision tree models, and combining distributed decision-making to generate defense strategies, it solves the problem that existing technology is difficult to respond to changes in network attack patterns in a timely manner, and improves the response capabilities and stability of network security.
Patent Information
- Application Number
- CN202410917205.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-10
AI Technical Summary
Existing security defense mechanisms are difficult to update and adapt to changes in network attack patterns in a timely manner, and cannot generate matching defense strategies based on the current network port attack patterns.
Use data mining technology to identify the normal range of network port monitoring data, obtain abnormal characteristics of abnormal patterns, use decision tree models to perform threat ratings, generate defense strategies through distributed decision-making based on local security policies and threat ratings, and dynamically adjust blocking strategies.
It achieves accurate identification and response to abnormal characteristics, quickly responds to high-threat attacks, improves network response capabilities, and ensures the stability and security of the network system.
Smart Images

Figure CN118473826B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of security protection technology, and in particular to a multi-network port protection method, device, electronic equipment and storage medium. Background Art
[0002] With the increasing complexity and variability of the network environment and the continuous evolution of network attack methods, traditional security defense mechanisms are facing new challenges. Network blocking equipment is an important device for network security protection. Its main function is to monitor network traffic and identify and block malicious traffic according to pre-set rules to protect network systems from various network attacks and threats.
[0003] The existing security protection method is to establish a network traffic monitoring mechanism, monitor network traffic and port activities in real time, use a network behavior analysis system to monitor network traffic and user behavior, and use statistical analysis methods to identify normal and abnormal behaviors, and adjust port defense strategies based on abnormal behaviors. Since the patterns of network attacks are constantly changing, it is difficult for existing methods to update and adapt to new attack patterns in a timely manner, and it is impossible to generate matching defense strategies in a timely manner based on the current network port attack patterns. Summary of the invention
[0004] The present invention provides a multi-network port protection method, device, electronic equipment and storage medium, which solve the problem that a defense strategy matching the current network port attack mode cannot be generated in time.
[0005] According to one aspect of the present invention, the present invention provides a multi-network port protection method, including: using data mining technology to obtain a normal range of historical data from historical network port monitoring data, obtaining monitoring data of the current network port, and if the monitoring data exceeds the normal range, judging the monitoring data to be an abnormal mode, and obtaining abnormal features of the abnormal mode; sharing the abnormal features, using a decision tree model to perform threat rating on the abnormal features, and classifying the network ports with the abnormal features; generating a defense strategy through distributed decision-making based on local security policies, network port categories and the threat rating.
[0006] Furthermore, the data mining technology is used to obtain the normal range of the historical data for the historical port monitoring data, and the monitoring data of the current port is obtained. If the monitoring data exceeds the normal range, the monitoring data is judged to be an abnormal mode, and the abnormal characteristics of the abnormal mode are obtained. Specifically, the normal range of the historical data is obtained by using the data mining technology for the historical port monitoring data; the monitoring data of the current port is obtained, and the monitoring data is cleaned, converted and integrated by the data preprocessing technology to remove noise and redundant data; if the preprocessed monitoring data does not match the normal range, it is judged to be the abnormal mode;
[0007] The abnormal features are obtained by using an information gain algorithm and a chi-square test algorithm, wherein the abnormal features include network features and behavior features.
[0008] Furthermore, the method also includes: using a support vector machine algorithm to divide the normal range and output a network behavior analysis report, wherein the network behavior analysis report includes a pattern description, statistical information and a visual display.
[0009] Furthermore, the sharing of the abnormal features, the use of a decision tree model to perform threat rating on the abnormal features, and the classification of network ports with the abnormal features, specifically: using a trusted automatic intelligence information exchange protocol to share the threat information of the abnormal features in real time, if the threat information is received, the attack type, source IP address and destination port of the threat information are extracted as input features of the decision tree model; the threat information is rated through feature splitting and threshold comparison operations, if the threat rating reaches a preset threshold, the network port blocking action is triggered, the source network port of the threatening traffic is identified, and the source network port is added to the firewall's blocking list; through the AC multi-mode matching algorithm, the source network ports in the blocking list are grouped and classified, and the common features of the network ports are extracted to form a defense strategy rule library for guiding the rapid identification and blocking of subsequent threatening traffic; according to the defense strategy rule library, the blocking strategy of the network port is dynamically adjusted, for the network port where threatening traffic often occurs, the blocking time is extended, and for the network port where threats are less likely to occur, the blocking time is shortened.
[0010] Furthermore, the method also includes: after sharing the abnormal features, deploying abnormal feature detection rules for network devices using intrusion detection technology; comparing the monitoring data with the abnormal features through a feature matching algorithm to determine whether there is abnormal behavior, and if a matching abnormal feature is detected, identifying the abnormal behavior as a potential network threat, triggering a threat alarm, and recording the threat information, wherein the threat information includes attack characteristics, occurrence time and impact range; distributing the threat information to all network devices using broadcast or unicast according to the network topology, and updating the local abnormal feature detection rules after receiving the threat information.
[0011] Furthermore, the defense strategy is generated through distributed decision-making based on the local security policy, the network port category and the threat rating, specifically: based on the network port category, the local security policy and the threat rating, as the input of the distributed decision, the blockchain-based smart contract technology is adopted to deploy the distributed decision logic in the form of code to each network port blocking device; the smart contract executes predefined decision rules, executes the decision to disconnect the network port with a high threat rating, and executes the decision to limit the flow or issue an alarm for the network port with a low threat rating, and outputs the defense strategy based on the decision rules.
[0012] Furthermore, the method also includes: after outputting the defense strategy, signing the defense strategy through an elliptic curve digital signature algorithm, and sharing the defense strategy in a blockchain network; using a distributed hash table to obtain the signature of the defense strategy and verifying the validity of the signature; executing processing actions in the defense strategy, wherein the processing actions include disconnection, current limiting and alarm.
[0013] According to another aspect of the present invention, a multi-network port protection device is provided, including: a data collection module, the data collection module is used to obtain monitoring data of the network port, and use data mining technology to derive a normal range of the monitoring data. If the monitoring data exceeds the normal range, the monitoring data is judged to be an abnormal mode, and the abnormal characteristics of the abnormal mode are obtained; an information sharing module, the information sharing module is used to share the abnormal characteristics, use a decision tree model to perform threat rating on the abnormal characteristics, and classify the network ports with the abnormal characteristics; a distributed decision module, the distributed decision module is used to generate a defense strategy through distributed decision-making according to local security policies, network port categories and the threat rating.
[0014] According to another aspect of the present invention, there is provided an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor;
[0015] Among them, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any multi-network port protection method in the embodiments of the present invention.
[0016] According to another aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute any multi-network port protection method in the embodiments of the present invention.
[0017] According to the technology of the present invention, by adopting data mining technology, it is possible to accurately identify the normal range of network port detection data and timely obtain abnormal features of abnormal patterns, which helps network equipment to quickly detect abnormal features and transmit information, and achieve accurate abnormal identification and response. By sharing threat information in real time and using a decision tree model to rate the threat of abnormal features, the network security protection system can quickly respond to high-threat attacks and improve the overall network's response capabilities. By equipping local security policies and distributed decision-making mechanisms, it is possible to generate a defense strategy that matches the current network port attack pattern in a timely manner based on the current threat rating.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings are used to better understand the present invention and do not constitute a limitation of the present invention.
[0020] Figure 1 is a flow chart of a multi-network port protection method provided by an embodiment of the present invention;
[0021] Figure 2 It is a flowchart of a specific implementation of step S2 in the multi-network port protection method provided by an embodiment of the present invention;
[0022] Figure 3 is a structural diagram of a multi-network port protection device provided by an embodiment of the present invention;
[0023] Figure 4 is a block diagram of an electronic device for implementing an embodiment of the present invention.
[0024] In the figure, 100, multi-network port protection device; 11, data collection module; 12, information sharing module; 13, distributed decision-making module; 200, electronic device; 201, computing unit; 202, ROM; 203, RAM; 204, bus; 205, I / O interface; 206, input unit; 207, output unit; 208, storage unit; 209, communication unit. DETAILED DESCRIPTION
[0025] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present invention. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0026] Terminology explanation: TAXII stands for Trusted Automated Exchange of Indicator Information, and is a standard for information exchange used to share cyber threat information across product, service, and organizational boundaries. It is a transmission tool for STIX structured threat information.
[0027] STIX is a standardized language developed by MITRE in a collaborative manner. It is a structured information used to represent cyber threats. It is easy to share, store, and use in a consistent way, thus facilitating automated and human-assisted analysis.
[0028] NSA-EternalBlue is an exploit tool used to attack the SMB service in Microsoft's Windows operating system. It exploits a security vulnerability in the Windows operating system, allowing attackers to execute malicious code or remotely control infected computers without authorization.
[0029] WannaCry is a ransomware that triggered a global cyberattack in May 2017. WannaCry exploited a vulnerability that allowed the ransomware to spread quickly and infect hundreds of thousands of computers running the Windows operating system.
[0030] UDP Flood is a network attack method and a form of distributed denial of service attack. In a UDP Flood attack, the attacker sends a large number of forged UDP packets to the target server or network, causing the target system resources to be exhausted, the network to be congested, or the service to be unavailable.
[0031] NETCONF is a network configuration protocol. It is a network management protocol for network device configuration and is used to remotely configure and manage various functions of network devices. NETCONF uses XML message format for data exchange and ensures communication security based on secure transmission protocols.
[0032] DeepQ-Learning is a method that combines deep learning and reinforcement learning to solve action-state based decision-making problems. It is a classic reinforcement learning algorithm used to learn the optimal strategy for taking different actions in different states to maximize long-term cumulative rewards.
[0033] like Figure 1As shown, an embodiment of the present invention discloses a multi-network port protection method, including: S1, using data mining technology to obtain the normal range of historical data from historical network port monitoring data, obtaining the monitoring data of the current network port, and if the monitoring data exceeds the normal range, judging the monitoring data as an abnormal mode, and obtaining the abnormal features of the abnormal mode; S2, sharing the abnormal features, using a decision tree model to perform threat rating on the abnormal features, and classifying the network ports with abnormal features; S3, generating a defense strategy through distributed decision-making according to local security policies, network port categories and threat ratings.
[0034] The multi-network port protection method of the present application, by adopting data mining technology, can accurately identify the normal range of monitoring data and timely obtain abnormal features of abnormal patterns, which helps network equipment to quickly detect abnormal features and transmit information, and achieve accurate abnormal identification and response. By sharing threat information in real time and using decision tree models to rate abnormal features, the network security protection system can quickly respond to high-threat attacks and improve the overall network's response capabilities. By equipping local security policies and distributed decision-making mechanisms, the most appropriate defense strategy can be generated based on the current threat rating.
[0035] By dynamically adjusting the defense policy rule base and selecting the appropriate defense policy based on the current threat rating and local defense policy, intelligent and timely security protection can be achieved, and the network system can more effectively respond to various network threats and attacks, improve the overall network security performance and resilience, and ensure the stable and reliable operation of the network system. By equipping the network port blocking device with security policies and dynamic adjustment mechanisms, it can adjust its defense policy rule base according to the current threat rating and threat rating, so as to timely update and select the most appropriate defense policy, so that defense policies such as disconnecting network ports, limiting traffic and alarm notification can be effectively applied, ensuring that normal network traffic and malicious traffic are effectively distinguished.
[0036] The distributed decision-making system module allows each network port blocking device to independently make a defense strategy, ensuring the consistency and immutability of the decision-making process of the network port blocking device, and preventing network port attacks from tampering with the defense strategy. Based on the current threat rating and local security policy, this feature and decision result will be synchronized to other associated devices in the network through the communication protocol. When a network port is attacked, other network ports in the unit that may be attacked can be quickly protected.
[0037] In an optional embodiment of the present invention, step S1 is specifically as follows: according to the historical network port monitoring data, a normal mode model of the monitoring data is established by using data mining technology to obtain the normal range of the normal mode characteristics; the monitoring data of the current network port is obtained, and the monitoring data is cleaned, converted and integrated by data preprocessing technology to remove noise and redundant data; if the preprocessed monitoring data does not match the normal range of the normal mode characteristics, it is judged as an abnormal mode, and the abnormal characteristics are obtained by the information gain algorithm and the chi-square test algorithm, and the abnormal characteristics include network characteristics and behavior characteristics. The normal mode and the abnormal mode are classified by the support vector machine algorithm to determine the categories and boundaries of the two modes, and a network behavior analysis report is output according to the classification results. The network behavior analysis report includes a mode description, statistical information and a visual display.
[0038] Specifically, network protocol analyzers and network packet capture tools can be used to capture network data packets in real time, and network traffic statistics can be collected through network traffic analysis technology and sampling traffic protocols. At the same time, user behavior data such as user access logs and identity authentication logs can be collected through log analysis tools. By preprocessing the collected massive data, regular expressions, string matching and other methods are used to filter out irrelevant data, and data formatting and structured according to fields such as timestamp, source IP, destination IP, and protocol type. When establishing a normal mode model, statistical methods such as mean, variance, and quantile can be used to calculate the normal range of various indicators, such as the normal peak value of traffic is 1000 packets / s, the normal number of connections is 100 / min, etc. For data points that exceed the normal range, it is determined to be an abnormal mode. For example, if the sudden traffic peak reaches 5000 packets / s, it is determined to be an abnormal mode that has suffered a distributed denial of service attack. Through machine learning algorithms such as support vector machine algorithms and isolation forest algorithms, normal modes and abnormal modes can be accurately divided from multi-dimensional features such as traffic rate, number of connections, and data packet size distribution to obtain the classification boundary of abnormal behavior. Finally, the network behavior analysis report can display the distribution of various behavior patterns through visual charts such as line charts and pie charts. For example, normal users account for 95% and abnormal users account for 5%. It can also deeply analyze the behavioral characteristics of abnormal users through sunrise charts, discover potential security threats, and provide a basis for subsequent security protection.
[0039] Specifically, after identifying the abnormal pattern, data mining technology can be used to conduct in-depth analysis of the abnormal pattern. If a certain IP address is found to initiate scans to multiple target ports in a short period of time, and the number of connections reaches 50 times / min, which is far more than the 3 times / min of normal users, this is determined to be a port scanning attack. By matching with known attack patterns in the threat intelligence library, for example, the feature similarity with the network attack tool "NSA-EternalBlue" reaches more than 90%, it can be determined that the abnormal pattern is the infection behavior of WannaCry ransomware. Further using feature engineering technology, through algorithms such as information gain and chi-square test, the most critical features such as target port number, connection failure rate, and data packet size distribution are extracted from the multi-dimensional network behavior characteristics of the abnormal pattern. Based on the extracted key features, machine learning algorithms such as random forest and neural network are used to build an abnormal pattern detection model to predict the newly collected network behavior in real time. If the abnormal probability of the new behavior sample exceeds the normal threshold such as 0.9, it is determined to be an abnormal pattern and a security alarm is triggered.
[0040] For unknown samples whose prediction results do not match the existing abnormal patterns, clustering algorithms such as density-based clustering algorithms can be used to discover new abnormal pattern clusters with a density of 0.8 and a minimum number of samples of 10 parameters, and update them to the abnormal pattern library. Finally, the analysis results are displayed through a visual dashboard, such as using a radar chart to present multiple risk dimension scores of abnormal IP addresses, and using a matrix tree chart to present the organizational structure of abnormal events, to intuitively show the full picture of abnormal behavior for security managers. At the same time, the detailed attributes of the abnormal pattern are output, including fields such as event ID, detection time, risk level, threat type, attack stage, and source tracing analysis, which are used in security incident response processes such as alarm notification, event investigation, and source tracing.
[0041] like Figure 2As shown, in an optional embodiment of the present invention, step S2 is specifically as follows: S21, using a trusted automatic intelligence information exchange protocol, network port blocking devices share threat information with abnormal characteristics in real time; S22, if the network port blocking device receives threat information, the attack type, source IP address and destination port of the threat information are extracted as input features of the decision tree model, and the threat information is rated through feature splitting and threshold comparison operations; S23, if the threat rating reaches a preset threshold, the network port blocking action is triggered, the source network port of the threat traffic is identified, and the source network port is added to the blocking list; S24, through the AC multi-mode matching algorithm, the source network ports in the blocking list are grouped and classified, and the common features of the network ports with abnormal characteristics are extracted to form a defense strategy rule library for guiding the rapid identification and blocking of subsequent threat traffic; S25, according to the defense strategy rule library, the blocking strategy of the network port blocking device is dynamically adjusted, for the network ports where threat traffic often occurs, the blocking time is extended, and for the network ports where threats rarely occur, the blocking time is shortened.
[0042] The defense policy rule base is a set of rules used in network blocking devices to guide the devices to identify, filter and block network traffic. These rules are usually maintained and updated by network security experts or manufacturers to ensure that network blocking devices can respond to new threats and attacks in a timely and effective manner.
[0043] Specifically, the network ports in the blocking list are grouped and classified through the network port identifier matching algorithm, and common features are extracted to form a blocking rule base to guide the rapid identification and blocking of subsequent threat traffic.
[0044] Specifically, the network port blocking device uses the TAXII protocol, the Hypertext Transfer Protocol as the transport layer security protocol, and STIX as the threat intelligence description language. When device A detects the distributed denial of service attack threat intelligence, it extracts the following indicator information: the attack type is "UDP Flood", the source IP is "192.168.0.100", and the destination port is "80". These indicator information are encapsulated as suspicious activities of STIX2.1 and published to the intelligence sharing channel. Device B subscribes to the channel, receives the newly published information in real time, extracts the attack features, and inputs them into the decision tree sub-model of the distributed denial of service attack.
[0045] The above decision tree model is based on the chi-square test splitting criterion. By calculating the chi-square test statistic of each feature, the "source IP" with the largest value is selected as the primary splitting node to form two child nodes: source IP="192.168.0.100" is the left subtree, and source IP ≠ "192.168.0.100" is the right subtree. The threat score S is calculated for the samples of the tree subnodes of the left subtree:
[0046] S=0.8I1+0.6I2+0.2*I3, where I1, I2, and I3 are characteristic indicators of attack type, destination port, and load size, respectively. If S>=0.85, the threat rating is judged as "high risk", triggering the network port blocking action of device B. Through the FIN_WAIT algorithm, the hash table of device B is traversed to locate the source network port of the distributed denial of service attack traffic and add it to the blocking list. The common features of all network ports in the blocking list are extracted, such as all Ethernet interfaces and the network segment is "192.168.0.0 / 24", which are sent to each network port as the network port blocking rule. When matching rules, the AC multi-mode matching algorithm is used to map the five-tuple of the data packet into a certain finite state automaton. The state transition time complexity is O(N), where N is the length of the five-tuple. For frequently hit rules, such as network ports with more than 100 hits within 1 minute, the blocking time will be extended from the default 10 minutes to 30 minutes; for network ports with fewer hit rules, the blocking time will be shortened to 5 minutes. The five-tuple of the data packet includes: source IP address, destination IP address, source port number, destination port number and transport layer protocol.
[0047] In an optional embodiment of the present invention, it also includes: after sharing the abnormal features, using intrusion detection technology to deploy abnormal feature detection rules for network devices, monitoring network traffic and device logs in real time, and using a feature matching algorithm to compare the traffic and log data collected by the network device with the abnormal features to determine whether there is abnormal behavior. If a matching abnormal feature is detected, the abnormal behavior is identified as a potential network threat, a threat alarm is triggered, and threat information is recorded. The threat information includes attack features, occurrence time and impact range; according to the network topology, the threat information is distributed to all network devices in a broadcast or unicast manner. After receiving the threat information, the local abnormal feature detection rules are updated to build a collaborative defense system to promptly discover and block similar threat attacks.
[0048] Specifically, when the network security team detected a distributed denial of service attack, they found through analyzing network traffic that the number of requests per second abnormally increased to 10,000 times, which was much higher than the normal value, which was no more than 100 times per second. Based on this abnormal feature, the team formulated a detection rule for real-time monitoring of network traffic. The rule sets a traffic threshold of 500 times per second. When the number of requests per second exceeds this threshold, the system will identify it as abnormal behavior and trigger a threat alarm. When recording attack features, the system will encrypt and save key information of the attack. For example, the distributed denial of service attack log at 14:00:00 on March 15, 2012 is encrypted using the AES-256-bit encryption algorithm to ensure that even if the log is intercepted when it is transmitted to other network devices, the details of the attack are difficult to parse.
[0049] In order to safely transmit these encrypted threat intelligence, an encrypted channel is established between network devices through the IPSec protocol. On this channel, the encrypted threat intelligence is sent to the firewall and intrusion detection system at the network boundary in a unicast manner. After receiving the threat intelligence, the firewall decrypts and extracts the key information of the attack. For example, it identifies that the source IP address of the attack is 1916100, and updates the local detection rules to blacklist this IP address. In addition, the information such as the time of occurrence and the scope of impact is updated to the defense strategy to enhance the identification and blocking of future attacks that may come from the same source. These measures build a collaborative defense system, so that other devices in the network can also update their own defense strategies in a timely manner based on the shared intelligence. The intrusion detection system in the intranet also updates the detection algorithm based on the received threat intelligence and sets the corresponding network traffic anomaly threshold. In this way, once the intranet traffic abnormally increases to 500 times / second in a short period of time, it can be detected immediately and corresponding defense measures can be taken.
[0050] In an optional embodiment of the present invention, step S3 is specifically as follows: the network port blocking device uses the blockchain-based smart contract technology as the input of distributed decision-making, and deploys the distributed decision-making logic in the form of code to each network port blocking device; the smart contract executes predefined decision rules, executes a disconnection processing decision for network ports with high threat ratings, and executes a current limiting or alarm processing decision for network ports with low threat ratings, outputs a defense strategy based on the decision rules, signs the defense strategy through the elliptic curve digital signature algorithm, and synchronizes the defense strategy to each network port blocking device in the blockchain network; obtains the signature of the defense strategy based on the distributed hash table, verifies the validity of the signature, and executes the corresponding network port blocking operation according to the processing actions in the defense strategy, which include disconnection, current limiting and alarm, and builds a defense system according to the current network environment and the defense strategy rule library.
[0051] Specifically, a company's network security system detected a potential threat. After analyzing it, the threat intelligence system rated it as high, with a specific threat rating of 8. The highest threat rating on the system is 10. At the same time, it was identified that the threat was targeting the sensitive network port where the company's core server is located. The network port category is level 1, the highest level. According to the company's local security policy, any threat with a score of more than 7 will trigger an immediate disconnection measure for the level 1 network port. Using blockchain-based smart contract technology, this decision logic is encoded and deployed on each network port blocking device. After receiving the input of a threat rating of 8 and a network port category of level 1, the smart contract executes the disconnection processing decision according to the preset rules and outputs the result of this structured defense strategy.
[0052] Subsequently, the system signs the decision certificate of the defense strategy through the elliptic curve digital signature algorithm to generate a digital signature, such as the signature value: 0x1c3a...f4b9. The decision certificate with a signature ensures the authenticity and non-repudiation of the decision. Then, the defense strategy certificate with a digital signature is synchronized to other network port blocking devices in the blockchain network using the IPFS communication protocol. For example, using the distributed hash table technology, the process of quickly locating and obtaining the defense strategy certificate only takes 200 milliseconds. When the associated device receives the defense strategy certificate, it first verifies the validity of the signature, such as using the public key 0x9f..c1a8 to decrypt the signature, which takes 50 milliseconds, and then performs the disconnection blocking operation according to the decision content, and updates the local defense strategy rule library, such as adding a new rule to the library, which takes 10 milliseconds. Through this linkage mechanism, enterprises can effectively block high-risk threats in a short time, thereby building a comprehensive defense system.
[0053] Through the subscription and publishing mechanism, the network port blocking device receives the defense strategy issued by the upper-level security management platform in real time, and obtains command parameters such as blocking the network port, blocking duration, and blocking method; the blocking command parameters in the defense strategy are mapped to configuration models that can be recognized by the device, such as access control lists, bandwidth restrictions, etc., and the configuration data is sent to the network port blocking device through the NETCONF protocol; the network port blocking device verifies the legitimacy of the received configuration data, converts the model into the JSON configuration format inside the device through a syntax parser, and dynamically inserts the blocking rules into the defense strategy rule base through incremental updates; the defense strategy rule base is organized using a prefix tree index structure, and rule features such as quintuples are mapped to the nodes of the tree, which can achieve millisecond-level rule matching.
[0054] At the same time, according to the timestamp information of the rules, expired rules are automatically cleaned up regularly to avoid excessive expansion of the rule base; through network detection technology, the traffic statistics of the network environment where the network port blocking device is located are periodically collected, including traffic rate, number of connections, data packet size distribution, etc., and the anomaly detection algorithm is used to determine whether there are distributed denial of service, scanning, penetration and other threat behaviors in the current network state; if the environmental monitoring module detects that the current network environment is abnormal, the adaptive adjustment mechanism of the defense strategy rule base is triggered. According to the type of abnormal behavior, threat rating and defense strategy rule base, different levels of defense strategies are matched, such as using an alarm strategy for low-level scanning behaviors and a discard strategy for high-level distributed denial of service attacks; through the DeepQ-Learning reinforcement learning algorithm, the network environment status and defense effect in the past period of time are used as training samples, and through continuous trial and error and feedback, the optimal network port defense strategy combination for different threat scenarios is learned, and the learned knowledge is fed back to the defense strategy rule base to achieve automatic optimization and closed-loop iteration of strategy configuration.
[0055] Specifically, an upper-level security management platform detects that a certain network port is suffering from a distributed denial of service attack, and has determined that the attack generates about 100,000 packets per second, far exceeding the normal traffic level of the network port, which is usually around 1,000 packets per second. Based on this assessment, the security management platform issues a blocking decision, and the instruction may contain the following parameters: Block network port: First Ethernet interface, Block duration: 3600 seconds, Block method: Access control list configuration to reject packets from the attack source IP address. The network port blocking device receives these parameters through the subscription and publishing mechanism, and uses the YANG data modeling language to model, mapping the instruction parameters in the defense strategy to a configuration model that the device can recognize. For example, the blocking instruction received by the device may be converted into the following access control list rule, indicating that packets from IP address 191 are rejected from entering the first Ethernet interface, and all other packets are allowed to pass. The network port blocking device sends these configuration data through the NETCONF protocol and verifies the legitimacy of the received configuration data. The network port blocking device will dynamically insert these rules into the defense policy rule base and organize them through the prefix tree index structure to achieve millisecond-level rule matching.
[0056] In terms of network environment monitoring, the device may collect network traffic statistics every 5 minutes. For example, the average traffic rate in the last 5 minutes is 150Mbps, the number of connections is 2,000, and the packet size distribution shows a large number of small packets, which may be a characteristic of a distributed denial of service attack. If the anomaly detection algorithm determines that there is a threat in the current network status, the rule base will automatically adjust the policy. For example, for a distributed denial of service attack, the device may automatically update the access control list to discard traffic from a specific source. Finally, using the DeepQ-Learning reinforcement learning algorithm, the device may be trained based on the network status and defense effect in the past 24 hours. If 15 different security incidents have been handled during this period, the algorithm has learned the optimal defense strategy combination through trial and error and applied it to the defense strategy rule base, reducing the average attack response time from 5 minutes to 3 minutes.
[0057] like Figure 3 As shown, the multi-network port protection device 100 may include:
[0058] The data collection module 11 is used to use data mining technology to obtain the normal range of historical data from historical network port monitoring data, obtain the monitoring data of the current network port, and if the monitoring data exceeds the normal range, determine that the monitoring data is an abnormal mode and obtain the abnormal characteristics of the abnormal mode;
[0059] The information sharing module 12 is used to share abnormal features, use a decision tree model to perform threat rating on the abnormal features, and classify network ports with abnormal features;
[0060] The distributed decision module 13 is used to generate a defense strategy through distributed decision-making according to the local security policy, network port category and threat rating.
[0061] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present invention, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0062] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0063] According to an embodiment of the present invention, the present invention also provides an electronic device, a readable storage medium and a computer program product.
[0064] Figure 4 A schematic block diagram of an example electronic device 200 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0065] like Figure 4 As shown, the device 200 includes a computing unit 201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 202 or a computer program loaded from a storage unit 208 into a random access memory (RAM) 203. In the RAM 203, various programs and data required for the operation of the device 200 can also be stored. The computing unit 201, the ROM 202, and the RAM 203 are connected to each other via a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.
[0066] A number of components in the device 200 are connected to the I / O interface 205, including: an input unit 206, such as a keyboard, a mouse, etc.; an output unit 207, such as various types of displays, speakers, etc.; a storage unit 208, such as a disk, an optical disk, etc.; and a communication unit 209, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 209 allows the device 200 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0067] The computing unit 201 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 201 performs the various methods and processes described above, such as a multi-network port protection method. For example, in some embodiments, a multi-network port protection method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 208. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 200 via the ROM 202 and / or the communication unit 209. When the computer program is loaded into the RAM 203 and executed by the computing unit 201, one or more steps of a multi-network port protection method described above may be performed. Alternatively, in other embodiments, the computing unit 201 may be configured to perform a multi-network port protection method in any other appropriate manner (e.g., by means of firmware).
[0068] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0069] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0070] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0071] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0072] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0073] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0074] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.
[0075] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-network port protection method, characterized in that: include: Using data mining technology to obtain the normal range of historical data from historical network port monitoring data, obtaining the monitoring data of the current network port, and if the monitoring data exceeds the normal range, determining that the monitoring data is an abnormal mode, and obtaining the abnormal characteristics of the abnormal mode; By using a trusted automatic intelligence information exchange protocol, the network port blocking devices share the threat information of the abnormal characteristics in real time. If the network port blocking device receives the threat information, the attack type, source IP address and destination port of the threat information are extracted as input features of the decision tree model; The threat information is rated through feature splitting and threshold comparison operations. If the threat rating reaches a preset threshold, a network port blocking action is triggered to identify the source network port of the threat traffic and add the source network port to the firewall's blocking list. Through the AC multi-mode matching algorithm, the source network ports in the blocking list are grouped and classified, and the common features of the network ports are extracted to form a defense strategy rule library for guiding the rapid identification and blocking of subsequent threat traffic; Generate defense strategies through distributed decision making based on local security policies, network port categories and the threat ratings mentioned.
2. The method according to claim 1, characterized in that The normal range of the historical data is obtained by using data mining technology on the historical network port monitoring data, and the monitoring data of the current network port is obtained. If the monitoring data exceeds the normal range, the monitoring data is judged to be an abnormal mode, and the abnormal characteristics of the abnormal mode are obtained, specifically: Use data mining technology to obtain the normal range of historical data from historical network port monitoring data; Acquire the monitoring data of the current network port, clean, convert and integrate the monitoring data through data preprocessing technology, and remove noise and redundant data; If the pre-processed monitoring data does not match the normal range, it is determined to be the abnormal mode; The abnormal features are obtained by using an information gain algorithm and a chi-square test algorithm, wherein the abnormal features include network features and behavior features.
3. The method according to claim 2, characterized in that The method further comprises: The normal range is divided by using a support vector machine algorithm, and a network behavior analysis report is output, wherein the network behavior analysis report includes a pattern description, statistical information, and a visual display.
4. The method according to claim 1, characterized in that The method further comprises: After sharing the abnormal features, deploying abnormal feature detection rules on network devices using intrusion detection technology; By using a feature matching algorithm, the monitoring data is compared with the abnormal features to determine whether there is abnormal behavior. If a matching abnormal feature is detected, the abnormal behavior is identified as a potential network threat, a threat alarm is triggered, and the threat information is recorded, wherein the threat information includes attack features, occurrence time, and impact range; According to the network topology, the threat information is distributed to all network devices in a broadcast or unicast manner. After receiving the threat information, the local abnormal feature detection rules are updated.
5. The method according to claim 4, characterized in that The defense strategy is generated through distributed decision-making according to the local security policy, network port category and the threat rating, specifically: Based on the network port category, local security policy and the threat rating, as input for distributed decision-making, the distributed decision-making logic is deployed in the form of code to each network port blocking device using blockchain-based smart contract technology; The smart contract executes predefined decision rules, executes disconnection decisions for network ports with high threat ratings, executes current limiting or alarm decisions for network ports with low threat ratings, and outputs defense strategies based on the decision rules.
6. The method according to claim 4, characterized in that The method further comprises: After outputting the defense strategy, the defense strategy is signed by using an elliptic curve digital signature algorithm, and the defense strategy is shared in the blockchain network; Using a distributed hash table to obtain the signature of the defense strategy and verify the validity of the signature; Execute the processing actions in the defense strategy, wherein the processing actions include disconnection, current limiting and alarm.
7. A multi-network port protection device, characterized in that: include: A data collection module, the data collection module is used to use data mining technology to obtain the normal range of historical data for historical port monitoring data, obtain the monitoring data of the current network port, and if the monitoring data exceeds the normal range, determine that the monitoring data is an abnormal mode, and obtain the abnormal characteristics of the abnormal mode; An information sharing module, wherein the information sharing module is used to share the threat information of the abnormal characteristics between network port blocking devices in real time using a trusted automatic intelligence information exchange protocol. If the network port blocking device receives the threat information, the attack type, source IP address and destination port of the threat information are extracted as input features of the decision tree model; Through feature splitting and threshold comparison operations, the threat information is rated. If the threat rating reaches the preset threshold, the network port blocking action is triggered, the source network port of the threat traffic is identified, and the source network port is added to the firewall's blocking list; through the AC multi-mode matching algorithm, the source network ports in the blocking list are grouped and classified, and the common features of the network ports are extracted to form a defense strategy rule library for guiding the rapid identification and blocking of subsequent threat traffic; A distributed decision-making module is used to generate a defense strategy through distributed decision-making according to the local security policy, the network port category and the threat rating.
8. An electronic device, characterized in that: include: at least one processor, and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
