Network security intrusion detection and protection system and method

Through the use of network security intrusion detection and protection systems, the problems of locating unknown network attack behaviors and formulating diverse network protection strategies are solved, realizing intelligent identification and protection of diverse network services and protocols, and improving network security protection capabilities.

CN115529145BActive Publication Date: 2024-09-24CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110713117.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2024-09-24
Estimated Expiration
2041-06-25

AI Technical Summary

Technical Problem

Existing network security protection methods are difficult to locate and deal with unknown network attack behaviors, and cannot formulate protection strategies suitable for diverse network services, applications, and protocol types, resulting in insufficient protection capabilities.

Method used

Adopt a network security intrusion detection and protection system to achieve network traffic diversion, automatic mirroring, feature extraction and rule updating through components such as network diverters, business mirror emulators, traffic converters, attack identifiers and signature managers, improving Ability to identify and protect unknown network traffic.

Benefits of technology

It realizes adaptive functions for various network services, applications and protocols, improves network security protection capabilities, can perform online detection, automatic classification and continuous updates, and effectively identifies and protects unknown network traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529145B
    Figure CN115529145B
Patent Text Reader

Abstract

The present invention provides a network security intrusion detection and protection system and method, the system comprising: a network source, a network splitter, a service mirror simulator, a traffic converter, an attack identifier, an intrusion detection system, a feature manager and a server group. The present invention can realize the adaptive function of various network services, applications and protocols, perform online detection, automatic classification and continuous update of existing network traffic and unknown network traffic, and then realize intelligent identification and protection disposal of existing network traffic and unknown network traffic, effectively improve network security protection capabilities, and have good versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network security intrusion detection and protection system and method. Background Art

[0002] Existing network security protection methods focus on the deployment and optimization of network security equipment, as well as the scheduling mechanism of network security related tasks. The specific approach is to establish a network security-related attack database and vulnerability risk database based on statistics of previous network security attacks. This approach is a solution that is summarized and refined under specific time periods and specific attack modes.

[0003] On the one hand, in order to improve the protection capability, the existing network security protection method needs to periodically update the attack database and vulnerability risk database, which is a relatively static update process with a huge workload and is prone to missed reports or false alarms. On the other hand, due to the endless emergence of network security attack methods, network security vulnerabilities are constantly being discovered and disclosed, and the types of network services and servers are constantly changing. In the process of specific network security protection, it is difficult to locate and handle unknown network attack behaviors on a large scale. Thirdly, due to the diversity of network applications, it is necessary to formulate targeted protection strategies for different business types and network protocols.

[0004] In summary, with a large number of network services, applications, and protocols, and with new behaviors and patterns of network attacks emerging one after another, it is urgent to locate and handle unknown network attack behaviors and to formulate protection strategies suitable for diverse network services, applications, and protocol types. Summary of the invention

[0005] The present invention provides a network security intrusion detection and protection system and method, which are used to solve the technical problems in the related technology that when there are many types of network services, applications and protocols, and the behaviors and patterns of network attacks are endless, it is impossible to locate and process unknown network attack behaviors, and to formulate protection strategies suitable for diverse network services, applications and protocol types.

[0006] In a first aspect, the present invention provides a network security intrusion detection and protection system, comprising:

[0007] A network source, configured to send first network traffic to the network splitter;

[0008] A network splitter, used for performing split processing on the first network traffic based on an initial protection rule, sending the first network traffic to an intrusion detection system, or sending an access request for the first network traffic to the business mirror emulator based on the first network traffic;

[0009] A business mirror emulator, configured to, upon receiving an access request for the first network traffic sent by the network splitter, return a response result to the network splitter based on the access request for the first network traffic, and generate and send an abnormal traffic pattern to a traffic converter based on the first network traffic, the access request for the first network traffic and the response result;

[0010] A traffic converter, used to process the abnormal traffic pattern to obtain a marked first network traffic matrix, and process the second network traffic to obtain a marked second network traffic matrix;

[0011] An attack identifier, configured to label the type of the first network traffic based on the labeled first network traffic matrix, and label the type of the second network traffic based on the labeled second network traffic matrix;

[0012] an intrusion detection system, configured to, in the case of receiving the first network traffic sent by the network splitter, identify the first network traffic based on an initial identification rule, and send a first access request to the server group based on the first network traffic;

[0013] A feature manager, configured to set and update corresponding rules to the network splitter, the intrusion detection system and the traffic converter respectively based on the annotated first network traffic matrix and the annotated second network traffic matrix, and send the second network traffic to the traffic converter;

[0014] The server group includes at least one server, which is used to send a first response result to the intrusion detection system based on the first access request when receiving a first access request sent by the intrusion detection system.

[0015] In a second aspect, the present invention provides a network security intrusion detection and protection method, comprising:

[0016] The network splitter receives the first network traffic sent by the network source, and performs split processing on the first network traffic based on the initial protection rule;

[0017] In the case where the network splitter sends an access request for the first network traffic to the service mirror emulator based on the first network traffic, the service mirror emulator returns a response result to the network splitter based on the access request for the first network traffic, generates and records an abnormal traffic pattern based on the first network traffic, the access request for the first network traffic and the response result, and sends the abnormal traffic pattern to the traffic converter;

[0018] The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix;

[0019] Inputting the labeled first network traffic matrix into a trained attack identifier, outputting a label value of the first network traffic, and labeling the type of the first network traffic based on the label value of the first network traffic;

[0020] The attack identifier is trained based on processed network traffic samples and label values ​​corresponding to the network traffic samples.

[0021] In one embodiment, the performing diversion processing on the first network traffic based on the initial protection rule includes at least one of the following:

[0022] If the source IP address of the first network traffic is in the blacklist, prohibiting the first network traffic from accessing the server group;

[0023] If the target IP address accessed by the first network traffic is the IP address of the server group, the target port accessed by the first network traffic is the port of the server group, and the target protocol accessed by the first network traffic is the protocol of the server, then the first network traffic is sent to the intrusion detection system;

[0024] If the target IP address accessed by the first network traffic is not the IP address of the server group, or the target port accessed by the first network traffic is not the port of the server group, or the target protocol accessed by the first network traffic is not the protocol of the server group, then an access request for the first network traffic is sent to the business mirror emulator based on the first network traffic.

[0025] In one embodiment, after sending the first network traffic to an intrusion detection system, the method further includes:

[0026] The intrusion detection system identifies the first network traffic based on an initial identification rule;

[0027] The intrusion detection system identifies the first network traffic based on an initial identification rule, specifically including:

[0028] In a case where the first network traffic meets a preset network traffic characteristic, a first access request is sent to the server group based on the first network traffic.

[0029] In one embodiment, the traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix, which specifically includes:

[0030] The traffic converter performs network data feature extraction processing on the abnormal traffic pattern to obtain a first network traffic feature value;

[0031] The traffic converter performs encoding processing on the first network traffic characteristic value based on a preset encoding matrix to obtain a first network traffic matrix;

[0032] The traffic converter performs labeling processing on the first network traffic matrix based on a labeling rule to obtain a labeled first network traffic matrix.

[0033] In one embodiment, marking the type of the first network traffic based on the label value of the first network traffic specifically includes:

[0034] If the label value of the first network traffic is less than the first risk threshold, the attack identifier marks the first network traffic as normal access traffic;

[0035] If the label value of the first network traffic is greater than a second risk threshold, the attack identifier marks the first network traffic as network attack traffic.

