A method, system and server for determining a system whitelist

By constructing a retrieval database containing pixel images and using pixel image matching instead of hash value matching, the problem of low scanning efficiency in the whitelist determination method is solved, and a highly efficient file scanning process is achieved.

CN112487426BActive Publication Date: 2024-11-26CHINANETCENT TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011347084.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-11-26
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

In existing technologies, whitelist determination methods cannot effectively improve scanning efficiency, especially for files from different operating system versions, where the scanning process cannot be skipped.

Method used

By constructing a retrieval database containing secure files and their corresponding pixel images from various systems, pixel image matching is used instead of hash value matching to determine whether a target file can be added to the whitelist.

Benefits of technology

It improves the efficiency of system file scanning, reduces the cost of building and maintaining the retrieval database, allows matching of files with minor modifications, and avoids duplicate scanning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112487426B_ABST
    Figure CN112487426B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system and server for determining a system whitelist, wherein a retrieval database is provided, the retrieval database includes security files under various systems, the security files have corresponding pixel images, and the method comprises: for a target file in a target system to be detected, converting a binary sequence representing the target file into a corresponding pixel image; comparing the converted pixel image with the target pixel image in the retrieval database; if the converted pixel image matches the target pixel image, adding the target file to the system whitelist. The technical solution provided by the present application can effectively determine the files in the system whitelist, thereby greatly improving the scanning efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a method, system and server for determining a system whitelist. Background Art

[0002] With the continuous development of network security technology, host intrusion detection systems and various anti-virus software can provide security protection and virus detection for hosts in the network. Currently, when scanning executable files in the system, in order to reduce the scanning time, files that have been scanned and confirmed to be safe can usually be added to the whitelist, and the files in the whitelist will no longer be scanned and checked for viruses.

[0003] The files in the whitelist are usually marked by hash values ​​(such as MD5 values), which means that even if the file to be detected is only slightly different from a file in the whitelist, the scanning process cannot be skipped. For example, a file under the centos7.1 system is stored in the whitelist, and the same file under the centos7.5 system needs to be scanned. However, due to different versions, even if the files are only slightly different, the scanning process cannot be skipped. In actual applications, there are countless files with slight differences, so the determination method of the whitelist in the prior art cannot improve the scanning efficiency well. Summary of the invention

[0004] The purpose of the present application is to provide a method, system and server for determining a system whitelist, which can effectively determine the files in the system whitelist, thereby greatly improving the scanning efficiency.

[0005] To achieve the above-mentioned purpose, the present application provides, on the one hand, a method for determining a system whitelist, and provides a retrieval database, wherein the retrieval database includes security files under various systems, and the security files have corresponding pixel images. The method comprises: for a target file in a target system to be detected, converting a binary sequence representing the target file into a corresponding pixel image; comparing the converted pixel image with the target pixel image in the retrieval database; if the converted pixel image matches the target pixel image, adding the target file to the system whitelist.

[0006] To achieve the above-mentioned purpose, the present application also provides a system for determining a system whitelist, and provides a retrieval database, wherein the retrieval database includes security files under various systems, and the security files have corresponding pixel images. The system includes: a pixel image conversion unit, which is used to convert a binary sequence representing a target file in a target system to be detected into a corresponding pixel image; a comparison unit, which is used to compare the converted pixel image with the target pixel image in the retrieval database; and a whitelist adding unit, which is used to add the target file to the system whitelist if the converted pixel image matches the target pixel image.

[0007] To achieve the above-mentioned purpose, the present application further provides a server on the other hand, wherein the server is provided with a retrieval database, wherein the retrieval database includes security files under various systems, wherein the security files have corresponding pixel images, and wherein the server includes a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above-mentioned method for determining the system whitelist is implemented.

[0008] As can be seen from the above, the technical solution provided by one or more embodiments of the present application can have its own pixel image for the security files in the system in the retrieval database. For the target file under the target system to be detected, it is not matched with the security file in the retrieval database through the hash value, but the binary sequence of the target file is first converted into the corresponding pixel image, and then the pixel image obtained by the conversion is compared with the target pixel image in the retrieval database. If the two pixel images match, it can be determined that the target file can be added to the system whitelist, so there is no need to scan the target file. Since the matching process of the pixel image can allow a small range of changes to the file, even if the hash values ​​of the two files are different, the two files may still match. In this way, for the same system, the retrieval database does not need to contain all versions of the security files, but only needs to contain one version of the security file. In this way, other files to be detected can be automatically added to the whitelist through the matching process of the pixel image, thereby eliminating the scanning process and greatly improving the scanning efficiency of the files in the system. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0010] Figure 1is a step diagram of a method for determining a system whitelist in an embodiment of the present invention;

