A mining virus protection and removal method, device and storage device under Linux platform

By extracting and comparing the behavioral characteristics of mining viruses, combined with the scoring mechanism for threat determination and process-related removal, we solve the problem of general mining virus protection under Linux systems and achieve effective detection and removal of known and unknown mining viruses. .

CN111027064BActive Publication Date: 2024-10-01BEIJING ANTIY NETWORK SAFETY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910921652.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-27
Publication Date
2024-10-01
Estimated Expiration
2039-09-27

AI Technical Summary

Technical Problem

It is difficult to effectively protect and remove common types of mining viruses under Linux systems with existing technology, especially in the case of unknown mining viruses, which lack mature protection mechanisms.

Method used

By extracting the general behavioral characteristics and special behaviors of mining viruses, a basic feature library and an enhanced feature library are formed. Combined with behavioral information comparison and threat determination, a mixed scoring mechanism of basic feature scoring and enhanced feature scoring is used to detect mining viruses, and The started mining virus process is cleared by association.

Benefits of technology

It realizes the detection and protection of known and unknown mining viruses, has a certain degree of versatility, and can perform emergency processing at various stages before, during and after mining, prevent the mining program from running, and perform process-related clearance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111027064B_ABST
    Figure CN111027064B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a mining virus protection and removal method, device and storage device under the Linux platform, which relates to the field of network security technology, and proposes a method for protecting and removing common types of mining viruses under the Linux system. The method includes: extracting the general behavior characteristics of mining viruses to form a basic feature library, extracting the special behavior of mining viruses to form an enhanced feature library; forming a mining virus detection knowledge base based on the basic feature library and the enhanced feature library; monitoring the program being started and its parent and child processes, and extracting behavior information, comparing the behavior information with the features in the mining virus detection knowledge base; determining the threat of mining viruses through a mixed scoring mechanism of basic feature scoring and enhanced feature scoring; intercepting the process that has been determined to be a mining virus, and performing correlation removal on the started mining virus process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network transmission security technology, and in particular to a mining virus protection and removal method, device and storage device under a Linux platform. Background Art

[0002] The huge profits in the virtual currency market have attracted more and more attackers to use various malicious codes to attack ordinary users' computers. There are not many popular attack types under the Linux platform, and mining incidents have accounted for a relatively high proportion in recent years. Attackers hang malicious scripts on their own or invaded websites. As long as ordinary users click to visit these websites that have been added with malicious scripts, they will become miners of virtual currencies such as Roman coins. Attackers will directly use the computer resources of users implanted with malicious codes to mine.

[0003] The current mining removal methods are all based on the analysis of known events, and specific killing is carried out according to the mining behavior. There is no mature mechanism to protect against known mining events and unknown mining viruses, and it is difficult to protect against common types of mining in Linux systems. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide a method, device and storage device for protecting against and removing mining viruses under the Linux platform. Through mining feature extraction, behavior information comparison, threat determination and process association removal, the problem that the current mining removal methods are all based on analysis of known events and special killing according to the corresponding mining behaviors, and there is no mature mechanism for protecting against known mining events and unknown mining viruses, making it difficult to protect against common types of mining under the Linux system is solved.

[0005] In a first aspect, an embodiment of the present invention provides a method for protecting and removing mining viruses on a Linux platform, including:

[0006] Extract the general behavior features of mining viruses to form a basic feature library, and extract the special behaviors of mining viruses to form an enhanced feature library;

[0007] A mining virus detection knowledge base is formed based on the basic feature library and the enhanced feature library;

[0008] Monitor the programs being started and their parent and child processes, extract behavior information, and compare the behavior information with features in the mining virus detection knowledge base;

[0009] The threat of mining viruses is determined through a hybrid scoring mechanism of basic feature scoring and enhanced feature scoring.

[0010] Intercept the processes that have been identified as mining viruses, and remove the associated mining virus processes that have been started.

[0011] Furthermore, the general behavioral features of mining viruses are extracted to form a basic feature library, and the special behaviors of mining viruses are extracted to form an enhanced feature library, specifically: automatic extraction: pay attention to the website announcing mining events, regularly crawl mining event information, and automatically extract features according to the fuzzy matching principle; analytical extraction: statically reverse the mining virus, extract the mining virus logic information, use the dynamic sandbox to run the mining virus, extract the mining virus process behavior information, and extract features based on the extracted mining virus logic information and process behavior information.

