Ransomware attack detection method and device and storage system
By deploying decoy files generated based on file characteristics in the storage system to actively deceive ransomware attackers, it solves the problem of difficulty in detecting and preventing ransomware attacks in existing technologies, and achieves efficient and reliable detection and prevention of ransomware attacks.
Patent Information
- Application Number
- CN202310804236.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-23
- Filing Date
- 2023-06-30
- Publication Date
- 2024-10-25
AI Technical Summary
Existing technologies are difficult to effectively detect and prevent ransomware attacks, making it difficult to recover user data after being attacked. Moreover, commonly used detection methods are passive and cannot catch attackers in a timely manner.
By deploying decoy files in the storage system, the decoy files are used to actively lure ransomware attackers into attacking, thereby achieving effective detection and capture of ransomware attacks. The decoy files are generated based on file characteristics in the storage system, simulating normal files, and improving the reliability of detection. sex and efficiency.
It achieves timely detection and prevention of ransomware attacks, reduces the possibility of normal files being attacked, improves detection reliability and efficiency, reduces false alarm rates, and ensures the security of user data.
Smart Images

Figure CN118839331A_ABST
Abstract
Description
[0001] This application claims priority to Chinese patent application No. 202310469409.7, filed on April 23, 2023, and entitled “A method for preventing ransomware in a NAS system”, the entire contents of which are incorporated by reference into this application. 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 era. Along with this is the development and update of ransomware. These viruses encrypt user data, making it impossible for victims to access their data. At the same time, the viruses will blackmail victims to pay ransom to obtain decryption keys, otherwise the victims will lose their data forever. The emergence of massive data and ransomware is also accompanied by the rise of the data security field. How to reliably detect ransomware attacks to protect user data from ransomware as much as possible is an important security demand in the current storage field. Summary of the invention
[0004] The present application provides a ransomware attack detection method and device, and a storage system, which can improve the reliability of ransomware attack detection.
[0005] In a first aspect, a ransomware attack detection method is provided. The method includes: generating one or more bait files according to file features of files in a storage system. Deploying the one or more bait files in the storage system. Determining whether the storage system is under a ransomware attack according to operation behaviors on the one or more bait files.
[0006] The present application deploys a decoy file in a storage system, and the constructed decoy file actively tricks the attacker into carrying out a ransom attack, thereby achieving effective detection of a ransom attack. Since the decoy file is decoupled from the normal file, the ransom attack on the decoy file will not affect the file, so by deploying the decoy file, the possibility of the normal file being attacked by the ransom can be reduced to a certain extent. In addition, since the decoy file is generated according to the file characteristics of the file in the storage system, the decoy file can well simulate the normal file in the storage system, making it difficult for the attacker to distinguish the decoy file, thereby improving the reliability of the ransom attack detection.
[0007] Optionally, an implementation of generating one or more decoy files according to file features of files in a storage system includes: determining a target file type according to a first file feature of a file in the storage system, the first file feature including a file type, and generating a decoy file of the target file type.
[0008] In the present application, the file type of the bait file is determined based on the file features 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.
[0009] Optionally, the first file feature also includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
[0010] Optionally, the storage system includes multiple files, and an implementation method for determining the target file type according to the first file feature of the files in the storage system includes: using 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.
[0011] 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.
[0012] In one possible case, the second file feature includes a file name, and the implementation method of generating a decoy file of a target file type according to the second file feature of a file in a storage system includes: determining the file name of one or more decoy files according to the file name of a first file and / or the file name of a second file in the storage system. The first file is a file with the smallest ASCII code value of the file name in the storage system, and the second file is a file with the largest ASCII code value of the file name in the storage system.
[0013] Optionally, the implementation method of determining the file name of 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 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 decoy file determined according to the first file is less than or equal to the first ASCII code threshold. And / or, determining a second ASCII code threshold 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 decoy file determined according to 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.
[0014] Among them, the first ASCII code threshold 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 is slightly greater than the ASCII code value of the file name of the first file. In this way, the bait file determined according to the first file is located near the first file when sorted by file name. If the attacker attacks the storage system in the order of the ASCII code values of the file name from small to large, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack. The second ASCII code threshold 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 is slightly less than the ASCII code value of the file name of the second file. In this way, the bait file determined according to the second file is located near the second file when sorted by file name. If the attacker attacks the storage system in the order of the ASCII code values of the file name from large to small, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0015] For example, the ASCII code value of the file name of the bait file determined according to the first file is less than the ASCII code value of the file name of the first file. The ASCII code value of the file name of the bait file determined according to 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 bait files generated by the computer device include a bait file whose ASCII code value of the file name is less than the ASCII code value of the file name of the first file and / or a bait file whose ASCII code value of the file name is 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 a bait 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 bait file. In this implementation, after the generated bait file is deployed to the storage system, when all files in the storage system are sorted by file name, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in the order of file name, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, and at the same time, it can play a certain protective role for normal files.
[0016] Optionally, the file name of the bait file carries preset sensitive words. By adding highly sensitive words to the file name of the bait file, the bait file is more attractive and is more vulnerable to attack than normal files.
[0017] In another possible situation, the second file feature includes file size, and 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 occupying the smallest space in the storage system, and the fourth file being the file occupying the largest space in the storage system.
[0018] Optionally, the implementation method of determining the file size of 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, determining 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. Wherein, the second file size threshold is greater than the first file size threshold.
[0019] Among them, the first file size threshold may 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 according to the third file is located near the third file when sorted by file size. If the attacker attacks the storage system in order from small to large file size, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks. The second file size threshold may 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 according to the fourth file is located near the fourth file when sorted by file size. If the attacker attacks the storage system in order from large to small file size, the bait file can be attacked earlier, thereby improving the detection efficiency of ransomware attacks.
[0020] 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. In this implementation, the one or more bait files generated by the computer device include a bait file whose file size is smaller than the file size of the third file and / or a bait file whose file size is larger than the file size of the fourth file. In this implementation, after the generated bait file is deployed to the storage system, when all 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 being able to provide a certain degree of protection for normal files.
[0021] In another possible situation, the second file feature includes a creation timestamp, and a bait file corresponding to the target file type is generated according to the second file feature of the file in the storage system, including: determining the creation timestamp of one or more bait files according to 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.
[0022] Optionally, the implementation method of determining the creation timestamp of 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 includes: determining a first timestamp threshold 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. 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. Wherein, the second timestamp threshold is greater than the first timestamp threshold.
[0023] Among them, the first timestamp threshold value may be greater than or equal to the creation timestamp of the fifth file, for example, the first timestamp threshold value is slightly greater than the creation timestamp of the fifth file. In this way, the bait file determined according to the fifth file is located near the fifth file when sorted by the creation timestamp. If the attacker attacks the storage system in the order of creation time from early to late, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack. The second timestamp threshold value may be greater than or equal to the creation timestamp of the sixth file, for example, the second timestamp threshold value is slightly greater than the creation timestamp of the sixth file. In this way, the bait file determined according to the sixth file is located near the sixth file when sorted by the creation timestamp. If the attacker attacks the storage system in the order of creation time from late to early, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0024] 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. In this implementation, the one or more bait files generated by the computer device include a bait file whose creation timestamp is smaller than the creation timestamp of the fifth file and / or a bait file whose creation timestamp is larger than the creation timestamp of the sixth file. In this implementation, after the generated bait file is deployed to the storage system, when all the files in the storage system are sorted by creation time, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in the order of creation timestamps, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, and at the same time can provide a certain protection for normal files.
[0025] In another possible situation, the second file feature includes a modification timestamp, and a bait file corresponding to the target file type is generated according to the second file feature of the file in the storage system, including: determining the modification timestamp of one or more bait files according to 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.
[0026] Optionally, the implementation method of determining the modification timestamp of one or more bait 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 according to the modification timestamp of the seventh file, so that the modification timestamp of the bait file determined according to the seventh file is less than or equal to the third timestamp threshold. And / or, determining a fourth timestamp threshold according to the modification timestamp of the eighth file, so that the modification timestamp of the bait file determined according to 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.
[0027] 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 according to the seventh file is located near the seventh file when sorted by the modification timestamp. If the attacker attacks the storage system in the order of modification time from early to late, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack. 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 according to the eighth file is located near the eighth file when sorted by the modification timestamp. If the attacker attacks the storage system in the order of modification time from late to early, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0028] 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. In this implementation, the one or more bait files generated by the computer device include a bait file whose modification timestamp is smaller than the creation timestamp of the seventh file and / or a bait file whose modification timestamp is larger than the creation timestamp of the eighth file. In this implementation, after the generated bait file is deployed to the storage system, when all the files in the storage system are sorted by modification time, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in the order of modification timestamps, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, while being able to provide a certain degree of protection for normal files.
[0029] Optionally, the target file type includes a text file type. An 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.
[0030] In this implementation, the file content of a bait file of text file type 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.
[0031] Optionally, an implementation method for determining whether a storage system is under a ransomware attack based on an operation behavior on one or more bait files includes: obtaining 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, abnormal content detection is performed on the bait file. Based on the abnormal content detection result of the bait file, it is determined whether the bait file is under a ransomware attack.
[0032] In this implementation, by combining multiple ransomware detection with abnormal operation mode and abnormal content detection, the timeliness of bait file capture attack is provided, and the false alarm rate caused by normal user misoperation is reduced.
[0033] Optionally, another implementation of determining whether a storage system is under a ransomware attack based on operation behaviors on one or more bait files includes: when the proportion of bait files with a first abnormal operation in one or more bait files exceeds a first threshold, abnormal content detection is performed on the bait files with the first abnormal operation, where 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.
[0034] 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.
[0035] Optionally, the implementation method of detecting abnormal content of the bait file includes: matching 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. Accordingly, the implementation method of determining whether the bait file is attacked by ransomware based on the abnormal content detection result of the bait file includes: if the modification ratio of the current file content of the bait file compared to the original file content is greater than the modification threshold, determining that the bait file is attacked by ransomware.
[0036] Optionally, another implementation method of determining whether a storage system is under a ransomware attack based on operational behaviors 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, the second abnormal operation includes a deletion operation.
[0037] Optionally, after determining that the storage system is under a ransomware attack, an alarm prompt may also be output, where the alarm prompt is used to indicate that the storage system is under a ransomware attack.
[0038] In this application, after determining that the storage system is under a ransomware attack, 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 securely.
[0039] Optionally, the alarm prompt also includes the deployment location of the bait file attacked by the ransomware in the storage system.
[0040] In a second aspect, a ransomware attack detection device is provided. The device includes multiple functional modules, and the multiple functional modules interact with each other to implement the method in the above first aspect and its various 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 specific implementations.
[0041] In a third aspect, a computer device is provided, comprising: a processor and a memory;
[0042] The memory is used to store a computer program, wherein the computer program includes program instructions;
[0043] The processor is used to call the computer program to implement the method in the above-mentioned first aspect and its various embodiments.
[0044] Optionally, the computer device is integrated into a storage system, or the computer device is communicatively connected to the storage system.
[0045] In a fourth aspect, a storage system is provided, comprising: 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, and execute the method in the first aspect and its respective embodiments. Wherein, accessing data includes reading data and writing data. Optionally, accessing data also includes modifying data or deleting data, etc.
[0046] Optionally, the storage system is a network attached storage (NAS) system.
[0047] 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.
[0048] In a sixth aspect, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method in the above-mentioned first aspect and its various embodiments.
[0049] In a seventh aspect, a chip is provided, the chip comprising a programmable logic circuit and / or program instructions, and when the chip is running, the method in the above-mentioned first aspect and its various embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a schematic diagram of an application architecture provided by an embodiment of the present application;
[0051] Figure 2 This is another application architecture diagram provided by an embodiment of the present application;
[0052] Figure 3 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0053] Figure 4 It is a flowchart of a ransomware attack detection method provided by an embodiment of the present application;
[0054] Figure 5It is a schematic diagram of cluster analysis provided in an embodiment of the present application;
[0055] Figure 6 It is a structural schematic diagram of a ransomware attack detection device provided in an embodiment of the present application;
[0056] Figure 7 It is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application;
[0057] Figure 8 It is a structural diagram of a storage system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0059] Ransomware attacks are malicious acts that make the victim's computer or specific files unavailable or unreadable. Only after the victim pays the ransom can they obtain the key used to restore the computer or decrypt the encrypted files. After a ransomware attack, personal data and documents may be lost, or even the business operation of the enterprise may be suspended and unsustainable. Building an anti-ransomware system to achieve real-time security protection of user data is an important technical means urgently needed in the current market, with great market prospects and commercial value. The key to building an anti-ransomware system is how to detect ransomware attacks in a timely and effective manner.
[0060] At present, the commonly used ransomware attack detection methods usually target the user data that has been attacked, that is, the user data has been tampered with or encrypted, and the detection is based on the attacked user data. This detection method cannot protect the integrity and security of user data and is a passive detection technology. How to build an active defense mechanism and actively capture attackers is an important development trend for current storage systems to protect data security.
[0061] 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, which is used to trick attackers into performing 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 according to the file characteristics of the files in the storage system, and then the generated bait files are deployed in the storage system, and further according to the operation behavior for 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 performing ransomware attacks, thereby achieving effective detection of ransomware attacks. Since the bait files are decoupled from the files, the ransomware attacks on the bait files will not affect the normal files, so 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 the bait files difficult for attackers to distinguish, thereby improving the reliability of ransomware attack detection.
[0062] Optionally, the file features of the 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. One or more bait files are generated according to the file features of the files in the storage system, including: determining one or more of the file type, file name, file size, creation timestamp and modification timestamp of the bait file according to the file features of the files in the storage system. For the sake of convenience of explanation, the present application refers to the file features used to determine the file type in the above-mentioned file features as the first file features, and the file features used to determine the file name, file size, creation timestamp and modification timestamp in the above-mentioned file features as the second file features.
[0063] In some possible implementations, the file type of the decoy file is determined based on a first file feature of a file in the storage system. The first file feature includes the file type. Optionally, the first file feature also includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
[0064] In an embodiment of the present application, the file type of the bait file is determined according to the 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 the bait file. In addition, compared with the scheme of pre-setting the bait file type, since the bait file of a fixed type is easier to be identified by the ransomware virus, once the ransomware virus chooses not to encrypt the file 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 according to the files actually stored in the storage system, that is, 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, and the reliability of ransomware attack detection is improved.
[0065] In some possible implementations, the file name of the decoy file is determined according to the file name of the file in the storage system. Optionally, the one or more decoy files include a decoy file whose file name has an ASCII code value less than the ASCII code value of the file name of the first file and / or a decoy file whose file name has an ASCII code value greater than the ASCII code value of the file name of the second file. The first file is the file with the smallest ASCII code value of the file name in the storage system. The second file is the file with the largest ASCII code value of the file name in the storage system.
[0066] In the embodiment of the present application, the file name of the decoy file is determined according to the file name of the normal file in the storage system. After the decoy file with the file name designed in the above manner is deployed to the storage system, when all the files in the storage system are sorted by file name, the decoy file is always before or after the normal file. In this way, when the attacker traverses the storage system according to the order of file names, it is easier to attack the decoy file, thereby improving the detection efficiency of the ransomware attack and protecting the normal files to a certain extent.
[0067] In some possible implementations, the file size of the decoy file is determined according to the file size of the file in the storage system. Optionally, the one or more decoy files include a decoy file whose file size is smaller than the file size of the third file and / or a decoy file whose file size is larger than the file size of the fourth file. The third file is the file that occupies the smallest space in the storage system. The fourth file is the file that occupies the largest space in the storage system.
[0068] In the embodiment of the present application, the file size of the decoy file is determined according to the file size of the normal file in the storage system. After the decoy file with the file size designed in the above manner is deployed to the storage system, when all the files in the storage system are sorted by file size, the decoy file is always before or after the normal file. In this way, when the attacker traverses the storage system in the order of file size, it is easier to attack the decoy file, thereby improving the detection efficiency of the ransomware attack and protecting the normal files to a certain extent.
[0069] In some possible implementations, the creation timestamp of the decoy file is determined according to the creation timestamps of the files in the storage system. Optionally, the one or more decoy files include a decoy file whose creation timestamp is less than the creation timestamp of the fifth file and / or a decoy file whose creation timestamp is greater than the creation timestamp of the sixth file. The fifth file is the file with the earliest creation time in the storage system. The sixth file is the file with the latest creation time in the storage system.
[0070] In the embodiment of the present application, the creation timestamp of the decoy file is determined according to the creation timestamp of the normal file in the storage system. After the decoy file with the creation timestamp designed in the above manner is deployed to the storage system, when all the files in the storage system are sorted by creation time, the decoy file is always before or after the normal file. In this way, when the attacker traverses the storage system according to the creation timestamp order, it is easier to attack the decoy file, thereby improving the detection efficiency of the ransomware attack and protecting the normal files to a certain extent.
[0071] In some possible implementations, the modification timestamp of the decoy file is determined according to the modification timestamps of the files in the storage system. Optionally, the one or more decoy files include a decoy file whose modification timestamp is less than the creation timestamp of the seventh file and / or a decoy file whose modification timestamp is greater than the creation timestamp of the eighth file. The seventh file is the file with the earliest modification time in the storage system. The eighth file is the file with the latest modification time in the storage system.
[0072] In the embodiment of the present application, the modification timestamp of the bait file is determined according to the modification timestamp of the normal file in the storage system. After the bait file with the modification timestamp designed in the above manner is deployed to the storage system, when all the files in the storage system are sorted by modification time, the bait file is always before or after the file. In this way, when the attacker traverses the storage system according to the modification timestamp order, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack and protecting the file to a certain extent.
[0073] Compared with the scheme in which the placement of the bait file is fixed, once the ransomware successfully identifies the placement of the bait file, it may skip the bait file and only perform ransom attacks on other files. Then the ransomware detection scheme based on the bait file will fail, resulting in missed detection. The embodiment of the present application analyzes the traversal access priority under various conditions 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 file respectively. In this way, there is no need to set the placement of the bait file in a fixed manner, and the bait file can be included in the sorting of normal files, and the bait file can be traversed preferentially in different sorting conditions, thereby increasing the possibility of the bait file being attacked and improving the efficiency of ransomware attack detection.
[0074] Optionally, the file type can be divided into a text file type, a video file format type, an audio file format type, a picture 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 division of file types. For example, in the embodiment of the present application, the file suffix type can be used as the file type.
[0075] In some possible implementations, for a bait file of a 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 NLP model corresponds 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 also be used as inputs to the NLP model to obtain file content that matches these file features.
[0076] In the embodiment of the present application, the file content of the bait file of the text file type is generated by the NLP model, so that the text content of the bait file has normal semantics, and then the attacker cannot distinguish the normal file and the bait file 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 the detection of ransom attacks 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 initially screened and filtered for attack targets, 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 the detection of ransom attacks based on the bait file.
[0077] The technical solution of the present application is described in detail below from multiple angles such as architecture, method flow, virtual device, hardware device, etc.
[0078] The following is an example of the system involved in the embodiment of the present application.
[0079] The ransomware attack detection method provided in the embodiment of the present application can be applied to a storage product having a storage system, that is, to provide a storage product with anti-ransomware characteristics. Or it can also be applied to an external security all-in-one product, that is, to provide a service product with anti-ransomware characteristics.
[0080] For example, Figure 1 and Figure 2 They are schematic diagrams of an application architecture provided by an embodiment of the present application. Figure 1 or Figure 2 As shown in FIG. 1 , 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. Among them, the file storage module is deployed in the storage system. Figure 1 In the application architecture shown in Figure 1, the ransomware attack detection system is deployed in the storage system. Figure 2 In the application architecture shown, the ransomware attack detection system is deployed in an external device independent of the storage system.
[0081] The file storage module is used to provide file storage services to users. Figure 1 or Figure 2 As shown, the file storage module includes one or more file systems. Each file system can store n files, where n is a positive integer.
[0082] The ransom attack detection system is used to execute the ransom attack detection method provided in the embodiment of the present application. Among them, the bait design module is used to scan the files in the file storage module and generate a bait file according to the file characteristics of the file. For specific functions, refer to the following step 401. The bait placement module is used to deploy the bait file in the file system of the file storage module. For specific functions, refer to the following step 402. The ransom detection module is used to detect the operation behavior against the bait file and determine whether the storage system is attacked by ransom. For specific functions, refer to the following step 403.
[0083] Alternatively, see Figure 1 or Figure 2 The ransomware attack detection system further includes an alarm module. The alarm module is used to output an alarm prompt after the storage system is attacked by ransomware. For specific function implementation, refer to the following step 404. Figure 2 In the application architecture shown, the alarm module can output an alarm prompt to the storage system, and the storage system finally issues an alarm to inform the operation and maintenance personnel that it is under a ransomware attack. Alternatively, the ransomware attack detection system directly issues an alarm through the alarm module to inform the operation and maintenance personnel that the protected storage system is under a ransomware attack.
[0084] Optionally, in Figure 1 In the application architecture shown, the ransomware attack detection system can be deployed in the storage system in a container deployment manner. Alternatively, the ransomware attack detection system can also be deployed in the storage system in a traditional deployment manner, such as deploying an application in the storage system in the form of a plug-in or script, and the storage system runs the application through the operating system to implement ransomware attack detection.
[0085] Optionally, in Figure 2 In the application architecture shown, 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., so as to realize 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 by overwriting. 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.
[0086] 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 usually composed of hardware devices and software. A NAS system can provide efficient storage and data sharing functions. A NAS system can play the role of a file server, allowing users to access shared files stored on the NAS system through the network. The 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.
[0087] Optionally, the storage system in the embodiment of the present application may be a centralized storage system, or may be a distributed storage system.
[0088] For example, Figure 3 This is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 3 As shown in FIG. 1 , the application scenario includes a host and a storage system. The host is a device used by a 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 Figure 1 The storage system shown or Figure 2 The storage system shown, Figure 3 Storage system is the Figure 1 The storage system shown is used as an example for description.
[0089] The following is an illustration of the method flow involved in the embodiments of the present application.
[0090] For example, Figure 4 1 is a flow chart of a method for detecting a ransomware attack provided in an embodiment of the present application. The method is applied to a computer device, which may be any device with computing capabilities. The computer device may be, for example, Figure 1 Storage system as shown, or Figure 2 external devices as shown, or as Figure 3 The storage system shown. Figure 4As shown, the method includes but is not limited to the following steps 401 to 403. Optionally, the method further includes the following step 404.
[0091] Step 401: Generate one or more decoy files according to the file characteristics of the files in the storage system.
[0092] 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 orders 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, respectively, 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 some files in the file system, such as only selecting files under the directory (hottest directory) that the user has recently accessed in the file system for scanning.
[0093] Optionally, the file feature includes one or more of file size, file name, file type, creation timestamp, or modification timestamp.
[0094] Optionally, the implementation process of step 401 includes the following steps 4011 to 4012.
[0095] In step 4011, a target file type is determined according to a first file feature of a file in a storage system, where the first file feature includes a file type.
[0096] 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.
[0097] 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 of determining the target file type according to 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 the file type and the file size. Figure 5 Schematic diagram of a cluster analysis provided in the embodiment of the present application. Figure 5 As shown, the horizontal axis and the vertical axis represent a clustering dimension respectively, 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 two file features, file type and file size, respectively, and each file can be represented as a point in the coordinate system. A total of 7 files are shown in the figure, represented by a, b, c, d, e, f and g respectively, where the point (cluster center) located at the center of the distribution area of the multiple points represents the cluster center file, that is, file d is the cluster center file. The clustering algorithm used here includes but is not limited to the K-nearest neighbor (KNN) clustering algorithm or the K-means (K-means) clustering algorithm.
[0098] 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 the bait files corresponding to the multiple target file types are respectively designed, or one of the file types can be randomly selected as the target file type.
[0099] In step 4012, a bait file of the target file type is generated.
[0100] 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 according to the second file feature of the file in the storage system. The second file feature includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp. Specifically, generating a bait file includes determining the file attributes of the bait file, such as the file type, file name, file size, creation timestamp, modification timestamp, and file content. The following embodiments of the present application respectively describe the implementation methods for determining these file attributes of the bait file.
[0101] 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. Then the implementation method of the above 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 the first ASCII code threshold value 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 value. And / or, determine the second ASCII code threshold value 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 value. Wherein, the second ASCII code threshold value is greater than the first ASCII code threshold value.
[0102] 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 bait file determined according to the first file is located near the first file when sorted by file name. If the attacker attacks the storage system in the 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 the ransomware attack.
[0103] 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 bait file determined according to the second file is located near the second file when sorted by file name. If the attacker attacks the storage system in descending order of the ASCII code values of the file names, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0104] For example, the ASCII code value of the file name of the bait file determined according to the first file is less than the ASCII code value of the file name of the first file. The ASCII code value of the file name of the bait file determined according to 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 bait files generated by the computer device include a bait file whose ASCII code value of the file name is less than the ASCII code value of the file name of the first file and / or a bait file whose ASCII code value of the file name is 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 a bait 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 bait file. In this implementation, after the generated bait file is deployed to the storage system, when all files in the storage system are sorted by file name, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in the order of file name, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, and at the same time, it can play a certain protective role for normal files.
[0105] Optionally, the file name of the bait file carries preset sensitive words. The preset sensitive words are easy-to-attack sensitive words, including but not limited to "private", "cash", "bill", etc. The preset sensitive words can be set according to expert experience or historical attack situations. By adding highly sensitive words to the file name of the bait file, the bait file is more attractive and is more vulnerable to attack than normal files.
[0106] The second implementation 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. Then the implementation of the above step 4012 includes: determining the file size of one or more bait files based on the file size of the third file and / or the file size of the 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. Specifically, the computer device can determine the 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 the 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.
[0107] 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. 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 the ransomware attack.
[0108] 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. In this way, the bait file determined according to 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 the ransomware attack.
[0109] 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. In this implementation, the one or more bait files generated by the computer device include a bait file whose file size is smaller than the file size of the third file and / or a bait file whose file size is larger than the file size of the fourth file. In this implementation, after the generated bait file is deployed to the storage system, when all 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 being able to provide a certain degree of protection for normal files.
[0110] 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 according to the creation time of the file in the storage system. Then the implementation method of the above step 4012 includes: determining the creation timestamp of one or more bait files according to 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 the first timestamp threshold according to the creation timestamp of the fifth file, so that the creation timestamp of the bait file determined according to the fifth file is less than or equal to the first timestamp threshold. And / or, determine the second timestamp threshold according to the creation timestamp of the sixth file, so that the creation timestamp of the bait file determined according to 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.
[0111] 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. In this way, the decoy file determined according to the fifth file is located near the fifth file when sorted by the creation timestamp. If the attacker attacks the storage system in the order of creation time from early to late, the decoy file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0112] 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. In this way, the decoy file determined according to the sixth file is located near the sixth file when sorted by the creation timestamp. If the attacker attacks the storage system in the order of creation time from late to early, the decoy file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0113] 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. In this implementation, the one or more bait files generated by the computer device include a bait file whose creation timestamp is smaller than the creation timestamp of the fifth file and / or a bait file whose creation timestamp is larger than the creation timestamp of the sixth file. In this implementation, after the generated bait file is deployed to the storage system, when all the files in the storage system are sorted by creation time, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in the order of creation timestamps, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, and at the same time can provide a certain protection for normal files.
[0114] 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 according to the modification time of the file in the storage system. Then the implementation method of the above step 4012 includes: determining the modification timestamp of one or more bait files according to 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 the third timestamp threshold value according to the modification timestamp of the seventh file, so that the modification timestamp of the bait file determined according to the seventh file is less than or equal to the third timestamp threshold value. And / or, determine the fourth timestamp threshold value according to the modification timestamp of the eighth file, so that the modification timestamp of the bait file determined according to the eighth file is greater than or equal to the fourth timestamp threshold value. Among them, the fourth timestamp threshold value is greater than the third timestamp threshold value.
[0115] 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. In this way, the bait file determined based on the seventh file is located near the seventh file when sorted by modification timestamp. If an attacker attacks the storage system in the order of modification time from early to late, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0116] 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. In this way, the bait file determined according to the eighth file is located near the eighth file when sorted by the modification timestamp. If the attacker attacks the storage system in the order of modification time from late to early, the bait file can be attacked earlier, thereby improving the detection efficiency of the ransomware attack.
[0117] 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. In this implementation, the one or more bait files generated by the computer device include a bait file whose modification timestamp is smaller than the creation timestamp of the seventh file and / or a bait file whose modification timestamp is larger than the creation timestamp of the eighth file. In this implementation, after the generated bait file is deployed to the storage system, when all the files in the storage system are sorted by modification time, the bait file is always before or after the normal file. In this way, when the attacker traverses the storage system in the order of modification timestamps, it is easier to attack the bait file, thereby improving the detection efficiency of the ransomware attack, while being able to provide a certain degree of protection for normal files.
[0118] The fifth implementation is used to generate the file content of the bait file. Optionally, the target file type includes a text file type, and the computer device can generate the file content of the bait file of the text file type through the NLP model.
[0119] 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 of which corresponds 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 also 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 bait file of text file type 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.
[0120] Optionally, a video library, an audio library and a picture library may be pre-stored in the computer device. 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 databases respectively.
[0121] Step 402: deploy the one or more decoy files in the storage system.
[0122] Optionally, the one or more bait files are deployed in one or more file systems mounted on the storage system. For example, all generated bait files can be deployed in each file system, or the generated bait files can be distributed and deployed in multiple file systems. The bait file can be deployed in the root directory of the file system, or can also be deployed in any subdirectory of the file system. The embodiments of the present application do not limit the deployment method and deployment location of the bait file in the storage system.
[0123] Step 403: Determine whether the storage system is under a ransomware attack based on the operation behavior on the one or more bait files.
[0124] Since normal users may perform misoperations on the bait files in the storage system, such as reading or writing the bait files, 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 bait files are triggered. Based on this concept, the embodiments of the present application provide the following three implementation methods to determine whether the operation on the bait files is a ransomware attack.
[0125] In a first possible implementation, the implementation process of step 403 includes: obtaining an operation sequence of multiple continuous operations for a single bait file, wherein the multiple 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 ransom operation sequence pattern, abnormal content detection is performed on the bait file. Based on the abnormal content detection result for the bait file, it is determined whether the bait file is under a ransomware attack.
[0126] Optionally, the ransom operation sequence can be obtained based on the actual ransom behavior of the ransomware. A ransom behavior usually 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. The ransom operation sequence can be generated and stored in advance based on these possible ransom behaviors. The operation sequence of multiple consecutive operations is consistent with the preset ransom operation sequence pattern match, and the operation sequence can include any one of the preset ransom operation sequences.
[0127] In this implementation, by combining multiple ransomware detection with abnormal operation mode and abnormal content detection, the bait file capture attack is timely and the false alarm rate caused by normal user misoperation is reduced. Alternatively, when the operation sequence of multiple consecutive operations on the bait file matches the preset ransomware operation sequence pattern, the computer device can also directly determine that the bait file is under ransomware attack.
[0128] The second possible implementation method is that the implementation process of the above step 403 includes: 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. According to the abnormal content detection result for 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.
[0129] In this implementation, by combining multiple ransomware detection with abnormal touch and abnormal content detection, the bait file capture attack is timely and the false alarm rate caused by normal user misoperation is reduced. Alternatively, when the proportion of bait files with the first abnormal operation among all bait files deployed in the storage system exceeds the first threshold, the computer device can also directly determine that the bait file involved is under ransomware attack.
[0130] The first possible implementation or the second possible implementation, the implementation method of detecting abnormal content of the bait file, includes: matching 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 under a ransomware attack. Then it is determined that the storage system is under a ransomware attack. Optionally, a string matching algorithm or an edit distance algorithm can be used to match the current file content of the bait file with the original file content. If the modification ratio exceeds 10%, it is determined that these bait files are under a ransomware attack, and then it is determined that the storage system is under a ransomware attack.
[0131] In a third possible implementation, the implementation process of step 403 includes: when the proportion of the number of bait files with the second abnormal operation among all the bait files deployed in the storage system exceeds the second threshold, it is determined that the bait files with the second abnormal operation are under a ransomware attack, and then the storage system is determined to be under a ransomware attack. The second abnormal operation includes a deletion operation. For example, when the number of bait files with the "deletion operation" exceeds 10% of the total number of bait files deployed in the storage system, it is determined that the storage system is under a ransomware attack.
[0132] Step 404: After determining that the storage system is attacked by ransomware, output an alarm prompt.
[0133] The warning prompt is used to indicate that the storage system is attacked by ransomware. Optionally, the warning prompt also includes the deployment location of the bait file attacked by ransomware in the storage system. The deployment location can be represented by "file system + file path name + file name".
[0134] 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.
[0135] 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 securely.
[0136] In the ransom attack detection method provided in the embodiment of the present application, one or more bait files are generated according to the file characteristics of the files in the storage system, and then the generated bait files are deployed in the storage system, and further, it is determined whether the storage system is under a ransom attack according to the operation behavior for the deployed bait files. The embodiment of the present application deploys bait files in the storage system, and the constructed bait files actively trick attackers into carrying out ransom attacks, thereby achieving effective detection of ransom attacks. Since the bait files are decoupled from normal files, the ransom 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 ransom can be reduced to a certain extent. In addition, since the bait files are generated according to the file characteristics of normal files in the storage system, the bait files can well simulate the normal files of users in the storage system, making it difficult for attackers to distinguish the bait files, thereby improving the reliability of ransom attack detection.
[0137] The sequence of the steps of the ransom 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 situation. Any technician familiar with the technical field can easily think of the method of change within the technical scope disclosed in this application, which should be covered within the scope of protection of this application. For example, based on the inventive concept of the embodiment of the present application, the method of deploying bait to induce attack 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 idea of the present application can be used to design baits that fit the normal environment and perform a variety of attack detections including ransom attacks. For example, the Internet of Things is prone to distributed denial of service (DDoS) attacks. By designing a node that fits the normal environment as a bait, some access information of the node can be monitored. If a large-scale abnormal access pattern occurs, a DDoS attack occurs. The embodiments of the present application will not be repeated here.
[0138] The following is an example of a virtual device in an embodiment of the present application.
[0139] For example, Figure 6 Schematic diagram of a ransomware attack detection device provided in an embodiment of the present application. Figure 6 As shown, the ransom 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 ransom attack detection device 600 also includes an output module 604. The ransom attack detection device 600 can be specifically used to perform the following steps: Figure 4For 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.
[0140] The generating module 601 is used to generate one or more bait files according to the file characteristics of the files in the storage system.
[0141] The deployment module 602 is used to deploy one or more decoy files in the storage system.
[0142] The determination module 603 is used to determine whether the storage system is under a ransomware attack based on the operation behavior on one or more bait files.
[0143] Optionally, the generating module 601 is used to: determine the 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 bait file of the target file type.
[0144] Optionally, the first file feature also includes one or more of a file name, a file size, a creation timestamp, and a modification timestamp.
[0145] 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.
[0146] 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.
[0147] 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.
[0148] 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.
[0149] Optionally, the second file feature includes file size, and 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 being the file occupying the smallest space in the storage system, and the fourth file being the file occupying the largest space in the storage system.
[0150] Optionally, generation module 601 is used to: determine a first file size threshold based on the file size of a 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 a 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.
[0151] Optionally, the second file feature includes a creation timestamp, and a generation module 601 is used to determine the creation timestamp of one or more bait files based on the creation timestamp of a fifth file and / or a creation timestamp of a 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.
[0152] 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.
[0153] Optionally, the second file feature includes a modification timestamp, and a 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 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.
[0154] 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.
[0155] Optionally, the target file type includes a text file type, and the generation module 601 is used to: generate file content of a bait file of the text file type through a natural language processing model.
[0156] Optionally, the file name of the bait file carries preset sensitive words.
[0157] Optionally, determination module 603 is used to: obtain an operation sequence of multiple consecutive operations on a single bait file, the multiple consecutive operations including 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.
[0158] Optionally, 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, the first abnormal operation including 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.
[0159] Optionally, 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 a modification ratio of the current file content compared to the original file content; if the modification ratio is greater than a modification threshold, determine that the bait file is subject to a ransomware attack.
[0160] 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.
[0161] Optionally, the output module 604 is used to output an alarm prompt after determining that the storage system is attacked by ransomware, and the alarm prompt is used to indicate that the storage system is attacked by ransomware.
[0162] Optionally, the alarm prompt also includes the deployment location of the bait file attacked by the ransomware in the storage system.
[0163] Regarding the device 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.
[0164] The following is an illustration of the basic hardware structure involved in the embodiments of the present application.
[0165] For example, Figure 7 Schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application. Figure 7 As shown, the computer device 700 includes a processor 701 and a memory 702 , and the memory 701 and the memory 702 are connected via a bus 703 . Figure 7 The processor 701 and the memory 702 are described as being independent of each other. Optionally, the processor 701 and the memory 702 are integrated together. The computer device 700 may be, for example, a storage system. The computer device 700 is integrated in the storage system, or the computer device 700 is communicatively connected to the storage system.
[0166] The memory 702 is used to store computer programs, including operating systems and program codes. The 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, register, optical disk storage, optical disk storage, magnetic disk or other magnetic storage devices.
[0167] The processor 701 is a general-purpose processor or a special-purpose 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 above-mentioned ransomware attack detection method provided in the embodiment of the present application.
[0168] 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.
[0169] 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, etc. via the I / O interface 705. The I / O interface 705 is used for the computer device 700 to connect input devices, such as keyboards, mice, etc. Optionally, in some possible scenarios, the above-mentioned network interface 704 and the I / O interface 705 are collectively referred to as communication interfaces.
[0170] 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, etc. In a possible implementation, the display 706 is a touch display screen to provide a human-computer interaction interface.
[0171] The bus 703 is any type of communication bus for interconnecting the internal devices of the computer device 700. For example, a system bus. The embodiment of the present application takes the interconnection of the above-mentioned devices inside the computer device 700 through the bus 703 as an example. Optionally, the above-mentioned devices inside the computer device 700 are connected to each other in a communication manner other than the bus 703, for example, the above-mentioned devices inside the computer device 700 are interconnected through a logical interface inside the computer device 700.
[0172] The above devices may be arranged on independent chips, or at least partially or completely on the same chip. Whether to arrange each device independently on different chips or to integrate them on one or more chips often depends on the needs of product design. The embodiments of the present application do not limit the specific implementation form of the above devices.
[0173] Figure 7 The computer device 700 shown is merely exemplary. During implementation, the computer device 700 may further include other components, which are not listed one by one herein. Figure 7 The computer device 700 shown may execute the method provided by the above embodiment (for example, Figure 4 The corresponding ransomware attack detection method) can be used to detect ransomware attacks on the storage system.
[0174] The present application also provides a storage system. For example, Figure 8 Schematic diagram of a storage system provided by an embodiment of the present application. Figure 8As shown, 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 the method provided in the above embodiment (for example, Figure 4 The ransom attack detection method) can be implemented by performing all or part of the steps of the corresponding ransom attack detection method. Optionally, accessing data includes but is not limited to reading data and writing data, for example, the controller 801 reads a file from a storage medium and writes a bait file to a storage medium. Accessing data can also include modifying data or deleting data, etc.
[0175] Optionally, the storage system is a NAS system.
[0176] The 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 following is implemented: Figure 4 Ransomware attack detection method shown.
[0177] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, Figure 4 Ransomware attack detection method shown.
[0178] A person 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 instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0179] 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.
[0180] The term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0181] 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 relevant laws, regulations and standards of relevant countries and regions.
[0182] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope 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
Cited By
Ransomware detection method and device, storage medium and computer program product
CN119720203A
Ransomware attack detection method and apparatus, and storage system
EP4693084A1
Ransomware attack detection method and apparatus, and storage system
WO2024222214A1