[0036] In one embodiment, the network security intrusion detection and protection method further includes:

[0037] If the type of the first network traffic is network attack traffic, the attack identifier sends the annotated first network traffic matrix to a feature manager;

[0038] The feature manager updates the initial protection rules to the network classifier based on the annotated first network traffic matrix, or the feature manager updates the initial identification rules to the intrusion detection system based on the annotated first network traffic matrix.

[0039] In one embodiment, the network security intrusion detection and protection method further includes:

[0040] The traffic converter receives the second network traffic sent by the feature manager, processes the second network traffic, and obtains a marked second network traffic matrix;

[0041] The labeled second network traffic matrix is ​​input into a trained attack identifier, a label value of the second network traffic is output, and the type of the second network traffic is labeled based on the label value of the second network traffic.

[0042] In a third aspect, the present invention provides an electronic device comprising a memory and a memory storing a computer program, wherein the processor implements the steps of the network security intrusion detection and protection method described in the second aspect when executing the program.

[0043] In a fourth aspect, the present invention provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the steps of the network security intrusion detection and protection method described in the second aspect.

[0044] The network security intrusion detection and protection system and method provided by the present invention implement primary protection of the server by performing diversion processing on the first network traffic based on the initial protection rules through the network diverter, reduce the network attack behaviors that the server may be subjected to, the intrusion detection system identifies the first network traffic based on the initial identification rules, further implements the protection of the server, reduces the network attack on the server, the service mirror simulator sends a response result to the network diverter based on the access request of the first network traffic sent by the network diverter, and generates and sends an abnormal traffic pattern to the traffic converter based on the first network traffic, the access request of the first network traffic and the response result, realizes automatic mirroring and simulation of server-related network services, the traffic converter processes the abnormal traffic pattern to obtain the labeled first network traffic matrix, processes the second network traffic sent by the feature manager to obtain The labeled second network traffic matrix realizes the extraction of similar features of existing network traffic and unknown network traffic, and has good generalization characteristics, thereby improving the operating efficiency and recognition ability of the attack identifier. The attack identifier labels the type of the first network traffic based on the labeled first network traffic matrix, and labels the type of the second network traffic based on the labeled second network traffic matrix, thereby realizing the adaptive function of various network services, applications and protocols, and performing online detection, automatic classification and continuous updating of existing network traffic and unknown network traffic, thereby realizing intelligent identification and protective disposal of existing network traffic and unknown network traffic, effectively improving network security protection capabilities, and having good versatility. The feature manager sets and updates corresponding rules to the network diverter, the intrusion detection system and the traffic converter, thereby further improving the network security protection capabilities of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 It is a structural schematic diagram of the network security intrusion detection and protection system provided by the present invention;

[0047] Figure 2 It is a scenario schematic diagram of the network security intrusion detection and protection system provided by the present invention;

[0048] Figure 3 This is one of the flow diagrams of the network security intrusion detection and protection method provided by the present invention;

[0049] Figure 4 It is a schematic diagram of a process for processing an abnormal traffic pattern provided by the present invention;

[0050] Figure 5 This is the second flow chart of the network security intrusion detection and protection method provided by the present invention;

[0051] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] In order to solve the technical problems in the related art that, when there are many types of network services, applications and protocols, and the behaviors and patterns of network attacks are endless, it is impossible to locate and process unknown network attack behaviors, and to formulate protection strategies suitable for diverse network services, applications and protocol types, an embodiment of the present invention provides a network security intrusion detection and protection system. Figure 1 Schematic diagram of the structure of the network security intrusion detection and protection system provided by the embodiment of the present invention. Figure 1 As shown, the system includes a network source 100, a network splitter 101, a service mirror simulator 102, a traffic converter 103, an attack identifier 104, an intrusion detection system 105, a feature management 106 and a server group 107, wherein:

[0054] The network source 100 is used to send first network traffic to the network splitter.

[0055] In one implementation, the network source includes at least one of a network access source and a network attack source.

[0056] The network access source is the network device that normally accesses the server.

[0057] The source of a network attack is a network device that initiates abnormal access or attacks on the server.

[0058] Optionally, if the network source is a network access source, the first network traffic is normal access traffic.

[0059] Optionally, if the network source is a network attack source, the first network traffic is network attack traffic.

[0060] In one implementation, a network access source or a network attack source sends first network traffic to a network splitter.

[0061] The network diverter 101 is used to divert the first network traffic based on the initial protection rule and send the first network traffic to the intrusion detection system, or send an access request for the first network traffic to the business mirror emulator based on the first network traffic.

[0062] Among them, the initial protection rules are set by the feature manager to the network splitter.

[0063] Furthermore, the feature manager updates the initial protection rules to the network tap.

[0064] In one implementation, the process of the network splitter performing split processing on the first network traffic based on the initial protection rule includes at least one of the following:

[0065] If the source IP address of the first network traffic is in the blacklist, the first network traffic is prohibited from accessing the server group;

[0066] If the target IP address accessed by the first network traffic is the IP address of the server group, the target port accessed by the first network traffic is the port of the server group, and the target protocol accessed by the first network traffic is the protocol of the server, then the first network traffic is sent to the intrusion detection system;

[0067] If the target IP address accessed by the first network traffic is not the IP address of the server group, or the target port accessed by the first network traffic is not the port of the server group, or the target protocol accessed by the first network traffic is not the protocol of the server group, then an access request for the first network traffic is sent to the business mirror emulator based on the first network traffic.

[0068] The business mirror emulator 102 is used to return a response result to the network splitter based on the access request for the first network traffic when receiving the access request for the first network traffic sent by the network splitter, and to generate and send an abnormal traffic pattern to the traffic converter based on the first network traffic, the access request for the first network traffic and the response result.

[0069] In order to attract network attack traffic, perform feature analysis on network attack traffic, and thus improve the network security protection capability of the system, the system provides a service mirror simulator, which has the function of automatic mirroring and simulation of server-related network services.

[0070] In one embodiment, the feature manager obtains access rules or response rules from a server and sets the obtained access rules or response rules to a business mirror emulator. When the business mirror emulator receives an access request for a first network flow sent by a network splitter, the business mirror emulator processes the access request for the first network flow based on the access rules or response rules, obtains a response result, and sends the response result to the network splitter. An abnormal traffic pattern is generated based on the first network flow data, the access request data of the first network flow, and the response result data, and the abnormal traffic pattern is sent to the traffic converter.

[0071] In one implementation, the feature manager obtains the access rule or response rule from the server group, specifically including:

[0072] The feature manager simulates normal access traffic and network attack traffic to send access requests to the server group, and records the response results of the normal access traffic and the network attack traffic returned by the server group.

[0073] Furthermore, the feature manager sets the acquired access rule or response rule to the service mirror emulator.

[0074] The service mirror emulator responds to the access request of the first network traffic based on the access rule or the response rule, and returns the response result to the network splitter.

[0075] In one implementation, for an access request that does not comply with the access rule or the response rule, the service mirror emulator returns a default response result to the network splitter.

[0076] For example, the default response is to disconnect.

[0077] It should be noted that since the services provided by each server in the server group are updated regularly, the feature manager periodically obtains new access rules or response rules from the server group, and periodically updates the access rules or response rules set in the business mirror emulator based on the new access rules or response rules.

[0078] The abnormal traffic pattern includes first network traffic data, access request data of the first network traffic, and response result data. The traffic converter 103 is used to process the abnormal traffic pattern to obtain a marked first network traffic matrix, and process the second network traffic to obtain a marked second network traffic matrix.