[0012] Furthermore, the behavior information includes: monitoring the process ID of the process that is starting the program and the parent and child processes, the operating user, the operating authority, the sensitive files operated, the network connection, the CPU resource usage, whether there are hidden operations, and whether the startup directory is normal.

[0013] Furthermore, the mining virus threat determination is performed through the hybrid scoring mechanism of basic feature scoring and enhanced feature scoring, including: the features in the mining virus detection knowledge base are classified into optional features, mandatory features and event features, wherein the optional features and mandatory features belong to the basic features, and the event features belong to the enhanced features; optional features: features that are not only unique to mining viruses but may also exist in other types of viruses; mandatory features: features that must be possessed and are common to mining viruses under Linux; event features: features extracted based on mining events, which can be determined as features of a mining event if they are successfully matched Features; weight scores are set for optional features, mandatory features, and event features; there are three specific judgment rules: 1. Type combination judgment rule: If the mandatory features and event features of the mining virus detection knowledge base are hit, it can be judged as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be judged as a mining virus; 3. Weight judgment rule: The weight scores of all hit features are counted. If the total score reaches the preset score, it can be judged as a mining virus. If one of the above three judgment rules is met, it can be judged as a mining virus.

[0014] Furthermore, the associated clearing of the started mining virus process is specifically as follows: searching for processes associated with the mining virus that have been determined to be the mining virus, traversing their process chains, and similarly judging and clearing other processes on the chain; for some mining viruses that hide process information or use init for process hosting and whose parent and child processes cannot be obtained, the process chain information is obtained through memory mapping, and other processes on the chain are similarly judged and cleared.

[0015] Furthermore, the process associated with the determined mining virus is searched and its process chain is traversed, specifically: process information is obtained through / proc / pid / , and association is performed according to parent-child process IDs.

[0016] Furthermore, the process chain information is obtained through memory mapping, specifically: obtaining the task_struct pointer of the determined mining program, obtaining the structure variables mm_rb and mmap of the vm_area_strcut of the task_struct pointer, and then obtaining the starting address, end address and mapping file information of the memory mapping, and obtaining other related process information in the chain by traversing the task_struct linked list, and then associating the hidden process.

[0017] In a second aspect, an embodiment of the present invention provides a mining virus protection and removal device under a Linux platform, comprising a memory and a processor, wherein the memory is used to store a plurality of instructions, and the processor is used to load the instructions stored in the memory to execute:

[0018] Extract the general behavior features of mining viruses to form a basic feature library, and extract the special behaviors of mining viruses to form an enhanced feature library;

[0019] A mining virus detection knowledge base is formed based on the basic feature library and the enhanced feature library;

[0020] Monitor the programs being started and their parent and child processes, extract behavior information, and compare the behavior information with features in the mining virus detection knowledge base;

[0021] The threat of mining viruses is determined through a hybrid scoring mechanism of basic feature scoring and enhanced feature scoring.

[0022] Intercept the processes that have been identified as mining viruses, and remove the associated mining virus processes that have been started.

[0023] Furthermore, the processor is further configured to load instructions stored in the memory to execute:

[0024] The method extracts the general behavioral features of mining viruses to form a basic feature library, and extracts the special behaviors of mining viruses to form an enhanced feature library, specifically: automatic extraction: pay attention to the website that announces mining events, crawl mining event information at a regular interval, and automatically extract features based on the fuzzy matching principle; analytical extraction: statically reverse the mining virus, extract the mining virus logic information, and then use the dynamic sandbox to run the mining virus, extract the mining virus process behavior information, and extract features based on the extracted mining virus logic information and process behavior information.

[0025] Furthermore, the processor is further configured to load instructions stored in the memory to execute:

[0026] The behavior information includes: monitoring the process ID of the process and parent and child processes of the program being started, the operating user, the operating authority, the sensitive files being operated, the network connection, the CPU resource usage, whether there are hidden operations, and whether the startup directory is normal.

[0027] Furthermore, the processor is further configured to load instructions stored in the memory to execute:

[0028] The mining virus threat determination is performed by using a mixed scoring mechanism of basic feature scoring and enhanced feature scoring, including: the features in the mining virus detection knowledge base are classified into optional features, mandatory features and event features, wherein the optional features and mandatory features belong to the basic features, and the event features belong to the enhanced features; optional features: features that are not only unique to mining viruses but may also exist in other types of viruses; mandatory features: features that must be possessed and are common to mining viruses under Linux; event features: features extracted based on mining events, which can be determined as features of a mining event if the feature is successfully matched; Weight scores are set for optional features, mandatory features, and event features. There are three specific judgment rules: 1. Type combination judgment rule: If the mandatory features and event features of the mining virus detection knowledge base are hit, it can be judged as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be judged as a mining virus; 3. Weight judgment rule: The weight scores of all hit features are counted. If the total score reaches the preset score, it can be judged as a mining virus. If one of the above three judgment rules is met, it can be judged as a mining virus.

