Malicious traffic detection and protection method, device and system based on hardware acceleration

The engine in the hardware acceleration device performs network traffic filtering and feature matching detection, which solves the problem of insufficient CPU processing power in the existing technology, achieves efficient malicious traffic identification and protection, and improves network security performance.

CN118400201BActive Publication Date: 2024-09-24HANGZHOU DPTECH TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410850893.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-24
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing network security protection solutions rely on software implementation, resulting in insufficient CPU processing power and response speed to effectively respond to malicious traffic in high-concurrency and high-throughput network traffic detection scenarios.

Method used

Adopting a malicious traffic detection method based on hardware acceleration, the first engine and the second engine in the hardware acceleration device are used to filter network traffic and feature matching detection, and use pre-loaded suspicious attack traffic filtering rules and malicious traffic signature libraries to achieve Efficient filtering of network traffic and accurate identification of malicious traffic.

Benefits of technology

It improves the processing capability and response speed of malicious traffic detection, reduces the CPU load, realizes full-process hardware accelerated processing of malicious traffic, and improves the performance and response speed of network security protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400201B
    Figure CN118400201B
Patent Text Reader

Abstract

The present application provides a malicious traffic detection and protection method, device and system based on hardware acceleration. The method is applied to a hardware acceleration device. Through the interaction between a CPU and the hardware acceleration device, the CPU is used to configure the processing logic of a specific engine in the hardware acceleration device, and the specific engine is used to adopt hardware acceleration technology. In combination with pre-loaded suspicious attack traffic filtering rules and a malicious traffic feature library, the method realizes hardware-based acceleration processing of the entire process of accurately detecting malicious traffic from network traffic and protecting it, thereby improving the processing capability and response speed of malicious traffic detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a malicious traffic detection and protection method, device and system based on hardware acceleration. Background Art

[0002] With the rapid development of the Internet, the network has become an important infrastructure for society and economy, but it is also facing increasingly serious cybersecurity threats. The number and complexity of cyber attacks and malware are increasing, bringing huge challenges to enterprises and users.

[0003] At present, network security protection usually relies on software implementation. By adopting a multi-core and multi-threaded architecture in the network traffic business processing module, and utilizing the multi-core processor and multi-threaded support provided by the operating system, multiple network flows can be processed simultaneously to improve the efficiency of detecting malicious traffic.

[0004] However, this multi-core and multi-threaded architecture belongs to the scope of software implementation. All data processing and logical judgment must be completed by the CPU executing software instructions. Due to the limited clock frequency and processing power of the CPU, its processing ability and response speed for detecting and protecting malicious traffic are still limited, and it cannot cope with high concurrency and high throughput scenarios. Summary of the invention

[0005] In view of this, in order to solve the above technical problems, the present application provides a malicious traffic detection and protection method, device, system, equipment and medium based on hardware acceleration.

[0006] Specifically, the present application is implemented through the following technical solutions:

[0007] According to a first aspect of an embodiment of the present application, a malicious traffic detection and protection method based on hardware acceleration is provided, which is applied to a hardware acceleration device, wherein the hardware acceleration device includes at least a first engine and a second engine, and the method includes:

[0008] Obtaining first network traffic on the network link;

[0009] According to the suspicious attack traffic filtering rules and the header information of the first network traffic, the first engine is used to filter out abnormal traffic from the first network traffic and input it into the second engine; the suspicious attack traffic filtering rules are pre-loaded into the hardware acceleration device by the CPU;

[0010] According to the feature library of malicious traffic, using the second engine to perform feature matching detection on the data information of the abnormal traffic to identify malicious traffic; the feature library is pre-loaded by the CPU to the hardware acceleration device;

[0011] Perform security response and protection processing on the malicious traffic.

[0012] Optionally, obtaining the first network traffic on the network link includes:

[0013] determining a network interface connected to the network link and establishing a connection with the network interface;

[0014] Acquiring the link network traffic of the network link through the network interface in a preset acquisition method; the preset acquisition method includes at least one of real-time data packet capture and traffic mirroring;

[0015] Perform preliminary filtering processing on the link network traffic to obtain the first network traffic; the preliminary filtering processing at least includes filtering processing for protocol type.

[0016] Optionally, the using the first engine to filter out abnormal traffic from the first network traffic includes:

[0017] Determine, according to the header information of the first network traffic, the traffic characteristics of each second network traffic in the first network traffic;

[0018] Using the first engine, matching the traffic characteristics of the second network traffic with a plurality of rule items in the suspicious attack traffic filtering rule;

[0019] In the case where the traffic feature successfully matches at least one rule item, the second network traffic corresponding to the successfully matched traffic feature is determined as the abnormal traffic.

[0020] Optionally, the method further comprises:

[0021] According to the preset correspondence between the plurality of rule items and the detection directions, query the target detection direction corresponding to the target rule item as the target detection direction of the abnormal traffic, and output the first indication information;

[0022] Among them, the detection direction includes malicious traffic detection of malicious code type and malicious traffic detection of non-malicious code type; the target rule item refers to the rule item in which the traffic feature of the abnormal traffic is successfully matched; the first indication information is used to instruct the second engine to perform feature matching detection on the data information of the abnormal traffic for the target detection direction.

[0023] Optionally, the method further comprises:

[0024] According to the preset correspondence between the plurality of rule items and the content detection methods, query the target content detection method corresponding to the target rule item as the target content detection method of the abnormal traffic, and output second indication information;

[0025] The second indication information is used to instruct the second engine to perform the feature matching detection on the abnormal traffic using the target content detection method.

[0026] Optionally, the second engine includes a plurality of processing units supporting different types of content detection methods; the using the second engine to perform feature matching detection on the data information of the abnormal traffic includes:

[0027] Determining a matching target processing unit from the plurality of processing units according to the second indication information of the abnormal traffic;

[0028] The target processing unit is used to perform feature matching detection on the abnormal traffic.

[0029] Optionally, the performing security response and protection processing on the malicious traffic includes:

[0030] Generate a security event for the malicious traffic according to the detection result of the second engine;

[0031] According to the preset correspondence between different types of traffic and protection strategies, the protection strategy for the malicious traffic is determined and executed.

[0032] Optionally, the method further comprises:

[0033] In response to receiving a feature library update instruction from the CPU, a new feature library is obtained from the CPU; and the feature library stored in the hardware acceleration device is updated using the new feature library.

[0034] Optionally, the method further comprises:

[0035] In response to receiving a processing logic update instruction from the CPU, determining an engine to be processed in the hardware acceleration device according to the logic update instruction;

[0036] The processing logic in the engine to be processed is rewritten into the acquired new processing logic.

[0037] According to a second aspect of an embodiment of the present application, a malicious traffic detection and protection device based on hardware acceleration is provided, which is applied to a hardware acceleration device, wherein the hardware acceleration device includes at least a first engine and a second engine, and the device includes:

[0038] A network traffic acquisition module, used to acquire first network traffic on a network link;

[0039] A header filtering module, configured to filter out abnormal traffic from the first network traffic using the first engine according to a suspicious attack traffic filtering rule and the header information of the first network traffic, and input the abnormal traffic into the second engine; the suspicious attack traffic filtering rule is pre-loaded into the hardware acceleration device by the CPU;

[0040] an abnormal traffic content detection module, used to perform feature matching detection on the data information of the abnormal traffic using the second engine according to a feature library of malicious traffic, so as to identify malicious traffic; the feature library is pre-loaded by the CPU to the hardware acceleration device;

[0041] The response and protection processing module is used to perform security response and protection processing on the malicious traffic.

[0042] Optionally, the network traffic acquisition module is specifically used to:

