Ransomware attack detection method and apparatus, and storage system
By deploying decoy files in the storage system and using the decoy files to actively trick attackers into carrying out ransomware attacks, the problem of difficulty in detecting and preventing ransomware attacks in existing technologies is solved, and detection efficiency and data security are improved.
Patent Information
- Application Number
- PCT/CN2024/080160
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-30
- Filing Date
- 2024-03-05
- Publication Date
- 2024-10-31
AI Technical Summary
Existing technologies are difficult to effectively detect and prevent ransomware attacks, making it difficult to guarantee the security and integrity of user data.
By deploying decoy files in the storage system, the decoy files are used to actively trick attackers into conducting ransomware attacks, thereby achieving effective detection and capture of ransomware attacks and reducing the possibility of normal files being attacked.
It improves the reliability and efficiency of ransomware attack detection, reduces the risk of normal files being attacked, catches attackers in a timely manner, reduces false alarm rates, and ensures the security of user data.
Smart Images

Figure CN2024080160_31102024_PF_FP_ABST
Abstract
Description
Ransomware attack detection method and device, and storage system
[0001] This application claims priority to Chinese patent application No. 202310469409.7, filed on April 23, 2023, entitled “A method for preventing ransomware in a NAS system”, and No. 202310804236.X, filed on June 30, 2023, entitled “Ransomware attack detection method, device, and storage system”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of storage technology, and in particular to a ransomware attack detection method and device, and a storage system. Background Art
[0003] With the rapid development of information technology, data plays an increasingly important role in today's world. This has been accompanied by the development and evolution of ransomware. These viruses encrypt user data, preventing victims from accessing it and demanding a ransom for the decryption key, threatening to permanently lose their data. The emergence of massive amounts of data and ransomware has also brought with it the rise of the data security field. Reliably detecting ransomware attacks and protecting user data from extortion is a critical security requirement in the storage industry.
[0004] Summary of the Invention
[0005] The present application provides a ransomware attack detection method and device, and a storage system, which can improve the reliability of ransomware attack detection.
[0006] In a first aspect, a ransomware attack detection method is provided. The method includes: generating one or more decoy files based on file characteristics of files in a storage system; deploying the one or more decoy files in the storage system; and determining whether the storage system is under a ransomware attack based on operations performed on the one or more decoy files.
[0007] This application deploys decoy files in the storage system, and the constructed decoy files actively trick attackers into launching ransomware attacks, thereby achieving effective detection of ransomware attacks. Since the decoy files are decoupled from normal files, ransomware attacks on the decoy files will not affect the files. Therefore, by deploying decoy files, the possibility of normal files being attacked by ransomware can be reduced to a certain extent. In addition, since the decoy files are generated based on the file characteristics of the files in the storage system, the decoy files can well simulate normal files in the storage system, making the decoy files difficult for attackers to distinguish, thereby improving the reliability of ransomware attack detection.
[0008] Optionally, one implementation of generating one or more decoy files based on file characteristics of files in a storage system includes: determining a target file type based on a first file characteristic of the files in the storage system, the first file characteristic including the file type; and generating a decoy file of the target file type.
[0009] In this application, the file type of the bait file is determined based on the file characteristics of the file including the file type, so that the generated bait file can better fit the user environment, making it difficult for attackers to distinguish between normal files and bait files in the storage system by file type, thereby improving the unrecognizable nature of the bait file and further improving the accuracy of ransomware attack detection based on bait files.
[0010] Optionally, the first file feature further includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
[0011] Optionally, a storage system includes multiple files, and one implementation method for determining a target file type based on a first file feature of a file in the storage system includes: using multiple features included in the first file feature as multiple clustering dimensions, performing cluster analysis on the multiple files using a clustering algorithm to obtain one or more cluster center files, and using the file types of the one or more cluster center files as the target file type.
[0012] Optionally, an implementation method of generating a bait file of a target file type includes: generating a bait file of the target file type based on a second file feature of a file in a storage system, the second file feature including one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
[0013] In one possible scenario, the second file characteristic includes a file name. The method for generating a decoy file of a target file type based on the second file characteristic of a file in the storage system includes: determining the names of one or more decoy files based on the name of a first file and / or the name of a second file in the storage system. The first file is the file in the storage system having the smallest ASCII code value for the file name, and the second file is the file in the storage system having the largest ASCII code value for the file name.
[0014] Optionally, the method for determining the file names of one or more decoy files based on the file name of a first file and / or the file name of a second file in the storage system includes: determining a first ASCII code threshold based on the ASCII code value of the file name of the first file, so that the ASCII code value of the file name of the decoy file determined based on the first file is less than or equal to the first ASCII code threshold. And / or, determining a second ASCII code threshold based on the ASCII code value of the file name of the second file, so that the ASCII code value of the file name of the decoy file determined based on the second file is greater than or equal to the second ASCII code threshold. The second ASCII code threshold is greater than the first ASCII code threshold.
[0015] Among them, the first ASCII code threshold value can be greater than or equal to the ASCII code value of the file name of the first file, for example, the first ASCII code threshold value is slightly greater than the ASCII code value of the file name of the first file. In this way, the bait file determined based on the first file is located near the first file when sorted by file name. If the attacker attacks the storage system in order of the ASCII code values of the file names from small to large, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks. The second ASCII code threshold value can be less than or equal to the ASCII code value of the file name of the second file, for example, the second ASCII code threshold value is slightly less than the ASCII code value of the file name of the second file. In this way, the bait file determined based on the second file is located near the second file when sorted by file name. If the attacker attacks the storage system in order of the ASCII code values of the file names from large to small, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0016] For example, the ASCII code value of the file name of the decoy file determined based on the first file is smaller than the ASCII code value of the file name of the first file. The ASCII code value of the file name of the decoy file determined based on the second file is greater than the ASCII code value of the file name of the second file. In this implementation, the one or more decoy files generated by the computer device include decoy files whose file names have ASCII code values smaller than the ASCII code value of the file name of the first file and / or decoy files whose file names have ASCII code values greater than the ASCII code value of the file name of the second file. For example, the ASCII code value of the first letter of the file name of the first file can be subtracted by 1 to obtain the file name of one decoy file, and the ASCII code value of the first letter of the file name of the second file can be added by 1 to obtain the file name of another decoy file. In this implementation, after the generated decoy files are deployed to the storage system, when all files in the storage system are sorted by file name, the decoy files are always before or after normal files. This makes it easier for attackers to attack the storage system by traversing the file name order, thereby improving the detection efficiency of ransomware attacks while also providing a certain degree of protection for normal files.
[0017] Optionally, the bait file name contains preset sensitive words. By adding highly sensitive words to the bait file name, the bait file is more attractive and more vulnerable to attacks than normal files.
[0018] In another possible situation, the second file feature includes file size. The implementation method of generating a bait file corresponding to the target file type based on the second file feature of the file in the storage system includes: determining the file size of one or more bait files based on the file size of a third file and / or the file size of a fourth file in the storage system, the third file being the file that occupies the smallest space in the storage system, and the fourth file being the file that occupies the largest space in the storage system.
[0019] Optionally, determining the file size of one or more decoy files based on the file size of a third file and / or the file size of a fourth file in the storage system includes: determining a first file size threshold based on the file size of the third file, such that the file size of the decoy file determined based on the third file is less than or equal to the first file size threshold. And / or determining a second file size threshold based on the file size of the fourth file, such that the file size of the decoy file determined based on the fourth file is greater than or equal to the second file size threshold. The second file size threshold is greater than the first file size threshold.
[0020] Among them, the first file size threshold can be greater than or equal to the file size of the third file, for example, the first file size threshold is slightly greater than the file size of the third file. In this way, the bait file determined based on the third file is located near the third file when sorted by file size. If the attacker attacks the storage system in order of file size from small to large, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks. The second file size threshold can be less than or equal to the file size of the fourth file, for example, the second file size threshold is slightly less than the file size of the fourth file. In this way, the bait file determined based on the fourth file is located near the fourth file when sorted by file size. If the attacker attacks the storage system in order of file size from large to small, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0021] For example, the file size of the bait file determined based on the third file is smaller than the file size of the third file. The file size of the bait file determined based on the fourth file is larger than the file size of the fourth file. Under this implementation, the one or more bait files generated by the computer device include a bait file with a file size smaller than the file size of the third file and / or a bait file with a file size larger than the file size of the fourth file. Under this implementation, after the generated bait file is deployed to the storage system, when all the files in the storage system are sorted by file size, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in order of file size, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, while also being able to provide a certain degree of protection for normal files.
[0022] In another possible situation, the second file feature includes a creation timestamp, and a bait file corresponding to the target file type is generated based on the second file feature of the file in the storage system, including: determining the creation timestamp of one or more bait files based on the creation timestamp of the fifth file and / or the creation timestamp of the sixth file in the storage system, the fifth file being the file with the earliest creation time in the storage system, and the sixth file being the file with the latest creation time in the storage system.
[0023] Optionally, the implementation method for determining the creation timestamp of one or more decoy files based on the creation timestamp of a fifth file and / or the creation timestamp of a sixth file in the storage system includes: determining a first timestamp threshold based on the creation timestamp of the fifth file, such that the creation timestamp of the decoy file determined based on the fifth file is less than or equal to the first timestamp threshold. And / or determining a second timestamp threshold based on the creation timestamp of the sixth file, such that the creation timestamp of the decoy file determined based on the sixth file is greater than or equal to the second timestamp threshold. The second timestamp threshold is greater than the first timestamp threshold.
[0024] Among them, the first timestamp threshold can be greater than or equal to the creation timestamp of the fifth file, for example, the first timestamp threshold is slightly greater than the creation timestamp of the fifth file. In this way, the bait file determined based on the fifth file is located near the fifth file when sorted by the creation timestamp. If the attacker attacks the storage system in order of creation time from early to late, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks. The second timestamp threshold can be greater than or equal to the creation timestamp of the sixth file, for example, the second timestamp threshold is slightly greater than the creation timestamp of the sixth file. In this way, the bait file determined based on the sixth file is located near the sixth file when sorted by the creation timestamp. If the attacker attacks the storage system in order of creation time from late to early, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0025] For example, the creation timestamp of the bait file determined based on the fifth file is smaller than the creation timestamp of the fifth file. The creation timestamp of the bait file determined based on the sixth file is larger than the creation timestamp of the sixth file. Under this implementation, the one or more bait files generated by the computer device include bait files with a creation timestamp smaller than the creation timestamp of the fifth file and / or bait files with a creation timestamp larger than the creation timestamp of the sixth file. Under this implementation, after the generated bait files are deployed to the storage system, when all the files in the storage system are sorted by creation time, the bait files are always before or after the normal files. In this way, when the attacker traverses the storage system in the order of creation timestamps, it is easier to attack the bait files, thereby improving the detection efficiency of ransomware attacks, while also providing a certain degree of protection for normal files.
[0026] In another possible situation, the second file feature includes a modification timestamp, and a bait file corresponding to the target file type is generated based on the second file feature of the file in the storage system, including: determining the modification timestamp of one or more bait files based on the modification timestamp of the seventh file and / or the modification timestamp of the eighth file in the storage system, the seventh file being the file with the earliest modification time in the storage system, and the eighth file being the file with the latest modification time in the storage system.
[0027] Optionally, the method for determining the modification timestamp of one or more decoy files based on the modification timestamp of a seventh file and / or the modification timestamp of an eighth file in the storage system includes: determining a third timestamp threshold based on the modification timestamp of the seventh file, such that the modification timestamp of the decoy file determined based on the seventh file is less than or equal to the third timestamp threshold. And / or determining a fourth timestamp threshold based on the modification timestamp of the eighth file, such that the modification timestamp of the decoy file determined based on the eighth file is greater than or equal to the fourth timestamp threshold. The fourth timestamp threshold is greater than the third timestamp threshold.
[0028] Among them, the third timestamp threshold can be greater than or equal to the modification timestamp of the seventh file, for example, the third timestamp threshold is slightly greater than the modification timestamp of the seventh file. In this way, the bait file determined based on the seventh file is located near the seventh file when sorted by the modification timestamp. If the attacker attacks the storage system in order of modification time from early to late, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks. The fourth timestamp threshold can be less than or equal to the modification timestamp of the eighth file, for example, the fourth timestamp threshold is slightly less than the modification timestamp of the eighth file. In this way, the bait file determined based on the eighth file is located near the eighth file when sorted by the modification timestamp. If the attacker attacks the storage system in order of modification time from late to early, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0029] For example, the modification timestamp of the bait file determined based on the seventh file is smaller than the modification timestamp of the seventh file. The modification timestamp of the bait file determined based on the eighth file is larger than the modification timestamp of the eighth file. Under this implementation, the one or more bait files generated by the computer device include bait files with a modification timestamp smaller than the creation timestamp of the seventh file and / or bait files with a modification timestamp larger than the creation timestamp of the eighth file. Under this implementation, after the generated bait files are deployed to the storage system, when all the files in the storage system are sorted by modification time, the bait files are always before or after the normal files. In this way, when the attacker traverses the storage system in the order of modification timestamps, it is easier to attack the bait files, thereby improving the detection efficiency of ransomware attacks, while also providing a certain degree of protection for normal files.
[0030] Optionally, the target file type includes a text file type. One implementation of generating a bait file of the target file type includes: generating file content of the bait file of the text file type through a natural language processing (NLP) model.
[0031] In this implementation, the file content of a text file type bait file is generated through an NLP model, so that the text content of the bait file has normal semantics, and thus attackers cannot distinguish between normal files and bait files in the storage system by semantically identifying the file content, thereby improving the unrecognizable nature of the bait file and further improving the accuracy of ransomware attack detection based on bait files.
[0032] Optionally, one implementation method for determining whether a storage system is under a ransomware attack based on operations performed on one or more decoy files includes: obtaining an operation sequence of multiple consecutive operations on a single decoy file, where the multiple consecutive operations include one or more of a read operation, a write operation, a rename operation, a create operation, or a delete operation. When the operation sequence matches a preset ransomware operation sequence pattern, the decoy file is checked for abnormal content. Based on the abnormal content detection results of the decoy file, it is determined whether the decoy file is under a ransomware attack.
[0033] In this implementation, by combining multiple ransomware detection with abnormal operation mode and abnormal content detection, the timeliness of bait file capture attacks is provided, and the false alarm rate caused by normal user misoperation is reduced.
[0034] Optionally, another implementation of determining whether a storage system is under a ransomware attack based on operations on one or more decoy files includes: when the proportion of decoy files in which a first abnormal operation occurs exceeds a first threshold, performing abnormal content detection on the decoy files in which the first abnormal operation occurs, where the first abnormal operation includes a write operation and a rename operation. Based on the abnormal content detection results of the decoy files, determining whether the decoy files are under a ransomware attack.
[0035] In this implementation, by combining multiple ransomware detection with abnormal touch and abnormal content detection, the timeliness of bait file capture attacks is provided, and the false alarm rate caused by normal user misoperation is reduced.
[0036] Optionally, the method for detecting abnormal content in the bait file includes: performing a content matching operation on the current file content of the bait file with the original file content of the bait file to determine a modification ratio of the current file content to the original file content. Accordingly, the method for determining whether the bait file has been subjected to a ransomware attack based on the abnormal content detection result of the bait file includes: determining that the bait file has been subjected to a ransomware attack if the modification ratio of the current file content of the bait file to the original file content is greater than a modification threshold.
[0037] Optionally, another implementation method of determining whether a storage system is under a ransomware attack based on operational behavior on one or more bait files includes: when the proportion of bait files in which a second abnormal operation occurs in one or more bait files exceeds a second threshold, determining that the bait files in which the second abnormal operation occurs are under a ransomware attack, where the second abnormal operation includes a deletion operation.
[0038] Optionally, after determining that the storage system is under a ransomware attack, an alarm prompt may be output, where the alarm prompt is used to indicate that the storage system is under a ransomware attack.
[0039] In this application, after determining that the storage system has been attacked by ransomware, an alarm prompt can be output so that operation and maintenance personnel or users can quickly locate the attacked object and respond to the ransomware attack by protecting the data.
[0040] Optionally, the alarm prompt also includes the deployment location of the bait file attacked by the ransomware in the storage system.
[0041] In a second aspect, a ransomware attack detection device is provided. The device includes multiple functional modules that interact with each other to implement the method of the first aspect and its respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on the specific implementation.
[0042] In a third aspect, a computer device is provided, comprising: a processor and a memory;
[0043] The memory is used to store a computer program, wherein the computer program includes program instructions;
[0044] The processor is configured to call the computer program to implement the method in the above-mentioned first aspect and its various embodiments.
[0045] Optionally, the computer device is integrated into a storage system, or the computer device is communicatively connected to the storage system.
[0046] In a fourth aspect, a storage system is provided, comprising: a controller and a storage medium, the storage medium being configured to store data; the controller being configured to access data in the storage medium and perform the method of the first aspect and its respective embodiments. Accessing data includes reading data and writing data. Optionally, accessing data also includes modifying or deleting data.
[0047] Optionally, the storage system is a network attached storage (NAS) system.
[0048] In a fifth aspect, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the method in the above-mentioned first aspect and its various embodiments is implemented.
[0049] In a sixth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the method in the above-mentioned first aspect and its various embodiments.
[0050] In a seventh aspect, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip is running, it implements the method in the above-mentioned first aspect and its various embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] FIG1 is a schematic diagram of an application architecture provided by an embodiment of the present application;
[0052] FIG2 is a schematic diagram of another application architecture provided in an embodiment of the present application;
[0053] FIG3 is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0054] FIG4 is a flow chart of a method for detecting a ransomware attack provided in an embodiment of the present application;
[0055] FIG5 is a schematic diagram of a cluster analysis provided in an embodiment of the present application;
[0056] FIG6 is a schematic diagram of the structure of a ransomware attack detection device provided in an embodiment of the present application;
[0057] FIG7 is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application;
[0058] FIG8 is a schematic structural diagram of a storage system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0060] Ransomware attacks are malicious acts that render a victim's computer or specific files unusable or unreadable. Only after the victim pays a ransom can they obtain the key needed to restore the computer or decrypt the encrypted files. Ransomware attacks can result in the loss of personal data and documents, or even the suspension of business operations. Building an anti-ransomware system to provide real-time security for user data is a critical and urgently needed technological solution with great market potential and commercial value. The key to building an anti-ransomware system lies in timely and effective detection of ransomware attacks.
[0061] Currently, common ransomware attack detection methods typically target compromised user data. This involves detecting compromised user data after it has been altered or encrypted. This passive detection method fails to protect the integrity and security of user data and is considered a passive approach. Building proactive defense mechanisms to proactively capture attackers is a key development trend in data security for storage systems.
[0062] Based on this, the present application proposes a solution for actively detecting ransomware attacks based on bait files (honeypot files) for storage systems. Bait file technology is a security technology for identifying and capturing ransomware viruses. A bait file is a normal file that looks valuable, but is actually a false file with no available information created by a security policy. It is used to trick attackers into launching attacks such as ransomware, thereby detecting and capturing attacks in a timely manner. In the technical solution provided by the present application, one or more bait files are generated based on the file characteristics of the files in the storage system, and then the generated bait files are deployed in the storage system, and further based on the operational behavior against the deployed bait files, it is determined whether the storage system is under a ransomware attack. The present application deploys bait files in the storage system, and the constructed bait files actively trick attackers into launching ransomware attacks, thereby achieving effective detection of ransomware attacks. Since the bait files are decoupled from the files, the ransomware attack on the bait files will not affect the normal files. Therefore, by deploying bait files, the possibility of normal files being attacked by ransomware can be reduced to a certain extent. In addition, since the bait files are generated based on the file features of normal files in the storage system, the bait files can well simulate normal files in the storage system, making it difficult for attackers to distinguish the bait files, thereby improving the reliability of ransomware attack detection.
[0063] Optionally, the file characteristics of a file include one or more of file size, file name, file type, creation timestamp or modification timestamp. Among them, the creation timestamp is used to indicate the creation time of the file. The modification timestamp is used to indicate the latest modification time of the file. Performing a write operation, a delete operation or a rename operation on a file is considered to modify the file, and the modification timestamp of the file will be updated based on these operations. If a file has not been modified after creation, then the modification timestamp of the file is equal to the creation timestamp of the file. Based on the file characteristics of the files in the storage system, one or more bait files are generated, including: based on the file characteristics of the files in the storage system, determining one or more of the file type, file name, file size, creation timestamp and modification timestamp of the bait file. For the sake of convenience of explanation, the present application refers to the file characteristics used to determine the file type in the above-mentioned file characteristics as the first file characteristics, and the file characteristics used to determine the file name, file size, creation timestamp and modification timestamp in the above-mentioned file characteristics as the second file characteristics.
[0064] In some possible implementations, the file type of the decoy file is determined based on a first file characteristic of a file in the storage system. The first file characteristic includes the file type. Optionally, the first file characteristic also includes one or more of the file name, file size, creation timestamp, and modification timestamp.
[0065] In an embodiment of the present application, the file type of the bait file is determined based on file features including the file type, so that the generated bait file can better fit the user environment, making it difficult for attackers to distinguish between normal files and bait files in the storage system by file type, thereby improving the unrecognizable nature of the bait file and further improving the accuracy of ransomware attack detection based on bait files. In addition, compared with the scheme of pre-setting the bait file type, since bait files of fixed types are easier to be identified by ransomware viruses, once the ransomware virus chooses not to encrypt files of this type, the ransomware detection scheme based on the bait file will fail, resulting in missed detection. The embodiment of the present application determines the bait file type based on the files actually stored in the storage system. That is to say, for different storage systems, or for the file storage conditions of the same storage system at different times, the bait file type that fits the current user environment can be determined in a targeted manner, so that the generated bait file is difficult to be identified by the ransomware virus, thereby improving the reliability of ransomware attack detection.
[0066] In some possible implementations, the name of the decoy file is determined based on the name of a file in the storage system. Optionally, the one or more decoy files include a decoy file whose file name has an ASCII code value smaller than the ASCII code value of the first file's name and / or a decoy file whose file name has an ASCII code value greater than the ASCII code value of the second file's name. The first file is the file in the storage system with the smallest file name in ASCII code value. The second file is the file in the storage system with the largest file name in ASCII code value.
[0067] In an embodiment of the present application, the name of the decoy file is determined based on the names of normal files in the storage system. After the decoy file with the file name designed in this manner is deployed to the storage system, when all files in the storage system are sorted by file name, the decoy file is always placed before or after the normal files. This makes it easier for an attacker to attack the storage system by traversing the file names, thereby improving the detection efficiency of ransomware attacks and providing some protection for normal files.
[0068] In some possible implementations, the file size of the decoy file is determined based on the file sizes of files in the storage system. Optionally, the one or more decoy files include a decoy file having a file size smaller than that of the third file and / or a decoy file having a file size larger than that of the fourth file. The third file is the file that occupies the least space in the storage system, and the fourth file is the file that occupies the most space in the storage system.
[0069] In the embodiments of the present application, the file size of the decoy file is determined based on the file size of normal files in the storage system. After the decoy file with the file size designed in this manner is deployed to the storage system, when all files in the storage system are sorted by file size, the decoy file is always placed before or after the normal files. This makes it easier for an attacker to attack the storage system by file size, thereby improving the detection efficiency of ransomware attacks and providing some protection for normal files.
[0070] In some possible implementations, the creation timestamp of the decoy file is determined based on the creation timestamps of files in the storage system. Optionally, the one or more decoy files include a decoy file with a creation timestamp that is less than the creation timestamp of the fifth file and / or a decoy file with a creation timestamp that is greater than the creation timestamp of the sixth file. The fifth file is the earliest created file in the storage system, and the sixth file is the latest created file in the storage system.
[0071] In an embodiment of the present application, the creation timestamp of a decoy file is determined based on the creation timestamps of normal files in the storage system. After the decoy file with the creation timestamp designed in this manner is deployed to the storage system, when all files in the storage system are sorted by creation time, the decoy file is always placed before or after the normal file. This makes it easier for an attacker to attack the storage system by traversing the storage system in the order of creation timestamps, thereby improving the detection efficiency of ransomware attacks and providing some protection for normal files.
[0072] In some possible implementations, the modification timestamp of the decoy file is determined based on the modification timestamps of files in the storage system. Optionally, the one or more decoy files include a decoy file with a modification timestamp less than the creation timestamp of the seventh file and / or a decoy file with a modification timestamp greater than the creation timestamp of the eighth file. The seventh file is the earliest modified file in the storage system, and the eighth file is the latest modified file in the storage system.
[0073] In an embodiment of the present application, the modification timestamp of a decoy file is determined based on the modification timestamps of normal files in the storage system. After the decoy file with the modification timestamp designed in this manner is deployed to the storage system, when all files in the storage system are sorted by modification time, the decoy file is always placed before or after the file. This makes it easier for an attacker to attack the storage system by traversing the storage system in the order of modification timestamps, thereby improving the detection efficiency of ransomware attacks and providing a certain degree of protection for files.
[0074] Compared with the scheme where the placement of bait files is fixed, once the ransomware successfully identifies the placement of the bait files, it may skip the bait files and only perform ransom attacks on other files. Then the ransomware detection scheme based on the bait files will fail, resulting in missed detections. The embodiment of the present application analyzes the traversal access priority based on various situations such as file name order, file size order, creation timestamp order and modification timestamp order, and designs the file name, file size, creation timestamp and modification timestamp of the bait files respectively. In this way, there is no need to fix the placement of the bait files, and the bait files can be included in the sorting of normal files. In addition, the bait files can be traversed first in different sorting situations, thereby increasing the possibility of bait files being attacked and improving the efficiency of ransomware attack detection.
[0075] Optionally, the file type can be divided into a text file type, a video file format type, an audio file format type, an image file format type, or an executable file format type. Alternatively, the file type can be further divided, for example, the text file type can be divided into a Word document file, an Excel spreadsheet file, a PDF reading file, a TXT text file, or a PPT presentation document, etc. Alternatively, the file type can be further divided, for example, a Word document file can be divided into a doc file or a docx file. The embodiment of the present application does not limit the granularity of the file type division. For example, in the embodiment of the present application, the file suffix type can be used as the file type.
[0076] In some possible implementations, for a bait file of text file type, the file content of the bait file is generated by an NLP model. Optionally, an NLP model can be pre-trained, and the NLP model corresponds to a variety of text file suffix types. By inputting the bait file type into the NLP model, the file content output by the NLP model can be obtained. Alternatively, multiple NLP models can be pre-trained, each corresponding to a text file suffix type, and then the NLP model corresponding to the bait file type is selected to generate the file content of the bait file. Optionally, features such as the bait file name and bait file size can also be used as input to the NLP model to obtain file content that matches these file features.
[0077] In an embodiment of the present application, the file content of a bait file of a text file type is generated by an NLP model, so that the text content of the bait file has normal semantics, and thus the attacker cannot distinguish between normal files and bait files in the storage system by semantically identifying the file content, thereby improving the unrecognizable nature of the bait file and further improving the accuracy of ransomware attack detection based on the bait file. In this way, even if a new type of ransomware virus appears in the future, the file content can be pre-screened and filtered to attack the target, and the bait file with normal semantics cannot be filtered out, thereby reducing the risk of missed detection. In addition, by generating file content that matches the file name and file size of the bait file through the NLP model, rather than using a randomly generated string or a description of the bait file (such as "This is a honeypot file") as the file content of the bait file, the difficulty of identifying the bait file can be further improved, thereby improving the accuracy of ransomware attack detection based on the bait file.
[0078] The technical solution of this application is described in detail below from multiple perspectives such as architecture, method flow, virtual device, and hardware device.
[0079] The following is an example of the system involved in the embodiments of the present application.
[0080] The ransomware attack detection method provided in the embodiments of the present application can be applied to a storage product having a storage system, that is, providing a storage product with anti-ransomware features. Alternatively, it can be applied to an external all-in-one security product, that is, providing a service product with anti-ransomware features.
[0081] For example, Figures 1 and 2 are schematic diagrams of an application architecture provided in an embodiment of the present application. As shown in Figure 1 or Figure 2, the application architecture includes a file storage module and a ransomware attack detection system. The ransomware attack detection system includes a bait design module, a bait placement module, and a ransomware detection module. The file storage module is deployed in the storage system. In the application architecture shown in Figure 1, the ransomware attack detection system is deployed in the storage system. In the application architecture shown in Figure 2, the ransomware attack detection system is deployed in an external device independent of the storage system.
[0082] The file storage module is used to provide file storage services to users. As shown in Figure 1 or Figure 2, the file storage module includes one or more file systems. Each file system can store n files, where n is a positive integer.
[0083] The ransomware attack detection system is used to implement the ransomware attack detection method provided in the embodiments of the present application. The bait design module is used to scan files in the file storage module and generate a bait file based on the file characteristics of the file. For specific functional implementation, refer to step 401 below. The bait placement module is used to deploy the bait file in the file system of the file storage module. For specific functional implementation, refer to step 402 below. The ransomware detection module is used to detect operations targeting the bait file and determine whether the storage system is under a ransomware attack. For specific functional implementation, refer to step 403 below.
[0084] Optionally, referring to Figure 1 or Figure 2 , the ransomware attack detection system further includes an alarm module. The alarm module is configured to output an alarm prompt after the storage system is attacked by a ransomware attack. For specific functional implementation, refer to step 404 below. In the application architecture shown in Figure 2 , the alarm module can output an alarm prompt to the storage system, which ultimately issues an alarm to alert operations and maintenance personnel that it has been attacked by a ransomware attack. Alternatively, the ransomware attack detection system can directly issue an alarm through the alarm module to alert operations and maintenance personnel that the protected storage system has been attacked by a ransomware attack.
[0085] Optionally, in the application architecture shown in Figure 1, the ransomware attack detection system can be deployed in the storage system using a container deployment method. Alternatively, the ransomware attack detection system can be deployed in the storage system using a traditional deployment method, such as deploying an application in the storage system as a plug-in or script, and the storage system running the application through the operating system to implement ransomware attack detection.
[0086] Optionally, in the application architecture shown in Figure 2, the ransomware attack detection system can be connected to the storage system through a peripheral component interconnect express (PCIE) interface, so that the ransomware attack detection system can obtain file features of files from the storage system through the PCIE interface, deploy bait files to the storage system, and obtain access operations for files from the storage system, etc., to achieve ransomware attack detection on the storage system. Among them, the access operations for files include but are not limited to read operations, write operations, rename operations, create operations, or delete operations. The read operation is used to read data from a file. The write operation is used to write data to a file using an overwrite write method. The rename operation is used to rename a file. The create operation is used to create a new file to write new data. The delete operation is used to delete a file.
[0087] Optionally, the storage system is a NAS system. NAS is a device specifically used for storing and sharing files. It is connected to a local area network (LAN) and provides file services through a network protocol. A NAS system is generally composed of hardware devices and software. A NAS system can provide efficient storage and data sharing functions. A NAS system can act as a file server, allowing users to access shared files stored on the NAS system through the network. A NAS system supports multiple file protocols, including but not limited to a network file system (NFS), a server message block (SMB) (SMB is also known as a Common Internet File System (CIFS)), or a file transfer protocol (FTP). These file protocols can share and access files between different operating systems and devices.
[0088] Optionally, the storage system in the embodiment of the present application may be a centralized storage system, or may be a distributed storage system.
[0089] For example, Figure 3 is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in Figure 3, the application scenario includes a host and a storage system. The host is a device used by the user to interact with the storage system. For example, the host can mount a file system in the storage system and perform file access operations on the mounted file system. Optionally, the host can be a physical device, or a virtual machine or container deployed on a physical device. The storage system can be the storage system shown in Figure 1 or the storage system shown in Figure 2. Figure 3 takes the storage system shown in Figure 1 as an example for explanation.
[0090] The following is an example of the method flow involved in the embodiments of the present application.
[0091] For example, Figure 4 is a flowchart illustrating a ransomware attack detection method provided in an embodiment of the present application. This method is applied to a computer device, which can be any device with computing capabilities. For example, the computer device can be a storage system as shown in Figure 1, an external device as shown in Figure 2, or a storage system as shown in Figure 3. As shown in Figure 4, the method includes but is not limited to steps 401 to 403. Optionally, the method also includes step 404.
[0092] Step 401: Generate one or more decoy files based on the file characteristics of the files in the storage system.
[0093] Optionally, by scanning files in one or more file systems in the storage system, the file features of each scanned file are obtained. In an embodiment of the present application, the computer device can provide an anti-ransomware function for a single file system in the storage system. For example, after a user subscribes to an anti-ransomware service from a storage system, the computer device can perform a full scan or a partial scan on the files mounted by the user in the file system of the storage system, obtain the file features of each scanned file, further generate a bait file that fits the file system, and then deploy the generated bait file in the root directory or any subdirectory of the file system. Alternatively, the computer device can also provide an anti-ransomware function for multiple file systems in the storage system. For example, the computer device can perform a full scan or a partial scan on the files mounted in multiple file systems of the storage system, obtain the file features of each scanned file, further generate a bait file that fits the multiple file systems, and then deploy the generated bait file in the root directory or any subdirectory of the multiple file systems. Among them, a full scan refers to scanning all files in the file system. A partial scan refers to scanning part of the files in the file system, such as only selecting the files under the directory (the hottest directory) that the user has recently accessed in the file system for scanning.
[0094] Optionally, the file feature includes one or more of file size, file name, file type, creation timestamp, or modification timestamp.
[0095] Optionally, the implementation process of step 401 includes the following steps 4011 to 4012.
[0096] In step 4011, a target file type is determined based on a first file feature of a file in a storage system, where the first file feature includes a file type.
[0097] Optionally, if the target file type is determined based on only one file feature, namely, the file type of the file, statistics may be collected on the file types of the scanned files, and the file type with the most occurrences may be used as the target file type.
[0098] Optionally, the first file feature also includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp. If the storage system includes multiple files, an implementation method for determining the target file type based on the first file feature of the file in the storage system includes: using the multiple features included in the first file feature as multiple clustering dimensions, using a clustering algorithm to perform cluster analysis on the multiple files to obtain one or more cluster center files. The file type of the one or more cluster center files is used as the target file type. For example, the first file feature includes a file type and a file size. Figure 5 is a cluster analysis diagram provided by an embodiment of the present application. As shown in Figure 5, the horizontal axis and the vertical axis each represent a clustering dimension, where the horizontal axis is the file type, file type A, file type B, file type C, and file type D respectively. The vertical axis is the file size, in kilobytes (KB). Multiple files are represented by the two file features of file type and file size, and each file can be represented as a point in the coordinate system. The figure shows seven files, designated a, b, c, d, e, f, and g. The point at the center of the distribution area of the multiple points (the cluster center) represents the cluster center file, i.e., file d is the cluster center file. Clustering algorithms used here include, but are not limited to, the K-nearest neighbor (KNN) clustering algorithm or the K-means clustering algorithm.
[0099] When a clustering algorithm is used to perform cluster analysis on the multiple files and a cluster center file is obtained, the computer device uses the file type of the cluster center file as the target file type. When a clustering algorithm is used to perform cluster analysis on the multiple files and multiple cluster center files are obtained, if the file types of the multiple cluster center files are the same, the file type of the multiple cluster center files is used as the target file type; if the file types of the multiple cluster center files are not completely the same, the multiple file types of the multiple cluster center files can be used as the target file type, and then bait files corresponding to each of the multiple target file types can be designed respectively, or one of the file types can be randomly selected as the target file type.
[0100] In step 4012, a decoy file of the target file type is generated.
[0101] For example, if the target file type is a Word document file, one or more Word document files are generated as bait files. Optionally, the computer device generates a bait file corresponding to the target file type based on a second file characteristic of a file in the storage system. The second file characteristic includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp. Specifically, generating the bait file includes determining file attributes such as the bait file type, file name, file size, creation timestamp, modification timestamp, and file content. The following embodiments of this application describe the implementation methods for determining these file attributes of the bait file.
[0102] The first implementation method is used to determine the file name of the bait file. The second file feature includes the file name, and the computer device determines the file name of the bait file based on the file name of the file in the storage system. The implementation method of the above-mentioned step 4012 includes: determining the file name of one or more bait files based on the file name of the first file and / or the file name of the second file in the storage system. The first file is the file with the smallest ASCII code value of the file name in the storage system, and the second file is the file with the largest ASCII code value of the file name in the storage system. Specifically, the computer device can determine a first ASCII code threshold based on the ASCII code value of the file name of the first file, so that the ASCII code value of the file name of the bait file determined based on the first file is less than or equal to the first ASCII code threshold. And / or, determine a second ASCII code threshold based on the ASCII code value of the file name of the second file, so that the ASCII code value of the file name of the bait file determined based on the second file is greater than or equal to the second ASCII code threshold. Wherein, the second ASCII code threshold is greater than the first ASCII code threshold.
[0103] Optionally, the first ASCII code threshold is greater than or equal to the ASCII code value of the file name of the first file. For example, the first ASCII code threshold is slightly greater than the ASCII code value of the file name of the first file. In this way, the decoy file determined based on the first file is located near the first file when sorted by file name. If an attacker attacks the storage system in ascending order of the ASCII code values of the file names, the decoy file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0104] Optionally, the second ASCII code threshold is less than or equal to the ASCII code value of the file name of the second file. For example, the second ASCII code threshold is slightly less than the ASCII code value of the file name of the second file. In this way, the decoy file determined based on the second file is located near the second file when sorted by file name. If an attacker attacks the storage system in descending order of the ASCII code values of the file names, the decoy file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0105] For example, the ASCII code value of the file name of the decoy file determined based on the first file is smaller than the ASCII code value of the file name of the first file. The ASCII code value of the file name of the decoy file determined based on the second file is greater than the ASCII code value of the file name of the second file. In this implementation, the one or more decoy files generated by the computer device include decoy files whose file names have ASCII code values smaller than the ASCII code value of the file name of the first file and / or decoy files whose file names have ASCII code values greater than the ASCII code value of the file name of the second file. For example, the ASCII code value of the first letter of the file name of the first file can be subtracted by 1 to obtain the file name of one decoy file, and the ASCII code value of the first letter of the file name of the second file can be added by 1 to obtain the file name of another decoy file. In this implementation, after the generated decoy files are deployed to the storage system, when all files in the storage system are sorted by file name, the decoy files are always before or after normal files. This makes it easier for attackers to attack the storage system by traversing the file name order, thereby improving the detection efficiency of ransomware attacks while also providing a certain degree of protection for normal files.
[0106] Optionally, the decoy file's name contains pre-set sensitive words. These are words that are easily attacked, including but not limited to "private," "cash," and "bill." These pre-set sensitive words can be set based on expert experience or historical attack scenarios. By adding highly sensitive words to the decoy file's name, the decoy file's allure is enhanced, making it more vulnerable to attack than a normal file.
[0107] The second implementation method is used to determine the file size of the bait file. The second file feature includes the file size, and the computer device determines the file size of the bait file based on the file size of the file in the storage system. The implementation method of the above-mentioned step 4012 includes: determining the file size of one or more bait files based on the file size of a third file and / or the file size of a fourth file in the storage system, where the third file is the file that occupies the least space in the storage system, and the fourth file is the file that occupies the most space in the storage system. Specifically, the computer device can determine a first file size threshold based on the file size of the third file, so that the file size of the bait file determined based on the third file is less than or equal to the first file size threshold. And / or, determine a second file size threshold based on the file size of the fourth file, so that the file size of the bait file determined based on the fourth file is greater than or equal to the second file size threshold. The second file size threshold is greater than the first file size threshold.
[0108] Optionally, the first file size threshold is greater than or equal to the file size of the third file, for example, the first file size threshold is slightly greater than the file size of the third file. This allows the decoy file determined based on the third file to be located near the third file when sorted by file size. If an attacker attacks the storage system in ascending order of file size, the decoy file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0109] Optionally, the second file size threshold is less than or equal to the file size of the fourth file, for example, the second file size threshold is slightly less than the file size of the fourth file. This allows the decoy file determined based on the fourth file to be located near the fourth file when sorted by file size. If an attacker attacks the storage system in descending order of file size, the decoy file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0110] For example, the file size of the bait file determined based on the third file is smaller than the file size of the third file. The file size of the bait file determined based on the fourth file is larger than the file size of the fourth file. Under this implementation, the one or more bait files generated by the computer device include a bait file with a file size smaller than the file size of the third file and / or a bait file with a file size larger than the file size of the fourth file. Under this implementation, after the generated bait file is deployed to the storage system, when all the files in the storage system are sorted by file size, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in order of file size, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, while also being able to provide a certain degree of protection for normal files.
[0111] The third implementation method is used to determine the creation timestamp of the bait file. The second file feature includes a creation timestamp, and the computer device determines the creation timestamp of the bait file based on the creation time of the file in the storage system. The implementation method of the above step 4012 includes: determining the creation timestamp of one or more bait files based on the creation timestamp of the fifth file and / or the creation timestamp of the sixth file in the storage system, the fifth file is the file with the earliest creation time in the storage system, and the sixth file is the file with the latest creation time in the storage system. Specifically, the computer device can determine a first timestamp threshold based on the creation timestamp of the fifth file, so that the creation timestamp of the bait file determined based on the fifth file is less than or equal to the first timestamp threshold. And / or, determine a second timestamp threshold based on the creation timestamp of the sixth file, so that the creation timestamp of the bait file determined based on the sixth file is greater than or equal to the second timestamp threshold. Wherein, the second timestamp threshold is greater than the first timestamp threshold.
[0112] Optionally, the first timestamp threshold is greater than or equal to the creation timestamp of the fifth file, for example, the first timestamp threshold is slightly greater than the creation timestamp of the fifth file. This allows the decoy file determined based on the fifth file to be located near the fifth file when sorted by creation timestamp. If an attacker attacks the storage system in descending order of creation time, the decoy file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0113] Optionally, the second timestamp threshold is greater than or equal to the creation timestamp of the sixth file, for example, the second timestamp threshold is slightly greater than the creation timestamp of the sixth file. This allows the decoy file determined based on the sixth file to be located near the sixth file when sorted by creation timestamp. If an attacker attacks the storage system in descending order of creation time, the decoy file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0114] For example, the creation timestamp of the bait file determined based on the fifth file is smaller than the creation timestamp of the fifth file. The creation timestamp of the bait file determined based on the sixth file is larger than the creation timestamp of the sixth file. Under this implementation, the one or more bait files generated by the computer device include bait files with a creation timestamp smaller than the creation timestamp of the fifth file and / or bait files with a creation timestamp larger than the creation timestamp of the sixth file. Under this implementation, after the generated bait files are deployed to the storage system, when all the files in the storage system are sorted by creation time, the bait files are always before or after the normal files. In this way, when the attacker traverses the storage system in the order of creation timestamps, it is easier to attack the bait files, thereby improving the detection efficiency of ransomware attacks, while also providing a certain degree of protection for normal files.
[0115] The fourth implementation method is used to determine the modification timestamp of the bait file. The second file feature includes a modification timestamp, and the computer device determines the modification timestamp of the bait file based on the modification time of the file in the storage system. The implementation method of the above step 4012 includes: determining the modification timestamp of one or more bait files based on the modification timestamp of the seventh file and / or the modification timestamp of the eighth file in the storage system, the seventh file is the file with the earliest modification time in the storage system, and the eighth file is the file with the latest modification time in the storage system. Specifically, the computer device can determine a third timestamp threshold based on the modification timestamp of the seventh file, so that the modification timestamp of the bait file determined based on the seventh file is less than or equal to the third timestamp threshold. And / or, determine a fourth timestamp threshold based on the modification timestamp of the eighth file, so that the modification timestamp of the bait file determined based on the eighth file is greater than or equal to the fourth timestamp threshold. Wherein, the fourth timestamp threshold is greater than the third timestamp threshold.
[0116] Optionally, the third timestamp threshold is greater than or equal to the modification timestamp of the seventh file, for example, the third timestamp threshold is slightly greater than the modification timestamp of the seventh file. This allows the decoy file determined based on the seventh file to be located near the seventh file when sorted by modification timestamp. If an attacker attacks the storage system in descending modification time order, the decoy file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0117] Optionally, the fourth timestamp threshold is less than or equal to the modification timestamp of the eighth file, for example, the fourth timestamp threshold is slightly less than the modification timestamp of the eighth file. This allows the decoy file determined based on the eighth file to be located near the eighth file when sorted by modification timestamp. If an attacker attacks the storage system in descending order of modification time, the decoy file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0118] For example, the modification timestamp of the bait file determined based on the seventh file is smaller than the modification timestamp of the seventh file. The modification timestamp of the bait file determined based on the eighth file is larger than the modification timestamp of the eighth file. Under this implementation, the one or more bait files generated by the computer device include bait files with a modification timestamp smaller than the creation timestamp of the seventh file and / or bait files with a modification timestamp larger than the creation timestamp of the eighth file. Under this implementation, after the generated bait files are deployed to the storage system, when all the files in the storage system are sorted by modification time, the bait files are always before or after the normal files. In this way, when the attacker traverses the storage system in the order of modification timestamps, it is easier to attack the bait files, thereby improving the detection efficiency of ransomware attacks, while also providing a certain degree of protection for normal files.
[0119] The fifth implementation is for generating the file content of the decoy file. Optionally, the target file type includes a text file type, and the computer device can generate the file content of the decoy file of the text file type through the NLP model.
[0120] Optionally, an NLP model can be pre-trained, and the NLP model corresponds to a variety of text file suffix types. By inputting the bait file type into the NLP model, the file content output by the NLP model can be obtained. Alternatively, multiple NLP models can be pre-trained, each corresponding to a text file suffix type, and then the NLP model corresponding to the bait file type is selected to generate the file content of the bait file. Optionally, features such as the bait file name and the bait file size can be used as inputs to the NLP model to obtain file content that matches these file features. The computer device can also use the bait file name determined by the first implementation method and the bait file size determined by the second implementation method as inputs to the NLP model to obtain text file content that matches the bait file name and the bait file size. In this implementation, the file content of a text file type bait file is generated through an NLP model, so that the text content of the bait file has normal semantics, and thus attackers cannot distinguish between normal files and bait files in the storage system by semantically identifying the file content, thereby improving the unrecognizable nature of the bait file and further improving the accuracy of ransomware attack detection based on bait files.
[0121] Optionally, the computer device may pre-store a video library, an audio library and a picture library. When the target file type includes a video file format type, an audio file format type or a picture file format type, the computer device obtains the file content from the corresponding database respectively.
[0122] Step 402: Deploy the one or more decoy files in the storage system.
[0123] Optionally, the one or more decoy files are deployed in one or more file systems mounted on the storage system. For example, all generated decoy files can be deployed separately in each file system, or the generated decoy files can be distributed and deployed in multiple file systems. The decoy files can be deployed in the root directory of the file system, or in any subdirectory of the file system. The embodiments of the present application do not limit the deployment method and deployment location of the decoy files in the storage system.
[0124] Step 403: Determine whether the storage system is under a ransomware attack based on the operation behavior on the one or more decoy files.
[0125] Since legitimate users may mistakenly operate decoy files in the storage system, such as reading or writing them, in order to reduce the false alarm rate of ransomware attacks, it is necessary to avoid the situation where an alarm is issued once the decoy file is triggered. Based on this concept, the embodiments of the present application provide the following three implementation methods to determine whether an operation on a decoy file is a ransomware attack.
[0126] In a first possible implementation, the implementation process of step 403 includes obtaining a sequence of multiple consecutive operations on a single decoy file, where the multiple consecutive operations include one or more of a read operation, a write operation, a rename operation, a create operation, or a delete operation. When the sequence of operations matches a preset ransomware operation sequence pattern, the decoy file is checked for abnormal content. Based on the abnormal content detection result of the decoy file, it is determined whether the decoy file has been subjected to a ransomware attack.
[0127] Optionally, the ransom operation sequence can be derived based on the actual ransom behavior of the ransomware. A ransom behavior typically includes multiple consecutive operations on the same set of data, such as "read operation + write operation + rename operation", "read operation + rename operation + write operation", "create operation + read operation + write operation + delete operation", "read operation + create operation + write operation + delete operation", etc. A ransom operation sequence can be generated and stored in advance based on these possible ransom behaviors. If the operation sequence of multiple consecutive operations matches a preset ransom operation sequence pattern, the operation sequence can include any of the preset ransom operation sequences.
[0128] This implementation combines multiple ransomware detection methods with abnormal operation patterns and content detection to ensure timely detection of decoy file attacks and reduce the false positive rate caused by normal user errors. Alternatively, a computer device can directly determine that a decoy file has been attacked by ransomware when the sequence of multiple consecutive operations on the decoy file matches a preset ransomware operation sequence pattern.
[0129] The second possible implementation method is to implement the above step 403, including: when the proportion of bait files with a first abnormal operation among all bait files deployed in the storage system exceeds a first threshold, abnormal content detection is performed on the bait files with the first abnormal operation, and the first abnormal operation includes a write operation and a rename operation. Based on the abnormal content detection result of the bait file, it is determined whether the bait file is under a ransomware attack. For example, when the number of bait files with "write operations" and "rename operations" exceeds 10% of the total number of bait files deployed in the storage system, abnormal content detection is performed on the bait files involved.
[0130] This implementation combines multiple ransomware detection methods, including abnormal touch and abnormal content detection, to ensure timely detection of decoy file attacks and reduce the false alarm rate caused by normal user errors. Alternatively, the computer device can directly determine that a decoy file is under a ransomware attack when the proportion of decoy files with the first abnormal operation among all decoy files deployed in the storage system exceeds a first threshold.
[0131] The first or second possible implementation method described above, detecting abnormal content in decoy files, includes: matching the current file content of the decoy file with the original file content of the decoy file to determine the modification ratio of the current file content compared to the original file content. If the modification ratio exceeds a modification threshold, it is determined that the decoy file has been attacked by ransomware. Furthermore, it is determined that the storage system has been attacked by ransomware. Optionally, a string matching algorithm or an edit distance algorithm can be used to match the current file content of the decoy file with the original file content. If the modification ratio exceeds 10%, it is determined that the decoy files have been attacked by ransomware, and further, it is determined that the storage system has been attacked by ransomware.
[0132] In a third possible implementation, the implementation process of step 403 includes: when the proportion of decoy files that exhibit the second abnormal operation among all decoy files deployed in the storage system exceeds a second threshold, determining that the decoy files exhibiting the second abnormal operation are under a ransomware attack, and further determining that the storage system is under a ransomware attack. The second abnormal operation includes a deletion operation. For example, when the number of decoy files that exhibit the "deletion operation" exceeds 10% of the total number of decoy files deployed in the storage system, determining that the storage system is under a ransomware attack.
[0133] Step 404: After determining that the storage system is under a ransomware attack, output an alarm prompt.
[0134] The warning prompt is used to indicate that the storage system is under a ransomware attack. Optionally, the warning prompt also includes the deployment location of the bait file under the ransomware attack in the storage system. The deployment location can be represented by "file system + file path name + file name".
[0135] Optionally, the computer device outputs the alarm prompt, which may be that the computer device displays the alarm prompt, or the computer device sends the alarm prompt to other display devices for display by the other display devices.
[0136] In an embodiment of the present application, after determining that the storage system is under a ransomware attack, the computer device can output an alarm prompt so that the operation and maintenance personnel or users can quickly locate the attacked object and respond to the ransomware attack by protecting the data.
[0137] In the ransomware attack detection method provided in the embodiment of the present application, one or more bait files are generated based on the file characteristics of the files in the storage system, and then the generated bait files are deployed in the storage system, and further based on the operation behavior for the deployed bait files, it is determined whether the storage system is under a ransomware attack. The embodiment of the present application deploys bait files in the storage system, and the constructed bait files actively trick attackers into launching ransomware attacks, thereby achieving effective detection of ransomware attacks. Since the bait files are decoupled from normal files, the ransomware attack on the bait files will not affect the normal files. Therefore, by deploying the bait files, the possibility of normal files being attacked by ransomware can be reduced to a certain extent. In addition, since the bait files are generated based on the file characteristics of normal files in the storage system, the bait files can well simulate the user's normal files in the storage system, making the bait files difficult for attackers to distinguish, thereby improving the reliability of ransomware attack detection.
[0138] The order of the steps of the ransomware attack detection method provided in the embodiment of the present application can be adjusted appropriately, and the steps can also be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of a method of change within the technical scope disclosed in this application, and all of them should be covered by the protection scope of this application. For example, based on the inventive concept of the embodiment of the present application, the method of deploying bait to induce attacks can be applied to other fields involving information security storage or information security transmission, such as the communication field or the Internet of Things field. In specific applications, the inventive concept of the present application can be used to design bait that fits a normal environment and perform a variety of attack detections including ransomware attacks. For example, the Internet of Things is prone to distributed denial of service (DDoS) attacks. By designing a node that fits a normal environment as bait, some access information of the node can be monitored. If a large-scale abnormal access pattern occurs, a DDoS attack has occurred. The embodiments of the present application will not be repeated here.
[0139] The following describes the virtual device in the embodiment of the present application by way of example.
[0140] For example, Figure 6 is a schematic diagram of the structure of a ransomware attack detection device provided in an embodiment of the present application. As shown in Figure 6, the ransomware attack detection device 600 includes but is not limited to a generation module 601, a deployment module 602, and a determination module 603. Optionally, the ransomware attack detection device 600 also includes an output module 604. The ransomware attack detection device 600 can be specifically used to execute the method shown in Figure 4. For example, the generation module 601 is used to execute the above step 401, the deployment module 602 is used to execute the above step 402, the determination module 603 is used to execute the above step 403, and the output module 604 is used to execute the above step 404.
[0141] The generation module 601 is used to generate one or more bait files according to the file characteristics of the files in the storage system.
[0142] The deployment module 602 is configured to deploy one or more decoy files in the storage system.
[0143] The determination module 603 is configured to determine whether the storage system is under a ransomware attack based on the operation behavior on one or more decoy files.
[0144] Optionally, the generating module 601 is configured to: determine a target file type according to a first file feature of a file in the storage system, where the first file feature includes the file type; and generate a decoy file of the target file type.
[0145] Optionally, the first file feature further includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
[0146] Optionally, the storage system includes multiple files, and a generation module 601 is used to: use the multiple features included in the first file feature as multiple clustering dimensions, adopt a clustering algorithm to perform cluster analysis on the multiple files, and obtain one or more cluster center files; and use the file type of the one or more cluster center files as the target file type.
[0147] Optionally, the generation module 601 is used to generate a bait file of the target file type according to a second file feature of the file in the storage system, where the second file feature includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
[0148] Optionally, the second file feature includes a file name, and a generation module 601 is used to: determine the file name of one or more bait files based on the file name of the first file and / or the file name of the second file in the storage system, the first file is the file with the smallest ASCII code value of the file name in the storage system, and the second file is the file with the largest ASCII code value of the file name in the storage system.
[0149] Optionally, generation module 601 is used to: determine a first ASCII code threshold based on the ASCII code value of the file name of the first file, so that the ASCII code value of the file name of the bait file determined based on the first file is less than or equal to the first ASCII code threshold; and / or determine a second ASCII code threshold based on the ASCII code value of the file name of the second file, so that the ASCII code value of the file name of the bait file determined based on the second file is greater than or equal to the second ASCII code threshold; wherein the second ASCII code threshold is greater than the first ASCII code threshold.
[0150] Optionally, the second file feature includes file size, and the generation module 601 is used to: determine the file size of one or more bait files based on the file size of a third file and / or the file size of a fourth file in the storage system, the third file is the file that occupies the smallest space in the storage system, and the fourth file is the file that occupies the largest space in the storage system.
[0151] Optionally, generation module 601 is used to: determine a first file size threshold based on the file size of the third file, so that the file size of the bait file determined based on the third file is less than or equal to the first file size threshold; and / or determine a second file size threshold based on the file size of the fourth file, so that the file size of the bait file determined based on the fourth file is greater than or equal to the second file size threshold; wherein the second file size threshold is greater than the first file size threshold.
[0152] Optionally, the second file feature includes a creation timestamp, and the generation module 601 is used to: determine the creation timestamp of one or more bait files based on the creation timestamp of the fifth file and / or the creation timestamp of the sixth file in the storage system, the fifth file is the file with the earliest creation time in the storage system, and the sixth file is the file with the latest creation time in the storage system.
[0153] Optionally, generation module 601 is used to: determine a first timestamp threshold based on the creation timestamp of the fifth file, so that the creation timestamp of the bait file determined based on the fifth file is less than or equal to the first timestamp threshold; and / or determine a second timestamp threshold based on the creation timestamp of the sixth file, so that the creation timestamp of the bait file determined based on the sixth file is greater than or equal to the second timestamp threshold; wherein the second timestamp threshold is greater than the first timestamp threshold.
[0154] Optionally, the second file feature includes a modification timestamp, and the generation module 601 is used to: determine the modification timestamp of one or more bait files based on the modification timestamp of the seventh file and / or the modification timestamp of the eighth file in the storage system, the seventh file is the file with the earliest modification time in the storage system, and the eighth file is the file with the latest modification time in the storage system.
[0155] Optionally, generation module 601 is used to: determine a third timestamp threshold based on the modification timestamp of the seventh file, so that the modification timestamp of the bait file determined based on the seventh file is less than or equal to the third timestamp threshold; and / or determine a fourth timestamp threshold based on the modification timestamp of the eighth file, so that the modification timestamp of the bait file determined based on the eighth file is greater than or equal to the fourth timestamp threshold; wherein the fourth timestamp threshold is greater than the third timestamp threshold.
[0156] Optionally, the target file type includes a text file type, and the generation module 601 is used to generate the file content of a bait file of the text file type through a natural language processing model.
[0157] Optionally, the name of the bait file carries preset sensitive words.
[0158] Optionally, the determination module 603 is used to: obtain an operation sequence of multiple consecutive operations on a single bait file, where the multiple consecutive operations include one or more of a read operation, a write operation, a rename operation, a create operation, or a delete operation; when the operation sequence matches a preset ransomware operation sequence pattern, perform abnormal content detection on the bait file; and determine whether the bait file is under a ransomware attack based on the abnormal content detection result of the bait file.
[0159] Optionally, the determination module 603 is used to: when the proportion of bait files in which a first abnormal operation occurs in one or more bait files exceeds a first threshold, perform abnormal content detection on the bait files in which the first abnormal operation occurs, where the first abnormal operation includes a write operation and a rename operation; and determine whether the bait file is under a ransomware attack based on the abnormal content detection result of the bait file.
[0160] Optionally, the determination module 603 is used to: match the current file content of the bait file with the original file content of the bait file to obtain the modification ratio of the current file content compared to the original file content; if the modification ratio is greater than the modification threshold, it is determined that the bait file is attacked by ransomware.
[0161] Optionally, the determination module 603 is used to: when the proportion of bait files with a second abnormal operation in one or more bait files exceeds a second threshold, determine that the bait files with the second abnormal operation are under a ransomware attack, and the second abnormal operation includes a deletion operation.
[0162] Optionally, the output module 604 is configured to output an alarm prompt after determining that the storage system is under a ransomware attack, where the alarm prompt is used to indicate that the storage system is under a ransomware attack.
[0163] Optionally, the alarm prompt also includes the deployment location of the bait file attacked by the ransomware in the storage system.
[0164] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0165] The following is an example of the basic hardware structure involved in the embodiments of the present application.
[0166] For example, Figure 7 is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application. As shown in Figure 7, computer device 700 includes a processor 701 and a memory 702, and memory 701 and memory 702 are connected via a bus 703. Figure 7 illustrates the processor 701 and memory 702 as independent of each other. Optionally, the processor 701 and memory 702 are integrated together. The computer device 700 can be, for example, a storage system. The computer device 700 is integrated into the storage system, or the computer device 700 is communicatively connected to the storage system.
[0167] Memory 702 is used to store computer programs, including operating systems and program code. Memory 702 is a storage medium of various types, such as read-only memory (ROM), random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), flash memory, optical storage, registers, optical disk storage, optical disc storage, magnetic disk, or other magnetic storage devices.
[0168] The processor 701 is a general-purpose processor or a dedicated processor. The processor 701 may be a single-core processor or a multi-core processor. The processor 701 includes at least one circuit to execute the ransomware attack detection method provided in the embodiment of the present application.
[0169] Optionally, the computer device 700 further includes a network interface 704, which is connected to the processor 701 and the memory 702 via the bus 703. The network interface 704 enables the computer device 700 to communicate with other devices.
[0170] Optionally, the computer device 700 further includes an input / output (I / O) interface 705, which is connected to the processor 701 and the memory 702 via the bus 703. The processor 701 can receive input commands or data through the I / O interface 705. The I / O interface 705 is used to connect the computer device 700 to input devices, such as a keyboard and a mouse. Optionally, in some possible scenarios, the network interface 704 and the I / O interface 705 are collectively referred to as a communication interface.
[0171] Optionally, the computer device 700 further includes a display 706, which is connected to the processor 701 and the memory 702 via the bus 703. The display 706 can be used to display intermediate results and / or final results generated by the processor 701 executing the above method, such as displaying warning prompts. In one possible implementation, the display 706 is a touch screen display to provide a human-computer interaction interface.
[0172] The bus 703 is any type of communication bus for interconnecting the internal components of the computer device 700, such as a system bus. The embodiments of the present application illustrate the example of interconnecting the aforementioned components within the computer device 700 via the bus 703. Alternatively, the aforementioned components within the computer device 700 may be communicatively connected to each other using other connection methods besides the bus 703, such as interconnecting the aforementioned components within the computer device 700 via a logical interface within the computer device 700.
[0173] The above-mentioned devices can be provided on separate chips, or at least partially or entirely on the same chip. Whether to provide each device independently on different chips or to integrate them on one or more chips often depends on the product design requirements. The embodiments of this application do not limit the specific implementation of the above-mentioned devices.
[0174] The computer device 700 shown in FIG7 is merely exemplary. During implementation, the computer device 700 may also include other components, which are not listed here. The computer device 700 shown in FIG7 can detect ransomware attacks on storage systems by executing all or part of the steps of the methods provided in the above embodiments (e.g., the ransomware attack detection method corresponding to FIG4 ).
[0175] An embodiment of the present application also provides a storage system. For example, Figure 8 is a schematic diagram of the structure of a storage system provided by an embodiment of the present application. As shown in Figure 8, the storage system 800 includes: a controller 801 and a storage medium 802. The storage medium 802 is used to store data. The controller 801 is used to access data in the storage medium and execute all or part of the steps of the method provided in the above embodiment (for example, the ransomware attack detection method corresponding to Figure 4) to realize ransomware attack detection. Optionally, accessing data includes but is not limited to reading data and writing data, for example, the controller 801 reads files from the storage medium and writes bait files to the storage medium. Accessing data may also include modifying data or deleting data, etc.
[0176] Optionally, the storage system is a NAS system.
[0177] An embodiment of the present application further provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed by a processor, the ransomware attack detection method shown in FIG4 is implemented.
[0178] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the ransomware attack detection method shown in FIG4 is implemented.
[0179] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0180] In the embodiments of the present application, the terms “first”, “second” and “third” are used for descriptive purposes only and should not be understood as indicating or implying relative importance.
[0181] In this application, the term "and / or" simply describes an association between related objects, indicating that three possible relationships exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the related objects are in an "or" relationship.
[0182] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0183] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the concepts and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for detecting a ransomware attack, characterized in that: The method comprises: generating one or more decoy files based on file characteristics of files in the storage system; deploying the one or more decoy files in the storage system; Determine whether the storage system is under a ransomware attack based on the operation behavior on the one or more bait files.
2. The method according to claim 1, characterized in that The step of generating one or more decoy files according to the file characteristics of the files in the storage system includes: Determine a target file type according to a first file feature of a file in the storage system, wherein the first file feature includes a file type; Generate a decoy file of the target file type.
3. The method according to claim 2, characterized in that The first file feature also includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
4. The method according to claim 3, characterized in that The storage system includes a plurality of files, and determining the target file type according to a first file feature of the files in the storage system includes: Taking the multiple features included in the first file feature as multiple clustering dimensions, using a clustering algorithm to perform cluster analysis on the multiple files to obtain one or more cluster center files; The file type of the one or more cluster center files is used as the target file type.
5. The method according to any one of claims 2 to 4, characterized in that: The step of generating a decoy file of the target file type comprises: A decoy file of the target file type is generated according to a second file feature of the file in the storage system, wherein the second file feature includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
6. The method according to claim 5, characterized in that The second file feature includes a file name, and the step of generating a decoy file of the target file type according to the second file feature of the file in the storage system includes: The file name of the one or more bait files is determined based on the file name of the first file and / or the file name of the second file in the storage system, wherein the first file is the file with the smallest ASCII code value in the storage system, and the second file is the file with the largest ASCII code value in the storage system.
7. The method according to claim 6, characterized in that Determining the file names of the one or more decoy files according to the file name of the first file and / or the file name of the second file in the storage system includes: determining a first ASCII code threshold value according to the ASCII code value of the file name of the first file, so that the ASCII code value of the file name of the bait file determined according to the first file is less than or equal to the first ASCII code threshold value; and / or, Determine a second ASCII code threshold value according to the ASCII code value of the file name of the second file, so that the ASCII code value of the file name of the bait file determined according to the second file is greater than or equal to the second ASCII code threshold value; The second ASCII code threshold is greater than the first ASCII code threshold.
8. The method according to claim 5, characterized in that The second file feature includes a file size, and the step of generating a decoy file of the target file type according to the second file feature of the file in the storage system includes: The file size of the one or more bait files is determined based on the file size of the third file and / or the file size of the fourth file in the storage system, wherein the third file is the file occupying the smallest space in the storage system, and the fourth file is the file occupying the largest space in the storage system.
9. The method according to claim 8, characterized in that The determining the file size of the one or more decoy files according to the file size of the third file and / or the file size of the fourth file in the storage system includes: determining a first file size threshold according to the file size of the third file, so that the file size of the decoy file determined according to the third file is less than or equal to the first file size threshold; and / or, Determine a second file size threshold according to the file size of the fourth file, so that the file size of the decoy file determined according to the fourth file is greater than or equal to the second file size threshold; The second file size threshold is greater than the first file size threshold.
10. The method according to claim 5, characterized in that The second file feature includes a creation timestamp, and the step of generating a decoy file of the target file type according to the second file feature of the file in the storage system includes: The creation timestamp of the one or more decoy files is determined based on the creation timestamp of the fifth file and / or the creation timestamp of the sixth file in the storage system, wherein the fifth file is the file with the earliest creation time in the storage system and the sixth file is the file with the latest creation time in the storage system.
11. The method according to claim 10, characterized in that The determining the creation timestamp of the one or more decoy files according to the creation timestamp of the fifth file and / or the creation timestamp of the sixth file in the storage system comprises: determining a first timestamp threshold value according to the creation timestamp of the fifth file, so that the creation timestamp of the decoy file determined according to the fifth file is less than or equal to the first timestamp threshold value; and / or, determining a second timestamp threshold according to the creation timestamp of the sixth file, so that the creation timestamp of the decoy file determined according to the sixth file is greater than or equal to the second timestamp threshold; The second timestamp threshold is greater than the first timestamp threshold.
12. The method according to claim 5, characterized in that The second file feature includes a modification timestamp, and the step of generating a decoy file of the target file type according to the second file feature of the file in the storage system includes: The modification timestamp of the one or more decoy files is determined based on the modification timestamp of the seventh file and / or the modification timestamp of the eighth file in the storage system, wherein the seventh file is the file with the earliest modification time in the storage system and the eighth file is the file with the latest modification time in the storage system.
13. The method according to claim 12, characterized in that Determining the modification timestamps of the one or more decoy files according to the modification timestamp of the seventh file and / or the modification timestamp of the eighth file in the storage system includes: determining a third timestamp threshold value according to the modification timestamp of the seventh file, so that the modification timestamp of the decoy file determined according to the seventh file is less than or equal to the third timestamp threshold value; and / or, Determine a fourth timestamp threshold value according to the modification timestamp of the eighth file, so that the modification timestamp of the decoy file determined according to the eighth file is greater than or equal to the fourth timestamp threshold value; The fourth timestamp threshold is greater than the third timestamp threshold.
14. The method according to any one of claims 2 to 13, characterized in that: The target file type includes a text file type, and the step of generating a decoy file of the target file type includes: The file content of the bait file of the text file type is generated by a natural language processing model.
15. The method according to any one of claims 1 to 14, characterized in that: The file name of the bait file carries preset sensitive words.
16. The method according to any one of claims 1 to 15, characterized in that: The determining, based on the operation behavior on the one or more bait files, whether the storage system is under a ransomware attack includes: Acquire an operation sequence of a plurality of continuous operations on a single decoy file, wherein the plurality of continuous operations include one or more of a read operation, a write operation, a rename operation, a create operation or a delete operation; When the operation sequence matches a preset ransomware operation sequence pattern, performing abnormal content detection on the bait file; According to the abnormal content detection result of the bait file, it is determined whether the bait file is attacked by ransomware.
17. The method according to any one of claims 1 to 15, characterized in that: The determining, based on the operation behavior on the one or more bait files, whether the storage system is under a ransomware attack includes: When the proportion of the number of the one or more bait files in which the first abnormal operation occurs exceeds a first threshold, abnormal content detection is performed on the bait files in which the first abnormal operation occurs, where the first abnormal operation includes a write operation and a rename operation; According to the abnormal content detection result of the bait file, it is determined whether the bait file is attacked by ransomware.
18. The method according to claim 16 or 17, characterized in that The bait file is detected for abnormal content, including: Matching the current file content of the bait file with the original file content of the bait file to obtain a modification ratio of the current file content compared to the original file content; The step of determining whether the bait file is attacked by ransomware according to the abnormal content detection result of the bait file includes: If the modification ratio is greater than the modification threshold, it is determined that the bait file is under a ransomware attack.
19. The method according to any one of claims 1 to 18, characterized in that: The determining, based on the operation behavior on the one or more bait files, whether the storage system is under a ransomware attack includes: When the proportion of the bait files in which the second abnormal operation occurs in the one or more bait files exceeds a second threshold, it is determined that the bait files in which the second abnormal operation occurs are subject to a ransomware attack, where the second abnormal operation includes a deletion operation.
20. A ransomware attack detection device, characterized in that: The device comprises: A generating module, used for generating one or more decoy files according to the file characteristics of the files in the storage system; A deployment module, configured to deploy the one or more decoy files in the storage system; A determination module is used to determine whether the storage system is attacked by ransomware based on operation behaviors on the one or more bait files.
21. The device according to claim 20, characterized in that The generating module is used for: Determine a target file type according to a first file feature of a file in the storage system, wherein the first file feature includes a file type; Generate a decoy file corresponding to the target file type.
22. A computer device, characterized in that: include: Processor and memory; The memory is used to store a computer program, wherein the computer program includes program instructions; The processor is used to call the computer program to implement the method according to any one of claims 1 to 19.
23. The computer device according to claim 22, characterized in that The computer device is integrated in the storage system, or the computer device is communicatively connected to the storage system.
24. A storage system, characterized in that: include: A controller and a storage medium, wherein the storage medium is used to store data, and the controller is used to access data in the storage medium, to implement the method according to any one of claims 1 to 19.
25. The storage system according to claim 24, characterized in that: The storage system is a network attached storage NAS system.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the method according to any one of claims 1 to 19 is implemented.
27. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 19.
Citation Information
Patent Citations
Ransomware attack detection method and device and storage system
CN118839331A
Ransomware prevention method and system
CN106096397A
Ransomware early detection method and system based on a bait file
CN113626811A
Ransomware detection method and device and storage medium
CN114139152A
Water transfer paper manufacturing metod
KR102065996B1