[0029] Furthermore, the processor is further configured to load instructions stored in the memory to execute:

[0030] The described correlation clearing of the started mining service process is specifically as follows: searching for processes associated with the mining virus that have been determined to be, traversing their process chains, and similarly judging and clearing other processes on the chain; for some mining viruses that hide process information or use init for process hosting and cannot obtain their parent and child processes, the process chain information is obtained through memory mapping, and similarly judging and clearing other processes on the chain.

[0031] Furthermore, the processor is further configured to load instructions stored in the memory to execute:

[0032] The process of searching for the process associated with the mining virus determined to be a mining virus and traversing its process chain is specifically: obtaining process information through / proc / pid / and associating the process according to the parent and child process IDs.

[0033] Furthermore, the processor is further configured to load instructions stored in the memory to execute:

[0034] The process chain information is obtained through memory mapping, specifically: obtaining the task_struct pointer of the determined mining program, obtaining the structure variables mm_rb and mmap of the vm_area_strcut of the task_struct pointer, and then obtaining the starting address, end address and mapping file information of the memory mapping, and obtaining other related process information in the chain by traversing the task_struct linked list, and then associating the hidden process.

[0035] In a third aspect, an embodiment of the present invention further provides a mining virus protection and removal device under a Linux platform, comprising:

[0036] Feature extraction module: used to extract the general behavior features of mining viruses to form a basic feature library, and to extract the special behaviors of mining viruses to form an enhanced feature library;

[0037] Knowledge base construction module: used to form a mining virus detection knowledge base based on the basic feature library and enhanced feature library;

[0038] Behavior monitoring module: used to monitor the program being started and its parent and child processes, extract behavior information, and compare the behavior information with the features in the mining virus detection knowledge base;

[0039] Mining threat determination module: used to determine mining virus threats through a hybrid scoring mechanism of basic feature scoring and enhanced feature scoring;

[0040] Process association removal module: used to intercept processes that have been identified as mining viruses and to remove associations with started mining virus processes.

[0041] In a fourth aspect, an embodiment of the present invention provides a storage device, in which a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor and executing the steps of a method for protecting against and removing mining viruses under a Linux platform provided by an embodiment of the present invention.

[0042] The embodiments of the present invention provide a mining virus protection and removal method, device and storage medium under the Linux platform, including: extracting the general behavior characteristics of mining viruses to form a basic feature library, extracting the special behavior of mining viruses to form an enhanced feature library; forming a mining virus detection knowledge base according to the basic feature library and the enhanced feature library; monitoring the program being started and its parent and child processes, and extracting behavior information, and comparing the behavior information with the characteristics in the mining virus detection knowledge base; determining the threat of mining viruses through a mixed scoring mechanism of basic feature scoring and enhanced feature scoring; intercepting the process that has been determined to be a mining virus, and performing correlation removal on the started mining virus process.

[0043] The embodiments of the present invention can achieve the following technical effects: the present invention can detect and protect against known events and unknown mining viruses. The technical solution has a certain degree of versatility. Based on the extraction, scoring and judgment of mining features, the mining program is prevented from running, and the mining virus is cleared by the process association method. Emergency processing can be carried out at various stages before, during and after mining. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 This is a flow chart of an embodiment of a mining virus protection and removal method under a Linux platform of the present invention;

[0046] Figure 2 It is a flow chart of another embodiment of a mining virus protection and removal method under a Linux platform of the present invention;

[0047] Figure 3 It is a schematic structural diagram of an embodiment of a mining virus protection and removal device under a Linux platform of the present invention;

[0048] Figure 4 The present invention is a schematic structural diagram of another embodiment of a mining virus protection and removal device under a Linux platform. DETAILED DESCRIPTION

[0049] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0050] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] In order to more clearly describe the specific embodiments of the present invention, the following terms are explained:

[0052] Use init to manage processes: When the system starts, the init program starts system services and getty login terminals according to the configuration of the / etc / inittab file. Custom processes can also be managed by the init program.

