# US 2019/0245886 A1 · Attack protection for webrtc providers

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

- Number: US 2019/0245886 A1
- Document ID: US20190245886A1
- Status: Published application
- Kind: A1
- Application number: 16/386,083
- Filed: 2019-04-16
- Published: 2019-08-08
- Earliest claimed: 2016-12-09
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Martin Johns; Christoph Haefner
- Web page: https://patentgrep.com/patent/US20190245886A1

## CPC

- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/08: {for authentication of entities (cryptographic mechanisms or cryptographic arrangements for entity authentication H04L9/32)}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- H04L 65/65: Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

WebRTC is vulnerable to malicious JavaScript, injected by cross-site scripting attacks or compromised or malicious script providers. Through these attacks, attackers can access a WebRTC connection and leak or monitor the audio and video data transmitted. By preventing modification of key WebRTC functions and preventing outgoing streams from being used more than once, these attacks can be thwarted.

## Claims

### Claim 1

A system comprising:
a memory that stores instructions;
one or more processors in communication with a network, configured by the instructions to perform operations comprising:
accessing first code from a first server for execution by a web browser;
accessing second code for execution by the web browser in conjunction with the first code;
executing a first portion of the first code by the web browser, the first portion of the first code modifying a first function to prevent web real-time communication (WebRTC) streams from being used more than once; and
executing the second code by the web browser after the execution of the first code, the second code attempting use a WebRTC stream that is already in use and failing due to the execution of the first portion of the first code.

### Claim 2 (depends on 1)

The system of claim 1, wherein the second code is received from a second server distinct from the first server.

### Claim 3 (depends on 1)

The system of claim 1, wherein:
the preventing of WebRTC streams from being used more than once prevents WebRTC streams generated at the system from being used more than once.

### Claim 4 (depends on 1)

The system of claim 1, wherein:
the execution of the first portion of the first code further causes WebRTC connections to be allowed only between end-users with valid identity assertions.

### Claim 5 (depends on 1)

The system of claim 1, wherein:
the execution of the first portion of the first code further causes attempts to create more than one stream for a device to fail.

### Claim 6 (depends on 1)

The system of claim 1, wherein:
the execution of the first portion of the first code further causes attempts to create WebRTC connections to be authenticated by the first server.

### Claim 7 (depends on 1)

The system of claim 1, wherein:
the preventing of WebRTC streams from being used more than once prevents WebRTC streams received by the system from being used more than once.

### Claim 8

A method comprising:
accessing, by a client device, first code from a first server, for execution by a web browser run on one or more processors;
accessing second code, by the client device, for execution by the web browser in conjunction with the first code;
executing, by the one or more processors, a first portion of the first code by the web browser, the first portion of the first code modifying a first function to prevent web real-time communication (WebRTC) streams from being used more than once; and
executing, by the one or more processors, the second code by the web browser after the execution of the first code, the second code attempting to use a WebRTC stream that is already in use and failing due to the execution of the first portion of the first code.

### Claim 9 (depends on 8)

The method of claim 8, wherein the second code is received from a second server distinct from the first server.

### Claim 10 (depends on 8)

The method of claim 8, wherein:
the preventing of WebRTC streams from being used more than once prevents WebRTC streams generated at the client device from being used more than once.

### Claim 11 (depends on 8)

The method of claim 8, wherein:
the execution of the first portion of the first code causes WebRTC connections to be allowed only between end-users with valid identity assertions.

### Claim 12 (depends on 8)

The method of claim 8, wherein:
the execution of the first portion of the first code further causes attempts to create more than one stream for a device to fail.

### Claim 13 (depends on 8)

The method of claim 8, wherein:
the execution of the first portion of the first code causes attempts to create WebRTC connections to be authenticated by the first server.

### Claim 14 (depends on 8)

The method of claim 8, wherein:
the preventing of WebRTC streams from being used more than once prevents WebRTC streams received by the client device from being used more than once.

### Claim 15

A non-transitory machine-readable storage medium comprising instructions that, when executed by one or more processors of a device, cause the device to perform operations comprising:
accessing first code from a first server for execution by a web browser;
accessing second code for execution by the web browser in conjunction with the first code;
executing a first portion of the first code by the web browser, the first portion of the first code modifying a first function to prevent web real-time communication (WebRTC) streams from being used more than once; and
executing the second code by the web browser after the execution of the first code, the second code attempting use a WebRTC stream that is already in use and failing due to the execution of the first portion of the first code.

### Claim 16 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the second code is received from a second server distinct from the first server.

### Claim 17 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein:
the preventing of WebRTC streams from being used more than once prevents WebRTC streams generated at the device from being used more than once.

### Claim 18 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein:
the execution of the first portion of the first code further causes WebRTC connections to be allowed only between end-users with valid identity assertions.

### Claim 19 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein:
the execution of the first portion of the first code further causes attempts to create more than one stream for a device to fail.

### Claim 20 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein:
the execution of the first portion of the first code further causes attempts to create WebRTC connections to be authenticated by the first server.