[0043] determining a network interface connected to the network link and establishing a connection with the network interface;

[0044] Acquiring the link network traffic of the network link through the network interface in a preset acquisition method; the preset acquisition method includes at least one of real-time data packet capture and traffic mirroring;

[0045] Perform preliminary filtering processing on the link network traffic to obtain the first network traffic; the preliminary filtering processing at least includes filtering processing for protocol type.

[0046] Optionally, the header filtering module is specifically used to:

[0047] Determine, according to the header information of the first network traffic, the traffic characteristics of each second network traffic in the first network traffic;

[0048] Using the first engine, matching the traffic characteristics of the second network traffic with a plurality of rule items in the suspicious attack traffic filtering rule;

[0049] In the case where the traffic feature successfully matches at least one rule item, the second network traffic corresponding to the successfully matched traffic feature is determined as the abnormal traffic.

[0050] Optionally, the device further comprises:

[0051] According to the preset correspondence between the plurality of rule items and the detection directions, query the target detection direction corresponding to the target rule item as the target detection direction of the abnormal traffic, and output the first indication information;

[0052] Among them, the detection direction includes malicious traffic detection of malicious code type and malicious traffic detection of non-malicious code type; the target rule item refers to the rule item in which the traffic feature of the abnormal traffic is successfully matched; the first indication information is used to instruct the second engine to perform feature matching detection on the data information of the abnormal traffic for the target detection direction.

[0053] Optionally, the device further comprises:

[0054] According to the preset correspondence between the plurality of rule items and the content detection methods, query the target content detection method corresponding to the target rule item as the target content detection method of the abnormal traffic, and output second indication information;

[0055] The second indication information is used to instruct the second engine to perform the feature matching detection on the abnormal traffic using the target content detection method.

[0056] Optionally, the second engine includes a plurality of processing units supporting different types of content detection methods; the abnormal traffic content detection module is specifically used for:

[0057] According to the second indication information of the abnormal traffic, a matching target processing unit is determined from the multiple processing units; and the target processing unit is used to perform feature matching detection on the abnormal traffic.

[0058] Optionally, the response and protection processing module is specifically used to:

[0059] Generate a security event for the malicious traffic according to the detection result of the second engine;

[0060] According to the preset correspondence between different types of traffic and protection strategies, the protection strategy for the malicious traffic is determined and executed.

[0061] Optionally, the device further comprises:

[0062] In response to receiving a feature library update instruction from the CPU, a new feature library is obtained from the CPU; and the feature library stored in the hardware acceleration device is updated using the new feature library.

[0063] Optionally, the device further comprises:

[0064] In response to receiving a processing logic update instruction from the CPU, determining an engine to be processed in the hardware acceleration device according to the logic update instruction;

[0065] The processing logic in the engine to be processed is rewritten into the acquired new processing logic.

[0066] According to a third aspect of an embodiment of the present application, a malicious traffic detection and protection system based on hardware acceleration is provided, including:

[0067] CPU, used to configure hardware acceleration devices;

[0068] The hardware acceleration device includes at least a first engine and a second engine, and is used for:

[0069] Acquire the first network flow on the network link; use the first engine to filter out abnormal flow from the first network flow according to the suspicious attack flow filtering rules and the header information of the first network flow, and input it into the second engine; the suspicious attack flow filtering rules are pre-loaded by the CPU to the hardware acceleration device; according to the feature library of malicious flow, use the second engine to perform feature matching detection on the data information of the abnormal flow to identify malicious flow; the feature library is pre-loaded by the CPU to the hardware acceleration device; and perform security response and protection processing on the malicious flow.

[0070] According to the fourth aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the above-mentioned malicious traffic detection and protection method based on hardware acceleration by calling the computer program.

[0071] According to a fifth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the above-mentioned malicious traffic detection and protection method based on hardware acceleration is implemented.

[0072] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0073] In the technical solution provided by the present application, through the interaction between the CPU and the hardware acceleration device, the CPU is used to configure the processing logic of the specific engine in the hardware acceleration device, and the specific engine is used to adopt hardware acceleration technology, combined with pre-loaded suspicious attack traffic filtering rules and malicious traffic feature libraries, to achieve efficient screening of network traffic and accurate identification of malicious traffic, reduce the CPU load, and realize hardware acceleration processing of the entire process of accurately detecting malicious traffic from network traffic and protecting it through the hardware acceleration device, thereby improving the processing capability and response speed of malicious traffic detection, thereby improving the performance and response speed of network security protection. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 It is a schematic diagram of the system architecture of a malicious traffic detection and protection method based on hardware acceleration shown in an exemplary embodiment of the present application;

[0075] Figure 2 This is a flowchart of a malicious traffic detection and protection method based on hardware acceleration shown in an exemplary embodiment of the present application;

[0076] Figure 3 is a flowchart of a step of obtaining first network traffic on a network link shown in an exemplary embodiment of the present application;

[0077] Figure 4 is a flowchart of a step of filtering abnormal traffic from the first network traffic, shown in an exemplary embodiment of the present application;

[0078] Figure 5 This is a schematic diagram of the interaction between components and units of a malicious traffic detection and protection system based on hardware acceleration, shown in an exemplary embodiment of the present application;

[0079] Figure 6 It is a structural schematic diagram of a network traffic data processing device shown in an exemplary embodiment of the present application;

[0080] Figure 7 It is a hardware schematic diagram of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0081] With the rapid development of the Internet, the network has become a key infrastructure supporting social and economic operations. However, the network is also facing increasingly severe cybersecurity threats. The number and complexity of cyber attacks and malware are growing, bringing security challenges to enterprises and individual users.

[0082] Malicious traffic is a means of attack that threatens network security. It refers to network traffic generated by malware, automated tools, robots or other illegal means, and is intended to damage or exploit target systems, networks or services. It is usually characterized by universality, persistence and purpose. The sources and types of malicious traffic are diverse, including but not limited to botnet traffic, phishing traffic, ransomware traffic, and malware traffic carrying viruses, Trojans and other malicious programs, which pose a serious threat to network security.

[0083] At present, the existing network security protection solutions mainly rely on software implementation. In the network traffic business processing module, by deploying a multi-core multi-threaded architecture, using multi-core processors and multi-threading technology, the system can parallelly process the detection and protection tasks of malicious traffic, thereby improving the detection efficiency.

[0084] The multi-core multi-threaded architecture has improved the system's processing capabilities to a certain extent. However, since all data processing and logical judgments under this architecture need to be completed by the CPU executing software instructions, the system's performance is limited by factors such as the CPU's clock frequency, processing power, and the operating system's scheduling strategy. In other words, based on the limited clock frequency and processing power of the CPU, it is unable to meet the high-performance requirements in all scenarios. In high-concurrency and high-throughput network traffic detection scenarios, the system needs to process a large number of data packets and requests, and the CPU's performance bottleneck may cause processing delays and reduced response speeds. In addition, the algorithms and logic implemented by the software may be affected by a variety of factors such as the operating system and programming language, resulting in system instability and performance fluctuations, further affecting the effectiveness of network security protection.

[0085] Therefore, when dealing with the detection and protection of malicious traffic, existing network protection solutions still have problems with insufficient processing power and response speed, and are unable to cope with high-concurrency and high-throughput network traffic detection scenarios.

[0086] In order to solve the above technical problems, the present application provides a malicious traffic detection and protection method based on hardware acceleration, which is applied to hardware acceleration equipment, and the malicious traffic detection involved includes malicious code malicious traffic detection and non-malicious code malicious traffic detection. The hardware acceleration equipment involved in the present application adopts a hardware platform or device with high parallel processing capability, such as a dedicated integrated circuit, a field programmable gate array, etc.

