A ransomware detection method, system, medium and device

By extracting API name and API string parameter features, building a graph structure and performing feature fusion, it solves the problem of existing detection methods ignoring API parameters and improves the accuracy and performance of ransomware detection.

CN117932607BInactive Publication Date: 2024-09-24SHANDONG COMP SCI CENTNAT SUPERCOMP CENT IN JINAN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410315721.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing ransomware detection methods based on API call sequences ignore API parameters, resulting in the inability to fully learn the detailed semantic information of the API call sequence, limiting the performance and accuracy of detection.

Method used

Extract API name features and API string parameter features, and by constructing a graph structure, extract local and global features of nodes for weighted fusion, and combine graph isomorphism networks and graph attention networks to detect ransomware.

Benefits of technology

The accuracy of ransomware detection is improved. By comprehensively considering the API name characteristics and API string parameter characteristics, it makes full use of the relationship between API calls and enhances the detection performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117932607B
    Figure CN117932607B
Patent Text Reader

Abstract

The invention discloses a ransomware detection method, system, medium and device, which belong to the field of software security technology, and include: obtaining software to be identified; extracting API name features and API string parameter features of API calls in the software to be identified; splicing the API name features and API string parameter features of the API calls to obtain splicing features of the API calls, taking the API calls in the software to be identified as nodes, taking the splicing features of the API calls as node representations of corresponding nodes, and taking the relationships between the API calls as edges to construct a graph structure; extracting node local features and node global features of the graph structure, weightedly fusing the node local features and node global features of the graph structure to obtain fused features; and obtaining the detection result of the software to be identified according to the fused features. The accuracy of ransomware detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software security technology, and in particular to a ransomware detection method, system, medium and device. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the continuous development of computer and Internet technology, information systems and networks have become an indispensable part of people's lives and work. However, this dependence has also created more opportunities for ransomware attacks. As a destructive malware, ransomware encrypts users' files or systems to extort ransom, posing a serious threat to the security of individual users and corporate data. Faced with increasingly complex threats, researchers are constantly working to find more advanced and efficient ransomware detection methods.

[0004] Traditional ransomware detection methods mainly include static analysis and dynamic analysis. Static analysis focuses on analyzing the static features of files or codes, but this method is easily bypassed by variants and obfuscation techniques. Dynamic analysis detects potential threats by monitoring the behavior of programs at runtime. Compared with static analysis, dynamic analysis methods focus on the behavioral patterns exhibited by samples at runtime and have a higher detection rate. The rapid development of deep learning technology in recent years has provided new opportunities for ransomware detection. Deep learning models perform very well in processing large-scale data and complex features. However, most of the existing detection methods based on API call sequences only consider the API name and ignore the learning of API parameters, resulting in the inability to fully learn the detailed semantic information of the API call sequence, which still has certain limitations in terms of performance and accuracy. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a ransomware detection method, system, medium and device. When performing software detection, the API name characteristics and API string parameter characteristics of the software are comprehensively considered, thereby improving the accuracy of ransomware detection.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] In the first aspect, a ransomware detection method is proposed, comprising:

[0008] Obtain the software to be identified;

[0009] Extract API name features and API string parameter features of API calls in the software to be identified;

[0010] The API name features and API string parameter features of the API call are concatenated to obtain the concatenated features of the API call, and the API calls in the software to be identified are taken as nodes, the concatenated features of the API call are taken as node representations of the corresponding nodes, and the relationships between the API calls are taken as edges to construct a graph structure;

[0011] Extract local features and global features of nodes in the graph structure, perform weighted fusion on the local features and global features of nodes in the graph structure to obtain fusion features;

[0012] According to the fusion features, the detection results of the software to be identified are obtained.

[0013] Furthermore, the local features of nodes in the graph structure are extracted through a graph isomorphism network.

[0014] Furthermore, the global features of nodes in the graph structure are extracted through the graph attention network.

