System and method for detection of malware or ransomware using entropy quantification
Abstract
A system or method for preventing or mitigating malicious processes in a computing environment having one or more processors and memory operatively coupled to the one or more processors can include computer instructions which when executed causes the one or more processors to perform certain operations. The operations can include the steps of obtaining all file system input and output paths using a kernel driver, performing a normalized entropy quantification calculation on data found on the file system input and output paths, determining an inverse density from the normalized entropy calculation, and flagging any data or data segment found having a difference in inverse densities of read and write volume equal to or higher than a predetermined threshold.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 0.
Claims (12 — 3 Independent, 9 Dependent)
- Claim 1Independent Claim
A computing device for detecting and preventing or mitigating malicious processes in a computing environment, the computing device comprising: one or more processors and memory operatively coupled to the one or more processors, wherein the memory includes computer instructions which when executed by the one or more processors causes the one or more processors to perform the operations of: obtain all file system input and output paths using a kernel-level driver; monitor, at run time by an anomaly-based file system monitor implemented in the kernel-level driver, file system read and write operations issued by executing processes, comprising data conveyed on input and output paths of the file system, as run-time behavioral data of the executing processes; perform in real time a normalized entropy quantification calculation on content-based bytes of data read from and written to the file system by the executing processes found on the input and output paths to characterize run-time file transformation behavior; determine an inverse density from the normalized quantification entropy calculation by separating the bytes into bins corresponding to each symbol of a fixed alphabet; arranging the bins in an ascending order of frequency; computing an area under a distribution curve defined by the arranged bins; determining an ideal height of an idealized uniform distribution occupying the computed area: computing an absolute difference between the distribution curve and the ideal height at each point along an X-axis; computing a cumulative deviation based on the absolute differences; computing a cumulative mean deviation from the cumulative deviation; and computing a percentage of the cumulative mean deviation relative to the ideal height to produce the inverse density; and flag an executing process as malicious when a difference between inverse densities computed for bytes associated with read operations and bytes associated with write operations exceeds a predetermined threshold indicative of anomalous file transformation behavior.
- Claim 2Depends on #1
The computing device of claim 1, wherein the malicious processes comprise ransomware or malware.
- Claim 3Depends on #1
The computing device of claim 1, wherein for detecting, further uses a machine learning process including parametrization of data, training with known benign programs and known malicious processes, and uses machine learning algorithms for prediction of run time behavior of a process to refine the detecting of malicious processes by providing the inverse density and additional run-time behavioral features of the executing process as inputs to one or more machine learning models configured to predict expected run-time behavior of the executing process; and determining, based on an output of the one or more machine learning models, whether observed run-time behavior of the executing process deviates from predicted run-time behavior beyond an acceptable tolerance, thereby, flagging the executing process as malicious when the deviation between the observed run-time behavior and the predicted run-time behavior exceeds the predetermined threshold.
- Claim 4Depends on #3
The computing device of claim 3, wherein for detecting, maintains at run time a set of behavioral metrics for the executing process's input/output behavior, the set comprising the inverse density derived from content-based entropy quantification of file system reads and write data bytes, ratio of read volume to write volume associated with the executing process to reduce false positives, and a count of detected data mutations associated with file write operations.
- Claim 5Depends on #4
The computing device of claim 4, wherein for detecting, further computes at run time ratios of inverse densities and file system read and write volumes associated with the executing process and provides the computed ratios and the count of detected data mutations as parametric inputs to the one or more machine learning models.
- Claim 6Depends on #3
The computing device of claim 3, wherein for detecting, further trains the machine learning system with benign programs and malicious processes including simulated processes and real processes.
- Claim 7Depends on #3
The computing device of claim 3, wherein the machine learning system marks a process as either suspect or benign.
- Claim 8Depends on #3
The computing device of claim 3, wherein the machine learning system further accrues behavior corresponding to a process for a certain threshold and declares the process malicious upon crossing the threshold.
- Claim 9Independent Claim
A system for detecting and preventing or mitigating malicious processes in a computing environment, comprising: one or more processors and memory operatively coupled to the one or more processors, wherein the memory includes computer instructions which when executed by the one or more processors causes the one or more processors to perform the operations of: obtain all file system input and output paths using a kernel-level driver; monitor, at run time by an anomaly-based file system monitor implemented in the kernel-level driver, file system read and write operations issued by executing processes, comprising data conveyed on input and output paths of the file system, as run-time behavioral data of the executing processes; perform in real time a normalized entropy quantification calculation on content-based bytes of data read from and written to found on the file system by the executing processes found on the input and output paths to characterize run-time file transformation behavior; determine an inverse density from the normalized quantification entropy calculation by separating the bytes of data into bins corresponding to each symbol of a fixed alphabet; arranging the bins in an ascending order of frequency; computing an area under a distribution curve defined by the arranged bins; determining a height of an ideal distribution occupying the area computed to provide an ideal height; computing an absolute difference between the distribution curve and the ideal height at each point along an X-axis; computing a cumulative deviation based on the absolute difference; computing a cumulative mean deviation from the cumulative deviation; and computing a percentage of the cumulative mean deviation relative to the ideal height to produce the inverse density; and flag an executing process as malicious when a difference between inverse densities computed for bytes associated with read operations and bytes associated with write operations exceeds a predetermined threshold indicative of anomalous file transformation behavior.
- Claim 10Independent Claim
A method for detecting and preventing or mitigating malicious processes in a computing environment using one or more processors and memory operatively coupled to the one or more processors, wherein the memory includes computer instructions which when executed by the one or more processors causes the one or more processors to perform the operations of: obtaining all file system input and output paths using a kernel-level driver; monitoring, at run time by an anomaly-based file system monitor implemented in the kernel-level driver, file system read and write operations issued by executing processes, comprising data conveyed on input and output paths of the file system, as run-time behavioral data of the executing processes: performing in real time a normalized entropy quantification calculation on content-based bytes of data read from and written to the file system by the executing processes found on the input and output paths to characterize run-time file transformation behavior; determining an inverse density from the normalized entropy calculation by separating the bytes into bins corresponding to each symbol of a fixed alphabet: arranging the bins in an ascending order of frequency; computing an area under a distribution curve defined by the arranged bins; determining an ideal height of an idealized uniform distribution occupying the computed area; computing an absolute difference between the distribution curve and the ideal height at each point along an X-axis: computing a cumulative deviation based on the absolute differences: computing a cumulative mean deviation from the cumulative deviation; and computing a percentage of the cumulative mean deviation relative to the ideal height to produce the inverse density; and flagging an executing process as malicious when a difference between inverse densities computed for bytes associated with read operations and bytes associated with write operations exceeds a predetermined threshold indicative of anomalous file transformation behavior.
- Claim 11Depends on #10
The method of claim 10, further uses a machine learning process for parametrization of data, training with known benign programs and known malicious processes, and uses machine learning algorithms for prediction of run time behavior of a process to refine the detecting of malicious processes by: providing the inverse density and additional run-time behavioral features of the executing process as inputs to one or more machine learning models configured to predict expected run-time behavior of the executing process; and determining, based on an output of the one or more machine learning models, whether observed run-time behavior of the executing process deviates from predicted run-time behavior beyond an acceptable tolerance, thereby, flagging the executing process as malicious when the deviation between the observed run-time behavior and the predicted run-time behavior exceeds the predetermined threshold.
- Claim 12Depends on #11
The method of claim 11, further includes the step of performing one or more of a signature-based comparison and reverse engineering analysis in addition to the machine learning process.
Technical Overview & Description
TECHNICAL FIELD The present embodiments relate generally to systems and methods of detecting and preventing malicious processes. More particularly, the system and method relate to providing a system and method for detecting, preventing and mitigating malicious processing by analyzing data using at least entropy quantification. BACKGROUND Hacking vulnerabilities are discovered more often today. Cryptographic material, such as passwords, encryption keys, authentication information, and the like, may be cryptographically protected (e.g., encrypted) while being stored in non-volatile memory, for example, when the cryptographic material is not being used. To use the cryptographic material, the cryptographic material may be retrieved from the non-volatile memory, decrypted, and then stored in a volatile memory (e.g., a buffer, a cache, random access memory (RAM), etc.) in plaintext (e.g., unencrypted). The cryptographic material in the volatile memory may be used to perform cryptographic operations, such as authentication, encryption, authorization, signature generation, signature verification, etc. However, the plaintext cryptographic material stored in the volatile memory continues to represent a vulnerability. In this regard, a malicious user (e.g., hacker) may use various tools to obtain the plaintext cryptographic material stored in the volatile memory. For example, the malicious user may gain access to a host and use tools to scan the volatile memory to obtain the plaintext cryptographic material. In another example, the malicious user may scan memory dumps and/or core dump files to retrieve the plaintext cryptographic material. In yet a further example, the malicious user may perform a cold boot attack to obtain the plaintext cryptographic material. Once the plaintext cryptographic material is obtained, the system may be compromised and the malicious user may obtain confidential and/or other secret information. Another vulnerability has been the increasing use of r
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (18)
Non-Patent Literature (10)
- O'Shea,
- “
- An Introduction to Deep Learning for the Physical Layer
- ”
- , 2017, IEEE, pp. 1-12 (Year: 2017).
- Sandborn,
- “
- Reducing Malware Analysis Overhead With Coverings
- ”
- , 2024, IEEE, pp. 4133-4144 (Year: 2024).