[0053] Get process information through / proc / pid / : The / proc file system is an image of the system kernel. The files in this directory are stored in the system memory. It provides an interface for accessing system kernel data in the form of a file system.

[0054] task_struct pointer: In Linux, each process is defined by the task_struct data structure, which is the only and most effective means of process control. When fork() is called, the system will generate a task_struct structure and inherit some data of the parent process to insert the new process into the process tree for process management.

[0055] On the first aspect, an embodiment of the present invention provides a method for protecting against and removing mining viruses under a Linux platform. By extracting mining features, comparing behavior information, determining threats, and removing process associations, the present invention solves the problem that current mining removal methods are all based on analysis of known events and specifically kill mining behaviors. There is no mature mechanism for protecting against known mining events and unknown mining viruses, and it is difficult to protect against common types of mining under Linux systems.

[0056] Figure 1 The following is a flow chart of an embodiment of a mining virus protection and removal method under a Linux platform of the present invention, including:

[0057] S101, extracting common behavior features of mining viruses to form a basic feature library, and extracting special behaviors of mining viruses to form an enhanced feature library;

[0058] S102. Form a mining virus detection knowledge base based on the basic feature library and the enhanced feature library;

[0059] S103, monitoring the program being started and its parent and child processes, extracting behavior information, and comparing the behavior information with features in a mining virus detection knowledge base;

[0060] S104. Determine the threat of mining viruses through a mixed scoring mechanism of basic feature scoring and enhanced feature scoring;

[0061] S105: intercepting the process that has been determined to be a mining virus, and removing the correlation of the started mining service process.

[0062] Preferably, the general behavioral features of mining viruses are extracted to form a basic feature library, and the special behaviors of mining viruses are extracted to form an enhanced feature library, specifically: automatic extraction: pay attention to the website announcing mining events, regularly crawl mining event information, and automatically extract features according to the fuzzy matching principle; analytical extraction: statically reverse the mining virus, extract the mining virus logic information, use the dynamic sandbox to run the mining virus, extract the mining virus process behavior information, and extract features based on the extracted mining virus logic information and process behavior information.

[0063] Preferably, the behavior information includes: monitoring the process ID of the process and parent and child processes of the program being started, the operating user, the operating authority, the sensitive files being operated, the network connection, the CPU resource usage, whether there are hidden operations, and whether the startup directory is normal.

[0064] Preferably, the mining virus threat determination is performed by a mixed scoring mechanism of basic feature scoring and enhanced feature scoring, including: the features in the mining virus detection knowledge base are classified into optional features, mandatory features and event features, wherein the optional features and mandatory features belong to the basic features, and the event features belong to the enhanced features; optional features: features that are not only unique to mining viruses but may also exist in other types of viruses; mandatory features: features that must be possessed and are common to mining viruses under Linux; event features: features extracted based on mining events, which can be determined as features of a mining event if the feature is successfully matched Features; weight scores are set for optional features, mandatory features, and event features; there are three specific judgment rules: 1. Type combination judgment rule: If the mandatory features and event features of the mining virus detection knowledge base are hit, it can be judged as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be judged as a mining virus; 3. Weight judgment rule: The weight scores of all hit features are counted. If the total score reaches the preset score, it can be judged as a mining virus. If one of the above three judgment rules is met, it can be judged as a mining virus.

[0065] Example of weight determination rule: the optional feature weight is set to 1 point, the required feature weight is set to 2 points, and the event feature weight is set to 3 points. The weight scores of all hit features are counted. If the total score reaches 6 points, it can be determined as a mining virus.

[0066] Preferably, the associated clearing of the started mining virus process is specifically as follows: searching for processes associated with the mining virus that have been determined to be the mining virus, traversing their process chains, and similarly judging and clearing other processes on the chain; for some mining viruses that hide process information or use init for process hosting and whose parent and child processes cannot be obtained, the process chain information is obtained through memory mapping, and other processes on the chain are similarly judged and cleared.

[0067] Preferably, the process associated with the determined mining virus is searched and its process chain is traversed, specifically, the process information is obtained through / proc / pid / , and the association is performed according to the parent-child process IDs.

[0068] Preferably, the process chain information is obtained through memory mapping, specifically: obtaining the task_struct pointer of the determined mining program, obtaining the structure variables mm_rb and mmap of the vm_area_strcut of the task_struct pointer, and then obtaining the starting address, end address and mapping file information of the memory mapping, and obtaining other related process information in the chain by traversing the task_struct linked list, and then associating the hidden process.

