# US 2018/0253549 A1 · Secure just-in-time (jit) code generation

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

- Number: US 2018/0253549 A1
- Document ID: US20180253549A1
- Status: Published application
- Kind: A1
- Application number: 15/449,965
- Filed: 2017-03-05
- Published: 2018-09-06
- Earliest claimed: 2017-03-05
- Assignees: enSilo Ltd.
- Applicants: enSilo Ltd.
- Inventors: Udi YAVO
- Web page: https://patentgrep.com/patent/US20180253549A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 8/41: Compilation
- G06F 9/45516: {Runtime code conversion or optimisation}
- G06F 9/4552: {Involving translation to a different instruction set architecture, e.g. just-in-time translation in a JVM}
- G06F 21/563: {by source code analysis}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of securely executing a Just-In-Time (JIT) compiled code in a runtime environment, comprising using one or more processors for receiving from a JIT executing process a request to compile in runtime a code segment, initiating a JIT compiling process to compile the code segment in order to generate an executable code segment, storing the executable code segment in a shared memory and providing to the JIT executing process a pointer to the executable code segment in the shared memory. Wherein the JIT executing process having read-execute access rights to the shared memory and the JIT executing process and the JIT compiling process are different processes.

## Claims

### Claim 1

A computer implemented method of securely executing a Just-In-Time (JIT) compiled code in a runtime environment, comprising:
using at least one processor for:
receiving from a JIT executing process a request to compile in runtime a code segment;
initiating a JIT compiling process to compile said code segment o generate an executable code segment;
storing said executable code segment in a shared memory; and
providing to said JIT executing process a pointer to said executable code segment in said shared memory, said JIT executing process having read-execute access rights to said shared memory;
wherein said if executing process and said JIT compiling process are different processes.

### Claim 2 (depends on 1)

The computer implemented method according to claim 1, wherein said JIT compiling process employs a JIT compiler adapted to generate said executable code segment according to an architecture of said at least one processor.

### Claim 3 (depends on 1)

The computer implemented method according to claim 1, wherein said JIT executing process is denied code generation privileges.

### Claim 4 (depends on 1)

The computer implemented method according to claim 1, wherein said JIT executing process is denied of write access rights to said shared memory.

### Claim 5 (depends on 1)

The computer implemented method according to claim 1, wherein said JIT compiling process is granted with read-write access rights to said shared memory to allow said storing.

### Claim 6 (depends on 1)

The computer implemented method according to claim 1, wherein said JIT compiling process is denied of execution access rights from said shared memory.

### Claim 7 (depends on 1)

The computer implemented method according to claim 1, further comprising analyzing said code segment before generating said executable code segment to identify at least one potentially malicious operation initiated by said code segment [analyze the code segment (before compilation) to verify its validity].

### Claim 8 (depends on 1)

The computer implemented method according to claim 1, further comprising analyzing said executable code segment after generated to identify at least one potentially malicious operation initiated by said code segment.

### Claim 9

A system for securely executing a Just-In-Time (JIT) compiled code in a runtime environment, comprising:
at least one processor adapted to execute code, said code comprising:
code instructions to receive from a JIT executing process a request to compile in runtime a code segment;
code instructions to initiate a JIT compiling process to compile said code segment to generate an executable code segment;
code instructions to store said executable code segment in a shared memory; and
code instructions to provide to said JIT executing process a pointer to said executable code segment in said shared memory, said JIT executing process having read-execute access rights to said shared memory;
wherein said JIT executing process and said compiling process are different processes.

### Claim 10

A system for securely executing a Just-In-Time (JIT) compiled code in a runtime environment, comprising:
at least one processor adapted to execute code, said code comprising:
code instructions to initiate a JIT executing process comprising at east one un-compiled code segment; and
code instructions to execute a JIT compiling process to compile said at least me code segment to generate at least one corresponding executable code segment;
wherein in response to a request from said JIT executing process to compile said at least one code segment, said JIT compiling process compiles said at least one code segment to generate said corresponding executable code segment and stores said corresponding executable code segment in a shared memory to which said executing process has read-execute access rights.

### Claim 11 (depends on 10)

The system according to claim 10, wherein said JIT executing process and said JIT compiling process are different processes.
