Method, system, electronic device and storage medium for searching virus files
By generating alarm rules and virus comparison characteristics, the terminal conducts preliminary screening and conducts full comparison, solving the problems of large and low-efficiency terminal resource consumption and low efficiency in the existing technology, and achieving fast and accurate virus file screening and efficient virus scanning.
Patent Information
- Application Number
- CN202311836124.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-12-28
Smart Images

Figure CN117851344B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of Internet data stream processing and real-time alarm, and in particular to a method, system, electronic device and storage medium for searching virus files. Background Art
[0002] A large amount of file transfer is usually required between terminals and between terminals and servers, and viruses are usually spread through file transfer. Therefore, how to prevent virus propagation has become an issue that requires high attention in the current Internet data flow processing process.
[0003] Usually, the transmitted files are screened through virus signature database files to filter out virus files. The virus signature database files commonly used in daily life are as large as tens of GB. If the terminal directly calls the virus signature database, file download or update is very time-consuming, which will also affect the performance of the terminal.
[0004] Therefore, the solution provided by the prior art consumes a lot of terminal resources and is inefficient. Summary of the invention
[0005] In view of this, the embodiments of the present disclosure provide a method and system for searching for virus files, which can reduce terminal resource consumption and improve work efficiency.
[0006] In a first aspect, the present disclosure provides a method for searching virus files, which adopts the following technical solution:
[0007] The rule management platform generates alarm rules and virus comparison features based on pre-stored virus file features, and sends the alarm rules to the terminal;
[0008] The terminal uses the alarm rule to preliminarily screen its existing files, obtains the target file, and sends it to the rule management platform;
[0009] The rule management platform determines a target virus file from the target file based on the virus comparison feature.
[0010] Specifically, the generating of warning rules based on virus file features includes:
[0011] According to a preset method, characters that meet a preset number are extracted from the md5 value of the virus file as target characters;
[0012] The warning rule is generated according to the memory space value occupied by the virus file and the target character.
[0013] Specifically, the terminal uses the alarm rule to preliminarily screen its own existing files to obtain the target file, including:
[0014] When the md5 value of an existing file includes the target character, and the difference between the memory space value occupied by the file and the memory space value occupied by the virus file is within a preset range, the file is used as the target file.
[0015] Specifically, the rule management platform determines the target virus file from the target file based on the virus comparison feature, including:
[0016] Compare the md5 value of the virus file remaining after extraction with the md5 value of the target file in turn;
[0017] When the comparison results are all consistent, the target file is used as the target virus file.
[0018] Specifically, sending the alarm rule to the terminal includes:
[0019] The alarm rule is sent to the terminal by the rule management platform according to a preset sending time; or,
[0020] The terminal obtains the information from the rule management platform according to a preset acquisition time.
[0021] Specifically, the method further includes:
[0022] The terminal determines whether the newly acquired alarm rule is the same as the original alarm rule. If they are the same, the content of the original alarm rule is updated according to the content of the newly acquired alarm rule, and the version number is updated at the same time;
[0023] If they are different, add a new alarm rule or use the new alarm rule to replace the original alarm rule.
[0024] Specifically, the method further includes:
[0025] The rule management platform determines an alarm processing mechanism corresponding to the target virus file according to a preset alarm mechanism; the alarm processing mechanism includes isolating the target virus file and / or issuing a prompt alarm.
[0026] In a second aspect, the embodiment of the present disclosure also provides a system for searching virus files, which adopts the following scheme:
[0027] A rule management platform is used to generate alarm rules and virus comparison features based on pre-stored virus file features; and send the alarm rules to the terminal; based on the virus comparison features, determine the target virus file from the target file sent by the terminal;
[0028] The terminal is used to use the alarm rule to perform a preliminary screening on its own existing files, obtain the target file, and send it to the rule management platform.
[0029] In a third aspect, the present disclosure also provides an electronic device, which adopts the following technical solution:
[0030] The electronic device comprises:
[0031] at least one processor; and,
[0032] a memory communicatively connected to the at least one processor; wherein,
[0033] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the above methods for searching for virus files.
[0034] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute any of the above-mentioned methods for searching for virus files.
[0035] The method provided by the disclosed embodiment includes: the rule management platform generates alarm rules and virus comparison features based on pre-stored virus file features; and sends the alarm rules to the terminal; the terminal uses the alarm rules to preliminarily screen its existing files, obtains the target file, and sends it to the rule management platform; the rule management platform determines the target virus file from the target file based on the virus comparison features. This method generates alarm rules and transmits them between the rule management platform and the terminal. Since the alarm rules are obtained by refining and compressing, the transmission speed is fast and the space occupied is small. The first virus file screening is performed by using the alarm rules, and then the second virus file screening is achieved by using the virus comparison features to perform a full comparison. The two-screening method can speed up the screening speed. Therefore, this solution can reduce terminal resource consumption and improve work efficiency.
[0036] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 A flowchart of a method for searching virus files provided by an embodiment of the present disclosure;
[0039] Figure 2 A system structure diagram for searching virus files provided in an embodiment of the present disclosure;
[0040] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0042] It should be clear that the following embodiments of the present disclosure are described by specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other in the absence of conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0043] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0044] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0045] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0046] like Figure 1 As shown, an embodiment of the present invention provides a method for searching virus files, which is applied to a system consisting of a rule management platform and a terminal. The rule management platform can be on a device other than the terminal, such as a server. The specific process is as follows:
[0047] Step S11, the rule management platform generates an alarm rule and a virus comparison feature based on the pre-stored virus file feature, and sends the alarm rule to the terminal;
[0048] Step S12, the terminal uses the alarm rule to preliminarily screen its existing files, obtains the target file, and sends it to the rule management platform;
[0049] Step S13: the rule management platform determines a target virus file from the target files based on the virus comparison feature.
[0050] The specific method of generating alarm rules based on virus file features is as follows:
[0051] According to the preset method, characters that meet the preset number are extracted from the md5 value of the virus file as target characters; the alarm rule is generated according to the memory space value occupied by the virus file and the target character. The preset method can be to extract consecutive characters from the md5 value in sequence, or to extract characters at intervals of a certain number. The preset number can be set according to actual needs, for example, 5 md5 characters are taken. In general, the resource space occupied by virus files is larger or smaller, which is obviously different from normal files. Therefore, the size of the space occupied by virus files can be used as one of the features for generating alarm rules. Through this process, the size of the space occupied by the alarm rules can be greatly reduced, so that when transmitting between the server and the terminal, fast transmission and no waste of resources are guaranteed.
[0052] Specifically, the terminal uses the alarm rule to preliminarily screen its own existing files to obtain the target file, including:
[0053] When the md5 value of the existing file in the terminal includes the target character, and the difference between the memory space value occupied by the file and the memory space value occupied by the virus file is within a preset range, the file is used as the target file. In this step, the md5 value of the existing file in the terminal includes the target character, indicating that the file is likely to be a virus file, and the space occupied by the file is similar to the space occupied by the virus file, so it can be further determined that the file is a virus file. By performing preliminary screening through this method, the initial screening operation can be completed quickly because the amount of information to be compared is small.
[0054] Specifically, the rule management platform determines the target virus file from the target file based on the virus comparison feature, including:
[0055] The md5 value of the virus file remaining after extraction is compared with the md5 value of the target file in turn; when the comparison results are all consistent, the target file is used as the target virus file. This step is a secondary screening. In order to ensure that the virus file can be screened out more accurately, the file is screened twice in full. The comparison features of the secondary screening are richer and the accuracy is higher.
[0056] In this solution, two screening operations are performed, which can greatly improve the speed and accuracy of screening virus files.
[0057] In order to update the alarm rules in real time, this solution also includes:
[0058] The alarm rule is issued to the terminal by the rule management platform according to the preset issuance time; or, the terminal obtains it from the rule management platform according to the preset acquisition time. The terminal determines whether the newly acquired alarm rule is the same as the original alarm rule. If the same, the content of the original alarm rule is updated according to the content of the newly acquired alarm rule, and the version number is updated at the same time; if the same, a new alarm rule is added or the new alarm rule is used to replace the original alarm rule. The purpose of updating the version number is to reflect that the alarm rule is the latest rule.
[0059] After the screening is completed, the rule management platform determines an alarm processing mechanism corresponding to the target virus file according to a preset alarm mechanism; the alarm processing mechanism includes isolating the target virus file and / or issuing a prompt alarm.
[0060] The method provided by the disclosed embodiment includes: the rule management platform generates alarm rules and virus comparison features based on pre-stored virus file features; and sends the alarm rules to the terminal; the terminal uses the alarm rules to preliminarily screen its existing files, obtains the target file, and sends it to the rule management platform; the rule management platform determines the target virus file from the target file based on the virus comparison features. This method generates alarm rules and transmits them between the rule management platform and the terminal. Since the alarm rules are obtained by refining and compressing, the transmission speed is fast and the space occupied is small. The first virus file screening is performed by using the alarm rules, and then the second virus file screening is achieved by using the virus comparison features to perform a full comparison. The two-screening method can speed up the screening speed. Therefore, this solution can reduce terminal resource consumption and improve work efficiency.
[0061] This solution can successfully scan more than 95% of virus files, and the terminal resource consumption is reduced by 50%. When the virus file characteristics in the virus feature library pre-stored in the server change, a new alarm rule is generated based on the changed virus feature library. The new alarm rule can be sent to thousands of terminals within a few minutes, and the terminal program call execution will find abnormal files more efficiently and accurately.
[0062] For better explanation, the following is introduced with specific embodiments:
[0063] The rule management platform generates alarm rules and virus comparison features based on pre-stored virus file features, and sends the alarm rules to the terminal;
[0064] The alarm rules are generated by combining virus file features, such as md5 value, file size, etc. For example, 5 characters are extracted from the md5 value of the virus file in sequence, and the size of the resource space occupied by the virus file is combined to generate the alarm rules; this method can encrypt and compress the original 5G virus file features according to the above rules, and can compress the ratio by 98%. At this time, the alarm rules are only tens of M, and the speed of transmission to the terminal will be faster.
[0065] The alarm rules are sent to the terminal in real time by the rule management platform according to the preset sending time; or, the terminal obtains them from the rule management platform in real time according to the preset obtaining time. The alarm rules can be dynamically loaded, sent to the terminal in real time and take effect, without the need for secondary code development.
[0066] The terminal determines whether the newly acquired alarm rules are the same as the original alarm rules. If they are the same, the content of the original alarm rules is updated according to the content of the newly acquired alarm rules, and the version number is updated at the same time; if they are not the same, a new alarm rule is added or the new alarm rule is used to replace the original alarm rule. The alarm rules can be sent to the terminal accurately and in real time. The smaller the file, the faster the transmission. It can ensure that the execution on the terminal is safe, the rule matching is efficient, and the abnormal files are accurately screened.
[0067] The terminal uses the alarm rule to preliminarily screen its existing files, obtains the target file, and sends it to the rule management platform. At this time, only 5 md5 values need to be compared, so the speed is very fast.
[0068] The rule management platform determines the target virus file from the target file based on the virus comparison feature. At this time, the virus comparison feature can be the md5 value remaining after extraction. For example, the md5 value of a virus file includes 20 characters. After extracting 5 characters, 15 characters remain. In the secondary screening process, the user can use the 15 characters for full comparison to more accurately determine the target virus file. This solution can reduce the false alarm rate of terminal screening and achieve an accuracy rate of more than 90%.
[0069] In this method, the alarm rules are encrypted and compressed and sent to the terminal, which is equivalent to the terminal using a simplified version of the rules to preliminarily screen files, obtain target files and report them to the server.
[0070] The rule management platform in the server performs full matching screening on the target file based on the target virus feature file to determine the virus file. The alarm processing mechanism corresponding to the virus file is obtained and the alarm processing is performed. For example, the rule management platform determines the alarm processing mechanism corresponding to the target virus file based on the preset alarm mechanism; the alarm processing mechanism includes isolating the target virus file and / or issuing a prompt alarm.
[0071] like Figure 2 As shown, an embodiment of the present invention provides a system for searching virus files, comprising:
[0072] The rule management platform 21 is used to generate alarm rules and virus comparison features based on pre-stored virus file features; and send the alarm rules to the terminal; based on the virus comparison features, determine the target virus file from the target file sent by the terminal; wherein the alarm rule is generated based on the virus file features, including: extracting characters that meet a preset number from the md5 value of the virus file as target characters according to a preset method; generating the alarm rule according to the memory space value occupied by the virus file and the target character. wherein the rule management platform determines the target virus file from the target file based on the virus comparison features, including: comparing the md5 value of the virus file remaining after extraction with the md5 value of the target file in turn; when the comparison result is all consistent, the target file is used as the target virus file. wherein the alarm rule is sent to the terminal, including: the alarm rule is sent to the terminal by the rule management platform according to a preset sending time; or, the terminal obtains it from the rule management platform according to a preset acquisition time. The rule management platform determines an alarm processing mechanism corresponding to the target virus file according to a preset alarm mechanism; the alarm processing mechanism includes isolating the target virus file and / or issuing a prompt alarm.
[0073] The terminal 22 is used to use the alarm rules to preliminarily screen its own existing files, obtain the target file, and send it to the rule management platform. The terminal uses the alarm rules to preliminarily screen its own existing files to obtain the target file, including: when the md5 value of the existing file includes the target character, and the difference between the memory space value occupied by the file and the memory space value occupied by the virus file is within a preset range, the file is used as the target file. The terminal is also used to determine whether the newly acquired alarm rule is the same as the original alarm rule. If the same, the content of the original alarm rule is updated according to the content of the newly acquired alarm rule, and the version number is updated at the same time; if not the same, a new alarm rule is added or the new alarm rule is used to replace the original alarm rule.
[0074] The electronic device according to an embodiment of the present disclosure includes a memory and a processor. The memory is used to store non-temporary computer-readable instructions. Specifically, the memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may, for example, include a read-only memory (ROM), a hard disk, a flash memory, etc.
[0075] The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the present disclosure, the processor is used to run the computer-readable instructions stored in the memory, so that the electronic device performs all or part of the steps of the above-mentioned method of each embodiment of the present disclosure.
[0076] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present disclosure.
[0077] like Figure 3 The present invention provides a schematic diagram of the structure of an electronic device according to an embodiment of the present invention, which is suitable for implementing the electronic device in the embodiment of the present invention. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0078] like Figure 3 As shown, the electronic device may include a processor (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processor, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0079] Typically, the following devices can be connected to the I / O interface: input devices such as sensors or visual information acquisition devices; output devices such as display screens; storage devices such as magnetic tapes and hard disks; and communication devices. The communication device can allow the electronic device to communicate with other devices (such as edge computing devices) wirelessly or by wire to exchange data. Figure 3 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0080] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processor, all or part of the steps of the above-mentioned method of the embodiment of the present disclosure are executed.
[0081] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.
[0082] According to the computer-readable storage medium of the embodiment of the present disclosure, non-transitory computer-readable instructions are stored thereon. When the non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the above-mentioned method of each embodiment of the present disclosure are executed.
[0083] The above-mentioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).
[0084] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.
[0085] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0086] In the present disclosure, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. The block diagrams of the devices, devices, equipment, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0087] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.
[0088] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0089] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.
[0090] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0091] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for finding virus files, It is characterized in that include: The rule management platform generates alarm rules and virus comparison features based on pre-stored virus file features; And sending the alarm rules to the terminal; The terminal uses the alarm rule to preliminarily screen its existing files, obtains the target file, and sends it to the rule management platform; The rule management platform determines a target virus file from the target file based on the virus comparison feature; The generating of warning rules based on virus file features includes: According to a preset method, characters that meet a preset number are extracted from the md5 value of the virus file as target characters; Generate the warning rule according to the memory space value occupied by the virus file and the target character; The terminal uses the alarm rule to preliminarily screen its existing files to obtain the target file, including: When the md5 value of an existing file includes the target character, and the difference between the memory space value occupied by the file and the memory space value occupied by the virus file is within a preset range, the file is used as the target file; The rule management platform determines a target virus file from the target file based on the virus comparison feature, including: Compare the md5 value of the virus file remaining after extraction with the md5 value of the target file Carry out full comparison in sequence; When the comparison results are all consistent, the target file is used as the target virus file.
2. The method according to claim 1, It is characterized in that The sending the alarm rule to the terminal includes: The alarm rule is sent to the terminal by the rule management platform according to a preset sending time; or, The terminal obtains the information from the rule management platform according to a preset acquisition time.
3. The method according to claim 1, It is characterized in that The method further comprises: The terminal determines whether the newly acquired alarm rule is the same as the original alarm rule. If they are the same, the content of the original alarm rule is updated according to the content of the newly acquired alarm rule, and the version number is updated at the same time; If they are different, add a new alarm rule or use the new alarm rule to replace the original alarm rule.
4. The method according to claim 1, It is characterized in that The method further comprises: The rule management platform determines an alarm processing mechanism corresponding to the target virus file according to a preset alarm mechanism; the alarm processing mechanism includes isolating the target virus file and / or issuing a prompt alarm.
5. A system for finding virus files, It is characterized in that The system comprises: The rule management platform is used to generate alarm rules and virus comparison features based on pre-stored virus file features; and send the alarm rules to the terminal; based on the virus comparison features, determine the target virus file from the target file sent by the terminal; wherein, the alarm rules are generated based on the virus file features, including: According to a preset method, characters that meet a preset number are extracted from the md5 value of the virus file as target characters; Generate the warning rule according to the memory space value occupied by the virus file and the target character; The rule management platform determines the target virus file from the target file based on the virus comparison feature, including: Compare the md5 value of the virus file remaining after extraction with the md5 value of the target file Carry out full comparison in sequence; When the comparison results are all consistent, the target file is used as the target virus file; The terminal is used to use the alarm rules to perform preliminary screening on its own existing files, obtain the target file, and send it to the rule management platform, including: when the md5 value of the existing file includes the target character, and the difference between the memory space value occupied by the file and the memory space value occupied by the virus file is within a preset range, the file is used as the target file.
6. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for searching for virus files according to any one of claims 1-4.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for searching virus files according to any one of claims 1 to 4.
