A method for generating a program whitelist, a program updating method and a device

By checking and virus scanning of new files of industrial configuration programs, trust installation program information is generated, and the problems of operation and maintenance administrators' lax control and unverified server side are solved, and program update security in industrial control networks is achieved and automated update process.

CN111914249BActive Publication Date: 2024-11-12北京珞安科技有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing industrial configuration program update method, the operation and maintenance administrators do not strictly control the update program, and the server side does not conduct security verification of the update package, which may spread malicious programs or viruses, bringing unpredictable risks and hidden dangers.

Method used

By monitoring new files, performing checksum virus scans, extracting file feature information to generate trust installer information, and building a preset trust installer list on the application server side to judge the security of update packages and ensure the security of program updates.

Benefits of technology

Realize real-time monitoring and secure scanning of program update packages in industrial control networks, avoiding the spread of viruses and Trojans, ensuring the security of program updates, and achieving a fully automated security update process without changing user habits. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111914249B_ABST
    Figure CN111914249B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for generating a program whitelist, a program update method and a device, wherein the program whitelist generation method includes: monitoring the target file storage directory based on a file change notification mechanism, scanning the newly created file for verification when new file information is detected, extracting file feature information when the newly created file passes the verification; and generating trusted installation program information based on the file feature information. By implementing the present invention, the potential safety hazard caused by the industrial control host updating the program update package without verifying it is solved, and the security of the program update package is ensured by automatically scanning the newly created file and checking and killing viruses and Trojans, thereby avoiding the spread of viruses and Trojans in the industrial control network; it also realizes the fully automatic processing flow from downloading to installing the program in the program whitelist control mode, and realizes the safe update of the program without changing the user's own usage habits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security, and in particular to a method for generating a program whitelist, a program updating method and a device. Background Art

[0002] With the rapid development of network technology, the application of network in industrial control systems is becoming more and more extensive. In industrial control systems, programs are an indispensable part of the normal operation of industrial control systems. However, whether it is a large program or a small application, there will be bugs or new function expansions. The same is true for industrial configuration programs or programming programs. At this time, the program needs to be updated.

[0003] Industrial configuration program updates are generally installed locally on the industrial host via a USB flash drive or CD. However, some existing security update programs may be directly or indirectly "contaminated", such as being infected with viruses, tampered with by "hackers", tampered with update packages, or containing malicious programs or backdoor programs. Therefore, this update method has great risks and hidden dangers.

[0004] The existing update method of industrial configuration programs is to use the client-server model to implement program updates. The client requests to download the update application package from the server that stores the update program, and the server then sends the update package to the client. For example, the existing program update method of the trusted program library is based on a purely manual method, and the security operation and maintenance personnel actively report the trusted installation program and share it with all controlled terminals. Generally speaking, this approach is relatively safe and feasible, but there are certain risks. For example, the operation and maintenance administrator does not strictly control the update program, downloads or obtains the update package that has been infected with a computer virus from other channels, and the server side does not perform security verification or verification on the update package, which will lead to unpredictable risks and hidden dangers due to the update of the program carrying malicious programs or viruses. Summary of the invention

[0005] Therefore, the technical problem to be solved by the present invention is to overcome the defects in the prior art that the operation and maintenance administrators do not strictly control the update program, and the server side does not perform security verification or inspection on the update package, which will lead to unpredictable risks and hidden dangers due to the update of programs carrying malicious programs or viruses, thereby providing a method for generating a program whitelist, a program update method and a device.

[0006] According to the first aspect, an embodiment of the present invention provides a method for generating a program whitelist, comprising: when new file information is monitored, scanning the new file for verification according to the new file information, and when the new file passes the verification, extracting the file feature information of the new file; and generating trusted installation program information according to the file feature information.

[0007] In combination with the first aspect, in the first implementation of the first aspect, the step of scanning the newly created file for verification based on the newly created file information specifically includes: verifying whether the newly created file is an executable file; and performing a virus check on the newly created file; when the newly created file is an executable file and the newly created file passes the virus check, determining that the newly created file passes the verification.

