Patch update method, device, computing device and storage medium

By installing and testing the patch package and generating an update strategy, the compatibility and functionality issues after patch package installation are solved, and system stability and security are improved.

CN114237665BActive Publication Date: 2024-09-24HARBIN ANTIY TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111516949.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2024-09-24
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

Existing patch packages often cause compatibility and functionality problems after installation, resulting in poor system stability, and the repair process is time-consuming and can easily cause network security problems.

Method used

Through installation testing of all patch packages to be updated, a patch update strategy is generated based on the test results, and the selected patch package is sent to the client to ensure that compatibility and functionality issues are avoided during installation and to improve system stability.

Benefits of technology

It effectively avoids compatibility and functionality problems after the patch package is installed, ensures that the client is updated in a timely manner, and improves system stability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114237665B
    Figure CN114237665B
Patent Text Reader

Abstract

The present invention provides a patch update method, device, computing device and storage medium, wherein the method includes: obtaining a full patch package to be updated; performing an installation test on the full patch package to obtain an installation test result; generating a patch update strategy based on the installation test result; sending the patch update strategy and the patch package to a client to be updated, so that the client to be updated performs a patch update according to the patch update strategy and the received patch package. This solution not only enables the client to perform a patch update in a timely manner, but also effectively avoids problems such as compatibility and functionality, and improves the stability of the system after the patch package is installed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of network security technology, and in particular to a patch updating method, apparatus, computing device and storage medium. Background Art

[0002] A patch is a program released to resolve system vulnerabilities. It can solve defects in the specific implementation of hardware, software, protocols or system security policies, and prevent attackers from accessing or damaging the system without authorization.

[0003] Currently, after a patch package is generated for a software or operating system, the patch file is sent to the client through the official website, and the client installs the patch package. However, due to the differences in clients, after the patch package is installed, some compatibility, functionality and other issues may occur, resulting in poor stability. Summary of the invention

[0004] Based on the compatibility and functionality problems caused by the installation of the patch package, the embodiments of the present invention provide a patch updating method, apparatus, computing device and storage medium, which can effectively avoid the compatibility and functionality problems and improve the stability of the system after the patch package is installed.

[0005] In a first aspect, an embodiment of the present invention provides a patch updating method, comprising:

[0006] Get the full patch package to be updated;

[0007] Performing an installation test on the full patch package to obtain an installation test result;

[0008] Based on the installation test result, generating a patch update strategy;

[0009] The patch update policy and the patch package are sent to the client to be updated, so that the client to be updated performs patch update according to the patch update policy and the received patch package.

[0010] Preferably, performing installation test on the full patch package to obtain installation test result includes:

[0011] Preparing a test environment; wherein the test environment is installed with the pre-collected core software installed on each client to be updated;

[0012] The full patch package is installed in the test environment, and the patch package that is successfully installed and the core software whose functions are affected are determined to obtain an installation test result.

[0013] Preferably, before preparing the test environment, the following steps are also included:

[0014] Collect all software installed on each client to be updated;

[0015] For each client to be updated, determine the service function of the client to be updated, and determine the software related to the corresponding service function from all software installed on the client to be updated according to the service function of the client to be updated;

[0016] The software determined for each client to be updated is determined as the core software.

[0017] Preferably, installing the full patch package in the test environment and determining the patch package that is successfully installed and the core software whose functions are affected include:

[0018] The full patch packages are grouped according to set levels, and corresponding patch packages are installed in order according to the levels corresponding to the groups;

[0019] After each patch package of a group is installed, it is determined whether the patch package in the group is installed successfully, and whether the core software installed in the test environment is affected, and a corresponding relationship between the affected core software and the patch package causing the impact is established based on the determination result.

[0020] Preferably,

[0021] The set level is the level of impact, and the order is from low to high impact; or, the set level is the danger level of the corresponding vulnerability, and the order is from high to low danger level of the corresponding vulnerability;

[0022] and / or,