[0087] See also Figure 1 As shown in the system architecture diagram, the method involves the interaction between the CPU and the hardware acceleration device. The CPU serves as a control center for scheduling and configuring the hardware acceleration device. As shown in the data flow diagram, the CPU is used to load the feature library of malicious traffic to the hardware acceleration device, and configure the hardware acceleration device to perform specific processing logic for malicious traffic detection. The feature library of malicious traffic may include feature information of two types of malicious traffic, malicious code and non-malicious code. The hardware acceleration device adopts the malicious traffic detection and protection method based on hardware acceleration provided by the present application, which is used to perform efficient malicious traffic detection on the acquired network traffic, so as to identify malicious traffic carrying malicious code or non-malicious code and make corresponding security protection. In the process of malicious traffic detection and protection, as shown in the diagram, multiple engines supporting parallelism are provided in the hardware acceleration device, which are used to execute multiple network traffic detection tasks in parallel to improve the detection speed and accuracy.

[0088] Next, combine Figure 1-Figure 7 The malicious traffic detection and protection method based on hardware acceleration provided by this application is introduced. Figure 1The hardware acceleration device in the system architecture diagram shown in the figure, in this embodiment, is provided with two types of engines, respectively identified as the first engine and the second engine, which can be implemented with a dedicated acceleration chip / module to complete complex, time-consuming, and high-computing operations. Among them, the first engine is used to identify suspicious attack traffic from the acquired network traffic as abnormal traffic for further accurate detection; the second engine is used to identify malicious traffic that poses a security threat to the network link from the abnormal traffic through accurate detection. The processing logic of the two types of engines is as follows: Figure 1 The CPU shown is pre-configured before executing the method.

[0089] Regarding the settings of the first engine and the second engine, a parallel setting can be adopted, that is, multiple parallel first engines and multiple parallel second engines can be set in the hardware acceleration device. During the actual operation, the hardware acceleration device or the CPU can flexibly select the number of engines running in parallel according to factors such as the amount of network traffic to be analyzed and the response speed requirements, so as to improve the processing efficiency of network traffic through parallel processing.

[0090] See also Figure 2 As shown in the flowchart, the malicious traffic detection and protection method based on hardware acceleration may include at least the following steps:

[0091] S201, obtaining first network traffic on a network link;

[0092] The network link refers to a physical or logical path for transmitting data between two or more network devices such as computers, routers, switches, etc., and can be part of a local area network, a metropolitan area network, a wide area network, or an interconnection. In this embodiment, the network link can be a network link that needs to be monitored and protected to deal with network traffic attacks.

[0093] The first network traffic refers to the traffic data of the network link, which can be obtained by detecting the network link through a network interface or other network traffic collection equipment or software. For example, the network traffic passing through a specific network link can be captured through a network splitter or a network data packet capture tool. It can be understood by those skilled in the art that the "first" in the first network traffic is only used to distinguish the same type of information from other network traffic in this application, and has no specific indicative meaning.

[0094] S202, according to the suspicious attack traffic filtering rule and the header information of the first network traffic, using the first engine to filter out abnormal traffic from the first network traffic, and inputting it into the second engine; the suspicious attack traffic filtering rule is pre-loaded by the CPU into the hardware acceleration device;

[0095] The suspicious attack traffic filtering rule is used to quickly filter out normal traffic from the first network traffic and identify abnormal traffic that matches the filtering rule and has potential threats. The filtering rule is pre-loaded into the hardware acceleration device by the CPU.

[0096] The suspicious attack traffic filtering rules can be designed based on multiple angles and dimensions, including but not limited to: (1) Protocol and port analysis: Some protocols and ports are closely related to known malicious behaviors, such as suspicious traffic on certain non-standard ports. The filtering rules can be based on common malicious protocols such as ICMP (Internet Control Message Protocol), UDP (User Datagram Protocol), etc. (1) Filtering rules: (1) Filtering rules can be set based on the following characteristics: (1) Malicious traffic usually has specific characteristics, such as abnormal packet size, frequency, transmission speed, etc. Filtering rules can be set based on this characteristic, such as identifying abnormally large packets, sequences of packets sent quickly, etc. (2) Traffic feature analysis: Malicious traffic usually has specific characteristics, such as abnormal packet size, frequency, transmission speed, etc. Filtering rules can be set based on this characteristic, such as identifying abnormally large packets, sequences of packets sent quickly, etc. (3) IP address and domain name reputation analysis: Filtering rules can be set based on a list of known malicious IP addresses and domain names; (4) Behavioral pattern analysis: Malicious traffic may exhibit specific behavioral patterns, such as scanning behavior, brute force cracking attempts, etc. Filtering rules can be set based on known behavioral patterns, such as detecting repeated login attempts, a large number of probe requests, etc. (5) Geographic location analysis: Filtering rules can be set based on the geographic location of the source of the traffic. For example, if an enterprise network mainly serves a specific region, traffic from other regions may be considered suspicious; (6) Threat intelligence and real-time updates: Use threat intelligence services to obtain the latest malicious traffic and attack pattern information, and update filtering rules in real time to respond to new threats.

[0097] The suspicious attack traffic filtering rules are continuously updated according to the latest security intelligence threats and attack pattern information to ensure that the latest abnormal traffic with potential threats can be quickly screened out. The filtering rules can be formulated by field security experts based on in-depth analysis and understanding of known malicious behaviors, and stored in a storage space readable by the CPU, which is used to detect abnormal traffic with potential threats in the first network traffic. Alternatively, the filtering rules can also be created based on known attack behaviors using content screening models such as the CaEPF model, the CoEPF model, and the CCEPF model, and are flashed to the hardware acceleration device by the CPU. Alternatively, the filtering rules can be constructed by analyzing the relevant features of the known malicious traffic behavior patterns, quintuples, and other related features through machine learning models or data mining techniques.

[0098] The header information of the first network traffic contains metadata about the data packets transmitted by the network traffic, including but not limited to: source address and destination address, used to identify the sender and receiver of the data packets; port number, used to identify the logical port of the application or service; protocol type, used to identify the network protocol used; sequence number, acknowledgment number and window size, used to control the transmission of TCP (Transmission Control Protocol) data streams.

[0099] The first engine is used to quickly screen out malicious traffic, i.e., abnormal traffic, that poses potential threats from a large amount of first network traffic. By adopting hardware acceleration technology, such as parallel processing hardware, the engine has extremely high processing speed and throughput, and can simultaneously perform large-scale network traffic rapid filtering checks, providing real-time, line-speed filtering performance at the hardware level, thereby reducing the workload of subsequent engines and improving the speed and efficiency of network traffic filtering.

[0100] The first engine mainly uses the suspicious attack traffic filtering rules based on the header information of the first network traffic to quickly filter out a large amount of normal traffic and retain abnormal traffic that does not comply with security policies and has potential threats, so as to achieve rapid preliminary screening of traffic; and, for the identified abnormal traffic, it is input into the second engine for further analysis and processing to confirm whether the abnormal traffic is attack traffic. In this embodiment, multiple first engines can be set up, and the multiple first engines can be used to identify abnormal traffic from the first network traffic in parallel to improve processing efficiency.

[0101] S203, performing feature matching detection on the data information of the abnormal traffic using the second engine according to the feature library of malicious traffic, and identifying malicious traffic; the feature library is pre-loaded by the CPU to the hardware acceleration device;

[0102] Malicious traffic is usually related to various network attack behaviors, such as DDoS (Distributed Denial of Service) attacks, structured statement injection, cross-site scripting attacks, etc. Such network attack behaviors usually have specific traffic characteristics, such as request frequency, data packet size, source IP address, target port, keywords in the request content, etc.

