# US 2025/0156575 A1 · Structured encryption rules engine

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

- Number: US 2025/0156575 A1
- Document ID: US20250156575A1
- Status: Published application
- Kind: A1
- Application number: 18/508,857
- Filed: 2023-11-14
- Published: 2025-05-15
- Earliest claimed: 2023-11-14
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Edoardo Vacchi; Paolo Antinori
- Web page: https://patentgrep.com/patent/US20250156575A1

## CPC

- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A rules engine that is running a rules-based application executing on a computing device comprising a processor device receives a first transaction that includes a plurality of data fields, at least some of the data fields including data to be evaluated by a plurality of rules identified in the rules-based application, the first transaction including encrypted data in a first encrypted data field of the plurality of data fields that has been encrypted with a symmetric key in accordance with a structured encrypted algorithm. The rules engine queries the encrypted data using a first query token generated using the symmetric key to determine if the encrypted data includes a value used in a first condition identified in the plurality of rules. The rules engine takes an action based at least in part on querying the encrypted data.

## Claims

### Claim 1

A method, comprising:
receiving, by a rules engine that is running a rules-based application executing on a computing device comprising a processor device, a first transaction comprising a plurality of data fields, at least some of the data fields comprising data to be evaluated by a plurality of rules identified in the rules-based application, the first transaction comprising encrypted data in a first encrypted data field of the plurality of data fields that has been encrypted with a symmetric key in accordance with a structured encrypted algorithm;
querying, by the rules engine, the encrypted data using a first query token generated using the symmetric key to determine if the encrypted data includes a value used in a first condition identified in the plurality of rules; and
taking, by the rules engine, an action based at least in part on querying the encrypted data.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
accessing, by the rules engine, a schema that identifies the plurality of data fields of the first transaction including the first encrypted data field; and
determining, based on the schema, that the first encrypted data field is an encrypted data field.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
prior to querying the encrypted data, obtaining, by the rules engine, the first query token from the schema.

### Claim 4 (depends on 1)

The method of claim 1, wherein the rules engine does not have access to the symmetric key.

### Claim 5 (depends on 1)

The method of claim 1, wherein the rules engine is a Rete-based rules engine.

### Claim 6 (depends on 5)

The method of claim 5, further comprising generating, by the rules engine, a Rete decision tree from the rules-based application, the Rete decision tree identifying a plurality of nodes that correspond to a plurality of conditions identified in the plurality of rules and identifying a plurality of paths through subsets of the nodes in accordance with logic of the rules-based application.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
accessing, by the rules engine, a second query token generated using the symmetric key, the second query token differing from the first query token;
querying, by the rules engine, encrypted data in a second encrypted data field of the plurality of data fields using the second query token to determine if the encrypted data in the second encrypted data field includes a value used in a second condition identified in the plurality of rules; and
taking, by the rules engine, the action based at least in part on querying the encrypted data in the first encrypted data field and the encrypted data in the second encrypted data field.

### Claim 8 (depends on 1)

The method of claim 1 wherein a second data field of the plurality of data fields comprises unencrypted data.

### Claim 9 (depends on 1)

The method of claim 1 further comprising:
receiving, by the rules engine, a second transaction comprising the plurality of data fields;
accessing, by the rules engine, the first query token generated using the symmetric key;
querying, by the rules engine, encrypted data in the first encrypted data field of the second transaction using the first query token to determine if the encrypted data in the first encrypted data field of the second transaction includes a value used in the first condition identified in the plurality of rules, the encrypted data in the first encrypted data field of the second transaction being different from the encrypted data in the first encrypted data field of the first transaction; and
taking, by the rules engine, an action based at least in part on querying the encrypted data in the first encrypted data field of the second transaction.

### Claim 10