[0008] In combination with the first implementation of the first aspect, in the second implementation of the first aspect, the verification of whether the newly created file is an executable file includes: determining whether the newly created file has a preset extension, and determining whether the newly created file conforms to a standard format; when the newly created file has a preset extension and the newly created file conforms to a standard format, determining that the newly created file is an executable file.

[0009] In combination with the first aspect, in a third implementation of the first aspect, the file feature information includes file fingerprint feature information and file content information.

[0010] In combination with the first aspect, in a fourth implementation of the first aspect, before the step of monitoring the newly created file information, the method also includes: registering a file change operation callback notification; and monitoring the target file storage directory according to the file change operation callback notification.

[0011] According to a second aspect, an embodiment of the present invention provides a program update method, comprising: sending a program update package download request to an application server; receiving a program update package issued by the application server in response to the program update package request; judging whether the program update package is safe based on a preset trusted installer list, wherein the preset trusted installer list is constructed based on trusted installer information generated by the program whitelist generation method as described in the first aspect or any one of the implementation methods of the first aspect; when the program update package is judged to be safe, obtaining an update instruction, and updating the program update package based on the update instruction.

[0012] In combination with the second aspect, in the first implementation of the second aspect, the method also includes: generating an updated program according to the update instruction and the program update package, and determining a hash value of the updated program; and storing the updated program in a preset whitelist library according to the hash value.

[0013] According to the third aspect, an embodiment of the present invention provides a device for generating a program whitelist, including: a file feature information extraction module, which is used to scan a newly created file for verification based on the newly created file information when newly created file information is monitored, and extract the file feature information of the newly created file when the newly created file passes the verification; and a trusted installer information generation module, which is used to generate trusted installer information based on the file feature information.

[0014] According to a fourth aspect, an embodiment of the present invention provides a program update device, comprising: a program update package download request sending module, used to send a program update package download request to an application server; a program update package download module, used to receive a program update package issued by the application server according to the program update package request; a judgment module, used to judge whether the program update package is safe according to a preset trusted installation program list, wherein the preset trusted installation program list is constructed based on the trusted installation program information generated by the program whitelist generation method as described in the first aspect or any embodiment of the first aspect; a program update module, used to obtain an update instruction when it is judged that the program update package is safe, and to update the program update package according to the update instruction and the program update package.

[0015] According to the fifth aspect, an embodiment of the present invention provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the program whitelist generation method described in the first aspect or any embodiment of the first aspect or the program update method described in the second aspect or any embodiment of the second aspect.

[0016] According to the sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements the steps of the program whitelist generation method as described in the first aspect or any embodiment of the first aspect, or the program update method as described in the second aspect or any embodiment of the second aspect.

[0017] The technical solution of the present invention has the following advantages:

[0018] 1. The present invention provides a method and device for generating a program whitelist, including: monitoring the target file storage directory based on a file change notification mechanism, scanning the newly created file for verification based on the newly created file information when new file information is detected, and when the newly created file is an executable file and there is no virus or Trojan horse, determining that the newly created file has passed the verification, and then extracting the file feature information of the newly created file; generating trusted installation program information based on the file feature information. By implementing the present invention, the potential safety hazard caused by the industrial control host updating the program update package without verifying it is solved, and the real-time monitoring of the uploaded installation program, that is, the newly added files, is realized through the file change notification; the security scanning of the newly added files is ensured by automatically scanning the newly created files in the background, that is, the security scanning of the newly added files, and the security of the installation program itself is ensured, and the spread of virus and Trojan horses in the industrial control network is avoided; through the process of full background automatic processing, the software security update in the program whitelist controlled mode can be realized without changing any original user habits.

