# US 2019/0156031 A1 · Binary Search of Byte Sequences Using Inverted Indices

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

- Number: US 2019/0156031 A1
- Document ID: US20190156031A1
- Status: Published application
- Kind: A1
- Application number: 16/252,388
- Filed: 2019-01-18
- Published: 2019-05-23
- Earliest claimed: 2017-01-06
- Assignees: CrowdStrike, Inc.
- Applicants: CrowdStrike, Inc.
- Inventors: Horea Coroiu; Daniel Radu
- Web page: https://patentgrep.com/patent/US20190156031A1

## CPC

- G06F 21/564: {by virus signature recognition}
- G06F 16/152: {using file content signatures, e.g. hash values}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04W 12/128: Anti-malware arrangements, e.g. protection against SMS fraud or mobile malware
- G06F 16/901: Indexing; Data structures therefor; Storage structures (for retrieval from the web G06F16/951)
- G06F 2221/033: Test or assess software
- 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)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

Techniques for searching an inverted index associating byte sequences of a fixed length and files that contain those byte sequences are described herein. Byte sequences comprising a search query are determined and searched in the inverted index, and an intersection of the results is determined and returned as a response to the search query. Further, search queries in the form of expressions including search terms and logical operators are searched in the inverted index and evaluated using a syntax tree constructed based on the logical operators. Also, byte sequences comprising a file are searched in the inverted index and results of the search are used to generate signatures and fuzzy hashes.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving an expression as a search query, the expression including at least one logical operator and at least two search terms;
searching for byte sequences of a fixed length that comprise each of the search terms in an inverted index which specifies byte sequences of the fixed length and, for each specified byte sequence, file identifiers of files that include the specified byte sequence;
evaluating results of the searching using a syntax tree constructed from the at least one logical operator; and
returning a search result to the search query based on the evaluating.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the byte sequences of the fixed length are n-grams with a length of four bytes.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the searching further comprises determining a plurality of byte sequences of a fixed length that correspond to each search term.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the searching further comprises querying the inverted index with the plurality of byte sequences of the fixed length that correspond to each search term.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising constructing the syntax tree based on the at least one logical operator.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the search terms are evaluated as leaves of the syntax tree that each comprise one or more byte sequences associated with one of the search terms.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising, before performing the returning, validating that a file corresponding to the search result satisfies the expression.

### Claim 8

A computing device comprising:
one or more processors; and
memory storing computer-executable instructions that, when executed by the one or more processors, perform operations comprising:
receiving an expression as a search query, the expression including at least one logical operator and at least two search terms;
searching for byte sequences of a fixed length that comprise each of the search terms in an inverted index which specifies byte sequences of the fixed length and, for each specified byte sequence, file identifiers of files that include the specified byte sequence;
evaluating results of the searching using a syntax tree constructed from the at least one logical operator; and
returning a search result to the search query based on the evaluating.

### Claim 9 (depends on 8)

The computing device of claim 8, wherein the byte sequences of the fixed length are n-grams with a length of four bytes.

### Claim 10 (depends on 8)

The computing device of claim 8, wherein the searching further comprises determining a plurality of byte sequences of a fixed length that correspond to each search term.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the searching further comprises querying the inverted index with the plurality of byte sequences of the fixed length that correspond to each search term.

### Claim 12 (depends on 8)

The computing device of claim 8, wherein the operations further comprise constructing the syntax tree based on the at least one logical operator.

### Claim 13 (depends on 8)

The computing device of claim 8, wherein the search terms are evaluated as leaves of the syntax tree that each comprise one or more byte sequences associated with one of the search terms.

### Claim 14 (depends on 8)

The computing device of claim 8, wherein the operations further comprise, before performing the returning, validating that a file corresponding to the search result satisfies the expression.

### Claim 15

One or more non-transitory computer-readable media having stored thereon programming instructions that, when executed by one or more processors, cause the one or more processors to perform operations including:
receiving an expression as a search query, the expression including at least one logical operator and at least two search terms;
searching for byte sequences of a fixed length that comprise each of the search terms in an inverted index which specifies byte sequences of the fixed length and, for each specified byte sequence, file identifiers of files that include the specified byte sequence;
evaluating results of the searching using a syntax tree constructed from the at least one logical operator; and
returning a search result to the search query based on the evaluating.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the byte sequences of the fixed length are n-grams with a length of four bytes.

### Claim 17 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the searching further comprises determining a plurality of byte sequences of a fixed length that correspond to each search term.

### Claim 18 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein the searching further comprises querying the inverted index with the plurality of byte sequences of the fixed length that correspond to each search term.

### Claim 19 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the operations further comprise constructing the syntax tree based on the at least one logical operator, wherein the search terms are evaluated as leaves of the syntax tree that each comprise one or more byte sequences associated with one of the search terms.

### Claim 20 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the operations further comprise, before performing the returning, validating that a file corresponding to the search result satisfies the expression.
