# US 8,578,499 B1 · Script-based scan engine embedded in a webpage for protecting computers against web threats

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

- Number: US 8,578,499 B1
- Document ID: US8578499B1
- Status: Granted
- Kind: B1
- Application number: 13/279,746
- Filed: 2011-10-24
- Granted: 2013-11-05
- Earliest claimed: 2011-10-24
- Assignees: Trend Micro Incorporated
- Applicants: Joey Zhu; Jialai Zhu; Kan Dong; Xiaodong Huang
- Inventors: Joey Zhu; Jialai Zhu; Kan Dong; Xiaodong Huang
- Web page: https://patentgrep.com/patent/US8578499B1

## CPC

- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- G06F 21/567: {using dedicated hardware}
- H04L 63/1408: {by monitoring network traffic (monitoring network traffic per se H04L43/00)}
- H04L 63/1433: {Vulnerability analysis}
- G06F 2221/2115: Third party
- G06F 2221/2119: Authenticating web pages, e.g. with suspicious links
- H04L 63/168: {above the transport layer}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A script-based scan engine is embedded in a webpage requested by a client computer from a web server. The script-based scan engine may be embedded in the webpage by injecting the script-based scan engine in a header of the webpage in a computer security device between the client computer and the web server, or by integrating the script-based scan engine in the webpage as a library. The script-based scan engine executes in the client computer when the webpage is received by the client computer. The script-based scan engine scans the webpage for web threats, which may include malicious codes, exploits, and phishing, for example. The webpage is allowed to be rendered by a web browser in the client computer when the webpage is deemed safe by the script-based scan engine.

## Claims

### Claim 1

A method of protecting computers against web threats, the method comprising:
embedding a script-based scan engine into a webpage requested by a client computer;
receiving the webpage with the embedded script-based scan engine in the client computer;
executing the script-based scan engine in the client computer;
the script-based scan engine parsing the webpage to extract webpage content of the webpage;
the script-based scan engine scanning the webpage content for web threats; and
allowing the webpage to be rendered by a web browser in the client computer when the webpage is deemed safe by the script-based scan engine.

### Claim 2 (depends on 1)

The method of claim 1 wherein the script-based scan engine scans the webpage content for web threats by comparing the webpage content against bit patterns of known web threats.

### Claim 3 (depends on 1)

The method of claim 1 wherein the script-based scan engine scans the webpage content for web threats by comparing a behavior of executable content extracted from the webpage against behavior patterns of known web threats.

### Claim 4 (depends on 1)

The method of claim 1 wherein the script-based scan engine is injected in a header of the webpage.

### Claim 5 (depends on 1)

The method of claim 1 wherein the script-based scan engine is integrated with the webpage as a library.

### Claim 6 (depends on 1)

The method of claim 1 wherein the web threat comprises an exploit.

### Claim 7 (depends on 1)

The method of claim 1 wherein the web threat comprises malicious codes.

### Claim 8 (depends on 1)

The method of claim 1 wherein the script-based scan engine is in the header of the webpage and the script-based scan engine scans a body of the webpage.

### Claim 9

A method of protecting computers against web threats, the method comprising:
receiving a hypertext transport protocol (HTTP) response from a web server hosting a webpage, the HTTP response including the webpage and is responsive to an HTTP request sent by a client computer;
modifying the HTTP response to inject a script-based scan engine into the webpage to generate a modified HTTP response;
forwarding the modified HTTP response to the client computer;
in the client computer, executing the script-based scan engine to scan the webpage for web threats; and
allowing the webpage to be rendered by a web browser in the client computer when the script-based scan engine deems the webpage to be free of web threats.

### Claim 10 (depends on 9)

The method of claim 9 wherein the script-based scan engine is injected in a header of the webpage.

### Claim 11 (depends on 10)

The method of claim 10 wherein the script-based scan engine scans a body of the webpage for web threats.

### Claim 12 (depends on 9)

The method of claim 9 wherein the script-based scan engine scans a body of the webpage for malicious codes.

### Claim 13 (depends on 9)

The method of claim 9 wherein the script-based scan engine scans a body of the webpage for outbound uniform resource locators.

### Claim 14 (depends on 9)

The method of claim 9 wherein the script-based scan engine scans the webpage for web threats by emulating executable content of the webpage to detect a behavior of the webpage and comparing the behavior of the webpage to behavior of known web threats.

### Claim 15

A method of protecting computers against web threats, the method comprising:
receiving a webpage with an embedded JavaScript scan engine in a client computer;
executing the JavaScript scan engine in the client computer;
the JavaScript scan engine scanning the webpage for web threats; and
allowing the webpage to be rendered by a web browser in the client computer when the webpage is deemed safe by the JavaScript scan engine.

### Claim 16 (depends on 15)

The method of claim 15 wherein the JavaScript scan engine scans the webpage for web threats by comparing content of the webpage against bit patterns of known web threats.

### Claim 17 (depends on 15)

The method of claim 15 wherein the JavaScript scan engine scans the webpage for web threats by comparing a behavior of executable content extracted from the webpage against behavior patterns of known web threats.

### Claim 18 (depends on 15)

The method of claim 15 wherein the JavaScript scan engine scan engine is injected in a header of the webpage and the JavaScript scan engine scans a body of the webpage.

### Claim 19 (depends on 15)

The method of claim 15 wherein the script-based scan engine is integrated with the webpage as a library.

### Claim 20 (depends on 15)

The method of claim 15 wherein the web threat comprises an exploit.