[0023] The establishing, according to the determination result, a correspondence between the affected core software and the patch package causing the impact, includes:

[0024] If there is affected core software after installing a patch package of a group, the number of patch packages successfully installed in the group is determined;

[0025] If the number is greater than the set threshold, the same test environment is re-prepared, and the successfully installed patch packages in the group are installed one by one. After each patch package is installed, the function of the affected core software is verified. If it is verified that the function of the core software is affected, it is determined that the most recently installed patch package is the patch package that caused the impact, and a correspondence between the core software and the patch package is established.

[0026] Preferably,

[0027] The generating of the patch update strategy based on the installation test result includes: determining the patch package set corresponding to each business function and causing the impact according to the corresponding relationship and the relationship between the core software and the business function; determining the patch package that can be installed by the to-be-updated client of each business function according to the patch package set corresponding to each business function, and obtaining the patch update strategy;

[0028] The sending of the patch update policy and the patch package to the client to be updated includes: sending the patch update policy and the patch package in the patch update policy that can be installed by the client to be updated corresponding to the service function to the client to be updated according to the service function of the client to be updated.

[0029] Preferably, the step of determining the patch package that can be installed by the client to be updated of each business function according to the patch package set affected by each business function includes:

[0030] For each business function, determine the target patch package in the patch package set that causes the impact on the business function, the target patch package whose corresponding vulnerability danger level exceeds the set danger level, and determine the target patch package and the patch packages in the full patch package except the patch package set as the patch packages that can be installed by the client to be updated for the business function.

[0031] In a second aspect, an embodiment of the present invention further provides a patch updating device, including:

[0032] A patch package acquisition unit, used to acquire the full patch package to be updated;

[0033] A testing unit, used to perform an installation test on the full patch package to obtain an installation test result;

[0034] A policy generating unit, configured to generate a patch update policy based on the installation test result;

[0035] The communication unit is used to send the patch update strategy and the patch package to the client to be updated, so that the client to be updated performs patch update according to the patch update strategy and the received patch package.

[0036] In a third aspect, an embodiment of the present invention further provides a computing device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in any embodiment of this specification is implemented.

[0037] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method described in any embodiment of this specification.

[0038] The embodiment of the present invention provides a patch update method, apparatus, computing device and storage medium, which performs an installation test on the full patch package to be updated, and generates a patch update strategy according to the installation test result, so as to use the patch update strategy to send the selected patch package to the client to be updated, so that the client to be updated can perform patch update according to the patch update strategy and the received patch package. It can be seen that this solution can not only enable the client to perform patch update in time, but also effectively avoid compatibility and functionality problems, and improve the stability of the system after the patch package is installed. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 is a flow chart of a patch updating method provided by an embodiment of the present invention;

[0041] Figure 2 This is a flow chart of an installation test method provided by an embodiment of the present invention;

[0042] Figure 3 is a hardware architecture diagram of a computing device provided by an embodiment of the present invention;

[0043] Figure 4 is a structural diagram of a patch updating device provided by an embodiment of the present invention;

[0044] Figure 5 This is a structural diagram of another patch updating device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0046] As mentioned above, after the patch package is installed on the client, some compatibility and functionality problems will occur, such as office software failure, patch installation failure, etc. To solve this problem, the patch release manufacturer will currently repair the problem based on the problem, and will only release the patch package when it does not cause the above problems after the repair. This takes a long time and is prone to network security problems during the repair phase. Therefore, in order to effectively avoid the above problems, you can consider installing and testing the full patch package, generate a patch update strategy based on the installation test results, and issue the patch package to the client to be updated, so that the client can effectively avoid the above problems on the premise of timely installing the patch package to repair the vulnerability.

[0047] The specific implementation of the above concept is described below.

[0048] Please refer to Figure 1 , an embodiment of the present invention provides a patch updating method, the method comprising:

[0049] Step 100, obtaining the full patch package to be updated;

[0050] Step 102, performing an installation test on the full patch package to obtain an installation test result;