[0079] In order to improve the operating efficiency and recognition ability of the attack identifier, the system provides a traffic converter, which constructs a network traffic matrix based on the similarity of network attack traffic of the same application service or protocol. The network traffic matrix has good generalization characteristics.

[0080] The second network traffic is unknown network traffic sent by the feature manager to the traffic converter.

[0081] In one embodiment, a traffic converter receives an abnormal traffic pattern sent by a business mirror emulator, and performs network data feature extraction processing on each data in the abnormal traffic pattern to obtain a first network traffic feature value, encodes the first network traffic feature value based on a preset encoding matrix to obtain a first network traffic matrix, and annotates the first network traffic matrix based on an annotation rule to obtain a annotated first network traffic matrix.

[0082] In one embodiment, the traffic converter receives the second network traffic sent by the feature manager, and performs network data feature extraction processing on the second network traffic to obtain a second network traffic feature value, encodes the second network feature value based on a preset encoding matrix to obtain a second network traffic matrix, and annotates the second network traffic matrix based on an annotation rule to obtain a annotated second network traffic matrix.

[0083] In one implementation, network data feature extraction is to extract data features from network traffic based on a network traffic classification dimension.

[0084] Optionally, the network traffic classification dimensions include at least one of the access request data of the network traffic, the response data of the network traffic access, the source IP address of the network traffic, the target IP address accessed by the network traffic, the source port of the network traffic, the target port of the network traffic, the protocol of the network traffic, and the source of the network traffic.

[0085] In one implementation, the second network traffic matrix is ​​labeled based on the labeling rule, specifically including:

[0086] Acquire characteristic values ​​of the sources of network traffic in the second network traffic matrix, set different risk values ​​based on the characteristic values ​​of the sources of network traffic, and perform labeling processing on the second network traffic matrix based on the risk values ​​corresponding to the sources of network traffic.

[0087] Among them, the labeling rules are set by the feature manager to the traffic converter, and the labeling rules include initial identification rules and initial protection rules.

[0088] The attack identifier 104 is used to label the type of the first network traffic based on the labeled first network traffic matrix, and to label the type of the second network traffic based on the labeled second network traffic matrix.

[0089] In one implementation, the attack identifier receives the labeled first network traffic matrix sent by the traffic converter, outputs a label value of the first network traffic, and labels the type of the first network traffic based on the label value of the first network traffic.

[0090] Furthermore, if the label value of the first network traffic is less than a first preset threshold, the first network traffic is marked as normal access traffic; if the label value of the first network traffic is greater than a second preset threshold, the first network traffic is marked as network attack traffic.

[0091] In one implementation, the attack identifier receives the annotated second network traffic matrix sent by the traffic converter, outputs a label value of the second network traffic, and annotates the type of the second network traffic based on the label value of the second network traffic.

[0092] Furthermore, if the label value of the second network traffic is less than the first preset threshold, the second network traffic is marked as normal access traffic; if the label value of the second network traffic is greater than the second preset threshold, the second network traffic is marked as network attack traffic.

[0093] The intrusion detection system 105 is used to identify the first network traffic based on an initial identification rule when receiving the first network traffic sent by the network splitter, and send a first access request to the server group based on the first network traffic.

[0094] Initial identification rules are set by the signature manager to the intrusion detection system.

[0095] Furthermore, the feature manager updates the initial recognition rules to the intrusion detection system.

[0096] In one implementation, identifying the first network traffic based on the initial identification rule specifically includes:

[0097] When the first network traffic meets the preset network traffic characteristics, sending a first access request to the server group based on the first network traffic;

[0098] When the first network traffic does not meet the preset network traffic characteristics, the first network traffic is prohibited from accessing the server group.

[0099] Optionally, the preset network traffic characteristics include at least one of a preset source IP address, a preset target IP address, a preset port, a preset service content, a preset operation characteristic, a preset alarm level and a preset alarm target.

[0100] The operation characteristics are specific operations of network traffic accessing the server, such as downloading data, deleting data, and updating data.

[0101] In one embodiment, the intrusion detection system, when receiving the first network traffic sent by the network splitter, identifies the first network traffic based on the book identification rule, wherein, when the first network traffic meets the preset network traffic characteristics, the intrusion detection system sends a first access request to the server group based on the first network traffic;

[0102] When the first network traffic does not meet the preset network traffic characteristics, the first network traffic is prohibited from accessing the server group.

[0103] The feature manager 106 is used to set and update corresponding rules to the network splitter, the intrusion detection system and the traffic converter based on the marked first network traffic matrix and the marked second network traffic matrix, and send the second network traffic to the traffic converter.

[0104] In one embodiment, the feature manager sets initial protection rules to the network splitter and updates the initial protection rules to the network splitter based on the annotated first network traffic matrix and the annotated second network traffic matrix sent by the attack identifier, or updates the initial protection rules to the network splitter based on the annotated second network traffic matrix sent by the attack identifier.

[0105] In one embodiment, the feature manager sets initial identification rules for the intrusion detection system and updates the initial identification rules to the intrusion detection system based on the annotated first network traffic matrix and the annotated second network traffic matrix sent by the attack identifier, or updates the initial identification rules to the intrusion detection system based on the annotated second network traffic matrix sent by the attack identifier.

[0106] In one implementation, the feature manager sets a labeling rule to the traffic converter and sends the second network traffic to the traffic converter.

[0107] In one embodiment, the feature manager simulates normal access traffic and network attack traffic, and sends access requests for normal access traffic and access requests for network attack traffic to the server respectively based on the normal access traffic and the network attack traffic, records the response results of the normal access traffic and the response results of the network attack traffic returned by the server, obtains the access rules or response rules of the server based on the access requests and response results of the normal access traffic and the access requests and response results of the network attack traffic, and sends the access rules or response rules of the server to the business mirror emulator.

[0108] The server group 107 includes at least one server, which is used to send a first response result to the intrusion detection system based on the first access request when receiving the first access request sent by the intrusion detection system.

[0109] The server group includes at least one server, such as a business server or an alarm server.

[0110] In one implementation, when the server group receives a first access request sent by the intrusion detection system, the server group sends a first response result to the intrusion detection system based on the first access request.

[0111] The network security intrusion detection and protection system provided by the embodiment of the present invention realizes primary protection of the server by diverting the first network traffic based on the initial protection rules through the network diverter, and reduces the network attack behaviors that the server may be subjected to. The intrusion detection system identifies the first network traffic based on the initial identification rules, further realizes protection of the server, and reduces the network attack on the server. The service mirror emulator sends a response result to the network diverter based on the access request of the first network traffic sent by the network diverter, and generates and sends an abnormal traffic pattern to the traffic converter based on the first network traffic, the access request of the first network traffic and the response result, thereby realizing automatic mirroring and simulation of server-related network services. The traffic converter processes the abnormal traffic pattern to obtain the labeled first network traffic matrix, and processes the second network traffic sent by the feature manager to obtain The labeled second network traffic matrix realizes the extraction of similar features of existing network traffic and unknown network traffic, and has good generalization characteristics, thereby improving the operating efficiency and recognition ability of the attack identifier. The attack identifier labels the type of the first network traffic based on the labeled first network traffic matrix, and labels the type of the second network traffic based on the labeled second network traffic matrix, thereby realizing the adaptive function of various network services, applications and protocols, and performing online detection, automatic classification and continuous updating of existing network traffic and unknown network traffic, thereby realizing intelligent identification and protective disposal of existing network traffic and unknown network traffic, effectively improving network security protection capabilities, and having good versatility. The feature manager sets and updates corresponding rules to the network diverter, the intrusion detection system and the traffic converter, thereby further improving the network security protection capabilities of the system.

