# US 2024/0378048 A1 · Systems and methods for javascript based application cybersecurity

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

- Number: US 2024/0378048 A1
- Document ID: US20240378048A1
- Status: Published application
- Kind: A1
- Application number: 18/763,191
- Filed: 2024-07-03
- Published: 2024-11-14
- Earliest claimed: 2020-08-31
- Assignees: Seraphic Algorithms Ltd.
- Applicants: Seraphic Algorithms Ltd.
- Inventors: Avihay Cohen
- Web page: https://patentgrep.com/patent/US20240378048A1

## CPC

- G06F 21/554: {involving event detection and direct action}
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- 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/51: at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/54: by adding security routines or objects to programs
- G06F 9/45529: {Embedded in an application, e.g. JavaScript in a Web browser}
- G06F 9/54: Interprogram communication
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 12/1441: {for a range}
- G06F 12/1491: {in a hierarchical protection system, e.g. privilege levels, memory rings}
- G06F 2212/1052: Security improvement
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A non-transitory computer readable medium contains instructions that when executed cause one or more processors to perform cybersecurity operations that include detecting an interpreter-based application configured to exhibit native functionality and to generate a plurality of execution contexts following receipt of an original input code. An interpreter-based cybersecurity agent is injected within the detected interpreter-based application, which is itself configured for execution by the interpreter-based application prior to execution of the original input code. Exposed APIs are patched using the injected interpreter-based cybersecurity agent to cause patched APIs to exhibit non-native functionality in order to thwart exploitations.

## Claims

### Claim at position 1

-18. (canceled)

### Claim 19

A non-transitory computer readable medium containing instructions that when executed by at least one processor cause the at least one processor to perform cybersecurity operations comprising:
detecting at least one JavaScript enabled application, wherein the JavaScript enabled application is configured to exhibit native functionality and to generate a plurality of execution contexts following receipt of an original input code;
injecting a JavaScript cybersecurity agent within the at least one detected Javascript enabled application, wherein the injected JavaScript cybersecurity agent is configured for execution prior to execution of the original input code by the JavaScript enabled application; and
patching exposed application programming interfaces using the injected JavaScript cybersecurity agent, wherein the patching is configured to cause patched application programming interfaces to exhibit non-native functionality different from the native functionality, and wherein the non-native functionality differs for different execution contexts of the JavaScript enabled application in order to thwart exploitations.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the injected JavaScript cybersecurity agent is configured for execution prior to execution of the original input code with each of the plurality of execution contexts.

### Claim 21 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the injecting occurs in each of the plurality of execution contexts before the original input code is executed by the JavaScript enabled application.

### Claim 22 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the operations further comprise detecting the original input code in transit, and wherein injecting occurs at a top portion of the original input code to generate a modified input code and to thereby enable the JavaScript cybersecurity agent to be executed before the original input code is executed.

### Claim 23 (depends on 22)

The non-transitory computer readable medium of claim 22, wherein detecting the original input code occurs via a local proxy.

### Claim 24 (depends on 22)

The non-transitory computer readable medium of claim 22, wherein detecting the original input code occurs via a local virtual private network server.

### Claim 25 (depends on 22)

The non-transitory computer readable medium of claim 22, wherein detecting the original input code occurs via a native application configured to monitor JavaScript files.

### Claim 26 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the Javascript enabled application is a web application, and the operations further include installing a node.js package in the web application, and wherein the node.js package is configured to execute the JavaScript cybersecurity agent before code of the web application is executed.

### Claim 27 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein injecting occurs in a top portion of web application source code to enable pages sent to at least one browser to contain the JavaScript cybersecurity agent and to execute in the at least one browser before the web application source code is executed.

### Claim 28 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the patching is configured to cause unpredictable manipulations of at least one of the exposed application programming interfaces.

### Claim 29 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the operations further include recording changes caused by the non-native functionality to thereby enable reconstruction of original functionality.

### Claim 30

A method for performing cybersecurity operations, the method comprising:
detecting at least one JavaScript enabled application, wherein the JavaScript enabled application has a plurality of execution contexts and is configured to exhibit native functionality;
injecting a JavaScript cybersecurity agent within the at least one detected Javascript enabled application, wherein the injected JavaScript cybersecurity agent is configured for execution prior to code associated with the JavaScript enabled application; and
patching exposed application programming interfaces using the injected JavaScript cybersecurity agent, wherein the patching is configured to cause the patched application programming interfaces to exhibit non-native functionality different from the native functionality, and wherein the non-native functionality differs for differing execution contexts of the JavaScript enabled application in order to circumvent exploitations.

### Claim 31 (depends on 30)

The method of claim 30, further comprising executing the injected JavaScript cybersecurity agent prior to code associated with each of the plurality of execution contexts.

### Claim 32 (depends on 30)

The method of claim 30, further comprising injecting the JavaScript cybersecurity agent in each of the plurality of execution contexts before other code is executed by the JavaScript enabled application.

### Claim 33 (depends on 30)

The method of claim 30, further comprising detecting original input code in transit, and injecting the JavaScript cybersecurity agent at a top portion of the input code to generate a modified input code and to thereby enable the JavaScript cybersecurity agent to be executed before the original input code is executed.

### Claim 34 (depends on 30)

The method of claim 30, further comprising causing unpredictable manipulations of at least one of the exposed application programming interfaces via the patching.

### Claim 35 (depends on 30)

The method of claim 30, further comprising recording changes caused by the non-native functionality to thereby enable reconstruction of original functionality.

### Claim 36

A system for performing cybersecurity operations, comprising:
at least one processor configured to:
detect at least one JavaScript enabled application, wherein the JavaScript enabled application has a plurality of execution contexts and is configured to exhibit native functionality,
inject a JavaScript cybersecurity agent within the at least one detected Javascript enabled application, wherein the injected JavaScript cybersecurity agent is configured for execution prior to code associated with the JavaScript enabled application; and
patch exposed application programming interfaces using the injected JavaScript cybersecurity agent, wherein the patching is configured to cause the patched application programming interfaces to exhibit non-native functionality different from the native functionality, and wherein the non-native functionality differs for differing execution contexts of the JavaScript enabled application in order to circumvent exploitations.

### Claim 37 (depends on 36)

The system of claim 36, wherein the processor is further configured to detect original input code in transit and inject the JavaScript cybersecurity agent at a top portion of the input code to generate a modified input code and to thereby enable the JavaScript cybersecurity agent to be executed before the original input code is executed.

### Claim 38 (depends on 37)

The system of claim 37, wherein detecting the original input code occurs via at least one of: a local proxy, a local virtual private network server, a native application configured to monitor JavaScript files.

### Claim at position 22

-71. (canceled)