[0051] Step 104, generating a patch update strategy based on the installation test result;

[0052] Step 106: Send the patch update policy and the patch package to the client to be updated, so that the client to be updated performs patch update according to the patch update policy and the received patch package.

[0053] In the embodiment of the present invention, the full patch package to be updated is subjected to installation test, and a patch update strategy is generated according to the installation test result, so that the selected patch package is sent to the client to be updated by using the patch update strategy, so that the client to be updated performs patch update according to the patch update strategy and the received patch package. It can be seen that this solution can not only enable the client to perform patch update in time, but also effectively avoid compatibility and functionality problems, and improve the stability of the system after the patch package is installed.

[0054] Described below Figure 1 How the various steps are performed.

[0055] First, with respect to step 100, the full patch package to be updated is obtained.

[0056] Among them, the patch package is generated based on the vulnerability of the operating system or software. The full patch package includes multiple patch packages corresponding to multiple vulnerabilities. If the client installs all the full patch packages, it can ensure that the vulnerabilities of the current operating system or software are eliminated.

[0057] Then, with respect to step 102, an installation test is performed on the full patch package to obtain an installation test result.

[0058] In one embodiment of the present invention, the installation test results may include two types: one is whether the patch package is successfully installed, and the other is whether there is any affected software. To obtain the installation test results, please refer to Figure 2 , this step 102 may include:

[0059] Step 200, prepare a test environment; the test environment is installed with pre-collected core software installed on each client to be updated.

[0060] The test environment may be related to the patch package to be updated. If the patch package is an operating system patch package, the test environment corresponds to the operating system type. For example, if the operating system type is Windows 10, the operating system type of the test environment is also Windows 10. If the patch package is a software patch package, test environments of different operating system types are prepared, such as Windows 10, Linux, and other operating system types.

[0061] Considering that the success or failure of the patch package installation has a certain relationship with the software installed in the client, and after the patch package is successfully installed, it may also have a certain impact on the software functions installed in the client, in order to know the impact relationship between the patch package and the software installed in the client. In one embodiment of the present invention, before preparing the test environment, it may also include: collecting all software installed on each client to be updated; for each client to be updated, determining the business function of the client to be updated, and determining the software related to the corresponding business function from all the software installed on the client to be updated according to the business function of the client to be updated; determining the software determined for each client to be updated as the core software.

[0062] The business function of the client to be updated refers to the main business direction of the user who uses the client to be updated. For example, if it is a finance department, it involves software related to finance functions. For another example, if it is a procurement department, it involves software related to OA procurement functions.

[0063] The software related to the business function is the core software on the client to be updated. Since the business functions of each client to be updated are different, after the core software of each client to be updated is determined, the core software is installed in the test environment so that the test environment covers the core software of each business function, so as to determine the impact relationship between the core software and the patch package.

[0064] Step 202: Install the full patch package in the test environment, determine the successfully installed patch package and the core software whose functions are affected, and obtain an installation test result.

[0065] When determining the patch packages that have been successfully installed, you can install the full patch package together to determine which patch packages have been successfully installed and which core software has been affected. However, if there are core software with affected functions, you need to determine which patch package caused the affected core software, and then you need to reinstall each patch package in the full patch package one by one, resulting in a waste of test time and test resources.

[0066] Based on this, in one embodiment of the present invention, this step 202 may include: grouping the full patch packages according to set levels, and installing corresponding patch packages in sequence according to the levels corresponding to the groups; after installing each patch package in a group, determining whether the patch package in the group is installed successfully, and determining whether the core software installed in the test environment is affected, and establishing a correspondence between the affected core software and the patch package that caused the impact based on the determination result.

[0067] In one embodiment of the present invention, the setting level can be at least the following two:

[0068] First, the setting level is the level of impact, and the order in step 202 can be from low to high impact. Install the patch packages with low impact first, quickly filter out the patch packages that will not affect the core software, so that the client to be updated can install the patch packages that will not affect in time, and ensure the system security in time.

