# US 2022/0284095 A1 · Systems and methods for automating detection and mitigation of an operating system rootkit

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

- Number: US 2022/0284095 A1
- Document ID: US20220284095A1
- Status: Published application
- Kind: A1
- Application number: 17/192,042
- Filed: 2021-03-04
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Saudi Arabian Oil Company
- Applicants: Saudi Arabian Oil Company
- Inventors: Urfan Ahmed
- Web page: https://patentgrep.com/patent/US20220284095A1

## CPC

- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/565: {by checking file integrity}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/554: {involving event detection and direct action}
- G06F 21/564: {by virus signature recognition}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/568: {eliminating virus, restoring damaged files}
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- 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

Systems and methods to detect malicious software include an application software repository including a stored header file associated with a driver, an executable, or both, and are operable to (i) receive a memory dump file upon an operating system crash including a driver copy, an executable copy, or both, (ii) verify the memory dump file is new for analysis, (iii) compress the verified memory dump file to generate a memory snapshot of the verified memory dump file, (iv) scan the memory snapshot for a memory dump header file associated with the driver copy, the executable copy, or both, and (v) identify and extract malicious software when the memory dump header file from the memory snapshot fails to match at least one stored header file in the application software repository.

## Claims

### Claim 1

A rootkit detection system for an operating system to detect malicious software, the rootkit detection system comprising an operating system memory and an operating system data processor device, wherein:
the operating system memory comprises a malicious software identification and extraction module and an application software repository;
the malicious software identification and extraction module comprises machine-readable instructions executable by the operating system data processor device;
the application software repository comprises a stored header file associated with a software driver, an executable computer program, or both; and
the operating system data processor device is communicatively coupled to the operating system memory and is operable to execute the machine-readable instructions of the malicious software identification and extraction module to
receive a memory dump file upon a crash of the operating system, the memory dump file comprising a copy of the software driver, a copy of the executable computer program, or both,
verify the memory dump file is new for analysis,
compress the verified memory dump file to generate a memory snapshot of the verified memory dump file,
scan the memory snapshot for a memory dump header file, the memory dump header file being associated with the copy of the software driver, the copy of the executable computer program, or both, and
identify and extract malicious software when the memory dump header file from the memory snapshot fails to match at least one stored header file in the application software repository.

### Claim 2 (depends on 1)

The rootkit detection system of claim 1, wherein the malicious software identification and extraction module is associated with a client agent, a server agent, or both, wherein the client agent is communicatively coupled to the server agent.

### Claim 3 (depends on 1)

The rootkit detection system of claim 1, wherein the malicious software identification and extraction module is associated with a client agent, a server agent, or both, and the operating system data processor device is operable to execute the machine-readable instructions of the malicious software identification and extraction module on the client agent, the server agent, or both.

### Claim 4 (depends on 1)

The rootkit detection system of claim 1, wherein the malicious software identification and extraction module is associated with a client agent, and the operating system data processor device is operable to execute the machine-readable instructions of the malicious software identification and extraction module on the client agent.

### Claim 5 (depends on 4)

The rootkit detection system of claim 4, wherein the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
compare a memory dump stop code from the memory dump file to a plurality of stored stop codes in a stop code repository;
perform a network scan of the client agent to generate a plurality of scanned network connections when the memory dump stop code fails to match at least one stored stop code of the plurality of stored stop codes in the stop code repository;
apply an enumeration function to the memory dump file to generate a list of enumerated processes;
compare a plurality of stored kernel process lists to the list of enumerated processes;
apply the enumeration function to a plurality of thread identifiers associated with a corresponding plurality of process identifiers from the list of enumerated processes;
identify an enumerated process that is invisible when the enumerated process fails to match at least a stored kernel process list of the plurality of stored kernel process lists; and
identify the malicious software based on the enumerated process that is invisible; and
generate an alert based on the identified malicious software.

### Claim 6 (depends on 5)

The rootkit detection system of claim 5, wherein the stop code repository is disposed in a server agent, the server agent communicatively coupled to the client agent.

### Claim 7 (depends on 4)