[0103] The feature library of malicious traffic is a structured repository for collecting and storing the features of the above malicious traffic, including feature rules, patterns, thresholds, etc. of various attack types, so as to enable rapid matching and identification in real-time network monitoring. The feature library of malicious traffic can be constructed by collecting feature information of malicious traffic from a variety of security intelligence sources. Based on the continuous emergence of new attack methods and malware, in order to ensure that the second engine can identify and defend against the latest threats, the feature library will be updated to the latest feature library by the CPU in real time. The CPU can be connected to the update server regularly, and when a new feature library version is detected, it will be automatically downloaded to the CPU and updated to the hardware acceleration device synchronously, or the CPU can update the feature library stored in the CPU and the hardware acceleration device synchronously according to the feature library update file uploaded by the user.

[0104] The data information of the abnormal traffic includes the data content actually transmitted by the traffic, which can be any form of data such as text, image, audio, video, program, etc. The data information is encapsulated in a data packet and transmitted through the network. The specific content and format of the data information are determined according to the application and protocol used.

[0105] The second engine is used to receive abnormal traffic from the first engine, and through hardware acceleration, according to the feature information included in the feature library of malicious traffic, the data information of the abnormal traffic is matched with the feature information in real time to quickly and accurately identify malicious traffic from the abnormal traffic, such as DDoS attacks, cross-site scripting attacks and other malicious traffic, that is, the data information of the abnormal traffic is matched with the feature information in the feature library of the malicious traffic to detect feature matching, and when the data information of the abnormal traffic matches the feature information in the feature library successfully, the abnormal traffic is determined to be malicious traffic, otherwise it is determined that the abnormal traffic is not malicious traffic. In this embodiment, multiple second engines can be set up, and the multiple second engines can be used to perform malicious traffic identification on multiple abnormal traffic in parallel to improve processing efficiency.

[0106] In order to reduce the problem of missed detection due to some detection errors, the abnormal traffic of non-malicious traffic and the matching of the abnormal traffic with the aforementioned filtering rules can be displayed to the maintenance personnel through a graphical user interface, so that the maintenance personnel can perform further manual maintenance. After identifying malicious traffic, the detection results or alarms about the malicious traffic can be output to remind the security system to adopt corresponding security protection strategies to deal with the malicious traffic.

[0107] S204: Perform security response and protection processing on the malicious traffic.

[0108] The security response and protection processing refers to a series of emergency and subsequent processing measures taken to protect the security of network links after malicious traffic is identified, so as to prevent malicious traffic from causing further damage to the network system and minimize potential security risks. The security response and protection processing method may include but is not limited to at least one of the following methods: real-time generation of security time and alarm; immediate isolation of the affected system or network segment; use of firewalls, routers and other network devices to block the source of attack; collection and analysis of log information of the attacked network link, including network traffic logs, system logs, security logs, etc.; malicious traffic cleaning, and cleaning of systems or files infected by malicious traffic to ensure that the system returns to normal; strengthening the affected system, including updating patches, closing unnecessary ports and services, etc., and repairing system vulnerabilities and updating the processing logic of the engine in the hardware acceleration device to detect malicious traffic.

[0109] Traffic-based attack characteristics vary depending on the type of malicious traffic. In order to effectively respond to malicious traffic threats, a security response and protection processing solution that is adaptive to the type of malicious traffic can be adopted. That is, when the second engine identifies malicious traffic, a security event for the malicious traffic can be generated and the type of malicious traffic can be determined based on the detection result of the second engine on the malicious traffic. In addition, based on the preset correspondence between different types of traffic and protection strategies, a protection strategy that matches the identified malicious traffic can be determined and executed to ensure effective security response and protection processing for the malicious traffic, thereby maintaining the security and stability of the network link.

[0110] For example, suppose the second engine detects malicious traffic of the DDoS attack type, which exhausts the resources of the target server through a large number of invalid data packet requests, making it unable to process normal requests. After the second engine identifies the malicious traffic of the DDoS attack, it can generate a security event based on the detection results, and refer to the preset correspondence between different types of traffic and protection strategies to query the corresponding protection strategy for DDoS attacks, such as enabling traffic cleaning services to guide the attack traffic to the cleaning center for filtering and cleaning, and only allowing normal request traffic to pass; after executing the corresponding protection strategy, it can effectively alleviate the impact of DDoS attacks on network links, protect the target server from attacks, and maintain the security and stability of network links.

[0111] In the embodiments of the present disclosure, in order to solve the problem that the existing network security protection relies on CPU software to execute instructions, resulting in limited processing power and response speed, a solution based on a hardware acceleration device is proposed. Through the interaction between the CPU and the hardware acceleration device, the CPU is used to configure the processing logic of a specific engine in the hardware acceleration device, and the specific engine is used to adopt hardware acceleration technology to achieve rapid identification of malicious traffic, reduce the CPU load, and achieve hardware-based accelerated processing of the entire process of accurately detecting malicious traffic from network traffic and protecting it, thereby improving the processing power and response speed of malicious traffic detection, thereby being able to better cope with high-concurrency and high-throughput network environments; and, the specific engine is combined with pre-loaded suspicious attack traffic filtering rules and malicious traffic feature libraries to achieve rapid screening of network traffic and accurate identification of malicious traffic, reduce false alarm rates and missed alarm rates, and can adapt to changing network security threats by updating suspicious attack traffic filtering rules and malicious traffic feature libraries, thereby improving the reliability of network security protection.

[0112] In some embodiments, based on the network environment, there are one or more network interfaces such as Ethernet interfaces, wireless interfaces, etc. to connect different network devices and systems. The network interface constitutes the endpoint of the network link so that data can be transmitted between different parts of the network. Therefore, for the acquisition of the first network flow on the network link described in the aforementioned step S201, this embodiment proposes to use the network interface to acquire the first network flow on the network link. See Figure 3 The method may include the following steps:

[0113] S301, determining a network interface connected to the network link, and establishing a connection with the network interface;

[0114] For the network link, a network interface on the link can be selected to obtain the link network traffic flowing through the link; or, an appropriate network interface such as an Ethernet interface, a fiber optic interface, etc. can be customized. The network interface needs to support the bandwidth and protocol of the target network link, and when the network interface is not connected to the network link, the network parameters such as the IP address and subnet mask are configured on the network interface to ensure that the interface can correctly access the network link and communicate with other network devices. For high-bandwidth network links, it is necessary to select a network interface and monitoring equipment with sufficient processing power to ensure the real-time and accuracy of network traffic capture.

[0115] After the network interface is determined, a communication connection is established between the hardware acceleration device and the network interface, so that the hardware acceleration device can receive the network traffic captured by the network interface in real time.

[0116] S302, obtaining the link network traffic of the network link through the network interface according to a preset acquisition method; the preset acquisition method includes at least one of real-time data packet capture and traffic mirroring;

[0117] The real-time data packet capture refers to the use of data packet capture technology to capture network traffic passing through the network interface in real time. When the link network traffic is obtained by real-time data packet capture, a capture filter can be set as needed to capture the data packets of interest, so that the obtained link network traffic is directly used as the first network traffic for the first engine to filter quickly. The filter can be configured according to conditions such as IP address, port number, protocol type, etc.

[0118] Traffic mirroring means that when a network device such as a switch or a router supports the traffic mirroring function, a traffic mirroring rule can be configured on the network device to mirror the traffic passing through a specified network link to one or more of the network ports, and the network interface is connected to the hardware acceleration device so that the hardware acceleration device can receive the mirrored traffic through the network interface and perform subsequent analysis and processing.