[0069] The second method is to set the level as the danger level of the corresponding vulnerability, and the order in step 202 is the order of the danger level of the corresponding vulnerability from high to low. The patch packages with high danger levels of the corresponding vulnerabilities are installed first, and the patch packages with high danger levels of the corresponding vulnerabilities that will not affect the core software are quickly screened out, and then the client to be updated is made to install the patch packages with high danger levels of the corresponding vulnerabilities in time to ensure system security.

[0070] Specifically, when grouping all patch packages according to set levels, in order to prevent a large number of patch packages in a group, when affected core software is found after the patch packages in the group are installed, it is necessary to check the patch packages in the group one by one, which increases the difficulty of checking. Therefore, the number of patch packages in a group can be set to be no greater than a specified threshold. If the number of patch packages of the same level is greater than the specified threshold, the patch packages of the same level are further subdivided into groups so that the number of patch packages in the subdivided groups is no greater than the specified threshold.

[0071] When determining whether the core software installed in the test environment is affected, a test may be performed based on a test process pre-set for each core software to determine whether the core software can pass the test. If the core software can pass the test, it indicates that it is not affected.

[0072] In the embodiment of the present invention, when establishing the correspondence between the affected core software and the patch package causing the impact, the correspondence between the successfully installed patch package in the group causing the impact and the affected core software can be directly established.

[0073] Since there may be multiple patch packages in a group, in order to further determine which patch package causes the impact on the affected core software, a correspondence between the affected core software and the patch package causing the impact is established based on the determination result, specifically including: if after installing a patch package of a group, if there is affected core software, the number of patch packages successfully installed in the group is determined; if the number is greater than a set threshold, the same test environment is re-prepared, and the successfully installed patch packages in the group are installed one by one, and after each patch package is installed, the function of the affected core software is verified; if it is verified that the function of the core software is affected, it is determined that the patch package installed most recently is the patch package that causes the impact, and a correspondence between the core software and the patch package is established.

[0074] Since the full patch packages have been grouped according to set levels, the number of patch packages in a group is less than the number of full patch packages. When a group is tested one by one, the test speed can be increased compared to testing the full patch packages one by one.

[0075] Finally, step 104 "generating a patch update policy based on the installation test result" and step 106 "sending the patch update policy and patch package to the client to be updated, so that the client to be updated performs a patch update according to the patch update policy and the received patch package" are explained simultaneously.

[0076] In order to avoid the impact of patch packages on the core software during the installation of the patch packages on the client to be updated, the patch update strategy generated in step 104 needs to at least point out which patch packages can be installed on the client to be updated of different business functions. Specifically, step 104 may include: determining the patch package set corresponding to each business function and the relationship between the core software and the business function; determining the patch packages that can be installed on the client to be updated of each business function according to the patch package set corresponding to each business function, to obtain the patch update strategy.

[0077] For example, business function A corresponds to core software A1~A10, business function B corresponds to core software B1~B8, and the full patch packages are M1~10; in the corresponding relationship, core software A1 corresponds to patch package M1, core software A5 corresponds to patch package M2, and core software B3 corresponds to patch package M3. Then the patch package set affected by business function A is M1 and M2, and the patch package set affected by business function B is M3.

[0078] In one embodiment of the present invention, when determining the patch packages that can be installed on the client to be updated of each business function, the patch packages other than the patch package set corresponding to the business function can be determined as the patch packages that can be installed on the client to be updated of the business function. For example, the patch packages that can be installed on the client to be updated of business function A are: patch packages M3 to M10; the patch packages that can be installed on the updated client of business function B are: patch packages M1 to M2, M4 to M10. In this way, it can be ensured that after the installation of the corresponding patch package, the client to be updated will not affect other installed core software, and the corresponding vulnerabilities can be repaired in time, thereby improving system security.

