IP Library › Granted Patent US 11,233,819
Granted Patent B2
US 11,233,819 · App. 16/562,161 · Granted Jan 25, 2022

Method and apparatus for analyzing cyberattack

Inventor: Jinjin Li (Beijing, CN)
Assignee: Beijing Baidu Netcom Science and Technology Co., Ltd.
H04L63/1466H04L63/0876H04L63/1425
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 11,233,819
App. No.
16/562,161
Granted
Jan 25, 2022
Kind
B2
Abstract

Embodiments of the present disclosure provide a method and apparatus for analyzing a cyber attack. A method may include: acquiring a web blog of a server; detecting whether a hypertext transfer protocol request in the web log is offensive, to obtain a detection result of the hypertext transfer protocol request, and storing the hypertext transfer protocol request, the detection result of the hypertext transfer protocol request, and extracted data portion correspondingly.

Claims (60)

1. A method for analyzing a cyber attack, comprising:

acquiring a web log of a server, the web log of the server comprising: a hypertext transfer protocol request received by the server, and a data portion extracted from a response of hypertext transfer protocol corresponding to the hypertext transfer protocol request;

detecting whether the hypertext transfer protocol request in the web log is offensive, to obtain a detection result of the hypertext transfer protocol request, and storing the hypertext transfer protocol request, the detection result of the hypertext transfer protocol request, and the extracted data portion correspondingly; and

setting, in response to determining that feature information of the hypertext transfer protocol request being offensive in the detection result matches feature information of a preset white list, the detection result of the offensive hypertext transfer protocol request to be non-offensive, wherein each piece of the feature information in the preset white list is feature information of a non-offensive hypertext transfer protocol request pre-selected from a plurality of detected offensive hypertext transfer protocol requests,

wherein the detecting whether the hypertext transfer protocol request in the web log is offensive, to obtain a detection result of the hypertext transfer protocol request comprises:

calculating, in response to the hypertext transfer protocol request matching at least one attack rule template, a score corresponding to the hypertext transfer protocol request, the score corresponding to the hypertext transfer protocol request being a sum of a score corresponding to each attack rule template matching the hypertext transfer protocol request, the score corresponding to each attack rule template indicating a hazard level of an attack approach corresponding to the attack rule template on a system; and

obtaining the detection result of the hypertext transfer protocol request based on the score corresponding to the hypertext transfer protocol request.

2. The method according to claim 1 , wherein

the feature information comprises: a detected attack type, a name of a service requested by the hypertext transfer protocol request, a uniform resource locator (URL) of the service requested by the hypertext transfer protocol request, a detected attack field, an identifier of an attack rule template matching the hypertext transfer protocol request, and a source IP address of the hypertext transfer protocol request.

3. The method according to claim 2 , wherein the method further comprises:

increasing, in response to the hypertext transfer protocol request being offensive in the detection result associated with a preset selection result, a score corresponding to the offensive hypertext transfer protocol request, the preset selection result being selected from items of statistical information among pre-ranked items of statistical information, the statistical information comprising:

a number of hypertext transfer protocol requests corresponding to each target attack rule template,

a number of hypertext transfer protocol requests corresponding to each target URL, and

a number of hypertext transfer protocol requests corresponding to each target source IP address,

wherein the target attack rule template is an attack rule template matching at least one of a plurality of pre-detected offensive hypertext transfer protocol requests, the target URL is a URL of a service requested by at least one of the plurality of pre-detected offensive hypertext transfer protocol requests, and the target source IP address is an IP address of a device from which the hypertext transfer protocol request among the plurality of pre-detected offensive hypertext transfer protocol requests is sourced.

4. The method according to claim 3 , wherein the method further comprises:

acquiring, for a hypertext transfer protocol request being offensive in the detection result requiring replay attack, identity authentication information required to resend the offensive hypertext transfer protocol request from the web log of the server of the service requested by the hypertext transfer protocol request;

sending the identity authentication information to a device configured to resend the offensive hypertext transfer protocol request, to cause the device to resend the offensive hypertext transfer protocol request to the server using the identity authentication information after identity authentication is successful, to trigger an attack process on the server; and

generating information associated with the attack process.

5. The method according to claim 1 , wherein the feature information comprises at least one of: a detected attack type, a name of a service requested by the hypertext transfer protocol request, a uniform resource locator (URL) of the service requested by the hypertext transfer protocol request, a detected attack field, an identifier of an attack rule template matching the hypertext transfer protocol request, or a source IP address of the hypertext transfer protocol request.

6. An apparatus for analyzing a cyber attack, comprising:

at least one processor; and

a memory storing instructions, wherein the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:

acquiring a web log of a server, the web log of the server comprising: a hypertext transfer protocol request received by the server, and a data portion extracted from a response of hypertext transfer protocol corresponding to the hypertext transfer protocol request;

detecting whether the hypertext transfer protocol request in the web log is offensive, to obtain a detection result of the hypertext transfer protocol request, and storing the hypertext transfer protocol request, the detection result of the hypertext transfer protocol request, and the extracted data portion correspondingly; and

setting, in response to determining that feature information of the hypertext transfer protocol request being offensive in the detection result matches feature information of a preset white list, the detection result of the offensive hypertext transfer protocol request to be non-offensive, wherein each piece of the feature information in the preset white list is feature information of a non-offensive hypertext transfer protocol request pre-selected from a plurality of detected offensive hypertext transfer protocol requests,

wherein the detecting whether the hypertext transfer protocol request in the web log is offensive, to obtain a detection result of the hypertext transfer protocol request comprises:

calculating, in response to the hypertext transfer protocol request matching at least one attack rule template, a score corresponding to the hypertext transfer protocol request, the score corresponding to the hypertext transfer protocol request being a sum of a score corresponding to each attack rule template matching the hypertext transfer protocol request, the score corresponding to each attack rule template indicating a hazard level of an attack approach corresponding to the attack rule template on a system; and

