# US 2017/0257393 A1 · Webpage security

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

- Number: US 2017/0257393 A1
- Document ID: US20170257393A1
- Status: Published application
- Kind: A1
- Application number: 15/060,817
- Filed: 2016-03-04
- Published: 2017-09-07
- Earliest claimed: 2016-03-04
- Assignees: c/o Microsoft Technology Licensing, LLC
- Applicants: c/o Microsoft Technology Licensing, LLC
- Inventors: MARCELO MEDEIROS DE BARROS; SARVESH NAGPAL; ABINASH SARANGI
- Web page: https://patentgrep.com/patent/US20170257393A1

## CPC

- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- G06F 21/128: {involving web programs, i.e. using technology especially used in internet, generally interacting with a web browser, e.g. hypertext markup language [HTML], applets, java}
- G06F 21/316: {by observing the pattern of computer usage, e.g. typical user behaviour}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- 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

Aspects of the technology described herein allow webpages to maintain control over content displayed as part of the webpage when viewed on a browser. The technology described herein can send a security script and validation rules along with a webpage to a web browser. The web browser then runs the security script, which monitors content on the webpage. In one aspect, when an add-in attempts to display secondary content, the security script checks identification information associated with the secondary content against the validation rules, which lists authorized content. If the secondary content does not satisfy a validation rule, then the security script can prevent the browser from displaying the secondary content.

## Claims

### Claim at position 1

-6. (canceled)

### Claim 7

A method to prevent a web browser add-in from adding secondary content to a user interface displaying a webpage through a web browser, the method comprising:
communicating, over a network, a request for the webpage to a web server, the webpage comprising a plurality of content items;
receiving, over the network, a browser-executable security script and a list identifying content items within the plurality of content items on the webpage;
receiving, over the network, the webpage;
running the browser-executable security script to monitor attempted changes to the webpage;
outputting the webpage for display;
detecting, by the browser-executable security script, an attempt to add a content item to the webpage;
determining that the content item is not included in the list; and
preventing the content item from being displayed through the web browser while the webpage is being displayed by the web browser.

### Claim 8 (depends on 7)

The method of claim 7, wherein the content item is one of a script, an image, or a frame.

### Claim 9 (depends on 7)

The method of claim 7, wherein the browser-executable security script is received before the webpage is received and after the webpage is requested, and wherein the browser-executable security script is received from the web server.

### Claim 10 (depends on 7)

The method of claim 7, wherein the attempt to add the content item to the webpage is made by a browser extension application.

### Claim 11 (depends on 7)

The method of claim 7, wherein the method further comprises:
running the browser-executable security script to monitor the webpage by adding an observer to an observable content item;
detecting, by the observer, a change to the observable content item;
determining that the change is not valid because an identification information for a new observable content item is not on the list; and
removing the change by reverting to an original document object model.

### Claim 12 (depends on 11)

The method of claim 11, wherein the observer is a Java interface function that generates a notice when a change is made to an object the observer is directed to observe.

### Claim 13 (depends on 11)

The method of claim 11, wherein the change is displaying a secondary image in a location on the webpage currently occupied by the observable content item.

### Claim 14 (depends on 7)

The method of claim 7, wherein the browser-executable security script is run prior to completely displaying the webpage in the web browser.

### Claim 15 (depends on 7)

The method of claim 7, wherein the browser-executable security script is a JavaScript.

### Claim 16

One or more computer storage media having computer-executable instructions embodied thereon that, when executed, configure a computing device to perform a method to prevent a web browser add-in from adding secondary content to a user interface displaying a webpage through a web browser, the method comprising:
communicating, over a network, a request for the webpage to a web server;
receiving, over the network, a browser-executable security script and a list identifying content items within a plurality of content items on the webpage;
receiving, over the network, the webpage;
outputting the webpage for display, the webpage comprising a document object model;
running the browser-executable security script to monitor the webpage by adding an observer to a content item;
detecting, by the observer, a change to the content item;
determining that the change is not valid because an identification information for a new content item is not on the list; and
removing the change by reverting to an original document object model.

### Claim 17 (depends on 16)

The media of claim 16, wherein the method further comprises communicating data about the detected change to the web server for training.

### Claim 18 (depends on 16)

The media of claim 16, wherein the browser-executable security script is a JavaScript.

### Claim 19 (depends on 16)

The media of claim 16, wherein the browser-executable security script is run prior to completely displaying the webpage in the web browser.

### Claim 20 (depends on 16)

The media of claim 16, wherein the method further comprises:
detecting, by the browser-executable security script, an attempt to add a content item to the webpage;
determining that the content item is not included in the list; and
preventing the content item from being displayed through the web browser while the webpage is being displayed by the web browser.

### Claim 21

A method to prevent a web browser add-in from adding secondary content to a user interface displaying a webpage through a web browser, the method comprising:
communicating, over a network, a request for the webpage to a web server;
receiving, over the network, a browser-executable security script and a list identifying content items within a plurality of content items on the webpage;
receiving, over the network, the webpage;
outputting the webpage for display, the webpage comprising a document object model;
running the browser-executable security script to monitor the webpage by adding an observer to a content item;
detecting, by the observer, a change to the content item;
determining that the change is not valid because an identification information for a new content item is not on the list; and
removing the change by reverting to an original document object model.

### Claim 22 (depends on 21)

The method of claim 21, wherein the method further comprises communicating data about the detected change to the web server for training.

### Claim 23 (depends on 21)

The method of claim 21, wherein the browser-executable security script is a JavaScript.

### Claim 24 (depends on 21)

The method of claim 21, wherein the browser-executable security script is run prior to completely displaying the webpage in the web browser.

### Claim 25 (depends on 21)

The method of claim 21, wherein the method further comprises:
detecting, by the browser-executable security script, an attempt to add a content item to the webpage;
determining that the content item is not included in the list; and
preventing the content item from being displayed through the web browser while the webpage is being displayed by the web browser.