[0112] Figure 2 Schematic diagram of a network security intrusion detection and protection system provided by an embodiment of the present invention. Figure 2 As shown, the system includes a network source, a network splitter 202 , an intrusion detection system 203 (IDS / IPS), an intelligent detection subsystem and a server group 204 .

[0113] The network sources include a network access source 200 and a network attack source 201 .

[0114] The network access source 200 is a network device that normally accesses the server and is used to send normal access traffic to the network splitter.

[0115] The network attack source 201 is a network device that initiates abnormal access or attacks on the server and is used to send network attack traffic to the network splitter.

[0116] The network splitter 202 is a network device that performs split processing on network traffic according to the initial protection rules, sends the network traffic to the intrusion detection system, or sends an access request for the network traffic to the intelligent detection subsystem based on the network traffic.

[0117] The intrusion detection system 203 (Intrusion Detection Systems, IDS) includes an intrusion prevention system (Intrusion Prevention System, IPS).

[0118] The intrusion detection system 203 (IDS / IPS) is a network device that identifies and processes abnormal behavior or attack behavior in network traffic based on initial identification rules. It is used to identify network traffic based on initial identification rules. If the network traffic meets the preset network traffic characteristics, it sends an access request to the server based on the network traffic.

[0119] The intelligent detection subsystem includes a service mirror simulator 205 , a traffic converter 206 , an attack identifier 207 and a feature manager 208 .

[0120] The business mirror emulator 205 is a network device that mirrors the behavior of the server group and attracts network attack traffic. When receiving an access request for network traffic sent by a network splitter, it processes the access request for network traffic based on access rules or response rules, obtains a response result, returns the response result to the network splitter, and generates an abnormal traffic pattern based on the network traffic, the access request for network traffic and the response result, and sends the abnormal traffic pattern to the traffic converter.

[0121] The traffic converter 206 is a device that performs feature analysis, encoding and labeling on network traffic. It is used to perform network data feature extraction, encoding and labeling on the network traffic in sequence to obtain a labeled network traffic matrix, and send the labeled network traffic matrix to the attack identifier.

[0122] The attack identifier 207 is a device that performs intelligent analysis and identification of network traffic types, and is used to output the label value of the network traffic based on the labeled network traffic matrix, and to label the type of the network traffic based on the label value of the network traffic.

[0123] The feature manager 208 is a device that collects and processes relevant features of network traffic, and is used to set and update relevant rules for the network splitter and the intrusion detection system based on the annotated network traffic matrix.

[0124] The server group 204 is a network device that provides network information services, including at least one server, such as server 1 and server 2.

[0125] Figure 3 FIG. 1 is one of the flow charts of the network security intrusion detection and protection method provided by an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:

[0126] Step 300: The network splitter receives first network traffic sent by a network source, and performs split processing on the first network traffic based on an initial protection rule.

[0127] In one implementation, the network source includes at least one of a network access source and a network attack source.

[0128] The network access source is a network device that normally accesses the server.

[0129] The source of a network attack is a network device that initiates abnormal access or attacks on the server.

[0130] Optionally, if the network source is a network access source, the first network traffic is normal access traffic.

[0131] Optionally, if the network source is a network attack source, the first network traffic is network attack traffic.

[0132] Among them, the initial protection rules are set by the feature manager to the network splitter.

[0133] Furthermore, the feature manager updates the initial protection rules to the network tap.

[0134] In one implementation, a network splitter receives first network traffic sent by a network access source or a network attack source, and performs split processing on the first network traffic based on an initial protection rule.

[0135] Step 301: When the network splitter sends an access request for the first network traffic to the business mirror emulator based on the first network traffic, the business mirror emulator returns a response result to the network splitter based on the access request for the first network traffic, generates and records an abnormal traffic pattern based on the first network traffic, the access request for the first network traffic and the response result, and sends the abnormal traffic pattern to the traffic converter.

[0136] In one embodiment, the feature manager obtains access rules or response rules from the server group and sends the access rules or response rules to the business mirror emulator. The business mirror emulator processes the access request of the first network traffic based on the access rules or response rules, obtains a response result, and returns the response result to the network splitter.

[0137] In one implementation, the feature manager obtains the access rule or response rule from the server group, specifically including:

[0138] The feature manager simulates normal access traffic and network attack traffic respectively, and sends access requests to the server group based on the normal access traffic and the network attack traffic respectively, and records the response results of the normal access traffic and the network attack traffic returned by the server group.

[0139] In one implementation, if the access request of the first network traffic does not comply with the access rule or the response rule, the service mirror emulator returns a default response result.

[0140] For example, the default response is to disconnect.

[0141] It should be noted that since the server can provide services of multiple protocols, the feature manager should support multiple network communication protocols and business specifications including Hyper Text Transfer Protocol (HTTP), Remote Terminal Telnet Protocol, Secure Shell Protocol (SSH), File Transfer Protocol (FTP) and Hyper Text Transfer Protocol over Secure Socket Layer (HTTPS) to simulate requests and responses, and then obtain more comprehensive access rules or response rules.

[0142] It should be noted that since the services in the server group are updated regularly, the feature manager periodically obtains new access rules or response rules from the server group and updates the access rules or response rules set in the service mirror emulator based on the new access rules or response rules.

[0143] The abnormal traffic pattern includes first network traffic data, access request data of the first network traffic, and response result data.

[0144] In one embodiment, when a network splitter sends an access request for the first network traffic to a business mirror emulator based on the first network traffic, the business mirror emulator processes the access request for the first network traffic based on an access rule or a response rule, obtains a response result, returns the response result to the network splitter, generates and records an abnormal traffic pattern based on the first network traffic, the access request for the first network traffic, and the response result, and sends the abnormal traffic pattern to the traffic converter, wherein the abnormal traffic pattern includes the first network traffic data, the access request data for the first network traffic, and the response result data.

[0145] Step 302: The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix.

[0146] In one implementation, the traffic converter sequentially performs network data feature extraction processing, encoding processing, and labeling processing on the abnormal traffic pattern to obtain a labeled first network traffic matrix.

[0147] Step 303: input the annotated first network traffic matrix into a trained attack identifier, output a label value of the first network traffic, and annotate the type of the first network traffic based on the label value of the first network traffic;

[0148] The attack identifier is trained based on processed network traffic samples and label values ​​corresponding to the network traffic samples.

[0149] In one implementation, the attack identifier is trained based on processed network traffic samples and label values ​​corresponding to the network traffic samples, specifically including:

[0150] Build a convolutional neural network;

[0151] Inputting the encoded network traffic sample into the convolutional neural network and outputting the target result;

[0152] Calculate the loss function value based on the target result and the label value corresponding to the network traffic sample;

[0153] Through the back propagation algorithm, the various parameters of the convolutional neural network are adjusted starting from the output layer of the convolutional neural network so that the loss function value moves in the direction of minimization;

[0154] Determine whether the training end condition is met. If so, save the parameters of the current iterative convolutional neural network to obtain a trained attack identifier.

[0155] Optionally, marking the type of the first network traffic based on the label value of the first network traffic specifically includes:

[0156] If the label value of the first network traffic is less than the first risk threshold, the attack identifier marks the first network traffic as normal access traffic;

