IP Library Granted Patent US 12,684,015
Granted Patent B1
US 12,684,015 · App. 18/518,313 · Granted Jul 14, 2026

Systems and methods for detecting phishing emails using machine learning

Inventors: Philipp Drieger (Munich, DE); Tatsunobu Murata (Ichikawa, JP); Namratha Sreekanta (Fremont, CA); Huaibo Zhao (Shinjuku-ku, JP)
Assignee: Cisco Technology, Inc.
H04L63/1483G06F40/284
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 12,684,015
App. No.
18/518,313
Filed
Nov 22, 2023
Granted
Jul 14, 2026
Kind
B1
Examiner
DO, KHANG D
Art Unit
2492
USPC
726/22
Abstract

The disclosure provides for systems and methods directed to classifying emails as phishing or non-phishing through the use of machine learning. Preprocessing operations may be performed on the email that include removal of punctuation and changing all letters to lower case. Additionally, recipient and sender email addresses and a subject line may be concatenated to the text of the email body, which is then tokenized and provided to a machine learning model. In some implementations, the machine learning model may be constructed with a multi-layer transformer encoder architecture that includes a plurality of transformer blocks. The result of the machine learning model may include a contextualized embedding sequence. A set of linear layers may reduce the dimensionality of a first vector of the contextualized embedding sequence and an activation function may be applied thereto to determine a classification predication.

Claims (46)

1 . A computer-implemented method, comprising:

obtaining an email object to be classified as phishing or non-phishing;

generating a token sequence by tokenizing a text portion of the email object;

deploying a machine learning model with the token sequence as input to the machine learning model resulting in a contextualized embedding sequence, wherein the contextualized embedding sequence is formed of a plurality of contextualized embedding vectors;

reducing a dimension of a first contextualized embedding vector of the plurality of contextualized embedding vectors with a multi-layer transformer encoder including a plurality of linear layers resulting in a low-dimensionality vector, including a first linear layer configured to reduce the dimension of the first contextualized embedding vector from a first dimensionality to a second dimensionality, and a second linear layer configured to further reduce the dimension of the first contextualized embedding vector from the second dimensionality to a third dimensionality resulting in the low-dimensionality vector having two-dimensions;

applying an activation function to the low-dimensionality vector resulting in a classification prediction of phishing or non-phishing; and

responsive to the classification prediction being phishing indicating the email object is to be classified as phishing, causing one or more remediation or preventive efforts.

2 . The computer-implemented method of claim 1 , wherein the machine learning model is constructed with a multi-layer transformer encoder architecture comprising a plurality of transformer blocks.

3 . The computer-implemented method of claim 1 , wherein the first linear layer is configured to reduce the dimension of the first contextualized embedding vector from 768-dimensions to 512-dimensions, and wherein the second linear layer is configured to further reduce the dimension of the first contextualized embedding vector from 512-dimensions to 2-dimensions resulting in the low-dimensionality vector.

4 . The computer-implemented method of claim 1 , wherein the email object includes components of an email including a recipient email address, a sender email address, a subject line, and a text body.

5 . The computer-implemented method of claim 4 , wherein the email object further includes an attachment to the email.

6 . The computer-implemented method of claim 1 , further comprising:

extracting phishing-related features from the email object; and

prior to reducing the dimension of the first contextualized embedding vector, concatenating the phishing-related features to the first contextualized embedding vector.

7 . The computer-implemented method of claim 1 , wherein obtaining the email object includes executing a search query to retrieve the email object as one of a batch of email objects.

8 . A computing device, comprising:

a processor; and

a non-transitory computer-readable medium having stored thereon instructions that, when executed by the processor, cause the processor to perform operations including:

obtaining an email object to be classified as phishing or non-phishing;

generating a token sequence by tokenizing a text portion of the email object;

deploying a machine learning model with the token sequence as input to the machine learning model resulting in a contextualized embedding sequence, wherein the contextualized embedding sequence is formed of a plurality of contextualized embedding vectors;