[0011] Figure 2 A schematic diagram of functional modules of a system for determining a system whitelist in an embodiment of the present invention;

[0012] Figure 3 It is a schematic diagram of the structure of the server in an embodiment of the present invention. DETAILED DESCRIPTION

[0013] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in combination with the specific implementation methods of this application and the corresponding drawings. Obviously, the described implementation methods are only part of the implementation methods of this application, not all of the implementation methods. Based on the implementation methods in this application, all other implementation methods obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0014] The present application provides a method for determining a system whitelist. When implementing the method, a retrieval database may be constructed first. The retrieval database may include security files under various systems. The scanning process of the security files in the retrieval database may be omitted.

[0015] In practical applications, the security files in the retrieval database can be executable files that are confirmed to be safe after being scanned by the host intrusion detection system or anti-virus software. The retrieval database can be continuously updated, and the security files in the retrieval database can be removed or added according to the update results. In this embodiment, since the version of the operating system is usually continuously iterated, if the security files under different versions of the system are all stored in the retrieval database, it will undoubtedly greatly increase the construction cost and maintenance cost of the retrieval database. In view of this, in this embodiment, it is only necessary to store the security files under the large version of the system in the retrieval database. For example, for the centos system, the large version can be, for example, versions such as 7.1 and 7.2, and under each large version, a smaller small version can be provided. For example, under version 7.1, a small version such as 7.1.1523 can be provided. Of course, in practical applications, the version number of the large version can be flexibly determined based on the total number of versions of the same system. For example, suppose a system only has version 1.0. Under version 1.0, there can be two minor versions, 1.0.1 and 1.0.2. Under version 1.0.1, there can be a smaller version, such as 1.0.1.1544. In this case, 1.0.1 and 1.0.2 can be regarded as major versions, and only the security files under these two versions of the system can be stored in the retrieval database. In other words, the definition of major versions can be flexibly set according to the actual application scenario, as long as the construction cost and maintenance cost of the retrieval database are maintained within an acceptable range.

[0016] In this embodiment, the security files under each system contained in the retrieval database may have corresponding version numbers and directories. For example, for a system of centos7.1 version, a security file named ps is located in the / bin directory, then the version number corresponding to the security file may be 7.1, and the directory may be / bin / ps. Of course, in actual applications, each security file may also have more detailed information. For example, it may have the timestamp when the security file is added to the retrieval database, and it may also have the capacity of the security file, etc.

[0017] In this embodiment, in addition to the above-mentioned version number and directory, the security file may also have a corresponding pixel image, which may be obtained by converting the binary sequence of the security file. Specifically, in a computer, files are usually stored in the form of a binary sequence. When converting the binary sequence of the security file into a pixel image, the pixel value range of the pixel points in the pixel image may be determined first, and the pixel value range may be a decimal value. For example, if the pixel image is a grayscale image, each pixel point in the grayscale image may be represented by a grayscale value, and the grayscale value range is usually 0 to 255, then for the grayscale image, the pixel value range may be 0 to 255. After determining the pixel value range, the binary sequence may be divided into a plurality of binary subsequences based on the pixel value range. Specifically, the number of bits of each binary subsequence may be determined according to the pixel value range. The principle of determination may be: the value range of the binary subsequence does not exceed the above-mentioned pixel value range. It should be noted that the value range of the binary subsequence and the pixel value range here may both be decimal value ranges. For example, if the pixel value range is 0 to 255, then the value range of the binary subsequence cannot exceed 0 to 255. According to this principle, for grayscale images, every 8 bits in the binary sequence can be regarded as a binary subsequence. The reason is that the minimum value of the 8-bit binary subsequence is 00000000, and the maximum value is 11111111. After conversion to decimal, it corresponds to the value range of 0 to 255. Therefore, the number of bits of the binary subsequence can be determined according to the pixel value range.