[0157] If the label value of the first network traffic is greater than a second risk threshold, the attack identifier marks the first network traffic as network attack traffic.

[0158] Among them, the first risk threshold is smaller than the second risk threshold.

[0159] It should be noted that the first risk threshold and the second risk threshold are adjusted according to network security access requirements.

[0160] In one implementation, the labeled first network traffic matrix is ​​input into a trained attack identifier, and a label value of the first network traffic is output. If the label value of the first network traffic is less than a first risk threshold, the first network traffic is labeled as normal access traffic, and the first network traffic is allowed to access the server group, and the network behavior after the first network traffic accesses the server group is monitored and stored.

[0161] Furthermore, if the label value of the first network traffic is greater than the second risk threshold, the first network traffic is marked as network attack traffic, and the network splitter and intrusion detection system are notified to intercept the first network traffic. At the same time, the marked first network traffic matrix is ​​sent to the feature manager.

[0162] The network security intrusion detection and protection method provided by the embodiment of the present invention implements primary protection of the server by diverting the first network traffic based on the initial protection rules through the network diverter, and reduces the network attack behaviors that the server may be subjected to. The intrusion detection system identifies the first network traffic based on the initial identification rules, and further implements the protection of the server, and reduces the network attack on the server. The service mirror simulator sends a response result to the network diverter based on the access request of the first network traffic sent by the network diverter, and generates and sends an abnormal traffic pattern to the traffic converter based on the first network traffic, the access request of the first network traffic and the response result, thereby realizing automatic mirroring and simulation of server-related network services. The traffic converter processes the abnormal traffic pattern to obtain the labeled first network traffic matrix, and processes the second network traffic sent by the feature manager to obtain The labeled second network traffic matrix realizes the extraction of similar features of existing network traffic and unknown network traffic, and has good generalization characteristics, thereby improving the operating efficiency and recognition ability of the attack identifier. The attack identifier labels the type of the first network traffic based on the labeled first network traffic matrix, and labels the type of the second network traffic based on the labeled second network traffic matrix, thereby realizing the adaptive function of various network services, applications and protocols, and performing online detection, automatic classification and continuous updating of existing network traffic and unknown network traffic, thereby realizing intelligent identification and protective disposal of existing network traffic and unknown network traffic, effectively improving network security protection capabilities, and having good versatility. The feature manager sets and updates corresponding rules to the network diverter, the intrusion detection system and the traffic converter, thereby further improving the network security protection capabilities of the system.

[0163] Based on any of the foregoing embodiments, the performing diversion processing on the first network traffic based on the initial protection rule includes at least one of the following:

[0164] If the source IP address of the first network traffic is in the blacklist, prohibiting the first network traffic from accessing the server group;

[0165] If the target IP address accessed by the first network traffic is the IP address of the server group, the target port accessed by the first network traffic is the port of the server group, and the target protocol accessed by the first network traffic is the protocol of the server, then the first network traffic is sent to the intrusion detection system;

[0166] If the target IP address accessed by the first network traffic is not the IP address of the server group, or the target port accessed by the first network traffic is not the port of the server group, or the target protocol accessed by the first network traffic is not the protocol of the server group, then an access request for the first network traffic is sent to the business mirror emulator based on the first network traffic.

[0167] For example, the feature manager sets the initial protection rule to the network splitter as follows: the source IP address in the blacklist is {1.1.1.1}, and the server IP address, port and protocol are {2.2.2.2:22 / TCP}.

[0168] If the source IP address of the first network traffic is 1.1.1.1, the network splitter prohibits the first network traffic from accessing the server.

[0169] If the target IP address accessed by the first network traffic is 2.2.2.2, the target protocol is TCP, and the target port is 22, the network splitter allows the first network traffic to access the server and sends the first network traffic to the intrusion detection system.

[0170] If the target IP address accessed by the first network traffic is 2.2.2.3, the target protocol is TCP, and the target port is 23, the network splitter will split the first network traffic to the business mirror emulator, that is, send an access request for the first network traffic to the business mirror emulator based on the first network traffic.

[0171] The network security intrusion detection and protection method provided by the embodiment of the present invention is that a network diverter diverts the first network traffic based on the initial protection rule, prohibits the first network traffic from accessing the server group, sends the first network traffic to the intrusion detection system, and sends an access request for the first network traffic to the business mirror emulator based on the first network traffic, thereby realizing primary protection of the server and reducing the network attacks that the server may be subjected to.

[0172] Based on any of the above embodiments, after sending the first network traffic to the intrusion detection system, the method further includes:

[0173] The intrusion detection system identifies the first network traffic based on an initial identification rule;

[0174] The intrusion detection system identifies the first network traffic based on an initial identification rule, specifically including:

[0175] In a case where the first network traffic meets a preset network traffic characteristic, a first access request is sent to the server group based on the first network traffic.

[0176] Among them, the initial identification rules are set by the feature manager to the intrusion detection system.

[0177] Furthermore, the feature manager updates the initial recognition rules to the intrusion detection system.

[0178] Optionally, the preset network traffic characteristics include at least one of a preset source IP address, a preset target IP address, a preset port, a preset service content, a preset operation characteristic, a preset alarm level and a preset alarm target.

[0179] The operation characteristics are specific operations of network traffic accessing the server, such as downloading data, deleting data, and updating data.

[0180] The server group includes at least one server, such as a business server or an alarm server.

[0181] In one implementation, the intrusion detection system identifies the first network traffic based on an initial identification rule, and sends a first access request to a business server in the server group based on the first network traffic if the first network traffic meets a first preset condition.

[0182] Alternatively, if the first network traffic meets the second preset condition, a first access request is sent to the alarm server in the server group based on the first network traffic.

[0183] The first preset condition includes:

[0184] The source IP address of the first network traffic is consistent with the preset source IP address;

[0185] The target IP address accessed by the first network traffic is consistent with the preset target IP address;

[0186] The port accessed by the first network traffic is consistent with the preset port;

[0187] The service content of the first network traffic is consistent with the preset service content;

[0188] The operation characteristic of the first network traffic is consistent with the preset operation characteristic;

[0189] The first network traffic does not meet the preset alarm level;

[0190] The first network traffic does not meet the preset alarm target.

[0191] The second precondition includes:

[0192] The source IP address of the first network traffic is consistent with the preset source IP address;

[0193] The target IP address accessed by the first network traffic is consistent with the preset target IP address;

[0194] The port accessed by the first network traffic is consistent with the preset port;

[0195] The service content of the first network traffic is consistent with the preset service content;

[0196] The operation characteristic of the first network traffic is consistent with the preset operation characteristic;

[0197] The first network traffic meets the preset alarm level;

[0198] The first network traffic meets the preset alarm target.

[0199] The network security intrusion detection and protection method provided by the embodiment of the present invention is that the intrusion detection system identifies the first network traffic based on the initial identification rule, and when the first network traffic meets different preset conditions, sends a first access request to different servers based on the first network traffic, thereby further realizing the protection of the server and reducing the server from being attacked by the network.

[0200] Figure 4 FIG. 1 is a flow chart of processing an abnormal traffic pattern provided by an embodiment of the present invention. Figure 4 As shown, based on any of the above embodiments, the traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix, which specifically includes:

[0201] Step 400: The traffic converter performs network data feature extraction processing on the abnormal traffic pattern to obtain a first network traffic feature value.

[0202] The abnormal traffic pattern includes first network traffic data, access request data of the first network traffic, and response result data.