[0079] Taking into account that the higher the danger level of a vulnerability is, the more likely it is that user resources will be lost and security will be greatly threatened if it is attacked. Therefore, in one embodiment of the present invention, when determining the patch package that can be installed by the client to be updated of each business function based on the patch package set corresponding to the affected business function, it can also be determined in the following way: for each business function, determine the target patch package in the patch package set corresponding to the affected business function, the target patch package corresponding to the vulnerability exceeding the set danger level, and determine the target patch package and the patch packages in the full patch package except the patch package set as the patch packages that can be installed by the client to be updated of the business function.

[0080] Continuing with the above example, if the danger level of the vulnerability corresponding to patch package M2 exceeds the set danger level, then patch packages M2~M1 are determined as the patch packages that can be installed by the updated client of business function A. Although patch package M2 may affect the function of core software A5 during the installation process, the danger level of the vulnerability repaired by patch package M2 is higher. If the vulnerability with a higher danger level is not repaired in time, the impact may be greater. Relatively speaking, it is necessary to give priority to repairing the vulnerability with a higher danger level to ensure system security.

[0081] Furthermore, in order to further effectively avoid compatibility, functionality and other problems caused by the installation of patch packages, the generated patch update strategy can also include the setting of patch download period and patch update period. For example, priority is given to downloading and updating during non-business periods to reduce the impact on business.

[0082] In step 106, when sending a patch package to the client to be updated, a full patch package may be sent so that the client to be updated can install the installable patch packages in the full patch package according to the sent patch update policy; in addition, the server may also send only the installable patch packages to the client to be updated according to the business function of the client to be updated, so that the client to be updated can install all the received patch packages according to the patch update policy.

[0083] like Figure 3 , Figure 4 As shown, an embodiment of the present invention provides a patch updating device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 3 As shown, it is a hardware architecture diagram of a computing device where a patch updating device provided by an embodiment of the present invention is located, except Figure 3 In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the computing device in which the device is located in the embodiment may also generally include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 4 As shown, as a device in a logical sense, the CPU of the computing device in which it is located reads the corresponding computer program in the non-volatile memory into the memory and runs it. A patch update device provided in this embodiment includes:

[0084] The patch package acquisition unit 401 is used to acquire the full patch package to be updated;

[0085] The testing unit 402 is used to perform an installation test on the full patch package to obtain an installation test result;

[0086] A policy generating unit 403, configured to generate a patch update policy based on the installation test result;

[0087] The communication unit 404 is configured to send the patch update policy and the patch package to the client to be updated, so that the client to be updated performs patch update according to the patch update policy and the received patch package.

[0088] In one embodiment of the present invention, the testing unit 402 is specifically used to prepare a testing environment; the testing environment is installed with pre-collected core software installed on each client to be updated; the full patch package is installed in the testing environment, and the patch package that is successfully installed and the core software whose functions are affected are determined to obtain the installation test results.

[0089] In one embodiment of the present invention, please refer to Figure 5, the patch updating device may further include:

[0090] The core software determination unit 405 is used to collect all software installed on each client to be updated; for each client to be updated, determine the business function of the client to be updated, and determine the software related to the corresponding business function from all software installed on the client to be updated according to the business function of the client to be updated; and determine the software determined for each client to be updated as the core software.

[0091] In one embodiment of the present invention, when the testing unit 402 installs the full patch package in the test environment and determines the patch packages that are successfully installed and the core software whose functions are affected, it specifically includes: grouping the full patch package according to set levels, and installing the corresponding patch packages in sequence according to the levels corresponding to the groups; after installing each patch package in a group, determining whether the patch package in the group is successfully installed, and determining whether the core software installed in the test environment is affected, and establishing a correspondence between the affected core software and the patch package that causes the impact based on the determination result.

[0092] In one embodiment of the present invention, the set level is the level of impact, and the order is the order from low to high impact; or, the set level is the danger level of the corresponding vulnerability, and the order is the order from high to low danger level of the corresponding vulnerability;

