IP Library › Granted Patent US 11,822,657
Granted Patent B2
US 11,822,657 · App. 17/724,744 · Granted Nov 21, 2023

Machine learning-based malware detection system and method

Inventors: Huihsin Tseng (Cupertino, CA); Hao Xu (Palo Alto, CA); Jian L Zhen (Palo Alto, CA)
Assignee: Zscaler, Inc.
G06F21/566G06N5/01G06N20/00G06N20/20G06F2221/034
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,822,657
App. No.
17/724,744
Filed
Apr 20, 2022
Granted
Nov 21, 2023
Kind
B2
Art Unit
2491
USPC
726/23
Abstract

Disclosed is a computer implemented method for malware detection that analyses a file on a per packet basis. The method receives a packet of one or more packets associated a file, and converting a binary content associated with the packet into a digital representation and tokenizing plain text content associated with the packet. The method extracts one or more n-gram features, an entropy feature, and a domain feature from the converted content of the packet and applies a trained machine learning model to the one or more features extracted from the packet. The output of the machine learning method is a probability of maliciousness associated with the received packet. If the probability of maliciousness is above a threshold value, the method determines that the file associated with the received packet is malicious.

Claims (38)

1. A computer program product embodied in a non-transitory computer readable storage medium and comprising computer instructions that when executed by a processor cause the processor to perform steps of:

receiving a first packet of one or more packets associated with a file;

determining a file type of the file from the first packet;

converting contents of the first packet into a corresponding digital representation for feature extraction;

extracting one or more features from the corresponding digital representation; and

applying a trained machine learning model to the one or more features to determine probability of maliciousness.

2. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the steps further include

labeling the file based on the probability of maliciousness.

3. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the steps further include

responsive to the first packet having the probability of maliciousness as benign, receiving a next packet of the one or more packets; and

performing the converting, extracting, and applying on the next packet.

4. The computer program product embodied in a non-transitory computer readable storage medium of claim 3 , wherein the steps further include

continuing with additional packets of the one or more packets until a determination of whether the file is malicious or benign.

5. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the file type is one of a portable executable (PE) file, a portable document format (PDF) file, a Dynamic Loaded Library (DLL), a JavaScript (JS) file, a Hypertext Markup Language (HTML) file, and a Microsoft Office File.

6. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the digital representation is any of a decimal representation, a binary representation, a hexadecimal representation, a tokenized script, and a tokenized domain.

7. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the trained machine learning model comprises one or more decision trees.

8. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the one or more features include n-gram features.

9. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the one or more features include an entropy feature.

10. The computer program product embodied in a non-transitory computer readable storage medium of claim 1 , wherein the one or more features include a domain feature.

11. A method comprising steps of:

receiving a first packet of one or more packets associated with a file;

determining a file type of the file from the first packet;

converting contents of the first packet into a corresponding digital representation for feature extraction;

extracting one or more features from the corresponding digital representation; and

applying a trained machine learning model to the one or more features to determine probability of maliciousness.

12. The method of claim 11 , wherein the steps further include

labeling the file based on the probability of maliciousness.

13. The method of claim 11 , wherein the steps further include

responsive to the first packet having the probability of maliciousness as benign, receiving a next packet of the one or more packets; and

performing the converting, extracting, and applying on the next packet.

14. The method of claim 13 , wherein the steps further include

continuing with additional packets of the one or more packets until a determination of whether the file is malicious or benign.

15. The method of claim 11 , wherein the file type is one of a portable executable (PE) file, a portable document format (PDF) file, a Dynamic Loaded Library (DLL), a JavaScript (JS) file, a Hypertext Markup Language (HTML) file, and a Microsoft Office File.

16. The method of claim 11 , wherein the digital representation is any of a decimal representation, a binary representation, a hexadecimal representation, a tokenized script, and a tokenized domain.

17. The method of claim 11 , wherein the trained machine learning model comprises one or more decision trees.

18. The method of claim 11 , wherein the one or more features include n-gram features.

19. The method of claim 11 , wherein the one or more features include an entropy feature.

20. The method of claim 11 , wherein the one or more features include a domain feature.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 20, 2022
From: TRUSTPATH, INC.
To: ZSCALER, INC.
Reel/Frame 059648/0560 →
Continuity (4)
Continuation 17067854 · Oct 12, 2020
Continuation 15946706 · Apr 5, 2018
Provisional Application 62483102 · Apr 7, 2017
Related Publication 20220245248A1 · Aug 4, 2022
Cited By (3)
US 12,197,574 US 12,499,211 US 12,625,889