[0203] In order to improve the accuracy of network data feature extraction and thus improve the recognition capability of attack identifiers, network traffic can be classified according to multiple dimensions.

[0204] Optionally, the network traffic classification dimensions include at least one of the access request data of the network traffic, the response data of the network traffic access, the source IP address of the network traffic, the target IP address accessed by the network traffic, the source port of the network traffic, the target port of the network traffic, the protocol of the network traffic, and the source of the network traffic.

[0205] It should be noted that as the types, number, and functions of network devices expand, the number of network traffic classification dimensions can be further expanded.

[0206] The first network traffic characteristic value corresponds to the network traffic classification dimension.

[0207] The network data feature extraction process includes extracting data features from abnormal traffic patterns based on network traffic classification dimensions, and intercepting bytes of a preset length from the abnormal traffic patterns as feature values ​​based on each network traffic classification dimension.

[0208] Wherein, intercepting bytes of a preset length includes intercepting first several bytes of the abnormal traffic pattern.

[0209] Optionally, the first network traffic characteristic value includes at least one of the access request data of the first network traffic, the response data of the first network traffic access, the source IP address of the first network traffic, the target IP address accessed by the first network traffic, the source port of the first network traffic, the target port of the first network traffic, the protocol number of the first network traffic and the source of the first network traffic.

[0210] In one embodiment, the traffic converter performs data feature extraction on the first network traffic data, the access request data and the response result data of the first network traffic in the abnormal traffic pattern based on the network traffic classification dimension, and intercepts bytes of a preset length as feature values ​​for each data in the abnormal traffic pattern based on each network traffic classification dimension to obtain the first network traffic feature value.

[0211] Step 401: The traffic converter encodes the first network traffic characteristic value based on a preset encoding matrix to obtain a first network traffic matrix.

[0212] In one embodiment, the preset encoding matrix is ​​a three-dimensional space matrix of N*N*C, the first dimension represents the network traffic characteristic value corresponding to any network traffic classification dimension, the second dimension represents N different network traffic characteristic values, and the third dimension represents the protocol number of the network traffic, wherein, if the number of network traffic characteristic values ​​is less than N, the second dimension can be padded with 0.

[0213] Wherein, N represents the length of the network traffic characteristic value, C represents the number of protocols or applications of the network traffic, and N and C are integers greater than 0.

[0214] It should be noted that the three-dimensional space matrix represents the network traffic matrix corresponding to each protocol or application, and the network traffic matrix is ​​an N*N structure.

[0215] The encoding process includes converting the first network traffic characteristic value into a matrix conforming to a preset encoding matrix structure based on a preset encoding matrix.

[0216] The first network traffic matrix is ​​a matrix that conforms to a preset coding matrix structure.

[0217] In one implementation, the traffic converter encodes the first network traffic characteristic value based on a preset coding matrix to obtain a matrix that conforms to a preset coding matrix structure as the first network traffic matrix.

[0218] Step 402: The traffic converter performs labeling processing on the first network traffic matrix based on a labeling rule to obtain a labeled first network traffic matrix.

[0219] Among them, the labeling rules are set by the feature manager to the traffic converter.

[0220] Labeling rules include initial protection rules, initial identification rules, and access rules or response rules.

[0221] It should be noted that when the feature manager updates the initial protection rules, initial identification rules, and access rules or response rules respectively, the labeling rules are updated to the traffic converter at the same time.

[0222] In one implementation, the traffic converter performs labeling processing on the first network traffic matrix based on the labeling rule to obtain the labeled first network traffic matrix, specifically including:

[0223] When the source of the first network traffic in the first network traffic matrix meets the initial protection rule, the first network traffic matrix is ​​labeled, wherein:

[0224] If the source of the first network traffic meets the situation of prohibited access to the server group, the first network traffic matrix is ​​marked as 0;

[0225] If the source of the first network traffic meets the conditions that access to the server group is allowed, the first network traffic matrix is ​​marked as 1;

[0226] If the source of the first network traffic meets the situation of accessing the service mirror simulator, the first network traffic matrix is ​​marked as 0.8;

[0227] When the source of the first network traffic in the first network traffic meets the initial identification rule, the first network traffic matrix is ​​labeled, wherein:

[0228] If the source of the first network traffic meets the preset network traffic characteristics, the first network traffic matrix is ​​marked as 1;

[0229] If the source of the first network traffic does not meet the preset network traffic characteristics, the first network traffic matrix is ​​marked as 0;

[0230] When the source of the first network traffic in the first network traffic meets the access rule or the response rule, the first network traffic matrix is ​​labeled, wherein:

[0231] If the source of the first network traffic meets the normal response, the first network traffic matrix is ​​marked as 0;

[0232] If the source of the first network traffic does not conform to the normal response, the first network traffic matrix is ​​marked as 1;

[0233] When the source of the first network traffic in the first network traffic does not conform to the labeling rule, labeling processing is performed on the first network traffic matrix, wherein:

[0234] If the source IP address of the first network traffic does not meet the network attack traffic characteristics, the first network traffic matrix is ​​marked as 0.5;

[0235] If the source IP address of the first network traffic meets the network attack traffic characteristics and the first network traffic meets the safety operation, the first network traffic matrix is ​​marked as 0;

[0236] If the source IP address of the first network traffic meets the network attack traffic characteristics and the first network traffic does not meet the security operation requirements, the first network traffic matrix is ​​marked as 1.

[0237] The network security intrusion detection and protection method provided by the embodiment of the present invention, the traffic converter performs network data feature extraction processing on the abnormal traffic pattern to obtain a first network traffic feature value, encodes the first network traffic feature value based on a preset encoding matrix to obtain a first network traffic matrix, and annotates the first network traffic matrix based on an annotation rule to obtain a first network traffic matrix after annotation, thereby realizing similar feature extraction of existing network traffic, having good generalization characteristics, and thus improving the operating efficiency and recognition ability of the attack identifier.

[0238] Based on any of the above embodiments, the network security intrusion detection and protection method further includes:

[0239] If the type of the first network traffic is network attack traffic, the attack identifier sends the annotated first network traffic matrix to a feature manager;

[0240] The feature manager updates the initial protection rules to the network classifier based on the annotated first network traffic matrix, or the feature manager updates the initial identification rules to the intrusion detection system based on the annotated first network traffic matrix.

[0241] In order to further improve the protection capability against network attack traffic, the feature manager obtains the features of the identified network attack traffic and updates the relevant rules according to the features of the network attack traffic.

[0242] Updating the initial protection rule specifically includes at least one of the following:

[0243] Blacklist the source IP addresses of network attack traffic;

[0244] Limit the access speed of network attack traffic;

[0245] Limit the number of sessions connected by network attack traffic.

[0246] Updating the initial identification rule specifically includes at least one of the following:

[0247] Improve the sensitivity of identifying network attack traffic;

[0248] Improve the alert level for network attack traffic;

[0249] Set access restrictions on network attack traffic.

[0250] In one implementation, if the type of the first network traffic is network attack traffic, the attack identifier sends the annotated first network traffic matrix to the feature manager.

[0251] Furthermore, the feature manager obtains the first network traffic characteristic value based on the labeled first network traffic matrix, updates the initial protection rule to the network classifier based on the first network traffic characteristic value, or updates the initial protection rule to the intrusion detection system based on the first network traffic characteristic value.

