# US 2015/0033343 A1 · Method, Apparatus, and Device for Detecting E-Mail Attack

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

- Number: US 2015/0033343 A1
- Document ID: US20150033343A1
- Status: Published application
- Kind: A1
- Application number: 14/512,777
- Filed: 2014-10-13
- Published: 2015-01-29
- Earliest claimed: 2012-12-27
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wu Jiang; Xingshui Dong
- Web page: https://patentgrep.com/patent/US20150033343A1

## CPC

- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 51/212: using filtering or selective blocking
- H04L 63/1408: {by monitoring network traffic (monitoring network traffic per se H04L43/00)}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/1458: {Denial of Service}
- H04L 69/28: Timers or timing mechanisms used in protocols
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method, an apparatus, and a device for detecting an E-mail attack. The device receives a data flow; obtains an E-mail traffic parameter of each statistic period within a predetermined number of statistic periods, where within each statistic period, the E-mail traffic parameter of each of the statistic periods is determined according to a protocol type of the received data flow; and determines that an E-mail attack is detected when the E-mail traffic parameter of each statistic period within the predetermined number of statistic periods matches a first threshold. By applying the disclosed embodiments, a detection result of the E-mail attack is more accurate.

## Claims

### Claim 1

A method implemented by a network device for detecting an electronic mail (E-mail) attack, comprising:
receiving a data flow;
obtaining an E-mail traffic parameter of each statistic period within a predetermined number of statistic periods;
determining, within each statistic period, the E-mail traffic parameter of each of the statistic periods according to a protocol type of the received data flow; and
determining that an E-mail attack is detected when the E-mail traffic parameter of each statistic period within the predetermined number of statistic periods matches a first threshold.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining the E-mail traffic parameter of each of the statistic periods according to a protocol type of the received data flow comprises:
analyzing a protocol type of a data flow received in each of the statistic periods;
determining that the data flow is an E-mail when the protocol type is an E-mail protocol type; and
obtaining the E-mail traffic parameter of each of the statistic periods according to the determined E-mail.

### Claim 3 (depends on 2)

The method according to claim 2, wherein after determining that the E-mail attack is detected, the method further comprises:
obtaining recipient E-mail addresses of E-mails received in each detection period within a predetermined number of detection periods;
collecting statistics on the number of occurrences of each obtained recipient E-mail address in each of the detection periods; and
determining a recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
obtaining sender Internet Protocol (IP) addresses of the E-mails at the same time as the obtaining recipient E-mail addresses of E-mails received in each detection period within a predetermined number of detection periods;
establishing a correspondence between the recipient E-mail addresses and the sender IP addresses of the E-mails received in each of the detection periods;
collecting statistics, according to the correspondence, on the number of occurrences of each sender IP address corresponding to the target address, after determining the recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack; and
determining a sender IP address, of which the number of occurrences exceeds a third threshold, as an attacker IP address of the E-mail attack.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the E-mail traffic parameter comprises the number of E-mails.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the E-mail traffic parameter comprises the number of newly created simple mail transfer protocol (SMTP) connections for transferring an E-mail.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the E-mail traffic parameter comprises the number of added SMTP concurrent connections for transferring an E-mail.

### Claim 8 (depends on 1)

The method according to claim 1, wherein after determining that the E-mail attack is detected, the method further comprises:
obtaining recipient E-mail addresses of E-mails received in each detection period within a predetermined number of detection periods;
collecting statistics on the number of occurrences of each obtained recipient E-mail address in each of the detection periods; and
determining a recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
obtaining sender Internet Protocol (IP) addresses of the E-mails at the same time of the obtaining recipient E-mail addresses of E-mails received in each detection period within a predetermined number of detection periods;
establishing a correspondence between the recipient E-mail addresses and the sender IP addresses of the E-mails received in each of the detection periods;
collecting statistics, according to the correspondence, on the number of occurrences of each sender IP address corresponding to the target address after determining the recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack; and
determining a sender IP address, of which the number of occurrences exceeds a third threshold, as an attacker IP address of the E-mail attack.

### Claim 10

A device for detecting an E-mail attack, comprising:
a network interface configured to receive a data flow; and
a processor configured to:
obtain an electronic mail (E-mail) traffic parameter of each statistic period within a predetermined number of statistic periods;
determine, within each statistic period, the E-mail traffic parameter of each of the statistic periods according to a protocol type of the data flow received by the network interface; and
determine, when the E-mail traffic parameter of each statistic period within the predetermined number of statistic periods matches a first threshold, that an E-mail attack is detected.

### Claim 11 (depends on 10)

The device according to claim 10, wherein the processor is configured to:
analyze, within each statistic period, a protocol type of a data flow received by the network interface within each of the statistic periods;
determine that the data flow is an E-mail when the protocol type of the data flow is an E-mail protocol type; and
obtain the E-mail traffic parameter of each of the statistic periods according to the determined E-mail.

### Claim 12 (depends on 11)

The device according to claim 11, wherein the processor is further configured to:
obtain recipient E-mail addresses of E-mails received by the network interface in each detection period within a predetermined number of detection periods, after determining that the E-mail attack is detected;
collect statistics on the number of occurrences of each obtained recipient E-mail address in each of the detection periods; and
determine a recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack.

### Claim 13 (depends on 12)

The device according to claim 12, wherein the processor is further configured to:
obtain sender Internet Protocol (IP) addresses of the E-mails at the same time as the obtaining recipient E-mail addresses of E-mails received by the network interface in each detection period within a predetermined number of detection periods;
establish a correspondence between the recipient E-mail addresses and the sender IP addresses of the E-mails received in each of the detection periods;
collect statistics, according to the correspondence, on the number of occurrences of each sender IP address corresponding to the target address, after determining the recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack; and
determine a sender IP address, of which the number of occurrences exceeds a third threshold, as an attacker IP address of the E-mail attack.

### Claim 14 (depends on 10)

The device according to claim 10, wherein the processor is further configured to:
obtain recipient E-mail addresses of E-mails received by the network interface in each detection period within a predetermined number of detection periods after determining that the E-mail attack is detected;
collect statistics on the number of occurrences of each obtained recipient E-mail address in each of the detection periods; and
determine a recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack.

### Claim 15 (depends on 14)

The device according to claim 14, wherein the processor is further configured to:
obtain sender Internet Protocol (IP) addresses of the E-mails at the same time as the obtaining recipient E-mail addresses of E-mails received by the network interface in each detection period within a predetermined number of detection periods;
establish a correspondence between the recipient E-mail addresses and the sender IP addresses of the E-mails received in each of the detection periods;
collect statistics, according to the correspondence, on the number of occurrences of each sender IP address corresponding to the target address, after determining the recipient E-mail address, of which the number of occurrences in any detection period within the predetermined number of detection periods exceeds a second threshold, as a target address of the E-mail attack; and
determine a sender IP address, of which the number of occurrences exceeds a third threshold, as an attacker IP address of the E-mail attack.