A computing device, comprising:
a memory; and
a processor device coupled to the memory to:
receive, by a rules engine that is running a rules-based application, a first transaction comprising a plurality of data fields, at least some of the data fields comprising data to be evaluated by a plurality of rules identified in the rules-based application, the first transaction comprising encrypted data in a first encrypted data field of the plurality of data fields that has been encrypted with a symmetric key in accordance with a structured encrypted algorithm;
query, by the rules engine, the encrypted data using a first query token generated using the symmetric key to determine if the encrypted data includes a value used in a first condition identified in the plurality of rules; and
take, by the rules engine, an action based at least in part on querying the encrypted data.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the processor device is further to:
access, by the rules engine, a schema that identifies the plurality of data fields of the first transaction including the first encrypted data field; and
determine, based on the schema, that the first encrypted data field is an encrypted data field.

### Claim 12 (depends on 10)

The computing device of claim 10, wherein the rules engine does not have access to the symmetric key.

### Claim 13 (depends on 10)

The computing device of claim 10, wherein the processor device is further to:
access, by the rules engine, a second query token generated using the symmetric key, the second query token differing from the first query token;
query, by the rules engine, encrypted data in a second encrypted data field of the plurality of data fields using the second query token to determine if the encrypted data in the second encrypted data field includes a value used in a second condition identified in the plurality of rules; and
take, by the rules engine, the action based at least in part on querying the encrypted data in the first encrypted data field and the encrypted data in the second encrypted data field.

### Claim 14 (depends on 10)

The computing device of claim 10, wherein a second data field of the plurality of data fields comprises unencrypted data.

### Claim 15 (depends on 10)

The computing device of claim 10, wherein the processor device is further to:
receive, by the rules engine, a second transaction comprising the plurality of data fields;
access, by the rules engine, the first query token generated using the symmetric key;
query, by the rules engine, encrypted data in the first encrypted data field of the second transaction using the first query token to determine if the encrypted data in the first encrypted data field of the second transaction includes a value used in the first condition identified in the plurality of rules, the encrypted data in the first encrypted data field of the second transaction being different from the encrypted data in the first encrypted data field of the first transaction; and
take, by the rules engine, an action based at least in part on querying the encrypted data in the first encrypted data field of the second transaction.

### Claim 16

A non-transitory computer-readable storage medium that includes executable instructions to cause a processor device to:
receive, by a rules engine that is running a rules-based application, a first transaction comprising a plurality of data fields, at least some of the data fields comprising data to be evaluated by a plurality of rules identified in the rules-based application, the first transaction comprising encrypted data in a first encrypted data field of the plurality of data fields that has been encrypted with a symmetric key in accordance with a structured encrypted algorithm;
query, by the rules engine, the encrypted data using a first query token generated using the symmetric key to determine if the encrypted data includes a value used in a first condition identified in the plurality of rules; and
take, by the rules engine, an action based at least in part on querying the encrypted data.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the instructions further cause the processor device to:
access, by the rules engine, a schema that identifies the plurality of data fields of the first transaction including the first encrypted data field; and
determine, based on the schema, that the first encrypted data field is an encrypted data field.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the instructions further cause the processor device to:
access, by the rules engine, a second query token generated using the symmetric key, the second query token differing from the first query token;
query, by the rules engine, encrypted data in a second encrypted data field of the plurality of data fields using the second query token to determine if the encrypted data in the second encrypted data field includes a value used in a second condition identified in the plurality of rules; and
take, by the rules engine, the action based at least in part on querying the encrypted data in the first encrypted data field and the encrypted data in the second encrypted data field.

### Claim 19 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein a second data field of the plurality of data fields comprises unencrypted data.

### Claim 20 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the instructions further cause the processor device to:
receive, by the rules engine, a second transaction comprising the plurality of data fields;
access, by the rules engine, the first query token generated using the symmetric key;
query, by the rules engine, encrypted data in the first encrypted data field of the second transaction using the first query token to determine if the encrypted data in the first encrypted data field of the second transaction includes a value used in the first condition identified in the plurality of rules, the encrypted data in the first encrypted data field of the second transaction being different from the encrypted data in the first encrypted data field of the first transaction; and
take, by the rules engine, an action based at least in part on querying the encrypted data in the first encrypted data field of the second transaction.
