IP Library Granted Patent US 8,499,146
Granted Patent B2
US 8,499,146 · App. 13/097,676 · Granted Jul 30, 2013

Method and device for preventing network attacks

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,499,146
App. No.
13/097,676
Granted
Jul 30, 2013
Kind
B2
Abstract

A method for preventing network attacks is provided, which includes: obtaining a data packet, where a source address of the data packet is a cryptographically generated address (CGA); determining that the obtained data packet includes a CGA parameter and signature information; authenticating the CGA parameter; authenticating the signature information according to the authenticated CGA parameter; and sending the data packet to a destination address when the signature information is authenticated. Accordingly, a device for preventing network attacks is also provided. A CGA parameter used by a data packet is directly used to ensure authenticity of a source address of the data packet, thus preventing network attacks performed by counterfeiting the address. In addition, by authenticating signature information, authenticity of identification of a sender of the data packet and bound address of the sender of the data packet are further ensured. Therefore, illegal data packets are filtered to prevent network attacks on servers, thus improving network security.

Claims (36)

1. A method performed by a network entity for preventing network attacks, comprising:

receiving a data packet including a source address of the data packet, wherein the source address is a cryptographically generated address (CGA);

detecting the received data packet, and determining whether the data packet comprises a CGA parameter and signature information;

authenticating the CGA parameter when the data packet comprises the CGA parameter and the signature information, and authenticating the signature information according to a successfully-authenticated CGA parameter; wherein the authenticating the signature information according to the successfully-authenticated CGA parameter comprises:

querying a record table to determine whether the source address of the data packet is contained in the record table;

authenticating the CGA parameter when the source address is not contained in the record table, authenticating the signature information according to the successfully-authenticated CGA parameter, and saving the source address and a corresponding public key in the record table, wherein the corresponding public key is extracted from the successfully-authenticated CGA parameter; and

discarding the data packet when

the CGA parameter authentication fails, or

the signature information authentication fails; and

authenticating the signature information by using the corresponding public key when the source address is contained in the record table, wherein the corresponding public key is contained in the record table and corresponds to the source address; and

discarding the data packet when

CGA parameter authentication fails, or

the information authentication fails; and

sending the data packet to a destination address after the signature information is authenticated.

2. The method according to claim 1 , wherein the CGA parameter comprises a public key, a sub-network prefix, and a collision count, and the authenticating the CGA parameter comprises performing at least one authentication step of the group consisting of:

performing a hash calculation on the public key in the CGA parameter to obtain a hash value, and comparing the hash value with an interface identifier in the source address, wherein when the hash value is not consistent with the interface identifier, the CGA authentication fails; checking whether the sub-network prefix in the CGA parameter is the sub-network prefix of the CGA, wherein when the sub-network prefix in the CGA parameter is not the sub-network prefix of the CGA, the CGA authentication fails; and

checking whether the collision count in the CGA parameter is within a preset range, wherein when the collision count in the CGA parameter is not within the preset range, the CGA authentication fails.

3. The method according to claim 1 , wherein the CGA parameter comprises the public key, and the authenticating the signature information according to a successfully-authenticated CGA parameter comprises:

performing a calculation on the signature information using an encryption algorithm corresponding to the signature information using a public key extracted from the successfully-authenticated CGA, and comparing a value obtained through the calculation on the signature information with a value before the signature information calculation, wherein successful authentication of the signature information occurs when the two values are the same.

4. The method according to claim 1 , further comprising:

returning an error report to the source address that sends the data packet after discarding the data packet.

5. A device for preventing network attacks, the device comprising:

a processor; and

a memory which comprises a data packet receiving module, a data packet check module, a cryptographically generated address (CGA) authentication module, a signature authentication module, a main control module, a storage module and a record query module, wherein:

the data packet receiving module receives a data packet including a source address of the data packet, wherein the source address of the data packet is the CGA;

the data packet check module, configured to checks the received data packet, determine whether the data packet comprises a CGA parameter and signature information, and send a first check result;

the CGA authentication module authenticates the CGA parameter of the obtained data packet when the first check result indicates that the CGA parameter exists, and send an authentication result of the CGA parameter;

the signature authentication module authenticates the signature information according to a successfully-authenticated CGA parameter if the authentication result sent by the CGA authentication module indicates that the CGA parameter is authenticated successfully, and send an authentication result of the signature information; and

the main control module processes the data packet sent to a server according to the received first check result, and the authentication result of the CGA parameter, which is sent by the CGA authentication module; or the authentication result of the signature information, which is sent by the signature authentication module, wherein

when an authentication on the CGA parameter of the received data packet performed by the CGA authentication module succeeds, and an authentication performed by the signature authentication module succeeds, then the main control module sends the data packet to a destination address;

the storage module stores a record table, wherein the record table comprises the source address of the data packet of which the CGA parameter is successfully-authenticated by the CGA authentication module, and a public key corresponding to the source address and extracted from the successfully-authenticated CGA parameter;

the record query module queries the record table in the storage module according to the source address of the data packet, and return a second check result to the main control module; wherein

the main control module uses a corresponding public key in the record table to authenticate the signature information when the received second check result indicates that the source address of the data packet exists in the record table, wherein the corresponding public key is contained in the record table and corresponds to the source address; and the main control module discards the data packet when

the CGA parameter authentication fails, or

the signature information authentication fails, and

when the received second check result indicates that the source address of the data packet is not contained in the record table, the CGA parameter of the data packet is sent to the CGA authentication module for an authentication, and the signature information of the data packet is sent to the signature authentication module for the authentication.

Assignments (4)
CORRECTIVE ASSIGNMENT TO CORRECT THE CONVEYING PARTY'S NAME ON THE COVER SHEET PREVIOUSLY RECORDED AT REEL: 060907 FRAME: 0736. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT. Recorded Oct 14, 2022
From: HUAWEI DIGITAL TECHNOLOGIES(CHENG DU) CO., LIMITED.
To: CHENGDU HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 061872/0024 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 26, 2022
From: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) CO.
To: CHENGDU HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 060907/0736 →
CHANGE OF NAME Recorded Dec 8, 2014
From: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LIMITED
To: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) CO. LIMITED.
Reel/Frame 034537/0210 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 8, 2011
From: FENG, HONGYAN; LIU, LIFENG
To: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LTD.
Reel/Frame 026563/0800 →