| CPC H04L 41/145 (2013.01) [H04L 41/00 (2013.01); H04L 63/1416 (2013.01); H04L 63/145 (2013.01); H04L 67/02 (2013.01); H04L 69/22 (2013.01)] | 20 Claims |

|
1. A method comprising:
performing, by a network protection device, protocol parsing on one or more packets comprised in received first network traffic, to obtain one or more first parsing results comprising one or more first preset fields, the one or more first preset fields comprising first key data;
obtaining, by the network protection device, the first key data from the one or more first preset fields, and matching the first key data with one or more first attack signatures in a signature database to obtain a first matching result, the first matching result comprising a first attack signature comprised in both the first key data and the signature database;
determining, by the network protection device based on the first matching result, whether the first network traffic is aggressive;
in response to determining, by the network protection device based on the first matching result, that the first network traffic is aggressive, adding, by the network protection device, the first network traffic to a first sample set as a black sample, to obtain a second sample set, wherein the first sample set comprises at least one black sample, and training, by the network protection device, an original attack detection model using the second sample set based on a predetermined algorithm, to obtain a target attack detection model, the target attack detection model being configured to identify one or more attack signatures different from the one or more attack signatures in the signature database;
receiving, by the network protection device, second network traffic;
determining, by the network protection device based on the target attack detection model, whether the second network traffic is aggressive; and
in response to determining, based on the target attack detection model, that the second network traffic is not aggressive, performing, by the network protection device, an action response for the second network traffic based on a second preset action, wherein when the second preset action is allowing, performing, by the network protection device, the action response for the second network traffic based on the second preset action comprises:
sending, by the network protection device, the second network traffic to a next-hop device of the network protection device.
|