[0018] In this embodiment, after determining the number of digits of a binary subsequence, the binary sequence can be divided according to the number of digits to obtain a plurality of binary subsequences having the number of digits. After obtaining the binary subsequences, the binary subsequences can be converted into corresponding pixel values. Specifically, the binary subsequences can be converted into decimal values, which can be used as pixel values. In this way, each binary subsequence can be converted into a corresponding pixel value, and after obtaining the converted pixel values, these pixel values ​​can be used to construct a pixel image.

[0019] In this embodiment, the number of pixels included in the pixel image can be predetermined. For example, the pixel image can include 4*4 pixels. Generally speaking, the number of pixels included in the pixel image is greater than or equal to the number of pixel values ​​obtained by conversion. In this way, the pixel values ​​obtained by conversion can be assigned to each pixel in the pixel image in sequence, thereby forming a pixel image corresponding to the binary sequence. For example, 16 pixel values ​​are obtained according to the binary subsequence conversion, and then these 16 pixel values ​​can be assigned to the 16 pixel points in the pixel image in sequence from left to right and from top to bottom, thereby obtaining a corresponding pixel image.

[0020] In one embodiment, it is very likely that the number of pixel values ​​obtained by conversion according to the binary subsequence is not enough to assign to each pixel in the pixel image. For example, only 13 pixel values ​​can be converted according to the binary subsequence, so for a 4*4 pixel image, the last 3 pixel points cannot be assigned the converted pixel values. In this case, the pixel points that are not assigned with pixel values ​​can be filled with designated pixel values. For example, the designated pixel value can be 0, so that the pixel points that are not assigned with pixel values ​​can be directly filled with pixel value 0. Of course, according to actual needs, the designated pixel value can be flexibly selected.

[0021] According to the above method, a pixel image of each security file in the retrieval database can be generated, and the pixel image can be bound to the corresponding security file.

[0022] See also Figure 1 A method for determining a system whitelist provided in one embodiment of the present application may include the following steps.

[0023] S1: For a target file in a target system to be detected, convert a binary sequence representing the target file into a corresponding pixel image.

[0024] In this embodiment, the target system to be detected can be any operating system, and the executable file in the target system can be used as the target file to be detected. By detecting the target file, it can be determined whether the target file can be added to the system whitelist.

[0025] In actual applications, the target file can be determined in two ways. The first is to use the target system to be detected as the basis, and use any executable file in the target system as the target file, and then determine whether the target file can be added to the system whitelist. The second is to determine the target file to be detected in the target system in combination with the security files in the retrieval database.

[0026] Specifically, for the second case, first, any operating system that needs to be detected can be used as the target system to be detected, and then the matching system that matches the target system can be queried in the retrieval database. The basis for the query can be the system name of the target system. In the system name, the current version of the target system can be marked. For example, the system name of the target system may be centos7.5. When querying the matching system in the retrieval database, the system with the same major version can be used as the matching system. For example, for centos7.5, the major version may be centos7, and if there is centos7.1 in the retrieval database, centos7.1 can be used as the matching system for the target system centos7.5. In this way, through the query, a matching system that is the same or similar to the target system can be obtained.

[0027] In this embodiment, after obtaining the matching system, the target file to be detected in the target system can be determined for the security files in the matching system. Specifically, any security file located in the retrieval database can be determined in the matching system, and then the target directory of the security file in the matching system can be queried. Since the matching system and the target system belong to the same system (only the version may be different), the directories in the two systems are consistent. In this way, after the target directory is obtained by querying, the file pointed to by the target directory in the target system can be used as the target file to be detected. For example, the current target system to be detected is centos7.5, and the matching system similar to the target system in the retrieval database is centos7.1. In the matching system centos7.1, there is a security file named ps located in the retrieval database, and the complete directory of the security file is / bin / ps. In this way, based on this directory, the target file pointed to by the target directory / bin / ps can be found in the target system centos7.5. In this way, the security file corresponding to the target pixel image has the same directory as the target file.

