# US 2023/0069769 A1 · Real-time detection of system threats

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

- Number: US 2023/0069769 A1
- Document ID: US20230069769A1
- Status: Published application
- Kind: A1
- Application number: 17/985,510
- Filed: 2022-11-11
- Published: 2023-03-02
- Earliest claimed: 2019-01-31
- Assignees: Rubrik, Inc.
- Applicants: Rubrik, Inc.
- Inventors: Shanthi Kiran Pendyala; Di Wu; Mathew Edward Noe
- Web page: https://patentgrep.com/patent/US20230069769A1

## CPC

- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 9/4498: {Finite state machines}
- G06F 16/1734: {Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs}
- G06F 16/1748: {De-duplication implemented within the file system, e.g. based on file segments (de-duplication techniques in storage systems for the management of data blocks G06F3/0641)}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Some examples relate generally to managing and storing data, and more specifically to the real-time detection of ransomware, system (or insider) threats, or the misappropriation of credentials by using file system audit events.

## Claims

### Claim 1

A method for detection of whether a file system is infected with malware, the method comprising:
accessing audit events in the file system for a time interval, the audit events including unique file operations and duplicative file operations within the time interval;
de-duplicating the audit events to remove the duplicative file operations and retain the unique file operations from the audit events;
generating time series data that comprises the unique file operations and is devoid of the duplicative file operations;
analyzing the time series data to determine whether a subset of the unique file operations includes delete instructions to delete files corresponding to the subset of unique file operations;
comparing a pattern of the delete instructions in the time interval to a normal pattern of delete instructions;
determining, based at least in part on the comparing, that the delete instructions in the subset of unique file operations are abnormal based at least in part on a deviation between the pattern of the delete instructions in the time interval and the normal pattern of delete instructions;
responsive to determining that the delete instructions in the subset of unique file operations are abnormal, determining that the file system is infected with malware; and
generating an alert based at least in part on determining that the file system is infected with malware.

### Claim 2 (depends on 1)

The method of claim 1, wherein the audit events include information comprising, for each audit event, a user identity, a file name, a type of access, a timestamp, or any combination thereof.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining that the file system is infected with malware is further based at least in part on determining that the unique file operations include instructions to encrypt copies of the deleted files.

### Claim 4 (depends on 1)

The method of claim 1, wherein de-duplicating the audit events is based at least in part on an identification of successive file operations that do not lead to a change in a file state.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
in a pre-analysis phase, identifying the duplicative file operations based at least in part on the duplicative file operations being successive file operations that maintain corresponding files in file states associated with corresponding prior file operations.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
generating a finite state machine including one or more file states, the file states including a file open state, a file read state, a file write state, a file read/write state, a file close state, or any combination thereof; and
storing the file states in the finite state machine in a key-value object store.

### Claim 7 (depends on 6)

The method of claim 6, wherein de-duplicating the audit events comprises identifying, as the duplicative file operations, file operations that maintain a file system state based at least in part on the finite state machine.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining that the delete instructions in the subset of unique file operations are abnormal comprises applying a set of machine learning models to the audit events, the set of machine learning models trained to determine the pattern or a number of the delete instructions and to compare the pattern or the number of the delete instructions to the normal pattern of delete instructions or a normal number of delete instructions based at least in part on features representing a normal or expected behavior of the file system.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining that the delete instructions in the subset of unique file operations are abnormal comprises applying Seasonal-Trend Decomposition Procedure Based on Loess (STL) decomposition to file delete audit events to remove seasonal and trend components and using a residue of the decomposition to generate the time series data, and performing an Exploratory Data Analysis (ESD) test on the time series data.

### Claim 10

An apparatus for managing virtual machines, comprising:
at least one processor;
memory coupled with the processor; and
instructions stored in the memory and executable by the at least one processor to cause the apparatus to:
access audit events in a file system for a time interval, the audit events including unique file operations and duplicative file operations within the time interval;
de-duplicate the audit events to remove the duplicative file operations and retain the unique file operations from the audit events;
generate time series data that comprises the unique file operations and is devoid of the duplicative file operations;
analyze the time series data to determine whether a subset of the unique file operations includes delete instructions to delete files corresponding to the subset of unique file operations;
compare a pattern of the delete instructions in the time interval to a normal pattern of delete instructions;
determine, based at least in part on the comparing, that the delete instructions in the subset of unique file operations are abnormal based at least in part on a deviation between the pattern of the delete instructions in the time interval and the normal pattern of delete instructions;
responsive to determining that the delete instructions in the subset of unique file operations are abnormal, determine that the file system is infected with malware; and
generate an alert based at least in part on determining that the file system is infected with malware.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the audit events include information comprising, for each audit event, a user id, a file name, a type of access, a timestamp, or any combination thereof.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the instructions are further executable by the at least one processor to cause the apparatus to:
determine that the file system is infected with malware further based at least in part on determining that the unique file operations include instructions to encrypt copies of the deleted files.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein the instructions are executable by the at least one processor to cause the apparatus to de-duplicate the audit events based at least in part on an identification of successive file operations that do not lead to a change in a file state.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the instructions are further executable by the at least one processor to cause the apparatus to:
in a pre-analysis phase, identify the duplicative file operations based at least in part on the duplicative file operations being successive file operations that maintain corresponding files in file states associated with corresponding prior file operations.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the instructions are further executable by the at least one processor to cause the apparatus to:
generate a finite state machine including one or more file states, the file states including a file open state, a file read state, a file write state, a file read/write state, a file close state, or any combination thereof; and
store the file states in the finite state machine in a key-value object store.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein, to de-duplicate the audit events, the instructions are executable by the at least one processor to cause the apparatus to identify, as the duplicative file operations, file operations that maintain a file system state based at least in part on the finite state machine.

### Claim 17 (depends on 10)

The apparatus of claim 10, wherein, to determine that the delete instructions in the subset of unique file operations are abnormal, the instructions are executable by the at least one processor to cause the apparatus to apply a set of machine learning models to the audit events, the set of machine learning models trained to determine the pattern or a number of the delete instructions and to compare the pattern or the number of the delete instructions to the normal pattern of delete instructions or a normal number of delete instructions based at least in part on features representing a normal or expected behavior of the file system.

### Claim 18

A non-transitory computer-readable medium storing code for managing virtual machines, the code comprising instructions executable by at least one processor to:
access audit events in a file system for a time interval, the audit events including unique file operations and duplicative file operations within the time interval;
de-duplicate the audit events to remove the duplicative file operations and retain the unique file operations from the audit events;
generate time series data that comprises the unique file operations and is devoid of the duplicative file operations;
analyze the time series data to determine whether a subset of the unique file operations includes delete instructions to delete files corresponding to the subset of unique file operations;
compare a pattern of the delete instructions in the time interval to a normal pattern of delete instructions;
determine, based at least in part on the comparing, that the delete instructions in the subset of unique file operations are abnormal based at least in part on a deviation between the pattern of the delete instructions in the time interval and the normal pattern of delete instructions;
responsive to determining that the delete instructions in the subset of unique file operations are abnormal, determine that the file system is infected with malware; and
generate an alert based at least in part on determining that the file system is infected with malware.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the instructions are further executable by the at least one processor to determine that the file system is infected with malware further based at least in part on determining that the unique file operations include instructions to encrypt copies of the deleted files.

### Claim 20 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein instructions are executable by the at least one processor to de-duplicate the audit events based at least in part on an identification of successive file operations that do not lead to a change in a file state
