# US 2023/0156035 A1 · METHOD AND APPARATUS FOR DETECTING DDoS ATTACKS

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

- Number: US 2023/0156035 A1
- Document ID: US20230156035A1
- Status: Published application
- Kind: A1
- Application number: 17/664,396
- Filed: 2022-05-20
- Published: 2023-05-18
- Earliest claimed: 2021-11-17
- Assignees: WINS Co., Ltd.
- Applicants: WINS Co., Ltd.
- Inventors: Ji Baek PARK; Myeong Hwan CHA
- Web page: https://patentgrep.com/patent/US20230156035A1

## CPC

- H04L 63/1458: {Denial of Service}
- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Disclose are a method and apparatus for detecting DDoS attacks. The DDoS attack detection method of a DDoS attack detection apparatus may include detecting distributed denial-of-service (DDoS) attack and, more particularly, include detecting unknown DDoS attack patterns provided in similar forms on the Internet network and controlling packet transmission or reception.

## Claims

### Claim 1

A DDoS attack detection method by a DDoS attack detection apparatus, the method comprising:
storing a predetermined pattern and a predetermined mask associated with each block of an object for which detection is to be performed, and producing an offset bitmask and a matching mode that correspond to the mask for each block; and
determining whether the pattern matches each sequential block associated with a received packet,
wherein the determining of whether the pattern and the block match comprises:
in a byte matching mode among matching modes, determining whether a result of comparison between the block of the received packet and the pattern is identical to the offset bitmask; and
in a bit matching mode among the matching modes, determining whether a result of comparison between the pattern and a result of an operation performed on the mask and block of the received packet is identical to the offset bitmask.

### Claim 2 (depends on 1)

The method of claim 1, wherein a size of the block is dynamically determined for each block of the received packet.

### Claim 3 (depends on 1)

The method of claim 1, wherein the byte matching mode or the bit matching mode is dynamically determined for each block of the received packet.

### Claim 4 (depends on 1)

The method of claim 1, wherein the producing comprises producing the offset bitmask by using a value of 0 when a byte value of the mask is a hexadecimal number of 00, and using a value compressed into 1 for other byte values.

### Claim 5 (depends on 1)

The method of claim 1, wherein the producing comprises determining the byte matching mode as the matching mode if all byte values of the mask correspond to a hexadecimal number of 00 or FF, and determining the bit matching mode as the matching mode for other cases.

### Claim 6 (depends on 1)

The method of claim 1, wherein, in the bit matching mode, the operation performed on the mask and the block is a vector AND operation between byte values.

### Claim 7 (depends on 1)

The method of claim 1, wherein, in the byte matching mode and the bit matching mode, the result of comparison with the pattern is a comparison result (vector CMP) association with whether byte values of the pattern match.

### Claim 8 (depends on 1)

The method of claim 1, wherein the determining of whether the pattern and the block match comprises:
performing the byte matching mode or the bit matching mode to each sequential block of the received packet according to the matching mode at each of indices corresponding to an index length of the offset bitmask, and determining that an attack pattern is detected if the pattern and the block of the received packet match at all indices corresponding to the index length.

### Claim 9

A DDoS attack detection apparatus on a network, the apparatus comprising:
a policy managing unit configured to store a predetermined pattern and a predetermined mask associated with each block of an object for which detection is to be performed, and to produce an offset bitmask and a matching mode that correspond to the mask associated with each block; and
a packet processing unit configured to determine whether the pattern and each sequential block of a received packet match, and according to the matching mode, to perform a byte matching mode for determining whether a result of comparison between the block of the received packet and the pattern is identical to the offset bitmask, and to perform a bit matching mode for determining whether a result of comparison between the pattern and a result of an operation performed on the mask and the block of the received packet is identical to the offset bitmask.