[0019] 2. A program update method and device provided by the present invention includes: sending a program update package download request to an application server; receiving a program update package issued by the application server according to the program update package request; judging whether the program update package is safe according to a preset trusted installer list, wherein the preset trusted installer list is constructed by the trusted installer information generated by the program whitelist generation method described in the above embodiment; when the program update package is judged to be safe, obtaining an update instruction, and updating the program update package according to the update instruction and the program update package. By implementing the present invention, the potential safety hazard caused by the industrial control host updating the program update package without verifying it is solved, and the background system automatically scans the newly created files and detects and kills viruses and Trojans, thereby ensuring the safety of the program update package and avoiding the spread of viruses and Trojans in the industrial control network; it also realizes the fully automatic processing flow from downloading to installing the program in the program whitelist control mode, and realizes the safe update of the program without changing the user's own usage habits. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 is a flowchart of a specific example of a method for generating a program whitelist in an embodiment of the present invention;

[0022] Figure 2 is a flowchart of a specific example of a program updating method in an embodiment of the present invention;

[0023] Figure 3 It is a specific schematic diagram of an embodiment of the present invention;

[0024] Figure 4 is a principle block diagram of a specific example of a device for generating a program whitelist in an embodiment of the present invention;

[0025] Figure 5 is a principle block diagram of a specific example of a program updating device in an embodiment of the present invention;

[0026] Figure 6 FIG. 4 is a specific example diagram of a controller in a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] In the description of the present invention, it should be noted that the terms “first”, “second” and “third” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0029] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0030] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0031] In the actual application scenarios of industrial control system networks, due to the usage characteristics of industrial control system programs and industrial control hosts, the program updates are less frequent, the usage process and communication data are relatively simple and stable, and the industrial control equipment has strict requirements on the reliability and continuity of business data. Therefore, the program update method based on the whitelist is an effective solution to reduce the update risk of industrial control hosts. Compared with the "blacklist", the "whitelist" mechanism is more suitable for industrial control scenarios. In the actual operation site of industrial control, industrial control equipment is in a relatively isolated state for a long time and will not be connected to the Internet to update the virus library. Once the industrial control system is built, it will not be upgraded or modified for a long time. After the "whitelist" is formed, it is relatively stable, which is conducive to the protection of the industrial site.

[0032] Specifically, a program whitelist refers to a program that only matches a preset whitelist feature library and is an executable file that is allowed to run on the industrial control host. The program whitelist protection method is to calculate the hash value of the target program, and then compare it with the preset whitelist feature library as a basic discriminant to control whether the program is executed. In the program update method based on the whitelist, the application server and the management server need to perform data transmission. The file operation monitor component in the application server transmits the information of the relevant application that has passed the security scan to the management server. The management server adds it to the trusted installation library and sends it to the controlled host. Therefore, the present invention provides a method and device for generating a program whitelist, and a method and device for updating a program.

[0033] like Figure 1 As shown, an embodiment of the present invention provides a method for generating a program whitelist, comprising:

[0034] Step S11: When newly created file information is detected, the newly created file is scanned and verified according to the newly created file information. When the newly created file passes the verification, the file feature information of the newly created file is extracted; in this embodiment, the newly created file information can be the file change notification information generated by the application server when the application server has a newly added file. The newly created file can be a program update file, that is, a program update package, which is developed and generated to repair the problems of the original program because the original program has some imperfections; the newly created file can also be a newly added type of program file. The file feature information of the newly created file can be the identification information of the file and the related content information.

[0035] Specifically, the file operation monitoring component in the application server adopts a change notification mechanism based on the file system, which can monitor the newly created files as soon as they are added in the application server. Specifically, it can also be monitored by monitoring the directory of the path of the cached newly created files. When the addition of new files is detected, the application server generates file change notification information, that is, the new file information. When the file operation monitoring component detects the newly created files, it means that there are files added in the application server at this time. The file operation monitoring component obtains the corresponding newly created files based on the newly created file information and scans the above newly created files to perform security verification and verification. The security verification and verification can be to verify whether there are viruses and trojans in the file, and to verify whether the newly created file is an executable file. After the newly created file passes the verification of the file operation monitoring component, the file feature information of the newly created file is obtained, such as file fingerprint information and file content information.