[0119] Through the above acquisition method, it is possible to acquire the network traffic passing through the network link through at least one network interface, and ensure the real-time, integrity and security of the data.

[0120] S303, performing preliminary filtering processing on the link network traffic to obtain the first network traffic; the preliminary filtering processing at least includes filtering processing for protocol type.

[0121] The network traffic on the network link contains data packets from different sources, different protocols, and different services. In order to efficiently and accurately process the network traffic under the business of concern, preliminary filtering processing can be performed to determine the traffic related to the business of concern, thereby reducing the amount of data processed while determining the accuracy and relevance of the data.

[0122] The preliminary filtering process may include filtering based on protocol type, filtering based on source / destination IP address, filtering based on port number, filtering based on timestamp, and other types of filtering processes. The specific methods of the filtering process may be combined and adjusted according to actual needs to ensure that the final traffic data meets the analysis requirements and reduces unnecessary data as much as possible. Before performing the preliminary filtering, a protocol decoding process may also be included.

[0123] For example, the network traffic related to emails that the user is concerned about can be processed by filtering based on protocol types, and the filtering conditions can be set to focus on network traffic with protocol types of IMAP (Internet Message Access Protocol), POP3 (Post Office Protocol - Version 3), and SMTP (Simple Mail Transfer Protocol). After collecting the link network traffic, the network traffic that meets the filtering conditions can be filtered out as the first network traffic. The filtered first network traffic needs to be transmitted to the first engine of the hardware acceleration device for rapid filtering processing.

[0124] Regarding the preliminary filtering process, after obtaining the link network traffic on the network link, the link network traffic can be subjected to preliminary filtering process using a hardware acceleration device, and the first network traffic obtained by the filtering process can be transmitted to the first engine. Alternatively, in the process of obtaining the link network traffic of the network link through the network interface, an access control list or other filtering rules for preliminary filtering process can be set on the network interface to limit the scope of the captured traffic and reduce the amount of unnecessary data, thereby automatically completing the preliminary filtering process during the acquisition process.

[0125] In the disclosed embodiment, network traffic is acquired through a network interface connected to a network link, and first network traffic related to the business of interest is obtained through preliminary filtering processing, thereby reducing the amount of processed network traffic and providing strong data support for malicious traffic detection in network traffic.

[0126] In some embodiments, for the aforementioned step S203 of using the first engine to filter out abnormal traffic from the first network traffic, see Figure 4 As shown in the flowchart, the first engine can implement the screening process in the following manner:

[0127] S401, determining a flow characteristic of each second network flow in the first network flow according to the header information of the first network flow;

[0128] Traffic characteristics are a collection of various attributes and behavior patterns used to describe data packets in network traffic, and may include but are not limited to source / destination IP addresses, source / destination port numbers, data packet contents, protocol types, data packet sizes, and traffic patterns, etc. The traffic pattern refers to the overall pattern of traffic, such as traffic rate, traffic distribution, etc., to identify possible abnormalities or attack behaviors. In this embodiment, the traffic characteristics are determined based on the header information of the first network traffic and are used for the rapid filtering process of the first engine, so the information type included in the traffic characteristics is consistent with the information type provided by the header information.

[0129] S402, using the first engine, matching the traffic characteristics of the second network traffic with a plurality of rule items in the suspicious attack traffic filtering rule;

[0130] S403: When the traffic feature successfully matches at least one rule item, determine the second network traffic corresponding to the successfully matched traffic feature as the abnormal traffic.

[0131] The matching process refers to matching each feature information included in the traffic feature of the second network traffic with multiple rule items in the filtering rules one by one, and judging whether there is at least one feature information in the traffic feature that meets any rule item. If so, the second network traffic corresponding to the traffic feature is identified as suspicious attack traffic, that is, the abnormal traffic; for the case where each feature information included in the traffic feature of the second network traffic does not match the multiple rule items in the filtering rules, the second network traffic is determined to be normal traffic.

[0132] In the disclosed embodiment, based on the header information of the network traffic and the pre-set suspicious attack traffic filtering rules, the first engine quickly filters out normal traffic from a large amount of first network traffic based on rule item matching, accurately identifies and locates abnormal traffic, reduces the system's processing burden on normal traffic, and combines the engine's hardware acceleration technology to effectively improve the efficiency and response speed of malicious traffic detection.

[0133] In some embodiments, when abnormal traffic is determined by matching traffic characteristics with multiple rule items in the suspicious attack traffic filtering rules, in order to further analyze the potential threats of the abnormal traffic, it is necessary to use a second engine to apply malicious traffic detection means to the data information of the abnormal traffic. Data information based on malicious traffic can be divided into malicious code categories and non-malicious code categories, that is, malicious traffic is divided into software attacks and non-software attacks, and some software attacks can be quickly determined by the rule items in the suspicious attack traffic filtering rules matched by the traffic characteristics. Among them, the malicious code category refers to programs or codes in a computer system with malicious purposes, such as viruses, worms, Trojans, etc.

[0134] Therefore, this embodiment divides malicious traffic detection into malicious code-type malicious traffic detection and non-malicious code-type malicious traffic detection as two detection directions, and introduces a detection direction determination method for abnormal traffic based on the correspondence between rule items and detection directions of traffic feature matching. After identifying abnormal traffic, the method may further include the following method steps for determining the detection direction of abnormal traffic:

[0135] According to the correspondence between multiple rule items and detection directions in the preset suspicious attack traffic filtering rules, the target detection direction corresponding to the target rule item is queried as the target detection direction of the abnormal traffic, and the first indication information is output; wherein the target rule item refers to the rule item with successful traffic feature matching of the abnormal traffic; the first indication information is used to instruct the second engine to perform feature matching detection on the data information of the abnormal traffic for the target detection direction.

[0136] The correspondence between the multiple rule items and the detection direction in the suspicious attack traffic filtering rules can be determined by analyzing a large number of malicious traffic with known attack methods and data types. The correspondence is not static and needs to be continuously updated and adjusted according to changes in the network security situation and the emergence of new attack modes. In the process of constructing suspicious attack traffic filtering rules, the rule items can be classified into malicious code classes and non-malicious code classes according to the attack nature and type of the malicious traffic, and a mapping relationship between each rule item and the corresponding detection direction can be established. For example, if the attack behavior corresponding to a rule item is a software attack, then the rule item can be set to correspond to the malicious traffic detection of the malicious code class; for rule items that cannot be clearly identified as software or non-software attacks, then the rule item can be set to correspond to both the malicious traffic detection of the malicious code class and the malicious traffic detection of the non-malicious code class.

[0137] Based on the target rule item refers to the rule item that successfully matches the traffic characteristics of the abnormal traffic. When the target rule item is one rule item, the target detection direction matched by the one rule item in the corresponding relationship can be directly used as the target detection direction of the abnormal traffic; when the target rule item is two or more rule items, first obtain the target detection directions matched by the two or more rule items in the corresponding relationship, and merge all the corresponding target detection directions as the target detection direction of the abnormal traffic, or after merging all the corresponding target detection directions, if there is malicious traffic detection of malicious code type, directly use the malicious traffic detection of malicious code type as the target detection direction of the abnormal traffic.

[0138] For example, if a network attack is launched from a specific IP address or port in the form of malicious code, then when the filtering rule includes a rule item for the specific IP address or port, the rule item is set to correspond to the malicious traffic detection of the malicious code class. When the traffic feature of the second network traffic matches the IP address or port, the second network traffic is determined to be abnormal traffic, and it is determined to perform malicious traffic detection of the malicious code class on the abnormal traffic, and the first indication information for instructing the second engine to perform malicious traffic detection of the malicious code class on the abnormal traffic is generated.