reducing a dimension of a first contextualized embedding vector of the plurality of contextualized embedding vectors with a multi-layer transformer encoder including a plurality of linear layers resulting in a low-dimensionality vector, including a first linear layer configured to reduce the dimension of the first contextualized embedding vector from a first dimensionality to a second dimensionality, and a second linear layer configured to further reduce the dimension of the first contextualized embedding vector from the second dimensionality to a third dimensionality resulting in the low-dimensionality vector having two-dimensions;

applying an activation function to the low-dimensionality vector resulting in a classification prediction of phishing or non-phishing; and

responsive to the classification prediction being phishing indicating the email object is to be classified as phishing, causing one or more remediation or preventive efforts.

9 . The computing device of claim 8 , wherein the machine learning model is constructed with a multi-layer transformer encoder architecture comprising a plurality of transformer blocks.

10 . The computing device of claim 8 , wherein the first linear layer is configured to reduce the dimension of the first contextualized embedding vector from 768-dimensions to 512-dimensions, and wherein the second linear layer is configured to further reduce the dimension of the first contextualized embedding vector from 512-dimensions to 2-dimensions resulting in the low-dimensionality vector.

11 . The computing device of claim 8 , wherein the email object includes components of an email including a recipient email address, a sender email address, a subject line, and a text body.

12 . The computing device of claim 11 , wherein the email object further includes an attachment to the email.

13 . The computing device of claim 8 , wherein the operations further include:

extracting phishing-related features from the email object; and

prior to reducing the dimension of the first contextualized embedding vector, concatenating the phishing-related features to the first contextualized embedding vector.

14 . The computing device of claim 8 , wherein obtaining the email object includes executing a search query to retrieve the email object as one of a batch of email objects.

15 . A non-transitory computer-readable medium having stored thereon instructions that, when executed by one or more processors, cause the one or more processor to perform operations including:

obtaining an email object to be classified as phishing or non-phishing;

generating a token sequence by tokenizing a text portion of the email object;

deploying a machine learning model with the token sequence as input to the machine learning model resulting in a contextualized embedding sequence, wherein the contextualized embedding sequence is formed of a plurality of contextualized embedding vectors;

reducing a dimension of a first contextualized embedding vector of the plurality of contextualized embedding vectors with a multi-layer transformer encoder including a plurality of linear layers resulting in a low-dimensionality vector, including a first linear layer configured to reduce the dimension of the first contextualized embedding vector from a first dimensionality to a second dimensionality, and a second linear layer configured to further reduce the dimension of the first contextualized embedding vector from the second dimensionality to a third dimensionality resulting in the low-dimensionality vector having two-dimensions;

applying an activation function to the low-dimensionality vector resulting in a classification prediction of phishing or non-phishing; and

responsive to the classification prediction being phishing indicating the email object is to be classified as phishing, causing one or more remediation or preventive efforts.

16 . The non-transitory computer-readable medium of claim 15 , wherein the machine learning model is constructed with a multi-layer transformer encoder architecture comprising a plurality of transformer blocks.

17 . The non-transitory computer-readable medium of claim 15 , wherein the first linear layer is configured to reduce the dimension of the first contextualized embedding vector from 768-dimensions to 512-dimensions, and wherein the second linear layer is configured to further reduce the dimension of the first contextualized embedding vector from 512-dimensions to 2-dimensions resulting in the low-dimensionality vector.

18 . The non-transitory computer-readable medium of claim 15 , wherein an email object includes components of an email including a recipient email address, a sender email address, a subject line, a text body.

19 . The non-transitory computer-readable medium of claim 15 , wherein the operations further include:

extracting phishing-related features from the email object; and

prior to reducing the dimension of the first contextualized embedding vector, concatenating the phishing-related features to the first contextualized embedding vector.