[0015] Further, extracting the API call sequence of the software to be identified;

[0016] From the API call sequence, extract the API name features and API string parameter features of each API call.

[0017] Furthermore, a behavior analysis report of the software to be identified is obtained;

[0018] Extract API call sequences from the behavior analysis report.

[0019] Further, extract the API name from the API call sequence;

[0020] Segment each API name;

[0021] According to the word segmentation of each API name, the API name features are obtained.

[0022] Further, extract API string parameters from the API call sequence;

[0023] Get the API string parameter characteristics based on the API string parameter.

[0024] In the second aspect, a ransomware detection system is proposed, comprising:

[0025] A software acquisition module, used to acquire the software to be identified;

[0026] The software feature extraction module is used to extract the API name features and API string parameter features of the API calls in the software to be identified;

[0027] A graph structure building module is used to concatenate the API name features and API string parameter features of the API call to obtain the concatenated features of the API call, take the API calls in the software to be identified as nodes, take the concatenated features of the API call as node representations of the corresponding nodes, and take the relationships between the API calls as edges to build a graph structure;

[0028] The software identification module is used to extract the local features and global features of the nodes of the graph structure, perform weighted fusion on the local features and global features of the nodes of the graph structure to obtain fusion features; based on the fusion features, the detection results of the software to be identified are obtained.

[0029] In a third aspect, an electronic device is proposed, comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps described in a ransomware detection method are completed.

[0030] In a fourth aspect, a computer-readable storage medium is proposed for storing computer instructions, wherein when the computer instructions are executed by a processor, the steps of a ransomware detection method are completed.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] 1. The present invention extracts the API name features and API string parameter features of the software to be identified. When performing software detection, the API name features and API string parameter features of the software are comprehensively considered, thereby improving the accuracy of ransomware detection.

[0033] 2. After obtaining the API name features and API string parameter features, the present invention constructs a graph structure of the software, and places the API name features and API string parameter features of each API call in the corresponding node, and then extracts the node local features and node global features of the graph structure respectively and fuses them to obtain the fused features. When the fused features are used for ransomware detection, not only the API name features and API string parameter features of the software are comprehensively considered, but also the relationship between API calls is fully considered, thereby further improving the accuracy of ransomware detection.

[0034] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0036] Figure 1 A flow chart of a ransomware detection method disclosed in an embodiment;

[0037] Figure 2 The framework diagram of the ransomware detection system disclosed in the embodiment is shown. DETAILED DESCRIPTION

[0038] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0039] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0040] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0041] Example 1

[0042] In this embodiment, a ransomware detection method is disclosed, such as Figure 1 As shown, including:

[0043] S1: Obtain the software to be identified.

[0044] In this embodiment, the software to be identified is obtained and uploaded to the Cuckoo sandbox environment for dynamic analysis.

[0045] S2: Extract API name features and API string parameter features of the API calls in the software to be identified. The process includes:

[0046] S21: Extracting the API call sequence of the software to be identified.

[0047] This embodiment obtains a behavior analysis report of the software to be identified; and extracts an API call sequence from the behavior analysis report.

[0048] After obtaining the software to be identified, this embodiment uploads the software to be identified to the Cuckoo sandbox environment for dynamic analysis. During the dynamic analysis process, the execution process of the sample is monitored, key information such as file execution, network communication, registry access, process creation and termination, etc. is recorded, and a behavior analysis report of the software to be identified is generated, which contains comprehensive information about the software behavior.

[0049] Extract the API call sequence from the behavior analysis report of the software to be identified. The API call sequence contains the API name and API parameters of each API call, and filter out repeated API calls in the report to reduce the impact of redundant features.

[0050] S22: Extracting API name features and API string parameter features of each API call from the API call sequence.

[0051] This embodiment extracts API names from an API call sequence; performs word segmentation on each API name; and obtains API name features based on the word segmentation of each API name.