[0069] Figure 2 The flowchart of another embodiment of a mining virus protection and removal method under a Linux platform of the present invention includes:

[0070] S201, extracting common behavior features of mining viruses to form a basic feature library, and extracting special behaviors of mining viruses to form an enhanced feature library;

[0071] S202: forming a mining virus detection knowledge base based on the basic feature library and the enhanced feature library;

[0072] S203: monitor the program being started and its parent and child processes, extract behavior information, and compare the behavior information with features in a mining virus detection knowledge base;

[0073] S204, the mining virus threat determination is performed by using a mixed scoring mechanism of basic feature scoring and enhanced feature scoring, including: the features in the mining virus detection knowledge base are classified into optional features, mandatory features and event features, wherein the optional features and mandatory features belong to the basic features, and the event features belong to the enhanced features; optional features: features that are not only unique to mining viruses but also may exist in other types of viruses; mandatory features: features that must be possessed and are common to mining viruses under Linux; event features: features extracted based on mining events, which can be determined as features of a mining event if the feature is successfully matched; Features; weight scores are set for optional features, mandatory features, and event features; there are three specific judgment rules: 1. Type combination judgment rule: If the mandatory features and event features of the mining virus detection knowledge base are hit, it can be judged as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be judged as a mining virus; 3. Weight judgment rule: The weight scores of all hit features are counted. If the total score reaches the preset score, it can be judged as a mining virus. If one of the above three judgment rules is met, it can be judged as a mining virus.

[0074] S205: intercept the process that has been determined to be a mining virus, and remove the correlation of the started mining service process.

[0075] Preferably, the general behavioral features of the mining virus are extracted to form a basic feature library, and the special behaviors of the mining virus are extracted to form an enhanced feature library, specifically: automatic extraction: pay attention to the website that publishes mining events, regularly crawl mining event information, and automatically extract features according to the fuzzy matching principle; analytical extraction: statically reverse the mining virus, extract the mining virus logic information, and then use the dynamic sandbox to run the mining virus, extract the mining virus process behavior information, and extract features based on the extracted mining virus logic information and process behavior information.

[0076] Preferably, the behavior information includes: monitoring the process ID of the process and parent and child processes of the program being started, the operating user, the operating authority, the sensitive files being operated, the network connection, the CPU resource usage, whether there are hidden operations, and whether the startup directory is normal.

[0077] Preferably, the associated clearing of the started mining service process is specifically as follows: searching for processes associated with the mining virus that have been determined to be, traversing their process chains, and similarly judging and clearing other processes on the chain; for some mining viruses that hide process information or use init to host processes so that the parent and child processes cannot be obtained, the process chain information can be obtained through memory mapping, and other processes on the chain can also be judged and cleared.

[0078] Preferably, the process associated with the determined mining virus is searched and its process chain is traversed, specifically, the process information is obtained through / proc / pid / , and the association is performed according to the parent-child process IDs.

[0079] Preferably, the process chain information is obtained through memory mapping, specifically: by obtaining the task_struct pointer of the determined mining program, and then obtaining the starting address, end address and mapping file information of the memory mapping through the structure variables mm_rb and mmap of vm_area_strcut in the structure, and then obtaining other related process information in the chain by traversing the task_struct linked list, and then associating the hidden processes.

[0080] The method described in this embodiment can effectively deal with the general detection and protection problems of known mining viruses and unknown mining viruses, proposes three judgment rules, and proposes a mining virus protection solution with certain universality.

[0081] Figure 3The structure diagram of a mining virus protection and removal device under the Linux platform of the present invention includes a memory 301 and a processor 302, wherein the memory is used to store multiple instructions, and the processor is used to load the instructions stored in the memory to execute:

[0082] Extract the general behavior features of mining viruses to form a basic feature library, and extract the special behaviors of mining viruses to form an enhanced feature library;

[0083] A mining virus detection knowledge base is formed based on the basic feature library and the enhanced feature library;

[0084] Monitor the programs being started and their parent and child processes, extract behavior information, and compare the behavior information with features in the mining virus detection knowledge base;

[0085] The threat of mining viruses is determined through a hybrid scoring mechanism of basic feature scoring and enhanced feature scoring.

[0086] Intercept the processes that have been identified as mining viruses, and remove the associated mining virus processes that have been started.

[0087] Preferably, the processor 302 is further configured to load instructions stored in the memory 301 to execute:

