# US 2025/0094144 A1 · Rules processing systems and methods with just-in-time compilation for endpoint protection in kernel mode

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

- Number: US 2025/0094144 A1
- Document ID: US20250094144A1
- Status: Published application
- Kind: A1
- Application number: 18/966,334
- Filed: 2024-12-03
- Published: 2025-03-20
- Earliest claimed: 2022-05-10
- Assignees: Open Text Holdings, Inc.
- Applicants: Open Text Holdings, Inc.
- Inventors: Michael James Bailey; Jacob Harris Therrien
- Web page: https://patentgrep.com/patent/US20250094144A1

## CPC

- G06F 8/41: Compilation
- G06F 9/4552: {Involving translation to a different instruction set architecture, e.g. just-in-time translation in a JVM}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An endpoint protection system implementing a new blocking strategy allows a user to specify an arbitrary number of protection rules through a user interface. In user mode, the protection rules are compiled into a single expression tree, which is then compiled into byte code. In kernel mode, the byte code is dynamically loaded in memory (e.g., kernel space) and the assembler validates the byte code and performs a plurality of security checks, then ultimately assembles the byte code into machine code that is native to the processor. Because complex detection/protection logic is compiled in user mode, the invention allows for highly expressive and powerful protection rules. Further, because complex detection/protection logic is not manually written in kernel mode, but validated then evaluated via simple machine code instructions in the privileged mode, the invention is safer and will not slow down the entire operating system.

## Claims

### Claim 1

A method, comprising:
compiling, by a compiler in a user mode of an operating system on an endpoint of a computer network, a protection rule into an expression tree, the protection rule implementing a blocking strategy;
compiling, by the compiler in the user mode of the operating system, the expression tree into byte code;
loading, by an assembler on the endpoint, the byte code in a kernel mode of the operating system;
validating, by the assembler on the endpoint, the byte code in the kernel mode of the operating system, the validating comprising performing a security check on the byte code; and
assembling, by the assembler on the endpoint, the byte code into machine code for execution in the kernel mode of the operating system so as to implement the blocking strategy in the kernel mode of the operating system.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
responsive to an instruction received through a graphical user interface, generating a filter which implements the protection rule.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the filter is generated in a language specific to an application domain.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the protection rule is written in a language specific to an application domain.

### Claim 5 (depends on 1)

The method according to claim 1, wherein compiling the protection rule into the expression tree comprises interpreting the protection rule using an interpreter.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the interpreter is embedded in a host application.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the host application comprises a regular expression engine.

### Claim 8

An apparatus, comprising:
a processor;
a non-transitory computer-readable medium;
an operating system having a user mode and a kernel mode; and
instructions stored on the non-transitory computer-readable medium for implementing a compiler and an assembler, the instructions when translated by the processor perform:
compiling, by the compiler in the user mode of the operating system, a protection rule into an expression tree, the protection rule implementing a blocking strategy;
compiling, by the compiler in the user mode of the operating system, the expression tree into byte code;
loading, by the assembler, the byte code in the kernel mode of the operating system;
validating, by the assembler, the byte code in the kernel mode of the operating system, the validating comprising performing a security check on the byte code; and
assembling, by the assembler, the byte code into machine code for execution in the kernel mode of the operating system so as to implement the blocking strategy in the kernel mode of the operating system.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the instructions when translated by the processor further perform:
responsive to an instruction received through a graphical user interface, generating a filter which implements the protection rule.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the filter is generated in a language specific to an application domain.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the protection rule is written in a language specific to an application domain.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein compiling the protection rule into the expression tree comprises interpreting the protection rule using an interpreter.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the interpreter is embedded in a host application.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the host application comprises a regular expression engine.

### Claim 15

A computer program product comprising a non-transitory computer-readable medium storing instructions implementing a compiler and an assembler on an endpoint of a computer network, the endpoint having a processor and an operating system running in a user mode and a kernel mode, the instructions when translated by the processor perform:
compiling, by the compiler in the user mode of the operating system, a protection rule into an expression tree, the protection rule implementing a blocking strategy;
compiling, by the compiler in the user mode of the operating system, the expression tree into byte code;
loading, by the assembler, the byte code in the kernel mode of the operating system;
validating, by the assembler, the byte code in the kernel mode of the operating system, the validating comprising performing a security check on the byte code; and
assembling, by the assembler, the byte code into machine code for execution in the kernel mode of the operating system so as to implement the blocking strategy in the kernel mode of the operating system.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the instructions when translated by the processor further perform:
responsive to an instruction received through a graphical user interface, generating a filter which implements the protection rule.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the filter is generated in a language specific to an application domain.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the protection rule is written in a language specific to an application domain.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein compiling the protection rule into the expression tree comprises interpreting the protection rule using an interpreter.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the interpreter is embedded in a regular expression engine.