[0252] According to the network security intrusion detection and protection method provided by an embodiment of the present invention, if the type of the first network traffic is network attack traffic, the attack identifier sends the marked first network traffic matrix to the feature manager, and the feature manager updates relevant rules based on the marked first network traffic matrix to prevent the network attack source from launching further attacks, thereby further improving the network security protection capability of the system.

[0253] Based on any of the above embodiments, the network security intrusion detection and protection method further includes:

[0254] The traffic converter receives the second network traffic sent by the feature manager, processes the second network traffic, and obtains a marked second network traffic matrix;

[0255] The labeled second network traffic matrix is ​​input into a trained attack identifier, a label value of the second network traffic is output, and the type of the second network traffic is labeled based on the label value of the second network traffic.

[0256] The second network traffic is unknown network traffic sent by the feature manager to the traffic converter.

[0257] In one embodiment, the traffic converter receives the second network traffic sent by the feature manager, performs network data feature extraction on the second network traffic to obtain a second network traffic feature value, encodes the second network traffic feature value based on a preset encoding matrix to obtain a second network traffic matrix, and annotates the second network traffic matrix based on an annotation rule to obtain a annotated second network traffic matrix.

[0258] Furthermore, the labeled second network traffic matrix is ​​input into the trained attack identifier, and the label value of the second network traffic is output. If the label value of the second network traffic is less than the first preset threshold, the second network traffic is labeled as normal access traffic. If the label value of the second network traffic is greater than the second preset threshold, the second network traffic is labeled as network attack traffic.

[0259] Among them, when it is confirmed that the second network traffic is network attack traffic, the attack identifier marks the label value of the second network traffic as 1, indicating that the second network traffic is high-risk network attack traffic, and uses the second network traffic as a sample and the modified label value of the second network traffic as the sample label to retrain the attack identifier to obtain a new trained attack identifier.

[0260] It should be noted that since the identification, training and updating operations of the attack identifier are run uninterruptedly, online continuous updating and labeling of the characteristics of unknown network attack traffic is achieved.

[0261] The network security intrusion detection and protection method provided by the embodiment of the present invention comprises the following steps: a traffic converter receives the second network traffic sent by the feature manager, processes the second network traffic, obtains a labeled second network traffic matrix, inputs the labeled second network traffic matrix into a trained attack identifier, outputs the label value of the second network traffic, and labels the type of the second network traffic based on the label value of the second network traffic, thereby realizing online detection, automatic classification and continuous updating of unknown network traffic, and further realizing intelligent identification and protection disposal of unknown network traffic, effectively improving network security protection capabilities, and having good versatility.

[0262] Figure 5 This is the second flow chart of the network security intrusion detection and protection method provided by the embodiment of the present invention. Figure 5 As shown, the method comprises the following steps:

[0263] S1. The feature manager sets initial protection rules to the network splitter;

[0264] S2, the feature manager sets initial identification rules to the intrusion detection system;

[0265] S3, the feature manager obtains access rules or response rules from server 1 in the server group;

[0266] S4, the feature manager sets the access rule or response rule corresponding to server 1 to the business mirror simulator;

[0267] S5. The feature manager sets a labeling rule to the traffic converter;

[0268] S6, the traffic converter processes the network traffic sample, uses the processed network traffic sample and the label value corresponding to the network traffic as training data, and sends the training data to the attack identifier;

[0269] S7, training the attack identifier based on the training data, and obtaining a trained attack identifier after completing the initial training;

[0270] S8, the network access source sends normal access traffic to the network splitter;

[0271] S9, the network splitter splits the normal access traffic based on the initial protection rules and sends the normal access traffic to the intrusion detection system;

[0272] S10, the intrusion detection system identifies normal access traffic based on the initial identification rule, and sends an access request of the normal access traffic to server 1 in the server group based on the normal access traffic;

[0273] S11, server 1 returns a response result to the network access source based on the access request of normal access traffic;

[0274] S12, the network attack source sends abnormal traffic to the network splitter;

[0275] S13, the network splitter performs split processing on the abnormal traffic based on the initial protection rule. If the abnormal traffic is sent to the intrusion detection system, step 14 is executed; if an access request for the abnormal traffic is sent to the business mirror emulator based on the abnormal traffic, step 16 is executed;

[0276] S14, the intrusion detection system identifies abnormal traffic based on the initial identification rule, and sends an access request of the abnormal traffic to server 1 in the server group based on the abnormal traffic;

[0277] S15, server 1 returns a response result to the network attack source based on the access request of the abnormal traffic;

[0278] S16, the service mirror simulator receives the access request of the abnormal traffic sent by the network splitter;

[0279] S17, the service mirror simulator returns a response result to the network splitter based on the access request of the abnormal traffic;

[0280] S18, the business mirror simulator generates an abnormal traffic pattern based on the abnormal traffic, the access request of the abnormal traffic, and the response result, and records and forwards the abnormal traffic pattern to the traffic converter;

[0281] S19, the traffic converter performs feature extraction, encoding and labeling processing on the abnormal traffic pattern to obtain a labeled abnormal traffic matrix, and sends the labeled abnormal traffic matrix to the attack identifier;

[0282] S20, the attack identifier identifies the annotated abnormal traffic matrix, determines the abnormal traffic type, and sends the annotated abnormal traffic matrix to the feature manager;

[0283] S21, the feature manager updates the initial protection rules to the network splitter based on the annotated abnormal traffic matrix;

[0284] S22. The feature manager updates the initial recognition rules to the intrusion detection system based on the annotated abnormal traffic matrix.

[0285] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call a computer program in the memory 630 to execute the steps of the network security intrusion detection and protection method, for example including:

[0286] The network splitter receives the first network traffic sent by the network source, and performs split processing on the first network traffic based on the initial protection rule;

[0287] In the case where the network splitter sends an access request for the first network traffic to the service mirror emulator based on the first network traffic, the service mirror emulator returns a response result to the network splitter based on the access request for the first network traffic, generates and records an abnormal traffic pattern based on the first network traffic, the access request for the first network traffic and the response result, and sends the abnormal traffic pattern to the traffic converter;

[0288] The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix;

[0289] Inputting the labeled first network traffic matrix into a trained attack identifier, outputting a label value of the first network traffic, and labeling the type of the first network traffic based on the label value of the first network traffic;

[0290] The attack identifier is trained based on processed network traffic samples and label values ​​corresponding to the network traffic samples.

[0291] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0292] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the network security intrusion detection and protection method provided by the above methods, the method comprising:

[0293] The network splitter receives the first network traffic sent by the network source, and performs split processing on the first network traffic based on the initial protection rule;

[0294] In the case where the network splitter sends an access request for the first network traffic to the service mirror emulator based on the first network traffic, the service mirror emulator returns a response result to the network splitter based on the access request for the first network traffic, generates and records an abnormal traffic pattern based on the first network traffic, the access request for the first network traffic and the response result, and sends the abnormal traffic pattern to the traffic converter;

[0295] The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix;

[0296] Inputting the labeled first network traffic matrix into a trained attack identifier, outputting a label value of the first network traffic, and labeling the type of the first network traffic based on the label value of the first network traffic;

[0297] The attack identifier is trained based on processed network traffic samples and label values ​​corresponding to the network traffic samples.

[0298] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the methods provided in the above embodiments, for example, including:

[0299] The network splitter receives the first network traffic sent by the network source, and performs split processing on the first network traffic based on the initial protection rule;