[0093] In one embodiment of the present invention, when the test unit 402 establishes a correspondence between the affected core software and the patch package causing the impact based on the determination result, it specifically includes: if after installing a patch package of a group, if there is affected core software, then determining the number of patch packages successfully installed in the group; if the number is greater than a set threshold, re-preparing the same test environment, and installing the successfully installed patch packages in the group one by one, and after each patch package is installed, performing functional verification on the affected core software; if it is verified that the function of the core software is affected, determining that the most recently installed patch package is the patch package causing the impact, and establishing a correspondence between the core software and the patch package.

[0094] In one embodiment of the present invention, the policy generation unit 403 is specifically used to determine the patch package set corresponding to each business function and the relationship between the core software and the business function; determine the patch package that can be installed by the to-be-updated client of each business function according to the patch package set corresponding to each business function, and obtain the patch update policy;

[0095] The communication unit 404 is specifically configured to send the patch update policy and the patch package in the patch update policy that can be installed by the client to be updated and corresponding to the service function to the client to be updated according to the service function of the client to be updated.

[0096] In one embodiment of the present invention, when the policy generation unit 403 determines the patch packages that can be installed by the client to be updated of each business function based on the patch package set corresponding to the impact of each business function, it is specifically used to determine, for each business function, a target patch package in the patch package set corresponding to the impact of the business function, the target patch package and the patch packages in the full patch package except the patch package set as the patch packages that can be installed by the client to be updated of the business function.

[0097] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on a patch updating device. In other embodiments of the present invention, a patch updating device may include more or fewer components than those illustrated, or combine certain components, or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0098] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For the specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.

[0099] An embodiment of the present invention further provides a computing device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a patch updating method in any embodiment of the present invention is implemented.

[0100] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes a patch updating method in any embodiment of the present invention.

[0101] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.

[0102] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0103] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0104] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0105] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0106] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical factors in the process, method, article or device including the elements.

[0107] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A patch updating method, characterized in that: include: Get the full patch package to be updated; Prepare the test environment; The test environment is installed with pre-collected core software installed on each client to be updated; Install the full patch package in the test environment, determine the patch packages that are successfully installed and the core software whose functions are affected, and obtain an installation test result; Determine the correspondence between the affected core software and the patch packages causing the impact based on the installation test results, and determine the patch package set corresponding to each business function based on the correspondence and the relationship between the core software and the business function; determine the patch packages that can be installed by the updated client of each business function based on the patch package set corresponding to each business function, and obtain the patch update strategy; The patch update policy and the patch package are sent to the client to be updated, so that the client to be updated performs patch update according to the patch update policy and the received patch package.

2. The method according to claim 1, characterized in that: Before preparing the test environment, you must also: Collect all software installed on each client to be updated; For each client to be updated, determine the service function of the client to be updated, and determine the software related to the corresponding service function from all software installed on the client to be updated according to the service function of the client to be updated; The software determined for each client to be updated is determined as the core software.

3. The method according to claim 1, characterized in that: The step of installing the full patch package in the test environment and determining the patch package that is successfully installed and the core software whose functions are affected includes: The full patch packages are grouped according to set levels, and corresponding patch packages are installed in order according to the levels corresponding to the groups; After each patch package of a group is installed, it is determined whether the patch package in the group is installed successfully, and whether the core software installed in the test environment is affected, and a corresponding relationship between the affected core software and the patch package causing the impact is established based on the determination result.

4. The method according to claim 3, characterized in that The set level is the level of impact, and the order is from low to high impact; or, the set level is the danger level of the corresponding vulnerability, and the order is from high to low danger level of the corresponding vulnerability; and / or, The establishing, according to the determination result, a correspondence between the affected core software and the patch package causing the impact, includes: If there is affected core software after installing a patch package of a group, the number of patch packages successfully installed in the group is determined; If the number is greater than the set threshold, the same test environment is re-prepared, and the successfully installed patch packages in the group are installed one by one. After each patch package is installed, the function of the affected core software is verified. If it is verified that the function of the core software is affected, it is determined that the most recently installed patch package is the patch package that caused the impact, and a correspondence between the core software and the patch package is established.