[0052] Extract all API names in the API call sequence. On this basis, in order to ensure the accuracy and consistency of subsequent feature extraction, for the case where the same API may have multiple aliases or different formats, the common suffix is ​​deleted from the API. Among them, the common suffixes generally include "Ex", "A", "W", "ExA" and "ExW", which usually indicate the extended version of the API or variants that process different character sets. Specifically, when there are different variants and versions of API calls, their API names may end with different suffixes. For example, "ExA" and "ExW" represent the extended version of the API; "A" represents the "ANSI" character set, indicating that the API processes strings of the ANSI character set (usually a single-byte character set); "W" represents "wide", indicating that the API processes strings of wide character sets (usually Unicode characters).

[0053] In order to obtain API name features based on the API name, this embodiment adopts the Word2Vec model to obtain API name features from the API name. Word2Vec is a word embedding technology commonly used in natural language processing. By learning the embedded representation of each word, it can map each word to a low-dimensional vector space, so that the model can capture the semantic relationship between words well, which is very beneficial for processing API names, especially considering that different API call contexts may affect their semantics.

[0054] All extracted API names are combined into a corpus , where M is the number of different API names in the software to be identified, and each API name is regarded as a statement;

[0055] For each API name Perform word segmentation operation, split it into separate words based on the word unit, and obtain the word set , where N is the number of words in the API name. For example, "GetFileVersionInfoSize" can be split into ["Get", "File", "Version", "Info", "Size"]. The purpose of word segmentation here is to refine the complex API name into more meaningful words, so that the Word2Vec model can better understand the semantic information contained in the API name;

[0056] API name based on the constructed corpus C and after word segmentation Train the Word2Vec model. During the training process, the model can capture the contextual semantics of the API call, learn the embedding representation of each word, and adjust the vector representation of each word so that words in similar contexts have similar embeddings.

[0057] The trained Word2Vec model is used to vectorize each API name to obtain the corresponding low-dimensional API name semantic feature vector, namely the API name feature.

[0058] This embodiment extracts API string parameters from an API call sequence; and obtains API string parameter features based on the API string parameters.

[0059] API parameters include integer parameters and string parameters. Compared with integer parameters, string parameters usually contain semantically rich information such as file paths, registry entries, URLs, etc. This information helps to better understand software behavior. Therefore, this application extracts API string parameters from the API call sequence.

[0060] This embodiment encodes the API string parameter based on FastText to obtain the API string parameter semantic feature vector, that is, the API string parameter feature.

[0061] In order to obtain API string parameter features according to the API string parameters, this embodiment encodes the API string parameters based on FastText to obtain API string parameter semantic feature vectors, namely, API string parameter features.

[0062] The FastText model is a word embedding model used to learn word and text representation. FastText not only considers the entire word, but also the subwords of the word. For API string parameters containing multiple subwords, it can better capture the relationship between subwords and improve the modeling ability of the string structure. In addition, API string parameters usually contain file paths, registry keys, or URLs, so irregular vocabulary may be encountered. FastText's subword processing mechanism can make it more adaptable and able to handle such irregular vocabulary.

[0063] In this embodiment, all extracted API string parameters are combined into a corpus , where N is the number of different API string parameters in the software, and each API string parameter is considered as a document;

[0064] For each API string parameter Perform word segmentation to split the string parameter into separate words and obtain a word set , so that the model can better understand the semantic information.

[0065] API parameters based on the constructed corpus M and word segmentation Train the FastText model. During the training process, the model learns the embedding representation of each word and takes into account the sub-word information to better capture the semantics between words.

[0066] After training is completed, the trained FastText model is used to obtain the encoding vector of each API string parameter. For each API string parameter, the vectors of the words after word segmentation are averaged as the vector representation of the entire API string parameter. The vector representation of the API string parameter is the API string parameter feature.