[0088] The method extracts the general behavioral features of mining viruses to form a basic feature library, and extracts the special behaviors of mining viruses to form an enhanced feature library, specifically: automatic extraction: pay attention to the website that announces mining events, crawl mining event information at a regular interval, and automatically extract features based on the fuzzy matching principle; analytical extraction: statically reverse the mining virus, extract the mining virus logic information, and then use the dynamic sandbox to run the mining virus, extract the mining virus process behavior information, and extract features based on the extracted mining virus logic information and process behavior information.

[0089] Preferably, the processor 302 is further configured to load instructions stored in the memory 301 to execute:

[0090] The behavior information includes: monitoring the process ID of the process and parent and child processes of the program being started, the operating user, the operating authority, the sensitive files being operated, the network connection, the CPU resource usage, whether there are hidden operations, and whether the startup directory is normal.

[0091] Preferably, the processor 302 is further configured to load instructions stored in the memory 301 to execute:

[0092] The mining virus threat determination is performed by using a mixed scoring mechanism of basic feature scoring and enhanced feature scoring, including: the features in the mining virus detection knowledge base are classified into optional features, mandatory features and event features, wherein the optional features and mandatory features belong to the basic features, and the event features belong to the enhanced features; optional features: features that are not only unique to mining viruses but may also exist in other types of viruses; mandatory features: features that must be possessed and are common to mining viruses under Linux; event features: features extracted based on mining events, which can be determined as features of a mining event if the feature is successfully matched; Weight scores are set for optional features, mandatory features, and event features. There are three specific judgment rules: 1. Type combination judgment rule: If the mandatory features and event features of the mining virus detection knowledge base are hit, it can be judged as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be judged as a mining virus; 3. Weight judgment rule: The weight scores of all hit features are counted. If the total score reaches the preset score, it can be judged as a mining virus. If one of the above three judgment rules is met, it can be judged as a mining virus.

[0093] Preferably, the processor 302 is further configured to load instructions stored in the memory 301 to execute:

[0094] The described correlation clearing of the started mining service process is specifically as follows: searching for processes associated with the mining virus that have been determined to be, traversing their process chains, and similarly judging and clearing other processes on the chain; for some mining viruses that hide process information or use init for process hosting and cannot obtain their parent and child processes, the process chain information is obtained through memory mapping, and similarly judging and clearing other processes on the chain.

[0095] Preferably, the processor 302 is further configured to load instructions stored in the memory 301 to execute:

[0096] The process of searching for the process associated with the mining virus determined to be a mining virus and traversing its process chain is specifically: obtaining process information through / proc / pid / and associating the process according to the parent and child process IDs.

[0097] Preferably, the processor 302 is further configured to load instructions stored in the memory 301 to execute:

[0098] The process chain information is obtained through memory mapping, specifically: obtaining the task_struct pointer of the determined mining program, obtaining the structure variables mm_rb and mmap of the vm_area_strcut of the task_struct pointer, and then obtaining the starting address, end address and mapping file information of the memory mapping, and obtaining other related process information in the chain by traversing the task_struct linked list, and then associating the hidden process.

[0099] Figure 4 The structure diagram of a mining virus protection and removal device under the Linux platform of the present invention is shown in FIG. 1 . The device of this embodiment may include:

[0100] Feature extraction module 401: used to extract the general behavior features of mining viruses to form a basic feature library, and extract the special behaviors of mining viruses to form an enhanced feature library;

[0101] Knowledge base construction module 402: used to form a mining virus detection knowledge base based on the basic feature library and the enhanced feature library;

[0102] Behavior monitoring module 403: used to monitor the program being started and its parent and child processes, extract behavior information, and compare the behavior information with features in the mining virus detection knowledge base;

[0103] Mining threat determination module 404: used to determine mining virus threats through a mixed scoring mechanism of basic feature scoring and enhanced feature scoring;

[0104] Process association removal module 405: is used to intercept the process that has been determined to be a mining virus, and to remove the association of the started mining virus process.

[0105] An embodiment of the present invention also provides a computer-readable storage device, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the method described in any of the above implementations.

[0106] The computer readable storage device exists in various forms, including but not limited to:

[0107] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0108] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0109] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0110] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0111] (5) Other electronic devices with data interaction functions.

[0112] In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in any of the aforementioned implementation methods.

[0113] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0114] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0115] In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0116] For the convenience of description, the above device is described by dividing the functions into various units / modules. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.