[0036] Step S12: Generate trusted installer information based on the file feature information. In this embodiment, the trusted installer information may be information indicating the security of the newly created file. When the newly created file has corresponding trusted installer information, it indicates that the newly created file has passed the security scan, and there are no viruses or Trojans in it. It can be directly installed and run on the industrial control host without bringing unpredictable risks and hidden dangers to the industrial control system network. Specifically, based on the file fingerprint information and file content information extracted from the newly created file, the trusted installer information of the newly created file is generated, that is, the feature information of the newly created file is extracted, and the unique identification information of the newly created file is uploaded to the trusted installer library of the management server.

[0037] Exemplarily, the file fingerprint information is used to indicate whether the newly created file is an original program package. The specific process of extracting the file fingerprint information of the newly created file may be to verify and sum the newly created file through a preset algorithm, which may be the national secret SM3 hash algorithm, and calculate a 32-bit hexadecimal number, which is the file feature information of the newly created file; the present invention does not limit the specific type of the preset algorithm, and those skilled in the art may select the corresponding algorithm according to the actual application scenario.

[0038] The present invention provides a method for generating a program whitelist, including: monitoring the target file storage directory, when new file information is monitored, scanning the new file for verification according to the new file information, when the new file passes the verification, that is, the security and reliability of the new file are verified, then extracting the file feature information of the new file; generating trusted installation program information according to the file feature information. By implementing the present invention, the potential safety hazard caused by the industrial control host updating the program update package without checking it is solved, and the real-time monitoring of the uploaded installation program, that is, the newly added files, is realized through the file change notification; the new files are automatically scanned in the background, that is, the security scan of the newly added files is ensured, and the security of the installation program itself is ensured, and the spread of viruses and Trojans in the industrial control network is avoided; through the process of full background automatic processing, the software security update in the program whitelist controlled mode can be realized without changing any original user habits.

[0039] As an optional implementation of the present invention, the step of scanning the newly created file for verification according to the newly created file information specifically includes:

[0040] First, verify whether the newly created file is an executable file; and perform virus check on the newly created file; in this embodiment, the executable file is a file that can be installed and run on the industrial control host, that is, the program corresponding to the executable file can be installed and run on the industrial control host without obstacles. Specifically, check whether the newly created file is an executable file, that is, check whether the newly created file has an extension, or whether the extension conforms to the preset extension format, and check whether the content format of the newly created file conforms to the standard format. Performing virus check on the newly created file can be scanning the newly created file, and comparing whether there is a virus in the newly created file according to the characteristic information of the preset virus library.

[0041] Secondly, when the newly created file is an executable file and the newly created file passes the virus check, it is determined that the newly created file passes the verification. In this embodiment, when it is determined that the newly created file is an executable file and there is no Trojan virus in the newly created file, it is determined that the newly created file passes the verification, that is, at this time, it is determined that the newly created file is safe and has no potential risks.

[0042] As an optional implementation of the present invention, the step of verifying whether the newly created file is an executable file specifically includes:

[0043] Determine whether the newly created file has a preset extension, and determine whether the newly created file conforms to the standard format; when the newly created file has a preset extension, and the newly created file conforms to the standard format, determine that the newly created file is an executable file. In this embodiment, the preset extension is a file suffix identifier pre-set by the system, which can be (.exe) and the like. The standard format is the writing format that the program file needs to conform to when it is generated. Specifically, determine whether the newly created file has a suffix, and whether the suffix conforms to the preset suffix format; when the newly created file has a suffix, and the suffix conforms to the preset suffix format, determine whether the newly created file conforms to the standard format, that is, screen the format of the file itself.