[0067] S3: Concatenate the API name features and API string parameter features of the API call to obtain the concatenated features of the API call, take the API calls in the software to be identified as nodes, take the concatenated features of the API call as node representations of the corresponding nodes, and take the relationships between the API calls as edges to construct a graph structure.

[0068] API call sequence for the software to be identified ,in Indicates API calls, and N represents the number of different API calls contained in the sequence.

[0069] Take the API calls in the software to be identified as nodes and the relationships between API calls as edges to build a graph structure and obtain the API call flow chart In this graph structure, Represents a node, Represented as an edge.

[0070] Calling the API i API name feature and API string parameter characteristics Splice along the feature dimension and get API call i The splicing features , the splicing feature includes the API calli The API name and string parameter information are used to define the splicing features of the API call as the node representation of the API call flow chart. , so that each node is represented as a feature vector that takes into account the API name and parameters, which can provide a richer node representation for the graph structure and define the relationship between API calls as edges .

[0071] S4: extracting local features and global features of nodes of the graph structure, performing weighted fusion on the local features and global features of nodes of the graph structure to obtain fusion features; obtaining detection results of the software to be identified based on the fusion features.

[0072] This embodiment processes the graph structure constructed by S3 through the software detection model to obtain the detection result of the software to be identified.

[0073] The software detection model includes a graph isomorphism network, a graph attention network, and a fully connected layer. The local features of the nodes in the graph structure are extracted through the graph isomorphism network (GIN); the global features of the nodes in the graph structure are extracted through the graph attention network (GAT), and then the local features of the nodes are fused with the global features of the nodes to achieve multi-level feature fusion, so that the key information of the graph structure can be captured at different scales and levels, and the fused features are input into the fully connected layer to obtain the detection results of the software to be identified.

[0074] GIN is a graph-based deep learning model, which is mainly used to learn the local features of nodes in the graph structure. Its core idea is to update the local features of nodes through multiple rounds of graph convolution operations, comprehensively consider the information of the node itself and the information of the neighboring nodes to update the features of the node, so as to better capture the local structure of the graph.

[0075] GAT is a variant of graph neural network based on attention mechanism. It calculates the attention weight between each node and its neighbor nodes and performs weighted summation of the features of the neighbor nodes to form updated node local features. This enables each node to dynamically focus on the neighbor nodes with higher relevance during information transmission, making the model more suitable for learning tasks of various graph structured data.

[0076] The nodes of the graph structure are represented and side information The input is sent to the GIN model, and multiple rounds of graph convolution operations are performed through the GIN model. In each round of operation, the self-attention mechanism of the GIN model is used to comprehensively consider the information of the node itself and the neighboring nodes, and the multi-layer perceptron (MLP) is used to perform nonlinear transformations, gradually update the local features of the nodes, and obtain more complex local features of the nodes. This process can effectively capture the local features of the nodes of the graph through multiple rounds of fully connected operations;

[0077] The calculation process of this layer can be expressed as the following formula: .in, Indicates the kth round node The local features of the nodes, Representation Node The set of neighbor nodes of is a learnable parameter, Represents a multi-layer perceptron.

[0078] The nodes of the graph structure are represented and side information The GAT layer is used to further learn the features of the node representation of the graph structure and obtain the global features of the nodes in the graph structure. GAT can pay more attention to global information more flexibly through the attention mechanism, and assign different weights to the information of different nodes, so that each node can pay more attention to the neighboring nodes that are important to the current task during the information aggregation process, which helps to capture important information in the global graph structure. Specifically, given a node The global feature representation ,in Represents the current GAT layer. The global characteristics of the node can be calculated by the following formula : .in, Representation Node The set of neighbor nodes of is the activation function, is a learnable weight parameter, Is a node and neighbor nodes The attention coefficient between can be calculated by the following formula: .in, is the learned attention parameter vector.

[0079] node Node global features is the weighted sum of the local features of its neighboring nodes, and the weight is determined by the attention coefficient Through the attention mechanism, GAT can dynamically learn the importance of each neighbor node to the current node, thereby more flexibly capturing the global information in the graph.