[0117] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0118] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A mining virus protection and removal method under Linux platform, characterized in that: include: Extract the general behavior features of mining viruses to form a basic feature library, and extract the special behaviors of mining viruses to form an enhanced feature library; A mining virus detection knowledge base is formed based on the basic feature library and the enhanced feature library; Monitor the programs being started and their parent and child processes, extract behavior information, and compare the behavior information with the features in the mining virus detection knowledge base; The threat of mining viruses is determined through a hybrid scoring mechanism of basic feature scoring and enhanced feature scoring. The mining virus threat determination is performed by using a mixed scoring mechanism of basic feature scoring and enhanced feature scoring, including: the features in the mining virus detection knowledge base are classified into optional features, mandatory features and event features, wherein the optional features and mandatory features belong to the basic features, and the event features belong to the enhanced features; optional features: features that are not only unique to mining viruses but may also exist in other types of viruses; mandatory features: features that must be possessed and are common to mining viruses under Linux; event features: features extracted based on mining events, which can be determined as features of a mining event if the feature is successfully matched; Set weight scores for optional features, mandatory features, and event features; there are three specific judgment rules:

1. Type combination judgment rule: If the mandatory features and event features of the mining virus detection knowledge base are hit, it can be judged as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be judged as a mining virus; 3. Weight judgment rule: Count the weight scores of all hit features. If the total score reaches the preset score, it can be judged as a mining virus. If any of the above three judgment rules is met, it can be judged as a mining virus; Intercept the processes that have been identified as mining viruses, and remove the associated mining virus processes that have been started.

2. The method according to claim 1, characterized in that The general behavior features of mining viruses are extracted to form a basic feature library, and the special behaviors of mining viruses are extracted to form an enhanced feature library, specifically: automatic extraction: pay attention to the mining event announcement website, regularly crawl the mining event information, and automatically extract features according to the fuzzy matching principle; Analysis and extraction: Statically reverse the mining virus, extract the mining virus logic information, use the dynamic sandbox to run the mining virus, extract the mining virus process behavior information, and extract features based on the extracted mining virus logic information and process behavior information.

3. The method according to claim 1, characterized in that The behavior information includes: monitoring the process ID of the process and parent and child processes of the program being started, the operating user, the operating authority, the sensitive files being operated, the network connection, the CPU resource usage, whether there are hidden operations, and whether the startup directory is normal.

4. The method according to claim 1, characterized in that The associated removal of the started mining virus process is specifically as follows: searching for processes associated with the mining virus that have been determined to be the mining virus, traversing their process chains, and similarly determining and removing other processes on the chain; for some mining viruses that hide process information or use init for process hosting and whose parent and child processes cannot be obtained, the process chain information is obtained through memory mapping, and other processes on the chain are similarly determined and removed.

5. The method according to claim 4, characterized in that The process of searching for the process associated with the mining virus determined to be a mining virus and traversing its process chain is specifically: obtaining process information through / proc / pid / and associating according to the parent and child process IDs.

6. The method according to claim 4, characterized in that The process chain information is obtained through memory mapping, specifically: obtaining the task_struct pointer of the determined mining program, obtaining the structure variables mm_rb and mmap of the vm_area_strcut of the task_struct pointer, and then obtaining the starting address, end address and mapping file information of the memory mapping, and obtaining other related process information in the chain by traversing the task_struct linked list, and then associating the hidden process.

7. A mining virus protection and removal device under Linux platform, characterized in that: The device includes a memory and a processor, the memory is used to store a plurality of instructions, and the processor is used to load the instructions stored in the memory to execute: Extract the general behavior features of mining viruses to form a basic feature library, and extract the special behaviors of mining viruses to form an enhanced feature library; A mining virus detection knowledge base is formed based on the basic feature library and the enhanced feature library; Monitor the programs being started and their parent and child processes, extract behavior information, and compare the behavior information with the features in the mining virus detection knowledge base; The mining virus threat is determined by a hybrid scoring mechanism of basic feature scoring and enhanced feature scoring; the processor is also used to load the instructions stored in the memory to execute: The mining virus threat determination is performed by using a mixed scoring mechanism of basic feature scoring and enhanced feature scoring, including: the features in the mining virus detection knowledge base are classified into optional features, mandatory features and event features, wherein the optional features and mandatory features belong to the basic features, and the event features belong to the enhanced features; optional features: features that are not only unique to mining viruses but may also exist in other types of viruses; mandatory features: features that must be possessed and are common to mining viruses under Linux; event features: features extracted based on mining events, which can be determined as features of a mining event if the feature is successfully matched; Set weight scores for optional features, mandatory features, and event features; there are three specific judgment rules:

