# US 10,956,602 B2 · Searching for encrypted data within a cloud based platform

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

- Number: US 10,956,602 B2
- Document ID: US10956602B2
- Status: Granted
- Kind: B2
- Application number: 16/530,501
- Filed: 2019-08-02
- Published: 2020-01-23
- Granted: 2021-03-23
- Earliest claimed: 2017-10-03
- Assignees: ServiceNow, Inc.
- Applicants: ServiceNow, Inc.
- Inventors: Paul Wang; Qiang Gui; Ashok Ganesan; Brett Bandy; Ivan Valentine Covdy
- Web page: https://patentgrep.com/patent/US10956602B2

## CPC

- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F 16/2457: with adaptation to user needs
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 9/0822: {using key encryption key}
- H04L 9/0866: {involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/105: {Multiple levels of security}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Searching encrypted data using encrypted contexts by performing at least the following: configuring a first encryption context that allows access to a first encrypted field, configuring a second encryption context that allows access to a second encrypted field, assigning the first encryption context to a first role and the second encryption context to a second role, assigning the first role to a first user account to allow the first user account to access the first encrypted field, assigning the second role to a second user account to allow the second user to access the second encrypted field, receiving a query request associated with the first user account for a search term, wherein the query request includes instructions to search for an unencrypted version of the search term and a first encrypted value of the search term that is based on the first encryption context.

## Claims

### Claim 1

A system, comprising:
one or more hardware processors; and
a non-transitory memory, the non-transitory memory storing instructions that, when executed by the one or more hardware processors, causes the one or more hardware processors to perform actions associated with one or more query requests to search encrypted data within a cloud computing environment comprising:
receiving an assignment of an encryption context to a role for a customer instance in the cloud computing environment, wherein the encryption context defines access to a first encrypted field by the customer instance, wherein the encryption context comprises an encryption key encrypting data in the first encrypted field, and the role is assigned to a user account associated with the customer instance to allow the user account to access the first encrypted field;
receiving a query request associated with the user account for a first search term, wherein the query request includes instructions to search the first search term using both of an unencrypted version of the first search term and a first encrypted value of the first search term from the first encrypted field, wherein the first encrypted value of the first search term is generated based on the encryption context and the assigned role associated with the encryption context; and
transmitting a result of the query request based on the unencrypted version of the first search term and the first encrypted value of the first search term to the customer instance in the cloud computing environment.

### Claim 2 (depends on 1)

The system of claim 1, wherein the actions comprise receiving a second query request for a second search term.

### Claim 3 (depends on 2)

The system of claim 2, wherein the second query request includes instructions to:
search the second search term using an unencrypted version of the second search term, wherein the query request omits instructions to search for a second encrypted value of the second search term based on the second search term not being associated with the first encrypted field, the encryption context, and the role.

### Claim 4 (depends on 3)

The system of claim 3, wherein the actions comprise:
transmitting the result of the query request comprises transmitting the result of the second query request based on the unencrypted version of the second search term.

### Claim 5 (depends on 1)

The system of claim 1, wherein the actions comprise:
receiving a second encryption context defining access to at least a second encrypted field, wherein the second encryption context comprises a second encryption key encrypting data in the second encrypted field for the customer instance, wherein the other encryption context grants the customer instance access to the second encrypted field.

### Claim 6 (depends on 5)

The system of claim 5, wherein the query request includes instructions to:
search the first search term using a second encrypted value of the first search term from the second encrypted field, wherein the second encrypted value of the first search term is generated based on the second encryption context and the access granted to the second encrypted field to the customer instance.

### Claim 7 (depends on 1)

The system of claim 1, wherein the actions comprise searching, using the unencrypted version of the first search term and the first encrypted value of the first search term, one or more index tables that maps data content within the first encrypted field to location information.

### Claim 8

A method for processing one or more query requests for encrypted data within a cloud computing environment, the method comprising:
receiving an assignment of an encryption context to a role for a customer instance in the cloud computing environment, wherein the encryption context defines access to a first encrypted field by the customer instance, wherein the encryption context comprises an encryption key encrypting data in the first encrypted field
receiving a query request for a first search term and a second search term, wherein the role is assigned to a user account associated with the customer instance to allow the user account to access the first encrypted field, and wherein the query request includes instructions to:
search the first search term based on the query request associated with the user account using both of an unencrypted version of the first search term and a first encrypted value of the first search term from the first encrypted field, wherein the first encrypted value of the first search term is generated based on the encryption context and the assigned role associated with the encryption context; and
search the second search term using an unencrypted version of the second search term, wherein the query request omits instructions to search for a second encrypted value of the second search term based on the second search term not being associated with the first encrypted field, the encryption context, and the assigned role associated with the encryption context; and
transmitting a result of the query request based on the unencrypted version of the first search term and the first encrypted value of the first search term to the customer instance in the cloud computing environment.

### Claim 9 (depends on 8)

The method of claim 8, wherein transmitting the result of the query request comprises transmitting the result of the query request based on the unencrypted version of the second search term.

### Claim 10 (depends on 8)

The method of claim 8, comprising:
receiving an assignment of a second encryption context to the role, wherein the second encryption context defines access to a second encrypted field by the customer instance, wherein the encryption context comprises a second encryption key encrypting data in the second encrypted field.

### Claim 11 (depends on 10)

The method of claim 10, wherein the query request includes instructions to:
search the first search term using a second encrypted value of the first search term from the second encrypted field, wherein the second encrypted value of the first search term is generated based on the second encryption context and the access granted to the second encrypted field; and
search the second search term using a third encrypted value of the second search term from the second encrypted field, wherein the third encrypted value of the second search term is generated based on the second encryption context and the access granted to the second encrypted field to the customer instance.

### Claim 12 (depends on 11)

The method of claim 11, wherein the query request omits instructions to search for the second encrypted value of the second search term on the first encrypted field based on the second search term not being associated with the first encrypted field, the encryption context, and the role.

### Claim 13 (depends on 11)

The method of claim 11, wherein the encryption context and the second encryption context have different encryption keys.

### Claim 14 (depends on 8)

The method of claim 8, comprising searching, using the unencrypted version of the first search term and the first encrypted value of the first search term, one or more index tables that maps data content within the first encrypted field and a second encrypted field to location information.

### Claim 15

A non-transitory computer-readable storage medium comprising computer readable code, that when executed by one or more hardware processors, causes the one or more hardware processors to perform operations comprising:
receiving an assignment of an encryption context to a role for a customer instance in a cloud computing environment, wherein the encryption context defines access to a first encrypted field by the customer instance, wherein the encryption context comprises an encryption key encrypting data in the first encrypted field;
receiving a query request for a first search term and a second search term, wherein the role is assigned to a user account associated with the customer instance to allow the user account to access the first encrypted field, and wherein the query request includes instructions to:
search the first search term using an unencrypted version of the first search term and a first encrypted value of the first search term from the first encrypted field, wherein the first encrypted value of the first search term is generated based on the encryption context and the assigned role associated with the encryption context; and
search the second search term based on the query request associated with the user account using an unencrypted version of the second search term, wherein the query request omits instructions to search for a second encrypted value of the second search term based on the second search term not being associated with the first encrypted field, the encryption context, and the assigned role associated with the encryption context; and
transmitting a result of the query request based on the unencrypted version of the first search term and the first encrypted value of the first search term, and the unencrypted version of the second search term to the customer instance in the cloud computing environment.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the operations comprise:
receiving an assignment of a second encryption context to the role, wherein the second encryption context defines access to a second encrypted field by the customer instance, wherein the encryption context comprises a second encryption key encrypting data in the second encrypted field.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the encryption context and the second encryption context have different encryption keys.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the query request includes instructions to:
search the first search term using a third encrypted value of the first search term from the second encrypted field, wherein the third encrypted value of the first search term is generated based on the second encryption context and the access granted to the second encrypted field; and
search the second search term using a fourth encrypted value of the second search term from the second encrypted field, wherein the fourth encrypted value of the second search term is generated based on the second encryption context and the granted access to the second encrypted field.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the query request omits instructions to search for the second encrypted value of the second search term on the first encrypted field based on the second search term not being associated with the first encrypted field, the encryption context, and the role.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the operations comprise:
searching, using the unencrypted version of the first search term and the first encrypted value of the first search term, one or more index tables that maps data content within the first encrypted field and a second encrypted field to location information.