[0139] In the disclosed embodiment, by the correspondence between the rule items in the preset suspicious attack traffic filtering rules and the detection direction, accurate guidance of the abnormal traffic detection direction is achieved, so that after the abnormal traffic is identified, the second engine can perform targeted malicious traffic detection on the abnormal traffic. Compared with performing malicious code and non-malicious code detection on each abnormal traffic, it not only distinguishes between software attacks and non-software attacks, but also saves the detection time of the second engine, thereby improving the efficiency of the second engine in identifying malicious traffic from abnormal traffic.

[0140] In some embodiments, when the first engine is used to match the traffic features with multiple rule items in the suspicious attack traffic filtering rules to determine abnormal traffic, the second engine is then used to perform in-depth feature matching detection on the data information of the abnormal traffic. This feature matching detection can use a variety of content detection methods, including but not limited to pattern matching, regular expression matching, behavior statistical analysis, semantic analysis, and malicious code family tree clustering methods.

[0141] The rule items in the suspicious attack traffic filtering rules matched by the traffic characteristics of the abnormal traffic characterize the possible attack behaviors or patterns of the abnormal traffic. Therefore, the method adopted by the second engine for feature matching can be indicated based on the rule items on the traffic feature matching. The above method can also include the following content detection method determination step for feature matching detection:

[0142] According to the preset correspondence between the multiple rule items and the content detection method, the target content detection method corresponding to the target rule item is queried as the target content detection method for the abnormal traffic, and second indication information is output; wherein the second indication information is used to instruct the second engine to adopt the target content detection method to perform the feature matching detection on the abnormal traffic.

[0143] The correspondence between the multiple rule items in the suspicious attack traffic filtering rules and the content detection methods can be determined by analyzing the malicious characteristics of malicious traffic with a large number of known attack methods and data types, and the content detection methods used for such malicious traffic. The correspondence should be continuously updated and adjusted according to changes in the network security situation and the emergence of new attack patterns.

[0144] Based on the target rule item, which refers to the rule item that successfully matches the traffic characteristics of the abnormal traffic, when the target rule item is one rule item, the target content detection method matched by the one rule item in the corresponding relationship can be directly used as the target detection direction of the abnormal traffic; when the target rule item is two or more rule items, the target content detection methods matched by the two or more rule items in the corresponding relationship are first obtained, and all the corresponding target content detection methods are merged as the target content detection method of the abnormal traffic.

[0145] The content detection method determination step of the above-mentioned feature matching detection can be executed in parallel with the method steps for determining the detection direction of abnormal traffic recorded in the above-mentioned embodiment, or it can also be executed after the method steps for determining the detection direction of abnormal traffic. This application does not limit this.

[0146] When the second engine receives the first indication information and the second indication information at the same time, the second engine adopts the target content detection method to perform feature matching detection on the data information of the abnormal traffic in the target detection direction. For example, if the first indication information indicates malicious traffic detection of the malicious code class, and the second indication information indicates the malicious code family tree clustering method, the second engine is used to perform malicious traffic detection of the abnormal traffic as the malicious code class, and the method adopted in the malicious code detection process is the malicious code family tree clustering method.

[0147] In the disclosed embodiment, by using the correspondence between the preset suspicious attack traffic filtering rules and multiple content detection methods, the appropriate content detection method is automatically selected for abnormal traffic, which not only improves the pertinence and accuracy of detection, but also can continuously update and adjust the detection strategy according to the network security situation and new attack patterns. In addition, through the interaction between the first engine and the second engine, the whole process from the initial identification of abnormal traffic to in-depth detection is automated, which greatly improves the efficiency and effectiveness of network security protection.

[0148] In some embodiments, based on the above different types of content detection methods, the second engine in the hardware acceleration device may include multiple processing units that support different types of content detection methods. After receiving the second indication information from the first engine, the aforementioned step S203 of using the second engine to perform feature matching detection on the data information of the abnormal traffic may include the following implementation methods:

[0149] According to the second indication information of the abnormal traffic, a matching target processing unit is determined from the multiple processing units; and the target processing unit is used to perform feature matching detection on the abnormal traffic.

[0150] That is, after receiving the abnormal traffic and the second indication information, according to the target content detection method included in the second indication information, a processing unit that supports the target content detection method is selected from the multiple processing units as the target processing unit, so that the received abnormal traffic is input into the target processing unit, so that the target processing unit performs feature matching detection on the data information of the abnormal traffic according to the characteristics of the malicious traffic stored in the hardware acceleration device, and accurately identifies whether the abnormal traffic is malicious traffic.

[0151] In the disclosed embodiment, by setting multiple processing units in the second engine to support different types of content detection methods, after receiving the instruction information from the first engine, it is possible to quickly determine the target processing unit that matches the abnormal traffic, and use the unit to perform targeted feature matching detection, thereby achieving efficient and flexible detection of abnormal traffic, allowing the hardware acceleration device to flexibly respond to different types of malicious traffic, thereby greatly enhancing the ability of network security protection. In addition, with the support of the hardware acceleration device, it is possible to complete the processing and analysis of a large amount of data in a short time, providing a strong guarantee for network security.

[0152] In some embodiments, with the emergence of new network threats and attack methods, the feature library of malicious traffic needs to be continuously updated to maintain its effectiveness. The feature library of malicious traffic stored in the hardware acceleration device is configured by the CPU, and the feature library in the hardware acceleration device will also be maintained and updated by the CPU. Therefore, the aforementioned malicious traffic detection and protection method based on hardware acceleration can also include a feature library update step of the hardware acceleration device, and the feature library update can be achieved by the following process:

[0153] In response to receiving a feature library update instruction from the CPU, a new feature library is obtained from the CPU; and the feature library stored in the hardware acceleration device is updated using the new feature library.

[0154] That is, when the hardware acceleration device receives the CPU's signature library update instruction, the hardware acceleration device can obtain a new signature library based on the information carried in the signature library update instruction. If the signature library update instruction carries a new signature library, the signature library update instruction is parsed and obtained; if the signature library update instruction carries storage information indicating a new signature library, the storage location indicated by the storage information can be searched and the new signature library can be obtained.

[0155] After obtaining the new feature library, the hardware acceleration device uses the new feature library to update the old feature library stored inside it. After the feature library is updated, the feature library needs to be reloaded or the hardware acceleration device needs to be restarted so that the new feature library can be correctly loaded and used by the hardware acceleration device.

[0156] In some embodiments, based on the continuous emergence of new malicious traffic patterns, attack methods, and mutant viruses, in order to maintain the effectiveness and accuracy of the detection system, it is necessary to continuously update the processing logic of the engine in the hardware acceleration device to identify and respond to new threats. In addition, with the continuous advancement of technology and optimization of algorithms, more efficient detection methods and logic may appear, and the current processing logic may have loopholes or errors that need to be further repaired. Therefore, the above method may also include a processing logic update step of the engine set in the hardware acceleration device. Based on the fact that the update of the processing logic is controlled and maintained by the CPU, the processing logic update step may include:

[0157] In response to receiving a processing logic update instruction from the CPU, an engine to be processed in the hardware acceleration device is determined according to the logic update instruction; and the processing logic in the engine to be processed is rewritten into the acquired new processing logic.

[0158] The processing logic update instruction may include the specific content of the processing logic to be updated and which engines in the hardware acceleration device need to be updated, which may be set by a device identifier or an engine identifier. After obtaining the processing logic update instruction, the hardware acceleration device parses the processing logic update instruction to determine the engine to be processed in the hardware acceleration device, and the engine to be processed is the engine that needs to be updated with the processing logic.