[0044] A method for generating a program whitelist provided by an embodiment of the present invention checks the newly created file when it is detected that a new file has been added. By checking whether the extension of the newly created file conforms to a preset extension format, checking whether the newly created file conforms to a preset format, and comparing with a preset virus library, it is checked whether the newly created file contains a virus. This method can comprehensively and timely check the newly added files in the application server, thereby ensuring the safe operation of the industrial control network.

[0045] As an optional implementation of the present invention, the method for generating a program whitelist further includes: the file feature information includes file fingerprint feature information and file content information.

[0046] As an optional implementation of the present invention, before the step of monitoring the newly created file information, the method for generating the program whitelist also includes: registering a file change operation callback notification; and monitoring the target file storage directory according to the file change operation callback notification. In this embodiment, the file operation monitoring component in the application server pre-sets the storage path of the newly added files, and the file operation monitoring component begins to monitor the changes of the target storage path. When there are new files in the storage path, the directory information of the corresponding target storage path will also change. The file operation monitoring component registers the file change information callback notification on the application server so that when a new file is added, that is, when the target storage path changes, the file operation monitoring component can receive the file change notification sent by the application server, that is, receive the new file message, and scan the new file.

[0047] The embodiment of the present invention also provides a program update method, such as Figure 2 As shown, including:

[0048] Step S21: Send a program update package download request to the application server; in this embodiment, when the program needs to be updated, the controlled host generates a program update package download request and sends the generated program update package download request to the application server to request downloading of the corresponding program package.

[0049] Step S22: receiving the program update package sent by the application server according to the program update package request; in this embodiment, in this embodiment, the application server sends the corresponding program update package to the corresponding controlled host according to the download request.

[0050] Step S23: Determine whether the program update package is safe according to a preset trusted installer list, the preset trusted installer list is constructed based on the trusted installer information generated according to the program whitelist generation method as described in the above embodiment; in this embodiment, after receiving the program update package, the controlled host verifies the program update package, that is, determines whether the program update package is safe. In actual application scenarios, it is to determine whether the program update package exists in the trusted installer list, and generates trusted installer information according to the program whitelist generation method described in any of the above embodiments; a trusted installer list is constructed based on a number of trusted installer information. When a program update package exists in the trusted installer list, it means that the program update package has passed the verification and verification of the file operation monitoring component in the application server, and can be safely run on the controlled host, and will not bring unknown risks and hidden dangers to the controlled host.

[0051] Step S24: When it is determined that the program update package is safe, an update instruction is obtained, and the program update package is updated according to the update instruction. In this embodiment, when the corresponding program update package is extracted from the trusted installation program list, the update instruction input by the user is received. In the actual application scenario, that is, the user double-clicks the program update package, which can parse the corresponding program update package and install the program update package on the controlled host.

[0052] As an optional implementation of the present invention, the program updating method further includes:

[0053] According to the update instruction and the program update package, an updated program is generated, and a hash value of the updated program is determined; and according to the hash value, the updated program is stored in a preset whitelist library.

[0054] like Figure 3 As shown, the following describes in detail the specific implementation process of the program whitelist generation method and the program update method in the above embodiment in combination with a schematic diagram of a system. That is, the above method can be applied to Figure 3 In the system shown in the figure, the system specifically includes: an application server, a file operation monitoring component, a management server, and a controlled host. The application server includes a file operation monitoring component.

[0055] The file monitoring component is used to pre-configure the storage path of the application software in the application server, that is, the location where new files are stored in the application server, and register the callback notification of the file change operation in the storage path, that is, monitor the changes of the directory of the application software storage path.

[0056] The application server is used to push new file information to the file operation monitoring component when there is a new file in the target path, that is, push file change notification information to the file operation monitoring component to notify the file operation monitoring component that there is a new file in the target storage path.

[0057] The file operation monitoring component is also used to obtain the newly created file according to the notification information when the file update notification information is received, and then verify the newly created file, including checking whether the newly created file is an executable file and whether there is a Trojan virus in the newly created file; after the newly created file passes the inspection and verification, the file feature information in the newly created file is extracted, and the trusted installation program information is generated. Based on multiple trusted installation program information, a trusted installation program list is generated and uploaded to the management server.