5. The method according to claim 3, characterized in that: The sending of the patch update policy and the patch package to the client to be updated includes: sending the patch update policy and the patch package in the patch update policy that can be installed by the client to be updated corresponding to the service function to the client to be updated according to the service function of the client to be updated.

6. The method according to claim 5, characterized in that The step of determining, according to the patch package set corresponding to each business function and caused by the impact, the patch package that can be installed on the client to be updated for each business function comprises: For each business function, determine the target patch package in the patch package set that causes the impact on the business function, the target patch package whose corresponding vulnerability danger level exceeds the set danger level, and determine the target patch package and the patch packages in the full patch package except the patch package set as the patch packages that can be installed by the client to be updated for the business function.

7. A patch updating device, characterized in that: include: A patch package acquisition unit, used to acquire the full patch package to be updated; Test unit, used to prepare the test environment; The test environment is installed with pre-collected core software installed on each client to be updated; Install the full patch package in the test environment, determine the patch packages that are successfully installed and the core software whose functions are affected, and obtain an installation test result; A policy generation unit is used to determine the correspondence between the affected core software and the patch packages causing the impact according to the installation test results, and determine the patch package set corresponding to each business function and causing the impact according to the correspondence and the relationship between the core software and the business function; according to the patch package set corresponding to each business function and causing the impact, determine the patch package that can be installed by the client to be updated of each business function, and obtain the patch update policy; The communication unit is used to send the patch update strategy and the patch package to the client to be updated, so that the client to be updated performs patch update according to the patch update strategy and the received patch package.

8. The device according to claim 7, characterized in that The device also includes: The core software determination unit is used to collect all software installed on each client to be updated; for each client to be updated, determine the business function of the client to be updated, and determine the software related to the corresponding business function from all software installed on the client to be updated according to the business function of the client to be updated; and determine the software determined for each client to be updated as the core software.

9. The device according to claim 7, characterized in that When the test unit installs the full patch package in the test environment and determines the patch package that is successfully installed and the core software whose functions are affected, it specifically includes: grouping the full patch package according to set levels, and installing the corresponding patch packages in sequence according to the levels corresponding to the groups; after installing each patch package in a group, determining whether the patch package in the group is successfully installed, and determining whether the core software installed in the test environment is affected, and establishing a correspondence between the affected core software and the patch package that causes the impact based on the determination result.

10. The device according to claim 9, characterized in that The set level is the level of impact, and the order is from low to high impact; or, the set level is the danger level of the corresponding vulnerability, and the order is from high to low danger level of the corresponding vulnerability.

11. The device according to claim 9, characterized in that When the test unit establishes a correspondence between the affected core software and the patch package that causes the impact based on the determination result, it specifically includes: if after installing a patch package of a group, if there is affected core software, then determine the number of patch packages successfully installed in the group; if the number is greater than a set threshold, re-prepare the same test environment, and install the successfully installed patch packages in the group one by one, and after each patch package is installed, perform functional verification on the affected core software; if it is verified that the function of the core software is affected, determine that the most recently installed patch package is the patch package that causes the impact, and establish a correspondence between the core software and the patch package.

12. The device according to claim 9, characterized in that The communication unit is specifically configured to send the patch update policy and the patch package in the patch update policy that can be installed by the client to be updated and corresponding to the service function to the client to be updated according to the service function of the client to be updated.

13. The device according to claim 12, characterized in that When the policy generation unit determines the patch packages that can be installed by the client to be updated of each business function based on the patch package set caused by each business function, it is specifically used to: for each business function, determine the target patch package in the patch package set caused by the business function, the danger level of the corresponding vulnerability exceeds the set danger level, and determine the target patch package and the patch packages in the full patch package except the patch package set as the patch packages that can be installed by the client to be updated of the business function.

14. A computing device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

15. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 6.