[0159] For the engine to be processed, the hardware acceleration device can first stop or pause the work of the engine to be processed to ensure that no new traffic enters during the processing logic update process, resulting in data inconsistency or errors, and then write the acquired new processing logic into the storage area of ​​the engine to be processed, overwriting the original processing logic. After the write operation is completed, restart or resume the work of the engine to be processed so that it starts using the new processing logic to detect malicious traffic.

[0160] In order to enable those skilled in the art to better understand the malicious traffic detection and protection method based on hardware acceleration provided by the present application, the malicious traffic detection and protection system based on hardware acceleration provided by this example is described below. Figure 5 The device interaction and functional modules in the malicious traffic detection and protection system based on hardware acceleration are shown, which illustrate the interaction between the hardware acceleration device and the CPU in the above method, as well as the specific processing process of the hardware acceleration device.

[0161] This embodiment provides a malicious traffic detection and protection system based on hardware acceleration, see Figure 5 As shown, the system includes at least a CPU 510 and a hardware acceleration device 520. The system may also include other devices or apparatuses (not shown in the figure) for implementing malicious traffic detection and protection based on hardware acceleration.

[0162] The CPU 510 is used to configure the hardware acceleration device 520, and the CPU may include a feature library configuration and update unit 511 and a processing logic configuration and update unit 512. The feature library configuration and update unit 511 is used to configure the feature library of malicious traffic to the local storage of the hardware acceleration device 520, and to control the synchronization update of the feature library locally stored in the hardware acceleration device 520 when the feature library of malicious traffic is updated; the processing logic configuration and update unit 512 is used to configure the processing logic of the engine for executing malicious traffic in the hardware acceleration device, and to configure the update of the processing logic of the engine when the processing logic is iterated.

[0163] The hardware acceleration device 520 may include a traffic receiving and preprocessing unit 521, multiple first engines 522 and multiple second engines 523 as shown, and a real-time response and protection unit 524, and may also include a feature library control unit 525 and a processing logic control unit 526. The traffic receiving and preprocessing unit 521 is used to obtain the first network traffic on the network link. The unit can obtain the link network traffic on the network link through the network interface, and perform preliminary filtering on the link network traffic to obtain the first network traffic; the first engine 522 is used to receive the first network traffic output by the traffic receiving and preprocessing unit 521, and filter out abnormal traffic from the first network traffic according to the suspicious attack traffic filtering rules and the header information of the first network traffic, and input it into the second engine 523; the second engine 523 is used to receive the abnormal traffic output by the first engine 522, and filter out the abnormal traffic according to the malicious traffic filtering rules. The feature library is used to perform feature matching detection on the data information of the abnormal traffic and identify malicious traffic; the real-time response and protection unit 524 is used to perform security response and protection processing on the malicious traffic output by the second engine 523 to maintain the security of the network link; the feature library control unit 525 is used to receive the feature library configured by the feature library configuration and update unit 511 in the CPU and store it in the hardware acceleration device 520; the processing logic control unit 526 is used to cooperate with the processing logic configuration and update unit 512 in the CPU to realize the configuration and update of the processing logic of the first engine 522 and the second engine 523.

[0164] The implementation process of the functions and effects of each unit in the above system is specifically described in the implementation process of the corresponding steps in the above method, which will not be repeated here.

[0165] Corresponding to the above-mentioned embodiment of the malicious traffic detection and protection method based on hardware acceleration, see Figure 6 As shown, the present application also provides an embodiment of a malicious traffic detection and protection device based on hardware acceleration, which is applied to a hardware acceleration device, wherein the hardware acceleration device includes at least a first engine and a second engine, and the device includes:

[0166] The network traffic acquisition module 601 is used to acquire the first network traffic on the network link;

[0167] The header filtering module 602 is used to filter out abnormal traffic from the first network traffic using the first engine according to the suspicious attack traffic filtering rules and the header information of the first network traffic, and input the abnormal traffic to the second engine; the suspicious attack traffic filtering rules are pre-loaded by the CPU to the hardware acceleration device;

[0168] The abnormal traffic content detection module 603 is used to perform feature matching detection on the data information of the abnormal traffic using the second engine according to the feature library of malicious traffic, so as to identify malicious traffic; the feature library is pre-loaded by the CPU to the hardware acceleration device;

[0169] The response and protection processing module 604 is used to perform security response and protection processing on the malicious traffic.

[0170] In some embodiments, the network traffic acquisition module is specifically used to:

[0171] determining a network interface connected to the network link and establishing a connection with the network interface;

[0172] Acquiring the link network traffic of the network link through the network interface in a preset acquisition method; the preset acquisition method includes at least one of real-time data packet capture and traffic mirroring;

[0173] Perform preliminary filtering processing on the link network traffic to obtain the first network traffic; the preliminary filtering processing at least includes filtering processing for protocol type.

[0174] In some embodiments, the header filtering module is specifically used to:

[0175] Determine, according to the header information of the first network traffic, the traffic characteristics of each second network traffic in the first network traffic;

[0176] Using the first engine, matching the traffic characteristics of the second network traffic with a plurality of rule items in the suspicious attack traffic filtering rule;

[0177] In the case where the traffic feature successfully matches at least one rule item, the second network traffic corresponding to the successfully matched traffic feature is determined as the abnormal traffic.

[0178] In some embodiments, the apparatus further comprises:

[0179] According to the preset correspondence between the plurality of rule items and the detection directions, query the target detection direction corresponding to the target rule item as the target detection direction of the abnormal traffic, and output the first indication information;

[0180] Among them, the detection direction includes malicious traffic detection of malicious code type and malicious traffic detection of non-malicious code type; the target rule item refers to the rule item in which the traffic feature of the abnormal traffic is successfully matched; the first indication information is used to instruct the second engine to perform feature matching detection on the data information of the abnormal traffic for the target detection direction.

[0181] In some embodiments, the apparatus further comprises:

[0182] According to the preset correspondence between the plurality of rule items and the content detection methods, query the target content detection method corresponding to the target rule item as the target content detection method of the abnormal traffic, and output second indication information;

[0183] The second indication information is used to instruct the second engine to perform the feature matching detection on the abnormal traffic using the target content detection method.

[0184] In some embodiments, the second engine includes multiple processing units that support different types of content detection methods; the abnormal traffic content detection module is specifically used to:

[0185] According to the second indication information of the abnormal traffic, a matching target processing unit is determined from the multiple processing units; and the target processing unit is used to perform feature matching detection on the abnormal traffic.

[0186] In some embodiments, the response and protection processing module is specifically used to:

[0187] Generate a security event for the malicious traffic according to the detection result of the second engine;

[0188] According to the preset correspondence between different types of traffic and protection strategies, the protection strategy for the malicious traffic is determined and executed.

[0189] In some embodiments, the apparatus further comprises:

[0190] In response to receiving a feature library update instruction from the CPU, a new feature library is obtained from the CPU; and the feature library stored in the hardware acceleration device is updated using the new feature library.

[0191] In some embodiments, the apparatus further comprises:

[0192] In response to receiving a processing logic update instruction from the CPU, determining an engine to be processed in the hardware acceleration device according to the logic update instruction;

[0193] The processing logic in the engine to be processed is rewritten into the acquired new processing logic.

[0194] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0195] 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 present application. Ordinary technicians in this field can understand and implement it without creative work.

[0196] The present application also provides an electronic device. The structural diagram of the electronic device is as follows: Figure 7 As shown, the electronic device 700 includes at least one processor 701, a memory 702 and a bus 703, and at least one processor 701 is electrically connected to the memory 702; the memory 702 is configured to store at least one computer-executable instruction, and the processor 701 is configured to execute the at least one computer-executable instruction, thereby executing any step of the malicious traffic detection and protection method based on hardware acceleration provided in any embodiment or any optional implementation method of the present application.