[0028] In this embodiment, after the target file to be detected is determined, the binary sequence representing the target file can be converted into a corresponding pixel image in the above manner. Specifically, the pixel value range of the pixel points in the pixel image can be determined, and the binary sequence can be divided into a plurality of binary subsequences based on the pixel value range, and then each of the binary subsequences can be converted into a corresponding pixel value, and the pixel image can be constructed using the converted pixel values. Similarly, the number of bits of the binary subsequence can be determined according to the pixel value range, wherein the value range of the binary subsequence with the number of bits does not exceed the pixel value range. Then, the binary sequence can be divided into a plurality of binary subsequences according to the determined number of bits. The pixel values ​​obtained by the conversion are sequentially assigned to each pixel point in the pixel image, thereby forming a pixel image corresponding to the binary sequence. If the number of pixel values ​​obtained by the conversion is less than the number of pixel points in the pixel image, the pixel points that are not assigned with pixel values ​​can be filled with specified pixel values. The detailed process can refer to the description in the previous text, and will not be repeated here.

[0029] S3: Compare the converted pixel image with the target pixel image in the retrieval database.

[0030] In this embodiment, after obtaining the pixel image of the target file, the pixel image can be compared with the target pixel image of the security file in the search database. For example, the pixel image of the ps file in centos7.5 can be compared with the target pixel image of the ps file in centos7.1 in the search database.

[0031] When comparing two pixel images, the similarity between the two pixel images can be calculated. Specifically, the first feature vector of the converted pixel image can be extracted, and the second feature vector of the target pixel image can be extracted, and the similarity between the first feature vector and the second feature vector can be calculated. The similarity between the two feature vectors can be used as the similarity between the two pixel images.

[0032] In practical applications, the feature vector of a pixel image can be extracted in a variety of ways. For example, the pixel image can be directly input into a convolutional neural network, and the convolution kernel and the pixel image are convolved to obtain the feature vector of the pixel image. Of course, in other scenarios, the feature vector (feature descriptor) of the pixel image can also be extracted through histogram statistics, GIST, SIFT and other algorithms, which will not be described here.

[0033] In this embodiment, after extracting the feature vector of the pixel image, the similarity between two feature vectors can be calculated by Pearson correlation coefficient, chi-square verification, cosine similarity, etc.

[0034] Through the above method, the matching matching system in the database is first retrieved, and then the target file to be detected is determined. Each target file to be detected is only compared and matched with the security file in the same directory in the retrieval database, with small calculation amount and high reliability.

[0035] Of course, if the target file is determined in the first way in step S1, the pixel image of the target file can be compared with the pixel images of each security file in the retrieval database one by one. In this case, the target pixel image can be the pixel image of the security file currently being compared.

[0036] S5: If the converted pixel image matches the target pixel image, the target file is added to the system whitelist.

[0037] In this embodiment, after calculating the similarity between the two pixel images, if the similarity is greater than or equal to the specified similarity threshold, it can be determined that the converted pixel image matches the target pixel image. At this time, the target file can be directly added to the system whitelist, and there is no need to scan the target file when performing virus scanning detection. Among them, the above-mentioned similarity threshold can be flexibly set based on actual conditions. For example, assuming that the maximum value of the similarity is 1, the specified similarity threshold can be set to 0.9.

[0038] In this way, for the target file in the target system to be detected, by converting the target file into a pixel image, it can be determined whether the target file can be added to the system whitelist. This can not only reduce the number of safe files required to retrieve the database, but also improve the scanning efficiency of the system.

[0039] See also Figure 2 The present application also provides a system for determining a system whitelist, and provides a search database, wherein the search database includes security files under each system, and the security files have corresponding pixel images. The system includes:

[0040] A pixel image conversion unit, for converting a binary sequence representing a target file in a target system to be detected into a corresponding pixel image;

[0041] A comparison unit, used for comparing the converted pixel image with the target pixel image in the retrieval database;

[0042] The whitelist adding unit is used to add the target file to the system whitelist if the pixel image obtained by the conversion matches the target pixel image.

[0043] See also Figure 3 The present application also provides a server, which provides a retrieval database, which includes security files under various systems, and the security files have corresponding pixel images. The server includes a memory and a processor, and the memory is used to store a computer program. When the computer program is executed by the processor, the above-mentioned method for determining the system whitelist is implemented.

[0044] In the present application, the memory may include a physical device for storing information, which is usually a device that digitizes the information and then stores it in a medium using electrical, magnetic or optical methods. The memory may also include: a device that stores information using electrical energy, such as RAM or ROM; a device that stores information using magnetic energy, such as a hard disk, a floppy disk, a magnetic tape, a magnetic core memory, a magnetic bubble memory or a USB flash drive; a device that stores information using optical means, such as a CD or a DVD. Of course, there are other types of memory, such as quantum memory or graphene memory, etc.