1. Type combination judgment rule: If the mandatory features and event features of the mining virus detection knowledge base are hit, it can be judged as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be judged as a mining virus; 3. Weight judgment rule: Count the weight scores of all hit features. If the total score reaches the preset score, it can be judged as a mining virus. If any of the above three judgment rules is met, it can be judged as a mining virus; Intercept the processes that have been identified as mining viruses, and remove the associated mining virus processes that have been started.

8. The device according to claim 7, characterized in that The processor is further configured to load instructions stored in the memory to execute: The general behavior features of mining viruses are extracted to form a basic feature library, and the special behaviors of mining viruses are extracted to form an enhanced feature library, specifically: automatic extraction: pay attention to the mining event announcement website, regularly crawl the mining event information, and automatically extract features according to the fuzzy matching principle; Analysis and extraction: Statically reverse the mining virus to extract the mining virus logic information, then use the dynamic sandbox to run the mining virus to extract the mining virus process behavior information, and extract features based on the extracted mining virus logic information and process behavior information.

9. The device according to claim 7, characterized in that The processor is further configured to load instructions stored in the memory to execute: The behavior information includes: monitoring the process ID of the process and parent and child processes of the program being started, the operating user, the operating authority, the sensitive files being operated, the network connection, the CPU resource usage, whether there are hidden operations, and whether the startup directory is normal.

10. The device according to claim 7, characterized in that The processor is further configured to load instructions stored in the memory to execute: The described correlation clearing of the started mining service process is specifically as follows: searching for processes associated with the mining virus that have been determined to be, traversing their process chains, and similarly judging and clearing other processes on the chain; for some mining viruses that hide process information or use init for process hosting and cannot obtain their parent and child processes, the process chain information is obtained through memory mapping, and similarly judging and clearing other processes on the chain.

11. The device according to claim 10, characterized in that The processor is further configured to load instructions stored in the memory to execute: The process of searching for the process associated with the mining virus determined to be a mining virus and traversing its process chain is specifically: obtaining process information through / proc / pid / and associating according to the parent and child process IDs.

12. The device according to claim 10, characterized in that The processor is further configured to load instructions stored in the memory to execute: The process chain information is obtained through memory mapping, specifically: obtaining the task_struct pointer of the determined mining program, obtaining the structure variables mm_rb and mmap of the vm_area_strcut of the task_struct pointer, and then obtaining the starting address, end address and mapping file information of the memory mapping, and obtaining other related process information in the chain by traversing the task_struct linked list, and then associating the hidden process.

13. A mining virus protection and removal device under Linux platform, comprising: Feature extraction module: used to extract the general behavior features of mining viruses to form a basic feature library, and to extract the special behaviors of mining viruses to form an enhanced feature library; Knowledge base construction module: used to form a mining virus detection knowledge base based on the basic feature library and enhanced feature library; Behavior monitoring module: used to monitor the program being started and its parent and child processes, extract behavior information, and compare the behavior information with the features in the mining virus detection knowledge base; Mining threat determination module: used to determine mining virus threats through a mixed scoring mechanism of basic feature scoring and enhanced feature scoring; the mining virus threat determination through a mixed scoring mechanism of basic feature scoring and enhanced feature scoring includes: The features in the mining virus detection knowledge base are classified as follows: Optional features, mandatory features and event features, among which optional features and mandatory features are basic features, and event features are enhanced features; Optional features: features that are not only unique to mining viruses, but may also exist in other types of viruses; Mandatory features: features that must be possessed and are common to mining viruses under Linux; Event features: features extracted based on mining events, which can be determined as features of a mining event if they are successfully matched; Weight scores are set for optional features, mandatory features, and event features; There are three specific judgment rules:

1. Type combination judgment rule: If the mandatory features and event features in the mining virus detection knowledge base are hit, it can be determined as a mining virus; 2. Type weighted value judgment rule: If at least one mandatory feature or at least one event feature is hit, and at least three optional features are hit, it can be determined as a mining virus; 3. Weight judgment rule: Count the weight scores of all hit features, and if the total score reaches the preset score, it can be determined as a mining virus. If one of the above three judgment rules is met, it can be determined as a mining virus; Process association removal module: used to intercept processes that have been identified as mining viruses and to remove associations with started mining virus processes.

14. A storage device, characterized in that: The storage device stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 6.