[0197] Furthermore, the processor 701 may be a Field-Programmable Gate Array (FPGA) or other devices with logic processing capabilities, such as a Microcontroller Unit (MCU) or a Central Process Unit (CPU).

[0198] An embodiment of the present application also provides another readable storage medium storing a computer program, which is used to implement the steps of any malicious traffic detection and protection method based on hardware acceleration provided by any embodiment or any optional implementation method in the present application when executed by a processor.

[0199] The readable storage medium provided in the embodiments of the present application includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. In other words, the readable storage medium includes any medium that can store or transmit information in a readable form by a device (e.g., a computer).

[0200] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A malicious traffic detection and protection method based on hardware acceleration, It is characterized in that Applied to a hardware acceleration device, the hardware acceleration device includes at least a first engine and a second engine, and the method includes: Obtaining first network traffic on the network link; According to the suspicious attack traffic filtering rules and the header information of the first network traffic, the first engine is used to filter out abnormal traffic from the first network traffic and input it into the second engine; the suspicious attack traffic filtering rules are pre-loaded into the hardware acceleration device by the CPU; According to the feature library of malicious traffic, the second engine is used to perform feature matching detection on the data information of the abnormal traffic and the feature information of the malicious traffic included in the feature library through hardware acceleration. When the data information of the abnormal traffic matches the feature information of the feature library successfully, the abnormal traffic is determined to be malicious traffic, so as to identify the malicious traffic from the abnormal traffic; the feature library is pre-loaded by the CPU to the hardware acceleration device; the malicious traffic includes malicious traffic of malicious code type or malicious traffic of non-malicious code type; the data information of the abnormal traffic includes the data content actually transmitted by the abnormal traffic; Perform security response and protection processing on the malicious traffic.

2. The method according to claim 1, It is characterized in that The obtaining of first network traffic on the network link includes: determining a network interface connected to the network link and establishing a connection with the network interface; Acquiring the link network traffic of the network link through the network interface in a preset acquisition method; the preset acquisition method includes at least one of real-time data packet capture and traffic mirroring; Perform preliminary filtering processing on the link network traffic to obtain the first network traffic; the preliminary filtering processing at least includes filtering processing for protocol type.

3. The method according to claim 1, It is characterized in that The using the first engine to filter out abnormal traffic from the first network traffic includes: Determine, according to the header information of the first network traffic, the traffic characteristics of each second network traffic in the first network traffic; Using the first engine, matching the traffic characteristics of the second network traffic with a plurality of rule items in the suspicious attack traffic filtering rule; In the case where the traffic feature successfully matches at least one rule item, the second network traffic corresponding to the successfully matched traffic feature is determined as the abnormal traffic.

4. The method according to claim 3, It is characterized in that The method further comprises: According to the preset correspondence between the plurality of rule items and the detection directions, query the target detection direction corresponding to the target rule item as the target detection direction of the abnormal traffic, and output the first indication information; Among them, the detection direction includes malicious traffic detection of malicious code type and malicious traffic detection of non-malicious code type; the target rule item refers to the rule item in which the traffic feature of the abnormal traffic is successfully matched; the first indication information is used to instruct the second engine to perform feature matching detection on the data information of the abnormal traffic for the target detection direction.

5. The method according to claim 4, It is characterized in that The method further comprises: According to the preset correspondence between the plurality of rule items and the content detection methods, query the target content detection method corresponding to the target rule item as the target content detection method of the abnormal traffic, and output second indication information; The second indication information is used to instruct the second engine to perform the feature matching detection on the abnormal traffic using the target content detection method.

6. The method according to claim 5, It is characterized in that The second engine includes a plurality of processing units that support different types of content detection methods; the method of using the second engine to perform feature matching detection on the data information of the abnormal traffic includes: Determining a matching target processing unit from the plurality of processing units according to the second indication information of the abnormal traffic; The target processing unit is used to perform feature matching detection on the abnormal traffic.

7. The method according to claim 1, It is characterized in that The performing security response and protection processing on the malicious traffic includes: Generate a security event for the malicious traffic according to the detection result of the second engine; According to the preset correspondence between different types of traffic and protection strategies, the protection strategy for the malicious traffic is determined and executed.

8. The method according to claim 1, It is characterized in that The method further comprises: In response to receiving a feature library update instruction from the CPU, a new feature library is obtained from the CPU; and the feature library stored in the hardware acceleration device is updated using the new feature library.

9. The method according to claim 1, It is characterized in that The method further comprises: In response to receiving a processing logic update instruction from the CPU, determining an engine to be processed in the hardware acceleration device according to the logic update instruction; The processing logic in the engine to be processed is rewritten into the acquired new processing logic.

10. A malicious traffic detection and protection device based on hardware acceleration, It is characterized in that Applied to a hardware acceleration device, the hardware acceleration device includes at least a first engine and a second engine, and the apparatus includes: A network traffic acquisition module, used to acquire first network traffic on a network link; A header filtering module, configured to filter out abnormal traffic from the first network traffic using the first engine according to a suspicious attack traffic filtering rule and the header information of the first network traffic, and input the abnormal traffic into the second engine; the suspicious attack traffic filtering rule is pre-loaded by the CPU into the hardware acceleration device; The abnormal traffic content detection module is used to perform feature matching detection on the data information of the abnormal traffic and the feature information of the malicious traffic included in the feature library by using the second engine through hardware acceleration according to the feature library of malicious traffic, and determine that the abnormal traffic is malicious traffic when the data information of the abnormal traffic matches the feature information of the feature library successfully, so as to identify the malicious traffic from the abnormal traffic; the feature library is pre-loaded by the CPU to the hardware acceleration device; the data information of the abnormal traffic includes the data content actually transmitted by the abnormal traffic; The response and protection processing module is used to perform security response and protection processing on the malicious traffic.

11. A malicious traffic detection and protection system based on hardware acceleration, It is characterized in that include: CPU, used to configure hardware acceleration devices; The hardware acceleration device includes at least a first engine and a second engine, and is used for: Obtaining first network traffic on the network link; According to the suspicious attack traffic filtering rules and the header information of the first network traffic, the first engine is used to filter out abnormal traffic from the first network traffic and input it into the second engine; the suspicious attack traffic filtering rules are pre-loaded into the hardware acceleration device by the CPU; According to the feature library of malicious traffic, the second engine is used to perform feature matching detection on the data information of the abnormal traffic and the feature information of the malicious traffic included in the feature library through hardware acceleration, and when the data information of the abnormal traffic successfully matches the feature information of the feature library, the abnormal traffic is determined to be malicious traffic, so as to identify the malicious traffic from the abnormal traffic; the feature library is pre-loaded by the CPU to the hardware acceleration device; the data information of the abnormal traffic includes the data content actually transmitted by the abnormal traffic; Perform security response and protection processing on the malicious traffic.

12. An electronic device, It is characterized in that include: CPU, memory; The memory is used to store computer programs; The CPU is configured to execute the method according to any one of claims 1 to 9 by calling the computer program.

13. A readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by the CPU, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Protection method, apparatus and system for distributed denial of service DDoS (distributed denial of service) attack

    CN104967588A

  • Message detection methods and device based on rules

    CN109413016A

  • Network traffic detection method and device, equipment and medium

    CN113542253A

  • Rule engine implementation method for accurately identifying malicious network communication

    CN113691562A

  • Methods, systems, and computer readable media for monitoring encrypted network traffic flows

    US20190068564A1