[0300] In the case where the network splitter sends an access request for the first network traffic to the service mirror emulator based on the first network traffic, the service mirror emulator returns a response result to the network splitter based on the access request for the first network traffic, generates and records an abnormal traffic pattern based on the first network traffic, the access request for the first network traffic and the response result, and sends the abnormal traffic pattern to the traffic converter;

[0301] The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix;

[0302] Inputting the labeled first network traffic matrix into a trained attack identifier, outputting a label value of the first network traffic, and labeling the type of the first network traffic based on the label value of the first network traffic;

[0303] The attack identifier is trained based on processed network traffic samples and label values ​​corresponding to the network traffic samples.

[0304] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.

[0305] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0306] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0307] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network security intrusion detection and protection system, characterized in that: include: A network source, configured to send first network traffic to the network splitter; A network splitter, used to perform split processing on the first network traffic based on the initial protection rule, send the first network traffic to the intrusion detection system, or send an access request for the first network traffic to the business mirror emulator based on the first network traffic; A business mirror emulator, configured to, upon receiving an access request for the first network traffic sent by the network splitter, return a response result to the network splitter based on the access request for the first network traffic, and generate and send an abnormal traffic pattern to a traffic converter based on the first network traffic, the access request for the first network traffic and the response result; A traffic converter, used to process the abnormal traffic pattern to obtain a marked first network traffic matrix, and process the second network traffic to obtain a marked second network traffic matrix; Among them, the attack identifier is trained based on the processed network traffic samples and the label values ​​corresponding to the network traffic samples; An attack identifier, configured to label the type of the first network traffic based on the labeled first network traffic matrix, and label the type of the second network traffic based on the labeled second network traffic matrix; an intrusion detection system, configured to, in the case of receiving the first network traffic sent by the network splitter, identify the first network traffic based on an initial identification rule, and send a first access request to a server group based on the first network traffic; A feature manager, configured to set and update corresponding rules to the network splitter, the intrusion detection system and the traffic converter respectively based on the annotated first network traffic matrix and the annotated second network traffic matrix, and send the second network traffic to the traffic converter; A server group, comprising at least one server, configured to send a first response result to the intrusion detection system based on the first access request when receiving a first access request sent by the intrusion detection system; The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix, which specifically includes: The traffic converter performs network data feature extraction processing on the abnormal traffic pattern to obtain a first network traffic feature value; The traffic converter performs encoding processing on the first network traffic characteristic value based on a preset encoding matrix to obtain a first network traffic matrix; The traffic converter performs labeling processing on the first network traffic matrix based on the labeling rule to obtain a labeled first network traffic matrix; The traffic converter performs network data feature extraction processing on the abnormal traffic pattern to obtain a first network traffic feature value, specifically including: the traffic converter performs data feature extraction on the first network traffic, the access request of the first network traffic and the response result in the abnormal traffic pattern based on the network traffic classification dimension, and intercepts bytes of a preset length from each data in the abnormal traffic pattern as a feature value based on each network traffic classification dimension to obtain the first network traffic feature value; The network traffic classification dimensions include access request data of network traffic, response data of network traffic access, source IP address of network traffic, target IP address of network traffic access, source port of network traffic, target port of network traffic, protocol of network traffic and source of network traffic.

2. A network security intrusion detection and protection method, based on the network security intrusion detection and protection system according to claim 1, characterized in that: include: The network splitter receives the first network traffic sent by the network source, and performs split processing on the first network traffic based on the initial protection rule; In the case where the network splitter sends an access request for the first network traffic to the service mirror emulator based on the first network traffic, the service mirror emulator returns a response result to the network splitter based on the access request for the first network traffic, generates and records an abnormal traffic pattern based on the first network traffic, the access request for the first network traffic and the response result, and sends the abnormal traffic pattern to the traffic converter; The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix; Inputting the labeled first network traffic matrix into a trained attack identifier, outputting a label value of the first network traffic, and labeling the type of the first network traffic based on the label value of the first network traffic; The attack identifier is trained based on processed network traffic samples and label values ​​corresponding to the network traffic samples; The traffic converter processes the abnormal traffic pattern to obtain a marked first network traffic matrix, which specifically includes: The traffic converter performs network data feature extraction processing on the abnormal traffic pattern to obtain a first network traffic feature value; The traffic converter performs encoding processing on the first network traffic characteristic value based on a preset encoding matrix to obtain a first network traffic matrix; The traffic converter performs labeling processing on the first network traffic matrix based on the labeling rule to obtain a labeled first network traffic matrix; The traffic converter performs network data feature extraction processing on the abnormal traffic pattern to obtain a first network traffic feature value, specifically including: the traffic converter performs data feature extraction on the first network traffic, the access request of the first network traffic and the response result in the abnormal traffic pattern based on the network traffic classification dimension, and intercepts bytes of a preset length from each data in the abnormal traffic pattern as a feature value based on each network traffic classification dimension to obtain the first network traffic feature value; The network traffic classification dimensions include access request data of network traffic, response data of network traffic access, source IP address of network traffic, target IP address of network traffic access, source port of network traffic, target port of network traffic, protocol of network traffic and source of network traffic.

3. The network security intrusion detection and protection method according to claim 2 is characterized in that: The performing diversion processing on the first network traffic based on the initial protection rule includes at least one of the following: If the source IP address of the first network traffic is in the blacklist, prohibiting the first network traffic from accessing the server group; If the target IP address accessed by the first network traffic is the IP address of the server group, the target port accessed by the first network traffic is the port of the server group, and the target protocol accessed by the first network traffic is the protocol of the server, then the first network traffic is sent to the intrusion detection system; If the target IP address accessed by the first network traffic is not the IP address of the server group, or the target port accessed by the first network traffic is not the port of the server group, or the target protocol accessed by the first network traffic is not the protocol of the server group, then an access request for the first network traffic is sent to the business mirror emulator based on the first network traffic.

4. The network security intrusion detection and protection method according to claim 3 is characterized in that: After sending the first network traffic to the intrusion detection system, the method further includes: The intrusion detection system identifies the first network traffic based on an initial identification rule; The intrusion detection system identifies the first network traffic based on an initial identification rule, specifically including: In a case where the first network traffic meets a preset network traffic characteristic, a first access request is sent to the server group based on the first network traffic.

5. The network security intrusion detection and protection method according to claim 2, characterized in that: The marking the type of the first network traffic based on the label value of the first network traffic specifically includes: If the label value of the first network traffic is less than the first risk threshold, the attack identifier marks the first network traffic as normal access traffic; If the label value of the first network traffic is greater than a second risk threshold, the attack identifier marks the first network traffic as network attack traffic.

6. The network security intrusion detection and protection method according to claim 2, characterized in that: Also includes: If the type of the first network traffic is network attack traffic, the attack identifier sends the annotated first network traffic matrix to a feature manager; The feature manager updates the initial protection rules to the network classifier based on the annotated first network traffic matrix, or the feature manager updates the initial identification rules to the intrusion detection system based on the annotated first network traffic matrix.

7. The network security intrusion detection and protection method according to claim 2 is characterized in that: Also includes: The traffic converter receives the second network traffic sent by the feature manager, processes the second network traffic, and obtains a marked second network traffic matrix; The labeled second network traffic matrix is ​​input into a trained attack identifier, a label value of the second network traffic is output, and the type of the second network traffic is labeled based on the label value of the second network traffic.

8. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the steps of the network security intrusion detection and protection method according to any one of claims 2 to 7 are implemented.

9. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the steps of the network security intrusion detection and protection method according to any one of claims 2 to 7.