The rootkit detection system of claim 4, wherein the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
apply an enumeration function to the memory dump file to generate a list of enumerated network connections;
compare a plurality of scanned network connections with the list of enumerated network connections; and
update a rootkit repository, a 0-Day repository, or both with (i) an enumerated network connection indicative of a missing port when the enumerated network connection fails to match at least one scanned network connection of the plurality of scanned network connections, (ii) the identified malicious software indicative of discovery of a vulnerability in an application code of an application of the operating system based upon the crash, or (iii) both.

### Claim 8 (depends on 7)

The rootkit detection system of claim 7, wherein the rootkit repository is disposed in a server agent, the client agent, or both, and the server agent is communicatively coupled to the client agent.

### Claim 9 (depends on 1)

The rootkit detection system of claim 1, wherein the malicious software identification and extraction module is associated with a client agent, and the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
start the client agent from a power off state;
generate an inventory upon starting the client agent from the power off state, the inventory comprising the software driver, the executable computer program, or both, and the stored header file;
compare the stored header file of the inventory with the stored header file of the application software repository to determine whether there is an inventory match;
determine whether the memory dump file matches an existing memory dump file upon finding the inventory match; and
end process when the memory dump file matches the existing memory dump file.

### Claim 10 (depends on 9)

The rootkit detection system of claim 9, wherein the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
determine whether the start from the power off state was at an initial run time;
generate the inventory when the start was at the initial run time, the inventory comprising the software driver, the executable computer program, or both, to store in the operating system memory;
scan the stored header file associated with the software driver, the executable computer program, or both, from the inventory; and
update the application software repository with the stored header file, the initial run time, and file name and location of the software driver, the executable computer program, or both.

### Claim 11 (depends on 1)

The rootkit detection system of claim 1, wherein the malicious software identification and extraction module is associated with a client agent, and the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
determine whether the memory dump file matches an existing memory dump file in a dump repository;
generate a hash for the memory dump file when the memory dump file does not match the existing memory dump file;
compare the hash against an existing hash in the dump repository to verify the memory dump file is new for analysis when the hash does not match the existing hash;
generate an alert for a server agent communicatively coupled to the client agent that the verified memory dump file is ready for analysis, the alert comprising a stop code;
receive the alert at the server agent comprising a stop code repository, the stop code repository comprising an existing stop code; and
update the stop code repository with the stop code when the stop code fails to match the existing stop code.

### Claim 12

A rootkit detection system for an operating system to detect malicious software, the rootkit detection system comprising an operating system memory and an operating system data processor device, wherein:
the operating system memory comprises a malicious software identification and extraction module and an application software repository;
the malicious software identification and extraction module comprises machine-readable instructions executable by the operating system data processor device, the malicious software identification and extraction module associated with a client agent, a server agent, or both, wherein the client agent is communicatively coupled to the server agent;
the application software repository comprises a stored header file associated with a software driver, an executable computer program, or both; and
the operating system data processor device is communicatively coupled to the operating system memory and is operable to execute the machine-readable instructions of the malicious software identification and extraction module to
receive a memory dump file upon a crash of the operating system, the memory dump file comprising a copy of the software driver, a copy of the executable computer program, or both,
verify the memory dump file is new for analysis by (i) determination of whether the memory dump file matches an existing memory dump file in a dump repository and (ii) generation of a hash for the memory dump file when the memory dump file does not match the existing memory dump file, the hash being indicative of a verified memory dump file new for analysis,
compress the verified memory dump file to generate a memory snapshot of the verified memory dump file,
scan the memory snapshot for a memory dump header file, the memory dump header file being associated with the copy of the software driver, the copy of the executable computer program, or both, and
identify and extract malicious software when the memory dump header file from the memory snapshot fails to match at least one stored header file in the application software repository.

### Claim 13 (depends on 12)

The rootkit detection system of claim 12, wherein the malicious software identification and extraction module is associated with the client agent, and the operating system data processor device is operable to execute the machine-readable instructions of the malicious software identification and extraction module on the client agent.

### Claim 14 (depends on 13)