[0080] Then, the local node features extracted by the GIN model and the global node features extracted by the GAT model are fused to comprehensively consider the local structure and global context information of the graph. This embodiment uses a weighted splicing strategy to allow the model to adaptively learn how to assign importance, thereby comprehensively capturing the complex relationships in the graph at different levels. This can be achieved through the following formula: .in, To fusion features, is the weight of the local feature of the node, is the weight of the node global feature, satisfying , during the model training process, back propagation is used to continuously adjust and To optimize model performance.

[0081] In this embodiment, before testing the software to be identified, the model involved is first trained. The training process includes:

[0082] Collect ransomware and benign software samples, and then upload the collected software samples to the Cuckoo sandbox environment for dynamic analysis, obtain the behavioral analysis report of each sample, and then obtain the API call sequence of each sample, as well as the API name and API string parameters of each API in each sample; form a corpus with the API name of each sample, and split each API name into words to form a word set; train the Word2Vec model based on the corpus constructed by the sample names and the word set after word segmentation. During the training process, the model can capture the contextual semantics of the API call, learn the embedded representation of each word, and adjust the vector representation of each word so that words in similar contexts have similar embeddings. After the training is completed, a trained Word2Vec model is obtained, and the trained Word2Vec model is used to extract the API name features of the software to be identified.

[0083] The API string parameters of each sample are organized into a corpus, and each API string parameter is split into separate words to form a word set; the FastText model is trained using the corpus constructed by the API string parameters and the word set after word segmentation. During the training process, the model will learn the embedded representation of each word and simultaneously consider the sub-word information to better capture the semantics between words; after the training is completed, a trained FastText model is obtained, and the trained FastText model is used to extract the API string parameter features of the software to be identified.

[0084] This embodiment uses the API name features and API string features extracted from the sample and the real label corresponding to the sample to train GIN, GAT and the fully connected layer, and uses the improved binary cross entropy loss function to measure the difference between the model output and the real label. During the training process, the model parameters are continuously adjusted through the back propagation algorithm to minimize the loss function and improve the accuracy of sample classification. Finally, the sigmoid activation function is used to map the output vector to the [0,1] interval to obtain the probability value of the classification, and then classify the sample into normal and malicious, so as to detect ransomware.

[0085] Since the number of samples of the two types in the data set used in this embodiment is quite different, the model is trained by calculating the category weights so that it pays more attention to the category with fewer samples to reduce the impact of data imbalance. The number of ransomware samples in the statistical training set is recorded as , the number of samples of benign software in the statistical training set is recorded as ; Calculate the weight of the class samples with a large number of samples , denoted as ,in, is the total number of samples of the two categories, , is the class sample with a larger number of samples; then calculate the weight of the class sample with a smaller number of samples , denoted as ,in, , The sample is a category with a small number of samples.

[0086] The improved binary cross entropy loss function is: 。 in, represents the weight of the sample, which can be or , used to adjust the importance of samples of different categories, is the total number of samples, ) indicates that the model will sample The probability of predicting a positive example, is the label of the sample. When the sample is a positive example, The value is 1, otherwise it is 0.

[0087] A ransomware detection method disclosed in this embodiment obtains API name features and API string parameter features of the software to be identified. When performing software detection, the API name features and API string parameter features of the software are comprehensively considered, thereby improving the accuracy of ransomware detection.

[0088] In addition, after obtaining the API name features and API string parameter features, this embodiment constructs a graph structure of the software, and places the API name features and API string parameter features of each API call in the corresponding node, and then extracts the node local features and node global features of the graph structure and fuses them to obtain fused features. When using the fused features for ransomware detection, not only the API name features and API string parameter features of the software are comprehensively considered, but also the relationship between API calls is fully considered, thereby further improving the accuracy of ransomware detection.

[0089] Example 2

