IP Library › Granted Patent US 10,715,546
Granted Patent B2
US 10,715,546 · App. 16/296,065 · Granted Jul 14, 2020

Website attack detection and protection method and system

Inventor: Dandan Peng (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
H04L63/1458G06F17/18G06F21/554G06F21/577H04L63/0838H04L63/1416
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 10,715,546
App. No.
16/296,065
Filed
Mar 7, 2019
Granted
Jul 14, 2020
Kind
B2
Examiner
SONG, HOSUK
Art Unit
2435
USPC
726/22
Abstract

Embodiments of this application disclose a website attack detection and protection method and system performed by a computing device, applied to the field of information processing technologies. In the method in the embodiments, the computing device calculates a parameter value of an information aggregation degree parameter corresponding to each field included in a header of a request for accessing a website, and then determines, according to the parameter value or a variation degree of the parameter value of the information aggregation degree parameter of the field, whether the website suffers a Challenge Collapsar attack.

Claims (74)

1. A website attack detection method performed by a computing device having one or more processors and memory storing a plurality of programs to be executed by the computing device, the method comprising:

detecting a request for accessing a website, the request for accessing the website including a header comprising a plurality of fields;

calculating a statistical average parameter value of an information entropy parameter corresponding to each of the plurality of fields; and

determining, in accordance with a determination that the statistical average parameter value of the information entropy parameter of the field is less than a corresponding first threshold or a ratio of the information entropy parameter of the field to a corresponding baseline value is less than a corresponding second threshold, that the website suffers a Challenge Collapsar attack.

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

before determining that the website suffers a Challenge Collapsar attack:

determining that a plurality of historical access requests when the website does not suffer a Challenge Collapsar attack as request samples;

respectively calculating parameter values of information entropy parameters of all fields comprised in a header of each of the plurality of historical access requests; and

collecting average statistics on parameter value ranges of the information entropy parameters corresponding to all the fields or collecting statistics on baseline values of the information entropy parameters corresponding to all the fields, wherein the first preset range is the parameter value range of the information entropy parameter corresponding to the field, and the variation degree of the parameter value of the information entropy parameter corresponding to the field is a ratio of the parameter value of the information entropy parameter of the field to the corresponding baseline value.

3. The method according to claim 2 , wherein the collecting average statistics on baseline values of the information entropy parameter corresponding to the field further comprises: using an average value of the parameter values that are of the information entropy parameter corresponding to the field and that are comprised in the plurality of request samples as the baseline value.

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

obtaining a plurality of first access requests sent to the website within a preset time range, wherein the first access request carries at least one first attribute feature, and the at least one first attribute feature is one or a combination of several of Accept, Cookie, Referer, and User-Agent;

collecting statistics on a quantity of times that the first attribute feature appears in the plurality of first access requests;

determining, according to the quantity of times that the first attribute feature appears, that the first attribute feature is an attack feature; and

determining, according to the first attribute feature, whether a second access request for accessing the website is an attack access request; and if yes, performing anti-attack processing on the second access request.

5. The method according to claim 4 , wherein the determining, according to the quantity of times that first attribute feature appears, that the first attribute feature is an attack feature comprises:

detecting whether the quantity of times that the first attribute feature appears is greater than an appearance time quantity threshold; and

if yes, determining that the first attribute feature is the attack feature.

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

if it is determined that the first attribute feature is the attack feature, adding the first attribute feature to an attack feature library; and

the determining, according to the first attribute feature, whether a second access request for accessing the website is an attack access request comprises:

receiving the second access request sent to the website, and obtaining at least one second attribute feature carried in the second access request;

matching the second attribute feature by using the attack feature library; and

if the first attribute feature matching the second attribute feature exists in the attack feature library, determining that the second access request is the attack access request.

7. The method according to claim 4 , wherein the anti-attack processing comprises any one of the following:

sending a verification code to a user terminal that sends the second access request;

discarding the second access request; and

disconnecting a connection to the user terminal that sends the second access request.

8. A computing device for website attack detection, comprising:

one or more processors;

memory connected to the one or more processors; and

a plurality of programs stored in the memory that, when executed by the one or more processors, cause the computing device to perform a plurality of operations including:

detecting a request for accessing a website, the request for accessing the website including a header comprising a plurality of fields;

calculating a statistical average parameter value of an information entropy parameter corresponding to each of the plurality of fields; and

determining, in accordance with a determination that the statistical average parameter value of the information entropy parameter of the field is less than a corresponding first threshold or a ratio of the information entropy parameter of the field to a corresponding baseline value is less than a corresponding second threshold, that the website suffers a Challenge Collapsar attack.

9. The computing device according to claim 8 , wherein the plurality of operations further comprise:

before determining that the website suffers a Challenge Collapsar attack:

determining that a plurality of historical access requests when the website does not suffer a Challenge Collapsar attack as request samples;

respectively calculating parameter values of information entropy parameters of all fields comprised in a header of each of the plurality of historical access requests; and

collecting average statistics on parameter value ranges of the information entropy parameters corresponding to all the fields or collecting statistics on baseline values of the information entropy parameters corresponding to all the fields, wherein the first preset range is the parameter value range of the information entropy parameter corresponding to the field, and the variation degree of the parameter value of the information entropy parameter corresponding to the field is a ratio of the parameter value of the information entropy parameter of the field to the corresponding baseline value.

10. The computing device according to claim 9 , wherein the collecting average statistics on baseline values of the information entropy parameter corresponding to the field further comprises: using an average value of the parameter values that are of the information entropy parameter corresponding to the field and that are comprised in the plurality of request samples as the baseline value.

11. The computing device according to claim 8 , wherein the plurality of operations further comprise:

obtaining a plurality of first access requests sent to the website within a preset time range, wherein the first access request carries at least one first attribute feature, and the at least one first attribute feature is one or a combination of several of Accept, Cookie, Referer, and User-Agent;

collecting statistics on a quantity of times that the first attribute feature appears in the plurality of first access requests;

determining, according to the quantity of times that the first attribute feature appears, that the first attribute feature is an attack feature; and

determining, according to the first attribute feature, whether a second access request for accessing the website is an attack access request; and if yes, performing anti-attack processing on the second access request.

12. The computing device according to claim 11 , wherein the determining, according to the quantity of times that first attribute feature appears, that the first attribute feature is an attack feature comprises:

detecting whether the quantity of times that the first attribute feature appears is greater than an appearance time quantity threshold; and

if yes, determining that the first attribute feature is the attack feature.

13. The computing device according to claim 11 , wherein the plurality of operations further comprise:

if it is determined that the first attribute feature is the attack feature, adding the first attribute feature to an attack feature library; and

the determining, according to the first attribute feature, whether a second access request for accessing the website is an attack access request comprises:

receiving the second access request sent to the website, and obtaining at least one second attribute feature carried in the second access request;

matching the second attribute feature by using the attack feature library; and

if the first attribute feature matching the second attribute feature exists in the attack feature library, determining that the second access request is the attack access request.

14. The computing device according to claim 11 , wherein the anti-attack processing comprises any one of the following:

sending a verification code to a user terminal that sends the second access request;

discarding the second access request; and

disconnecting a connection to the user terminal that sends the second access request.

15. A non-transitory computer readable storage medium storing a plurality of instructions in connection with a computing device having one or more processors for website attack detection, wherein the plurality of instructions, when executed by the one or more processors, cause the computing device to perform a plurality of operations including:

detecting a request for accessing a website, the request for accessing the website including a header comprising a plurality of fields;

calculating a statistical average parameter value of an information entropy parameter corresponding to each of the plurality of fields; and

determining, in accordance with a determination that the statistical average parameter value of the information entropy parameter of the field is less than a corresponding first threshold or a ratio of the information entropy parameter of the field to a corresponding baseline value is less than a corresponding second threshold, that the website suffers a Challenge Collapsar attack.

16. The non-transitory computer readable storage medium according to claim 15 , wherein the plurality of operations further comprise:

before determining that the website suffers a Challenge Collapsar attack:

determining that a plurality of historical access requests when the website does not suffer a Challenge Collapsar attack as request samples;

respectively calculating parameter values of information entropy parameters of all fields comprised in a header of each of the plurality of historical access requests; and

collecting average statistics on parameter value ranges of the information entropy parameters corresponding to all the fields or collecting statistics on baseline values of the information entropy parameters corresponding to all the fields, wherein the first preset range is the parameter value range of the information entropy parameter corresponding to the field, and the variation degree of the parameter value of the information entropy parameter corresponding to the field is a ratio of the parameter value of the information entropy parameter of the field to the corresponding baseline value.

17. The non-transitory computer readable storage medium according to claim 16 , wherein the collecting average statistics on baseline values of the information entropy parameter corresponding to the field further comprises: using an average value of the parameter values that are of the information entropy parameter corresponding to the field and that are comprised in the plurality of request samples as the baseline value.

18. The non-transitory computer readable storage medium according to claim 15 , wherein the plurality of operations further comprise:

obtaining a plurality of first access requests sent to the website within a preset time range, wherein the first access request carries at least one first attribute feature, and the at least one first attribute feature is one or a combination of several of Accept, Cookie, Referer, and User-Agent;

collecting statistics on a quantity of times that the first attribute feature appears in the plurality of first access requests;

determining, according to the quantity of times that the first attribute feature appears, that the first attribute feature is an attack feature; and

determining, according to the first attribute feature, whether a second access request for accessing the website is an attack access request; and if yes, performing anti-attack processing on the second access request.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 3, 2019
From: PENG, DANDAN
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 048784/0118 →
Priority Claims (2)
CN 2016 1 1049081 · Nov 23, 2016 · national
CN 2016 1 1061771 · Nov 24, 2016 · national
Continuity (2)
Continuation PCTCN2017107784 · Oct 26, 2017
Related Publication 20190207973A1 · Jul 4, 2019