[0058] The management server is used to send the trusted installation program list to the controlled host.

[0059] When the controlled host needs to update the program in the host, the controlled host is used to send a program update package download request to the application server; the application server is also used to send the corresponding program update package to the controlled host according to the received program update package download request. When the controlled host receives the program update package, it verifies the program update package, that is, determines whether the program update package is safe. When the user determines that the program update package is a program in the trusted installation list, the controlled host can directly install the program update package.

[0060] The embodiment of the present invention also provides a device for generating a program whitelist, such as Figure 4 As shown, including:

[0061] The file feature information extraction module 31 is used to scan the newly created file for verification according to the newly created file information when the newly created file information is monitored, and when the newly created file passes the verification, extract the file feature information of the newly created file; the detailed implementation content can refer to the relevant description of step S11 in the above method embodiment.

[0062] The trusted installer information generating module 32 is used to generate the trusted installer information according to the file characteristic information. The detailed implementation content can refer to the relevant description of step S12 in the above method embodiment.

[0063] The present invention provides a program whitelist generation device, including: monitoring the target file storage directory through a file feature information extraction module 31, when monitoring new file information, scanning the new file according to the new file information for verification, when the new file is an executable file and there is no virus or Trojan horse, determining that the new file has passed the verification, and then extracting the file feature information of the new file; generating trusted installation program information according to the file feature information through a trusted installation program information generation module 32. By implementing the present invention, the potential safety hazard caused by the industrial control host updating the program update package without checking it is solved, and the real-time monitoring of the uploaded installation program, that is, the newly added file, is realized through the file change notification; by automatically scanning the new file in the background, that is, the security scanning of the newly added file, the security of the installation program itself is ensured, and the spread of virus and Trojan horse in the industrial control network is avoided; through the process of full background automatic processing, the software security update in the program whitelist controlled mode can be realized without changing any original user habits.

[0064] The embodiment of the present invention also provides a program updating device, such as Figure 5 As shown, including:

[0065] The program update package download request sending module 41 is used to send a program update package download request to the application server; the detailed implementation content can refer to the relevant description of step S21 in the above method embodiment.

[0066] The program update package downloading module 42 is used to receive the program update package sent by the application server according to the program update package request; the detailed implementation content can refer to the relevant description of step S22 in the above method embodiment.

[0067] The judgment module 43 is used to judge whether the program update package is safe according to a preset trusted installer list. The preset trusted installer list is constructed based on the trusted installer information generated by the program whitelist generation method of any of the above embodiments; the detailed implementation content can be found in the relevant description of step S23 in the above method embodiment.

[0068] The program update module 44 is used to obtain update instructions when it is determined that the program update package is safe, and to update according to the update instructions and the program update package. For detailed implementation content, please refer to the relevant description of step S24 in the above method embodiment.

[0069] The present invention provides a program update device, comprising: sending a program update package download request to an application server through a program update package download request sending module 41; receiving a program update package issued by the application server according to the program update package request through a program update package download module 42; judging whether the program update package is safe according to a preset trusted installation program list through a judgment module 43, wherein the preset trusted installation program list is constructed by the trusted installation program information generated by the program whitelist generation method described in the above embodiment; and obtaining an update instruction through a program update module 44 when the program update package is judged to be safe, and updating the program update package according to the update instruction and the program update package. By implementing the present invention, the potential safety hazard caused by the industrial control host updating the program update package without checking it is solved, and the background system automatically scans the newly created files and checks and kills viruses and Trojans, thereby ensuring the safety of the program update package and avoiding the spread of viruses and Trojans in the industrial control network; and also realizing the fully automatic processing flow from downloading to installing the program under the program whitelist control mode, and realizing the safe update of the program without changing the user's own usage habits.