[0045] In the present application, the processor may be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc.

[0046] As can be seen from the above, the technical solution provided by one or more embodiments of the present application can have its own pixel image for the security files in the system in the retrieval database. For the target file under the target system to be detected, it is not matched with the security file in the retrieval database through the hash value, but the binary sequence of the target file is first converted into the corresponding pixel image, and then the pixel image obtained by the conversion is compared with the target pixel image in the retrieval database. If the two pixel images match, it can be determined that the target file can be added to the system whitelist, so there is no need to scan the target file. Since the matching process of the pixel image allows a small range of changes to the file, even if the hash values ​​of the two files are different, the two files may still match. In this way, for the same system, the retrieval database does not need to contain all versions of security files, but only needs to contain one version of the file. In this way, other files to be detected can be automatically added to the whitelist through the matching process of the pixel image, thereby eliminating the scanning process and greatly improving the scanning efficiency of the files in the system.

[0047] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the system and the server, they can all refer to the introduction and comparison of the embodiments of the aforementioned method.

[0048] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0049] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0050] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0051] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0052] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0053] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0054] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0055] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0056] The above is only the implementation mode of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for determining a system whitelist, characterized in that: A search database is provided, the search database includes security files under various systems, the security files have corresponding pixel images, and the method includes: For a target file in a target system to be detected, a binary sequence representing the target file is converted into a corresponding pixel image; wherein the target file is determined in the following manner: a matching system matching the target system is searched in the search database, and a target directory of security files in the matching system is searched; and a file pointed to by the target directory in the target system is used as the target file; Comparing the converted pixel image with the target pixel image in the retrieval database; If the converted pixel image matches the target pixel image, the target file is added to the system whitelist.

2. The method according to claim 1, characterized in that: Converting the binary sequence representing the target file into a corresponding pixel image includes: Determining a pixel value range of a pixel point in the pixel image, and dividing the binary sequence into a plurality of binary subsequences based on the pixel value range; Each of the binary subsequences is converted into a corresponding pixel value, and a pixel image is constructed using the converted pixel values.

3. The method according to claim 2, characterized in that Dividing the binary sequence into a plurality of binary subsequences based on the pixel value range comprises: Determine the number of bits of the binary subsequence according to the pixel value range, wherein the value range of the binary subsequence having the number of bits does not exceed the pixel value range; According to the determined number of bits, the binary sequence is divided into a plurality of binary subsequences.

4. The method according to claim 2, characterized in that: Using the converted pixel values ​​to construct a pixel image includes: The converted pixel values ​​are sequentially assigned to each pixel point in the pixel image to form a pixel image corresponding to the binary sequence.

5. The method according to claim 4, characterized in that The method further comprises: If the number of pixel values ​​obtained by conversion is less than the number of pixel points in the pixel image, the pixel points that are not assigned pixel values ​​are filled with designated pixel values.

6. The method according to claim 1, characterized in that The security file corresponding to the target pixel image has the same directory as the target file.

7. The method according to claim 1, characterized in that Comparing the converted pixel image with the target pixel image in the search database includes: A first feature vector of the converted pixel image is extracted, and a second feature vector of the target pixel image is extracted, and a similarity between the first feature vector and the second feature vector is calculated.

8. The method according to claim 7, characterized in that The pixel image obtained by conversion is matched with the target pixel image, including: The calculated similarity is greater than or equal to a specified similarity threshold.

9. A system for determining a system whitelist, characterized in that: A search database is provided, the search database includes security files under various systems, the security files have corresponding pixel images, and the system includes: A pixel image conversion unit is used for converting a binary sequence representing a target file in a target system to be detected into a corresponding pixel image; wherein the target file is determined in the following manner: a matching system matching the target system is searched in the search database, and a target directory of security files in the matching system is searched; and a file pointed to by the target directory in the target system is used as the target file; A comparison unit, used for comparing the converted pixel image with the target pixel image in the retrieval database; The whitelist adding unit is used to add the target file to the system whitelist if the pixel image obtained by the conversion matches the target pixel image.

10. A server, characterized in that: The server is provided with a retrieval database, which includes security files under various systems, and the security files have corresponding pixel images. The server includes a memory and a processor, and the memory is used to store a computer program. When the computer program is executed by the processor, it implements the method described in any one of claims 1 to 8.