The rootkit detection system of claim 13, wherein the malicious software identification and extraction module is associated with the client agent, and the operating system data processor device is operable to execute the machine-readable instructions of the malicious software identification and extraction module on the client agent, and the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
compare a memory dump stop code from the memory dump file to a plurality of stored stop codes in a stop code repository;
perform a network scan of the client agent to generate a plurality of scanned network connections when the memory dump stop code fails to match at least one stored stop code of the plurality of stored stop codes in the stop code repository;
apply an enumeration function to the memory dump file to generate a list of enumerated processes;
compare a plurality of stored kernel process lists to the list of enumerated processes;
apply the enumeration function to a plurality of thread identifiers associated with a corresponding plurality of process identifiers from the list of enumerated processes;
identify an enumerated process that is invisible when the enumerated process fails to match at least a stored kernel process list of the plurality of stored kernel process lists;
identify the malicious software based on the enumerated process that is invisible; and
generate an alert based on the identified malicious software.

### Claim 15 (depends on 13)

The rootkit detection system of claim 13, wherein the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
apply an enumeration function to the memory dump file to generate a list of enumerated network connections;
compare a plurality of scanned network connections with the list of enumerated network connections; and
update a rootkit repository, a 0-Day repository, or both with (i) an enumerated network connection indicative of a missing port when the enumerated network connection fails to match at least one scanned network connection of the plurality of scanned network connections, (ii) the identified malicious software indicative of discovery of a vulnerability in an application code of an application of the operating system based upon the crash, or (iii) both.

### Claim 16 (depends on 12)

The rootkit detection system of claim 12, wherein the malicious software identification and extraction module is associated with the client agent, and the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
start the client agent from a power off state;
generate an inventory upon starting the client agent from the power off state, the inventory comprising the software driver, the executable computer program, or both, and the stored header file;
compare the stored header file of the inventory with the stored header file of the application software repository to determine whether there is an inventory match;
determine whether the memory dump file matches the existing memory dump file upon finding the inventory match; and
end process when the memory dump file matches the existing memory dump file.

### Claim 17 (depends on 16)

The rootkit detection system of claim 16, wherein the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
determine whether the start from the power off state was at an initial run time;
generate the inventory when the start was at the initial run time, the inventory comprising the software driver, the executable computer program, or both, to store in the operating system memory;
scan the stored header file associated with the software driver, the executable computer program, or both, from the inventory; and
update the application software repository with the stored header file, the initial run time, and file name and location of the software driver, the executable computer program, or both.

### Claim 18 (depends on 12)

The rootkit detection system of claim 12, wherein the malicious software identification and extraction module is associated with the client agent, and the operating system data processor device is further operable to execute the machine-readable instructions of the malicious software identification and extraction module to
compare the hash against an existing hash in the dump repository to verify the memory dump file is new for analysis when the hash does not match the existing hash;
generate an alert for the server agent communicatively coupled to the client agent that the verified memory dump file is ready for analysis, the alert comprising a stop code;
receive the alert at the server agent comprising a stop code repository, the stop code repository comprising an existing stop code; and
update the stop code repository with the stop code when the stop code fails to match the existing stop code.

### Claim 19

A method for using a rootkit detection system for an operating system to detect malicious software, the rootkit detection system comprising an operating system memory and an operating system data processor device, the operating system memory comprising an application software repository comprising a stored header file associated with a software driver, an executable computer program, or both, the method comprising:
receiving a memory dump file upon a crash of the operating system, the memory dump file comprising a copy of the software driver, a copy of the executable computer program, or both;
verifying the memory dump file is new for analysis;
compressing the verified memory dump file to generate a memory snapshot of the verified memory dump file;
scanning the memory snapshot for a memory dump header file, the memory dump header file being associated with the copy of the software driver, the copy of the executable computer program, or both; and
identifying and extracting malicious software when the memory dump header file from the memory snapshot fails to match at least one stored header file in the application software repository.

### Claim 20 (depends on 19)

The method of claim 19, further comprising
comparing a memory dump stop code from the memory dump file to a plurality of stored stop codes in a stop code repository;
performing a network scan of a client agent to generate a plurality of scanned network connections when the memory dump stop code fails to match at least one stored stop code of the plurality of stored stop codes in the stop code repository;
applying an enumeration function to the memory dump file to generate a list of enumerated processes;
comparing a plurality of stored kernel process lists to the list of enumerated processes;
applying the enumeration function to a plurality of thread identifiers associated with a corresponding plurality of process identifiers from the list of enumerated processes;
identifying an enumerated process that is invisible when the enumerated process fails to match at least a stored kernel process list of the plurality of stored kernel process lists;
identifying the malicious software based on the enumerated process that is invisible; and generating an alert based on the identified malicious software.