obtaining the detection result of the hypertext transfer protocol request based on the score corresponding to the hypertext transfer protocol request.

7. The apparatus according to claim 6 , wherein

the feature information comprises: a detected attack type, a name of a service requested by the hypertext transfer protocol request, a uniform resource locator (URL) of the service requested by the hypertext transfer protocol request, a detected attack field, an identifier of an attack rule template matching the hypertext transfer protocol request, and a source IP address of the hypertext transfer protocol request.

8. The apparatus according to claim 7 , wherein the operations further comprise:

increasing, in response to the hypertext transfer protocol request being offensive in the detection result associated with a preset selection result, a score corresponding to the offensive hypertext transfer protocol request, the preset selection result being selected from items of statistical information among pre-ranked items of statistical information, the statistical information comprising:

a number of hypertext transfer protocol requests corresponding to each target attack rule template,

a number of hypertext transfer protocol requests corresponding to each target URL, and

a number of hypertext transfer protocol requests corresponding to each target source IP address,

wherein the target attack rule template is an attack rule template matching at least one of a plurality of pre-detected offensive hypertext transfer protocol requests, the target URL is a URL of a service requested by at least one of the plurality of pre-detected offensive hypertext transfer protocol requests, and the target source IP address is an IP address of a device from which the hypertext transfer protocol request among the plurality of pre-detected offensive hypertext transfer protocol requests is sourced.

9. The apparatus according to claim 8 , wherein the operations further comprise:

acquiring, for a hypertext transfer protocol request being offensive in the detection result requiring replay attack, identity authentication information required to resend the offensive hypertext transfer protocol request from the web log of the server of the service requested by the hypertext transfer protocol request;

sending the identity authentication information to a device configured to resend the offensive hypertext transfer protocol request, to cause the device to resend the offensive hypertext transfer protocol request to the server using the identity authentication information after identity authentication is successful, to trigger an attack process on the server; and

generating information associated with the attack process.

10. A non-transitory computer readable medium, storing a computer program thereon, wherein the program, when executed by a processor, causes the processor to perform operations, the operations comprising:

acquiring a web log of a server, the web log of the server comprising: a hypertext transfer protocol request received by the server, and a data portion extracted from a response of hypertext transfer protocol corresponding to the hypertext transfer protocol request;

detecting whether the hypertext transfer protocol request in the web log is offensive, to obtain a detection result of the hypertext transfer protocol request, and storing the hypertext transfer protocol request, the detection result of the hypertext transfer protocol request, and the extracted data portion correspondingly; and

setting, in response to determining that feature information of the hypertext transfer protocol request being offensive in the detection result matches feature information of a preset white list, the detection result of the offensive hypertext transfer protocol request to be non-offensive, wherein each piece of the feature information in the preset white list is feature information of a non-offensive hypertext transfer protocol request pre-selected from a plurality of detected offensive hypertext transfer protocol requests,

wherein the detecting whether the hypertext transfer protocol request in the web log is offensive, to obtain a detection result of the hypertext transfer protocol request comprises:

calculating, in response to the hypertext transfer protocol request matching at least one attack rule template, a score corresponding to the hypertext transfer protocol request, the score corresponding to the hypertext transfer protocol request being a sum of a score corresponding to each attack rule template matching the hypertext transfer protocol request, the score corresponding to each attack rule template indicating a hazard level of an attack approach corresponding to the attack rule template on a system; and

obtaining the detection result of the hypertext transfer protocol request based on the score corresponding to the hypertext transfer protocol request.

11. The non-transitory computer readable medium according to claim 10 , wherein

the feature information comprises: a detected attack type, a name of a service requested by the hypertext transfer protocol request, a uniform resource locator (URL) of the service requested by the hypertext transfer protocol request, a detected attack field, an identifier of an attack rule template matching the hypertext transfer protocol request, and a source IP address of the hypertext transfer protocol request.

12. The non-transitory computer readable medium according to claim 11 , wherein the operations further comprise:

increasing, in response to the hypertext transfer protocol request being offensive in the detection result associated with a preset selection result, a score corresponding to the offensive hypertext transfer protocol request, the preset selection result being selected from items of statistical information among pre-ranked items of statistical information, the statistical information comprising:

a number of hypertext transfer protocol requests corresponding to each target attack rule template,

a number of hypertext transfer protocol requests corresponding to each target URL, and

a number of hypertext transfer protocol requests corresponding to each target source IP address,

wherein the target attack rule template is an attack rule template matching at least one of a plurality of pre-detected offensive hypertext transfer protocol requests, the target URL is a URL of a service requested by at least one of the plurality of pre-detected offensive hypertext transfer protocol requests, and the target source IP address is an IP address of a device from which the hypertext transfer protocol request among the plurality of pre-detected offensive hypertext transfer protocol requests is sourced.

13. The non-transitory computer readable medium according to claim 12 , wherein the operations further comprise:

acquiring, for a hypertext transfer protocol request being offensive in the detection result requiring replay attack, identity authentication information required to resend the offensive hypertext transfer protocol request from the web log of the server of the service requested by the hypertext transfer protocol request;

sending the identity authentication information to a device configured to resend the offensive hypertext transfer protocol request, to cause the device to resend the offensive hypertext transfer protocol request to the server using the identity authentication information after identity authentication is successful, to trigger an attack process on the server; and

generating information associated with the attack process.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2019
From: LI, JINJIN
To: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
Reel/Frame 050287/0394 →
Priority Claims (1)
CN 201811188369.4 · Oct 12, 2018 · national
Continuity (1)
Related Publication 20190394233A1 · Dec 26, 2019