[0090] In this embodiment, a ransomware detection system is disclosed, such as Figure 2 As shown, including:

[0091] A software acquisition module, used to acquire the software to be identified;

[0092] The software feature extraction module is used to extract the API name features and API string parameter features of the API calls in the software to be identified;

[0093] A graph structure building module is used to concatenate the API name features and API string parameter features of the API call to obtain the concatenated features of the API call, take the API calls in the software to be identified as nodes, take the concatenated features of the API call as node representations of the corresponding nodes, and take the relationships between the API calls as edges to build a graph structure;

[0094] The software identification module is used to extract the local features and global features of the nodes of the graph structure, perform weighted fusion on the local features and global features of the nodes of the graph structure to obtain fusion features; based on the fusion features, the detection results of the software to be identified are obtained.

[0095] The present invention also discloses an electronic device, including a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are run by the processor, the steps described in the ransomware detection method disclosed in Example 1 are completed.

[0096] The present invention also discloses a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps of the ransomware detection method disclosed in Example 1 are completed.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A ransomware detection method, characterized in that: include: Obtain the software to be identified; Extract API name features and API string parameter features of API calls in the software to be identified; The API name features and API string parameter features of the API call are concatenated to obtain the concatenated features of the API call, and the API calls in the software to be identified are taken as nodes, the concatenated features of the API call are taken as node representations of the corresponding nodes, and the relationships between the API calls are taken as edges to construct a graph structure; Extract local features and global features of nodes in the graph structure, perform weighted fusion on the local features and global features of nodes in the graph structure to obtain fusion features; According to the fusion features, the detection result of the software to be identified is obtained; Specifically: The software detection model includes a graph isomorphism network, a graph attention network and a fully connected layer. The graph isomorphism network is used to extract the local features of the nodes of the graph structure, and the graph attention network is used to extract the global features of the nodes of the graph structure. The local features of the nodes and the global features of the nodes are then fused, and the fused features are input into the fully connected layer to obtain the detection results of the software to be identified.

2. A ransomware detection method according to claim 1, characterized in that: Extract the API call sequence of the software to be identified; From the API call sequence, extract the API name features and API string parameter features of each API call.

3. A ransomware detection method as claimed in claim 2, characterized in that: Obtain a behavioral analysis report of the software to be identified; Extract API call sequences from the behavior analysis report.

4. A ransomware detection method according to claim 1, characterized in that: Extract API name from API call sequence; Segment each API name; According to the word segmentation of each API name, the API name features are obtained.

5. A ransomware detection method according to claim 1, characterized in that: Extract API string parameters from the API call sequence; Get the API string parameter characteristics based on the API string parameter.

6. A ransomware detection system, characterized in that: include: A software acquisition module, used to acquire the software to be identified; The software feature extraction module is used to extract the API name features and API string parameter features of the API calls in the software to be identified; A graph structure building module is used to concatenate the API name features and API string parameter features of the API call to obtain the concatenated features of the API call, take the API calls in the software to be identified as nodes, take the concatenated features of the API call as node representations of the corresponding nodes, and take the relationships between the API calls as edges to build a graph structure; The software identification module is used to extract the local features and global features of the nodes in the graph structure, perform weighted fusion on the local features and global features of the nodes in the graph structure to obtain fusion features; and obtain the detection results of the software to be identified based on the fusion features; Specifically: The software detection model includes a graph isomorphism network, a graph attention network and a fully connected layer. The graph isomorphism network is used to extract the local features of the nodes of the graph structure, and the graph attention network is used to extract the global features of the nodes of the graph structure. The local features of the nodes and the global features of the nodes are then fused, and the fused features are input into the fully connected layer to obtain the detection results of the software to be identified.

7. An electronic device, characterized in that: The method comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps of a ransomware detection method according to any one of claims 1 to 5 are completed.

8. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, complete the steps of a ransomware detection method according to any one of claims 1 to 5.