20 . The non-transitory computer-readable medium of claim 15 , wherein obtaining the email object includes executing a search query to retrieve the email object as one of a batch of email objects.

Assignments (3)
CHANGE OF NAME Recorded Jul 22, 2025
From: SPLUNK INC.
To: SPLUNK LLC
Reel/Frame 072170/0599 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 22, 2025
From: SPLUNK LLC
To: CISCO TECHNOLOGY, INC.
Reel/Frame 072173/0058 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 19, 2023
From: DRIEGER, PHILIPP; MURATA, TATSUNOBU; SREEKANTA, NAMRATHA; ZHAO, HUAIBO
To: SPLUNK INC.
Reel/Frame 065913/0993 →
References Cited (38)
US 7937344B2 · Baum et al. · 2011 [cited by applicant]
US 8112425B2 · Baum et al. · 2012 [cited by applicant]
US 8751529B2 · Zhang et al. · 2014 [cited by applicant]
US 8788525B2 · Neels et al. · 2014 [cited by applicant]
US 9215240B2 · Merza et al. · 2015 [cited by applicant]
US 9286413B1 · Coates et al. · 2016 [cited by applicant]
US 10127258B2 · Lamas et al. · 2018 [cited by applicant]
US 11444978B1 · Liao · 2022 [cited by examiner]
US 11757816B1 · Lin · 2023 [cited by examiner]
US 12164628B2 · Khanna · 2024 [cited by examiner]
US 20080091765A1 · Gammage · 2008 [cited by examiner]
US 20080304750A1 · Kamei · 2008 [cited by examiner]
US 20190098106A1 · Mungel et al. · 2019 [cited by applicant]
US 20190319905A1 · Baggett · 2019 [cited by examiner]
US 20200366712A1 · Onut · 2020 [cited by examiner]
US 20200372150A1 · Salem · 2020 [cited by examiner]
US 20210203690A1 · Nunes · 2021 [cited by examiner]
US 20210203692A1 · Nunes · 2021 [cited by examiner]
US 20210240825A1 · Kutt · 2021 [cited by examiner]
US 20220094713A1 · Lee · 2022 [cited by examiner]
US 20220210188A1 · Grewal · 2022 [cited by examiner]
US 20220279014A1 · Stokes, III · 2022 [cited by examiner]
US 20230038671A1 · Weber · 2023 [cited by examiner]
US 20230075964A1 · Singh · 2023 [cited by examiner]
US 20230171287A1 · Slobodyanuk · 2023 [cited by examiner]
US 20230188563A1 · Sircar · 2023 [cited by examiner]
US 20230353595A1 · Hu · 2023 [cited by examiner]
US 20240056480A1 · Onut · 2024 [cited by examiner]
US 20240095356A1 · Huang · 2024 [cited by examiner]
US 20240154988A1 · Yates · 2024 [cited by examiner]
US 20240354403A1 · Goutal · 2024 [cited by examiner]
US 20250097237A1 · Parla · 2025 [cited by examiner]
US 20250119452A1 · Mon Divakaran · 2025 [cited by examiner]
Bitincka, Ledion et al., “Optimizing Data Analysis with a Semi-structured Time Series Database,” self-published, first presented at “Workshop on Managing Systems via Log Analysis and Machine Learning Techniques (SLAML)”… [cited by applicant]
Carraso, David, “Exploring Splunk,” published by CITO Research, New York, NY, Apr. 2012. [cited by applicant]
Splunk Cloud 8.0.2004 User Manual, available online, retrieved May 20, 2020 from docs.splunk.com. [cited by applicant]
Splunk Enterprise 8.0.0 Overview, available online, retrieved May 20, 2020 from docs.splunk.com. [cited by applicant]
Splunk Quick Reference Guide, updated 2019, available online at https://www.splunk.com/pdfs/solution-guides/splunk-quick-reference-guide.pdf, retrieved May 20, 2020. [cited by applicant]