# US 2021/0344704 A1 · Network Defense Method and Security Detection Device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0344704 A1
- Document ID: US20210344704A1
- Status: Published application
- Kind: A1
- Application number: 17/244,396
- Filed: 2021-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Zhenwei Zhang
- Web page: https://patentgrep.com/patent/US20210344704A1

## CPC

- H04L 63/1433: {Vulnerability analysis}
- H04L 63/0218: {Distributed architectures, e.g. distributed firewalls}
- H04L 63/0245: {Filtering by information in the payload}
- H04L 63/0254: {Stateful filtering}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A network defense method and a security detection device, to resolve a problem of malicious traffic spreading in a campus network. The method includes a security detection device receiving a first packet. The security detection device detects the first packet when security detection on the first packet is not completed and a security detection capability of the security detection device is sufficient to detect the first packet. Furthermore, the security detection device forwards the first packet when security detection on the first packet is not completed and the security detection capability of the security detection device is insufficient.

## Claims

### Claim 1

A network defense method implemented by a security detection device, wherein the method comprises:
receiving a packet;
performing security detection on the packet when the security detection on the packet that is received is not completed and a security detection capability of the security detection device is capable of performing the security detection on the packet; and
forwarding the packet when the security detection on the packet that is received is not completed and the security detection capability is not capable of performing the security detection on the packet.

### Claim 2 (depends on 1)

The network defense method of claim 1, further comprising determining, based on identifying whether a detection flag is in the packet, whether the security detection on the packet that is received is completed.

### Claim 3 (depends on 1)

The network defense method of claim 1, wherein before performing the security detection on the packet that is received, the method further comprises:
discarding the packet when a detection record of a flow to which the packet belongs indicates that the flow is insecure; and
updating, based on a detection result of the packet, the detection record.

### Claim 4 (depends on 1)

The network defense method of claim 1, further comprising:
identifying that a first-type security detection is completed on the packet, a second-type security detection is not completed on the packet, and the security detection capability is capable of performing the second-type security detection on the packet; and
performing, in response to the identifying, the second-type security detection on the packet.

### Claim 5

An apparatus, comprising:
a memory configured to store a computer program; and
a processor coupled to the memory and configured to execute the computer program to cause the apparatus to be configured to:
receive a packet;
perform security detection on the packet when the security detection on the packet that is received is not completed and a security detection capability of the apparatus is capable of performing the security detection on the packet; and
forward the packet when the security detection on the packet that is received is not completed and the security detection capability is not capable of performing the security detection on the packet.

### Claim 6

A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable storage medium that, when executed by a processor, cause the processor to:
receive a packet;
perform security detection on the packet when the security detection on the packet that is received is not completed and a security detection capability of the apparatus is capable of performing the security detection on the packet, and
forward the packet when the security detection on the packet is not completed and the security detection capability is not capable of performing the security detection on the packet.

### Claim 7 (depends on 6)

The computer program product of claim 6, wherein the computer-executable instructions further cause the apparatus to determine, based on whether a detection flag is on the packet, whether the security detection on the packet that is received is completed.

### Claim 8 (depends on 6)

The computer program product of claim 6, wherein before detecting the packet, the computer-executable instructions further cause the apparatus to:
discard the packet when a detection record of a flow to which the packet belongs indicates that the flow is insecure; and
update, based on discarding the packet, the detection record.

### Claim 9 (depends on 6)

The computer program product of claim 6, wherein the computer-executable instructions further cause the apparatus to:
identify that a first-type security detection is completed on the packet, a second-type security detection is not completed on the packet, and the security detection capability is capable of performing the second-type security detection on the packet; and
perform, in response to the identifying that the first type security detection, the second-type security detection on the packet.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein after performing the second-type security detection on the packet, the computer-executable instructions further cause the processor to:
identify that the security detection capability is capable of performing a third-type security detection on the packet; and
perform, in response to identifying that the security detection capability is capable of performing the third-type security detection on the packet, the third-type security detection on the packet.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein after performing the second-type security detection on the packet, the computer-executable instructions further cause the apparatus to:
identify that the security detection capability is capable of performing a third-type security detection on the packet; and
forward, in response to identifying that the security detection capability is capable of performing the third-type security detection on the packet, the packet.

### Claim 12 (depends on 6)

The computer program product of claim 6, wherein before forwarding the packet, the computer-executable instructions further cause the apparatus to:
discard the packet when a detection record of a flow to which the packet belongs indicates that the flow is insecure; and
update, based on discarding the packet, the detection record.

### Claim 13 (depends on 4)

The network defense method of claim 4, wherein after performing the second-type security detection on the packet, the method further comprises:
identifying that the security detection capability is capable of performing a third-type security detection on the packet; and
performing, in response to identifying that the security detection capability is capable of performing a third-type security detection on the packet, the third-type security detection on the packet.

### Claim 14 (depends on 4)

The network defense method of claim 4, wherein after performing the second-type security detection on the packet, the method further comprises:
identifying that the security detection capability is capable of performing a third-type security detection on the packet; and
forwarding, in response to identifying that the security detection capability is capable of performing the third-type security detection on the packet, the packet.

### Claim 15 (depends on 1)

The network defense method of claim 1, wherein before forwarding the packet, the method further comprises:
discarding the packet when a detection record of a flow to which the packet belongs indicates that the flow is insecure; and
updating, based on discarding the packet, the detection record.

### Claim 16 (depends on 5)

The apparatus of claim 5, wherein the computer program further causes the apparatus to be configured to determine, based on identifying a detection flag on the packet, whether the security detection on the packet that is received is completed.

### Claim 17 (depends on 5)

The apparatus of claim 5, wherein before detecting or forwarding the packet, the computer program further causes the apparatus to be configured to:
discard the packet when a detection record of a flow to which the packet belongs indicates that the flow is insecure; and
update, based on discarding the packet, the detection record.

### Claim 18 (depends on 5)

The apparatus of claim 5, wherein the computer program further causes the apparatus to be configured to:
identify that a first-type security detection is completed on the packet and a second-type security detection is not completed on the packet and the security detection capability is capable of performing the second-type security detection on the packet; and
perform, in response to the identifying, the second-type security detection on the packet.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein after performing the second-type security detection on the packet, the computer program further causes the apparatus to be configured to:
identify that the security detection capability is capable of performing a third-type security detection on the packet; and
perform, in response to identifying that the security detection capability is capable of performing the third-type security detection on the packet, the third-type security detection on the packet.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein after performing the second-type security detection on the packet, the computer program further causes the apparatus to be configured to:
identify that the security detection capability is capable of performing a third-type security detection on the packet; and
forward, in response to identifying that the security detection capability is capable of performing the third-type security detection on the packet, the packet.
