# US 2019/0377877 A1 · Web browser script monitoring

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

- Number: US 2019/0377877 A1
- Document ID: US20190377877A1
- Status: Published application
- Kind: A1
- Application number: 16/002,412
- Filed: 2018-06-07
- Published: 2019-12-12
- Earliest claimed: 2018-06-07
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Martin Johns
- Web page: https://patentgrep.com/patent/US20190377877A1

## CPC

- G06F 21/563: {by source code analysis}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/561: {Virus type analysis}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Various examples are directed to systems and methods for securing a web browser. The web browser may parse web content received from a server and identify a script associated with the web content. The web browser may generate script fingerprint data for the script. The script fingerprint data may comprise script code data describing script code for the script and script syntax data describing the script. The web browser may determine that the script fingerprint data is not described by local known script data and may send an anomalous script report to the server, where the anomalous script report comprising the script fingerprint data. The web browser may also update the local known script data to describe the script fingerprint data.

## Claims

### Claim 1

A system for securing a web browser, the system comprising:
a client computing device comprising a processor and a data storage, wherein the client computing device is programmed to perform operations comprising:
parsing, by the web browser executing at the client computing device, web content received from a server;
identifying, by the web browser, a script associated with the web content received from the server;
generating, by the web browser, script fingerprint data for the script, wherein the script fingerprint data comprises script code data describing script code for the script and script syntax data describing the script;
determining, by the web browser, that the script fingerprint data is not described by local known script data;
sending an anomalous script report by the web browser to the server, the anomalous script report comprising the script fingerprint data; and
updating; by the web browser; the local known script data to describe the script fingerprint data.

### Claim 2 (depends on 1)

The system of claim 1, wherein the script syntax data comprises generic script syntax data.

### Claim 3 (depends on 2)

The system of claim 2, wherein generating the generic script syntax data comprises:
generating a syntax tree describing the script; and
removing at least one dynamic value from the syntax tree.

### Claim 4 (depends on 3)

The system of claim 3, wherein the client computing device is programmed to perform operations further comprising:
generating a script code hash from the script code; and
generating a script syntax hash from the generic script syntax data, wherein the script fingerprint data comprises the script code hash and the script syntax hash.

### Claim 5 (depends on 1)

The system of claim 1, wherein determining that the script fingerprint data is not described by local known script data comprises:
determining that the script code data describing the script is not described by script fingerprint data that is on a static script list of the local known script data; and
determining that the script syntax data describing xe script is described by script fingerprint data that is on the static script list.

### Claim 6 (depends on 5)

The system of claim 5, wherein updating the local known script data to describe the script fingerprint data comprises:
modifying the static script list to remove a reference to the script syntax data describing the script; and
modifying a dynamic script list of the local known script data to describe at least a portion of the script fingerprint data.

### Claim 7 (depends on 1)

The system of claim 1, wherein determining that the script fingerprint data is not described by the locally known script data comprises:
determining that the script code data is not described by script fingerprint data that is on a static script list of the local known script data;
determining that the script syntax data describing the script is not described by script fingerprint data on the static script list; and
determining that the script syntax data describing the script is not described by script fingerprint data on a dynamic script list of the local known script data.

### Claim 8 (depends on 1)

The system of claim 1, Wherein the client computing device is programmed to perform operations further comprising:
receiving, from the server, a script code request describing the script; and
sending, to the server, the script code.

### Claim 9 (depends on 1)

The system of claim 1, wherein the client computing device is programmed to perform operations further comprising receiving at least a portion of the local known script data from the server.

### Claim 10 (depends on 1)

The system of claim 1, further comprising the server, wherein the server is programmed to perform operations comprising:
receiving, from the client computing device, the anomalous script report;
determining that global known script data has stabilized;
determining that the script is not described by the global known script data; and
executing a remedial action.

### Claim 11

A method for securing a web browser, the method comprising:
parsing, by the web browser, web content received from a server, wherein the web browser is executed by a client computing device;
identifying, by the web browser, a script associated with the web content received from the server;
generating, by the web browser, script fingerprint data for the script, wherein the script fingerprint data comprises script code data describing script code for the script and script syntax data describing the script;
determining, by the web browser, that the script fingerprint data is not described by local known script data;
sending an anomalous script report by the web browser to the server, the anomalous script report comprising the script fingerprint data; and
updating, by the web browser, the local known script data to describe the script fingerprint data.

### Claim 12 (depends on 11)

The method of claim 11, wherein the script syntax data comprises generic script syntax data.

### Claim 13 (depends on 12)

The method of claim 12, wherein generating the generic script syntax data comprises:
generating a syntax tree describing the script; and
removing at least one dynamic value from the syntax tree.

### Claim 14 (depends on 13)

The method of claim 13, further comprising
generating a script code hash from the script code; and
generating a script syntax hash from the generic script syntax data, wherein the script fingerprint data comprises the script code hash and the script syntax hash.

### Claim 15 (depends on 11)

The method of claim 11, wherein determining that the script fingerprint data is not described by the local known script data comprises:
determining that the script code data describing the script is not described by script fingerprint data that is on a static script list of the local known script data; and
determining that script syntax data describing the script is described by script fingerprint data that is on the static script list.

### Claim 16 (depends on 15)

The method of claim 15, wherein updating the local known script data to describe the script fingerprint data comprises:
modifying the static script list to remove a reference to the script syntax data describing the script; and
modifying a dynamic script list of the local known script data to describe at least a portion of the script fingerprint data.

### Claim 17 (depends on 11)

The method of claim 11, wherein determining that the script fingerprint data is not described by local known script data comprises:
determining that the script code data is not described by script fingerprint data that is on a static script list of the local known script data;
determining that the script syntax data describing the script is not described by script fingerprint data on the static script list; and
determining that the script syntax data describing the script is not described by script fingerprint data on a dynamic script list of the local known script data.

### Claim 18 (depends on 11)

The method of claim 11, further comprising:
receiving, from the server, a script code request describing the script; and
sending, to the server, the script code.

### Claim 19 (depends on 11)

The method of claim 11, further comprising receiving at least a portion of the local known script data from the server.

### Claim 20

A non-transitory machine-readable medium comprising instructions thereon that, when executed by a processor, causes the process to perform operations comprising:
parsing, by a web browser executing at the processor, web content received from a server;
identifying, by the web browser, a script associated with the web content received from the server;
generating, by the web browser, script fingerprint data for the script, wherein the script fingerprint data comprises script code data describing script code for the script and script syntax data describing the script;
determining, by the web browser, that the script fingerprint data is not described by local known script data;
sending an anomalous script report by the web browser to the server, the anomalous script report comprising the script fingerprint data; and
updating, by the web browser, the local known script data to describe the script fingerprint data.