[0070] The embodiment of the present invention also provides a computer device, such as Figure 6 As shown, the computer device may include a processor 51 and a memory 52, wherein the processor 51 and the memory 52 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0071] The processor 51 may be a central processing unit (CPU). The processor 51 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0072] The memory 52 is a non-transitory computer-readable storage medium that can be used to store non-transitory programs, non-transitory computer executable programs, and modules, such as program instructions / modules corresponding to the program update method in the embodiment of the present invention (for example, Figure 4 The file feature information extraction module 31, the trusted installation program information generation module 32 and Figure 5The processor 51 executes various functional applications and data processing of the processor by running the non-transient programs, instructions and modules stored in the memory 52, that is, implements the program update method in the above method embodiment.

[0073] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required by at least one function; the data storage area may store data created by the processor 51, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely located relative to the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The one or more modules are stored in the memory 52, and when executed by the processor 51, execution such as Figure 1 as well as Figure 2 The program updating method in the illustrated embodiment.

[0074] For details of the above computer equipment, please refer to Figure 1 as well as Figure 2 The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.

[0075] Optionally, an embodiment of the present invention further provides a non-transitory computer-readable medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute a program whitelist generation method and a program update method as described in any one of the above embodiments, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.

[0076] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A method for generating a program whitelist, characterized in that: include: When newly created file information is detected, the newly created file is scanned for verification according to the newly created file information, and when the newly created file passes the verification, file feature information of the newly created file is extracted; Generate trusted installation program information according to the file feature information; wherein the file feature information includes: file fingerprint information and file content information; The step of scanning the newly created file for verification according to the newly created file information specifically includes: Verifying whether the newly created file is an executable file; and Performing virus check on the newly created file; The checking whether the newly created file is an executable file includes: Determine whether the newly created file has a preset extension, determine whether the newly created file conforms to a standard format, and check whether the content format of the newly created file conforms to a standard format; When the newly created file has a preset extension and the newly created file conforms to a standard format, determining that the newly created file is an executable file; Comparing the newly created file with the feature information of a preset virus database to see if there is a virus; When the newly created file is an executable file and the newly created file passes the virus check, it is determined that the newly created file passes the verification.

2. The method according to claim 1, characterized in that Before the step of detecting the new file information, it also includes: Register file change operation callback notification; According to the file change operation callback notification, the target file storage directory is monitored.

3. A program updating method, characterized in that: include: Sending a program update package download request to an application server; receiving a program update package sent by the application server according to the program update package request; Determining whether the program update package is safe according to a preset trusted installer list, wherein the preset trusted installer list is constructed by trust installer information generated according to the program whitelist generation method according to any one of claims 1 to 2; When it is determined that the program update package is safe, an update instruction is obtained, and the program update package is updated according to the update instruction.

4. The method according to claim 3, characterized in that Also includes: Generate an updated program according to the update instruction and the program update package, and determine a hash value of the updated program; The updated program is stored in a preset whitelist library according to the hash value.

5. A device for generating a program whitelist, characterized in that: include: A file feature information extraction module, for, when newly created file information is detected, scanning the newly created file for verification according to the newly created file information, and extracting the file feature information of the newly created file when the newly created file passes the verification; The trusted installer information generating module is used to generate trusted installer information according to the file characteristic information.

6. A program updating device, characterized in that: include: A program update package download request sending module, used for sending a program update package download request to an application server; A program update package download module, used for receiving the program update package sent by the application server according to the program update package request; a judgment module, configured to judge whether the program update package is safe according to a preset trusted installer list, wherein the preset trusted installer list is constructed by using the trusted installer information generated by the program whitelist generation method according to any one of claims 1 to 2; The program update module is used to obtain an update instruction when it is determined that the program update package is safe, and to update the program according to the update instruction and the program update package.

7. A computer device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method for generating a program whitelist as described in any one of claims 1-2 or the steps of the program updating method as described in claim 3 or 4.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method for generating a program whitelist as described in any one of claims 1 to 2 or the method for updating a program as described in claim 3 or 4.