New patent application published for: DETECTING CRYPTOCURRENCY MINING USING CONTAINERIZED PROCESS TREE ANALYSIS
DETECTING CRYPTOCURRENCY MINING USING CONTAINERIZED PROCESS TREE ANALYSIS
Abstract
A tool for detecting crypto mining activity within a containerized computing environment in includes a container process tree retriever and a crypto mining process detector. The container process tree retriever obtains a container process tree indicating parent-child process relationships that exist within a container of the containerized computing environment. The crypto mining process detector generates a process sub-tree graph from the container process tree, assesses similarity between the process sub-tree graph and a preidentified crypto mining process tree pattern representing parent-child process relationships of a crypto mining scheme; and terminates processes identified in the process sub-tree graph in response to determining that the process sub-tree graph and the preidentified crypto mining process tree pattern satisfy similarity criteria.
Inventors:
SAKAZI; Shay Chriba (Herzliya, IL), SALMAN; Tamer (Haifa, IL), BRUSKIN; Sunders (Ramla, IL)
Applicant:
Microsoft Technology Licensing, LLC (Redmond, WA)
Family ID:
1000008655738
Appl. No.:
19/212122
Filed:
May 19, 2025
Claims
1. A method of detecting illicit crypto mining activity within a containerized computing environment, the method comprising: obtaining a container process tree indicating parent-child process relationships that exist within the containerized computing environment; generating a process sub-tree graph from the container process tree, the process sub-tree graph identifying a subset of the parent-child process relationships indicated within the container process tree; assessing similarity between the process sub-tree graph and a preidentified crypto mining process tree pattern representing parent-child process relationships that exist within a multi-process crypto mining scheme, the preidentified crypto mining process tree pattern identifying a root process, a child process instantiated by the root process, and at least a threshold number of grandchild processes instantiated by the child process; and in response to determining that the process sub-tree graph and the preidentified crypto mining process tree pattern satisfies similarity criteria, triggering a security alert that notifies an authorized user of the containerized computing environment of a potential security breach.
2. The method of claim 1, wherein the process sub-tree graph includes nodes corresponding to active processes and edges corresponding to relationships between the active processes.
3. The method of claim 1, wherein assessing similarity between the process sub-tree graph and the preidentified crypto mining process tree pattern includes: generating a first embedding encoding the parent-child process relationships represented within preidentified crypto mining process tree pattern; generating a second embedding encoding the subset of the parent-child relationships identified within the process sub-tree graph; measuring a similarity metric by computing a dot product or cosine similarity between the first embedding and the second embedding; and triggering the security alert when the similarity metric is in a predefined value range.
4. The method of claim 1, wherein triggering the security alert includes prompting the authorized user for authorization to terminate a set of processes identified within the process sub-tree graph.
5. The method of claim 1, wherein satisfaction of the similarity criteria depends upon a first detection criterion satisfied when the process sub-tree graph includes a single root process with exclusively one child process and at least the threshold number of grandchild processes.
6. The method of claim 1, wherein satisfaction of the similarity criteria depends on satisfaction of least one of: a second detection criterion satisfied when the process sub-tree graph has a total number of nodes exceeding a second threshold; and a third detection criterion satisfied when the process sub-tree graph has a total number of edges exceeding a third threshold.
7. The method of claim 1, further comprising: terminating all processes identified within the process sub-tree graph in response to satisfaction of the similarity criteria.
8. A system for detecting illicit crypto mining activity within a containerized computing environment, the system comprising: memory; and a container process tree retriever stored in the memory and configured to generate a container process tree indicating parent-child process relationships that exist within a container of the containerized computing environment; a crypto mining process detector stored in the memory and configured to: obtain a process sub-tree graph from the container process tree, the process sub-tree graph identifying a subset of the parent-child process relationships indicated within the container process tree; assess similarity between the process sub-tree graph and a preidentified crypto mining process tree pattern representing parent-child process relationships of a crypto mining scheme, the preidentified crypto mining process tree pattern identifying a root process, a child process instantiated by the root process, and at least a threshold number of grandchild processes instantiated by the child process; and in response to determining that the process sub-tree graph and the preidentified crypto mining process tree pattern satisfy similarity criteria, terminate processes identified in the process sub-tree graph.
9. The system of claim 8, wherein the process sub-tree graph includes nodes corresponding to active processes and edges corresponding to relationships between the active processes.
10. The system of claim 8, wherein the crypto mining process detector assesses the similarity between the process sub-tree graph and the preidentified crypto mining process tree pattern by executing operations that include: obtaining a first embedding encoding the parent-child process relationships of the preidentified crypto mining process tree pattern; generating a second embedding corresponding to the process sub-tree graph, the second embedding encoding the parent-child process relationships of the crypto mining scheme; measuring a similarity metric by computing a dot product or cosine similarity between the first embedding and the second embedding, wherein the similarity criteria are satisfied when a value of the similarity metric is within a predefined value range.
11. The system of claim 8, wherein the crypto mining process detector is further configured to transmit a security alert notification to an authorized user of the containerized compute environment in response to satisfaction of the similarity criteria.
12. The system of claim 11, wherein the crypto mining process detector is further configured to: prompt the authorized user for authorization to terminate the processes identified within the process sub-tree graph; and terminate the process in response to receiving the authorization.
13. The system of claim 8, wherein satisfaction of the similarity criteria depends upon a first detection criterion satisfied when the process sub-tree graph includes a single root process, exclusively one child process depending from the root process, and at least the threshold number of grandchild processes depending from the exclusively one child process.
14. The system of claim 8, wherein satisfaction of the similarity criteria depends on satisfaction of least one of: a second detection criterion satisfied when the process sub-tree graph has a total number of nodes exceeding a second threshold; and a third detection criterion satisfied when the process sub-tree graph has a total number of edges exceeding a third threshold.
15. One or more tangible computer-readable storage media encoding processor-executable operations for executing a computer process for detecting illicit crypto mining activity within a containerized computing environment, the computer process comprising: obtaining a container process tree identifying parent-child process relationships that exist within the containerized computing environment; generating a process sub-tree graph corresponding to a sub-tree of the container process tree, the process sub-tree graph including nodes corresponding to a subset of processes identified within the container process tree and edges identifying parent-child process relationships that exist among the subset of processes; defining a crypto mining process tree pattern based on a process sub-tree graph representing relationships between processes that execute as part of a coordinated crypto mining scheme, the crypto mining process tree pattern being characterized by a total number of processes that exceeds a first threshold; assessing satisfaction of similarity criteria by comparing the process sub-tree graph to the crypto mining process tree pattern; in response to determining that the process sub-tree graph and the crypto mining process tree pattern satisfy the similarity criteria, triggering a security alert that notifies an authorized user of the containerized computing environment of a potential security breach.
16. The one or more tangible computer-readable storage media of claim 15, wherein satisfaction of the similarity criteria depends upon a first detection criterion satisfied when the process sub-tree graph has a total number of processes that exceeds the first threshold.
17. The one or more tangible computer-readable storage media of claim 16, wherein satisfaction of the similarity criteria depends on satisfaction of a second detection criterion satisfied when the process sub-tree graph includes a single root process with exclusively one child process and a number of grandchild processes that exceeds a second threshold.
18. The one or more tangible computer-readable storage media of claim 17, wherein satisfaction of the similarity criteria depends on satisfaction of a third detection criterion satisfied when the process sub-tree graph has a total number of edges exceeding a third threshold.
19. The one or more tangible computer-readable storage media of claim 15, wherein the similarity criteria is assessed by computing a similarity metric through operations that include: generating a first embedding encoding the parent-child process relationships of the crypto mining process tree pattern; generating a second embedding encoding the parent-child process relationships of the process sub-tree graph; and measuring a similarity metric by computing a dot product or cosine similarity between the first embedding and the second embedding, wherein the similarity criteria is satisfied when the similarity metric is within a predefined range of values.
20. The one or more tangible computer-readable storage media of claim 16, wherein the computer process further includes terminating the processes identified within the process sub-tree graph in response to satisfaction of the similarity criteria.
- Company
- Microsoft Technology Licensing, LLC
- Keywords
- G06Q20/401, H04L63/1416, H04L63/1425