Automatic patch test verification method and system based on virtualization environment
By automating patch testing and verification in a virtualized environment, the problems of low efficiency and insufficient coverage in the existing technology are solved, efficient and automated patch testing is realized, adapted to diverse application scenarios, and testing efficiency and coverage are improved.
Patent Information
- Application Number
- CN202410729704.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing patch testing method is inefficient, requires a lot of manual investment, cannot meet the needs of rapid iteration, has insufficient test coverage, poor adaptability, complex test environment construction, and is difficult to implement repeatedly.
Adopt the automated patch testing and verification method based on the virtualized environment, conduct patch integrity verification, security detection and validity testing through the virtualized environment cluster, generate a comprehensive test report, and use the virtualized environment to automatically build a diverse test environment. Adapt to different application scenarios and improve testing efficiency and coverage.
It realizes automated test verification, improves test efficiency, reduces manual investment, adapts to different application scenarios, improves test coverage, can quickly reconstruct and reuse the test environment, and meets rapid iteration and diversified testing requirements.
Smart Images

Figure CN118733440A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of network security, and in particular relates to a patch automation testing and verification method and system based on a virtualized environment. Background Art
[0002] In order to ensure that the patch can correctly fix the vulnerability and will not introduce new problems, it is usually necessary to test and verify the patch before updating it to ensure that it can run stably in different environments and will not affect other applications of the current system, helping us avoid system failures caused by patch installation, thereby ensuring the stability and reliability of the system.
[0003] When an important enterprise obtains a patch officially released by a system or application vendor, it will usually conduct a simple test and verification of the patch from a security perspective. Only after ensuring that there are no problems will it be promoted to the enterprise intranet for deployment and installation. The main steps of the test are usually: first, conduct integrity and security tests to check for viruses, then find a few existing terminals and unimportant servers for test installation to check their effectiveness and compatibility; finally, after the patch is judged to be qualified, it will be fully promoted and installed on the enterprise intranet. This patch testing and verification method has the following main problems: First, manual testing is inefficient. Manual testing requires a lot of manual input, which is inefficient and cannot meet the needs of rapid iteration; second, the test coverage is insufficient, the basic environment and application scenarios are diverse, this test method is not adaptable enough to the system environment, the test environment construction is complex, and it is not conducive to repeated implementation. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] The technical problem to be solved by the present invention is how to provide a patch automated testing and verification method and system based on a virtualized environment to solve the problems that the existing patch testing adopts manual testing with low efficiency. Manual testing requires a large amount of manpower input, is inefficient, and cannot meet the needs of rapid iteration; the test coverage is insufficient, the basic environment and application scenarios are diverse, the test method is not adaptable enough to the system environment, the test environment construction is complex, and is not conducive to repeated implementation.
[0006] (II) Technical solution
[0007] In order to solve the above technical problems, the present invention proposes a patch automation test verification method based on a virtualized environment, which comprises the following steps:
[0008] Step S1, obtaining a patch, and performing integrity verification on the patch using a virtualized environment cluster, wherein the cluster includes an operating system management cluster, a database management cluster, a middleware management cluster, a security verification tool set, a general software management cluster, and a security software management cluster;
[0009] Step S2: After the patch integrity check passes, a security check is performed on the patch using a virtualized environment cluster based on a virus detection engine;
[0010] Step S3: After the patch security test passes, the effectiveness of the patch is tested using a virtualized environment cluster and a vulnerability verification script library;
[0011] Step S4: Generate a patch test verification report based on the above test results. The report content includes but is not limited to integrity check results, security test results, and effectiveness test results.
[0012] The present invention also provides a patch automation test and verification system based on a virtualized environment, the system comprising: a patch acquisition module, a task distribution management module, a patch test and verification module, and a verification result generation module;
[0013] The patch acquisition module is used to acquire a single or multiple patches to be tested and acquire patch-related attributes;
[0014] The task distribution management module is used to distribute the patch test verification task to the virtualization cluster;
[0015] The patch testing and verification module automatically performs integrity, security, effectiveness, and compatibility tests on the patch based on a virtualized environment;
[0016] The verification result generating module is used to summarize all patch test results and generate a test verification report.
[0017] (III) Beneficial effects
[0018] The present invention proposes a method and system for automated patch testing and verification based on a virtualized environment. The beneficial effects of the present invention are as follows: First, automated testing and verification. Automated testing tools and frameworks are used to improve testing efficiency and reduce the investment in manual testing to meet the needs of rapid iteration. Second, it is adaptive to different application scenario environments to improve the coverage of patch testing and verification. Through virtualization technology, a variety of basic system operating environments and application program environments are built to simulate as many actual usage scenarios as possible to meet the requirements of diversified testing environments. At the same time, the virtualized environment can also be quickly reconstructed and reused, which improves the efficiency of patch testing and verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1This is a flow chart of the patch automation test and verification method based on a virtualized environment of the present invention;
[0020] Figure 2 It is a composition diagram of the patch automation test and verification system based on the virtualization environment of the present invention;
[0021] Figure 3 is a diagram of the virtualization environment cluster environment used in an embodiment of the present invention;
[0022] Figure 4 It is a patch test verification task distribution management flow chart used in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0024] To address the above problems, this paper proposes a patch automation testing and verification method and system based on a virtualized environment.
[0025] The present invention discloses a patch automation test verification method and system based on a virtualized environment, the method comprising: obtaining a patch, performing integrity verification on the patch; when the patch integrity verification passes, performing security tests such as virus detection and killing on the patch; when the patch security test passes, performing validity test on the patch, and further selecting to perform compatibility test; based on the above test results, comprehensively generating a patch test verification report. The patch automation test verification method provided by the present invention reduces the investment in manual testing, improves test efficiency, and meets the needs of rapid iteration; in addition, by building a system operating environment for diversified scenarios through virtualization technology, it can quickly adapt to the test requirements of different application scenario environments, and also improves the coverage of test verification to a certain extent.
[0026] The present invention is achieved through the following technical solutions:
[0027] A patch automation test verification method based on a virtualized environment comprises the following steps:
[0028] Step S1, obtaining a patch, and using a virtualized environment cluster to perform integrity verification on the patch, the cluster including an operating system management cluster, a database management cluster, a middleware management cluster, a security verification tool set, a general software management cluster, and a security software management cluster;
[0029] Step S2: After the patch integrity check passes, the virtualized environment cluster is used to perform virus detection and other security checks on the patch based on a virus detection engine;
[0030] Step S3: After the patch security test passes, the effectiveness of the patch is tested using a virtualized environment cluster and a vulnerability verification script library;
[0031] Step S4: Generate a patch test verification report based on the above test results. The report content includes but is not limited to integrity check results, security test results, and effectiveness test results.
[0032] Preferably, the step S3 specifically includes:
[0033] Step S301: Generate a patch validity test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, system architecture, etc.;
[0034] Step S302: Distribute the patch validity test task to the cloud platform, and the cloud platform creates a corresponding virtualized environment cluster according to the patch attributes;
[0035] Step S303: The virtualized environment cluster automatically downloads and installs patches;
[0036] Step S304: The cloud platform calls and runs the vulnerability verification script corresponding to the patch according to the patch attributes, performs vulnerability verification on the virtualized environment cluster after the patch is installed, and determines whether the patch is valid according to the vulnerability verification results. Before the patch is released, the vulnerability verification script corresponding to the patch will be pre-released on the official website of the relevant system.
[0037] Preferably, the step S3 may further perform compatibility testing on the patch, specifically including:
[0038] Step S311: Generate a patch compatibility test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, system architecture, etc.;
[0039] Step S312: Distribute the patch compatibility test task to the cloud platform, and the cloud platform creates a corresponding virtualization environment cluster according to the patch attributes;
[0040] Step S313: The virtualized environment cluster automatically downloads and installs corresponding application software according to the application scenario to form a complete patch testing environment;
[0041] Step S314: The virtualized environment cluster automatically installs patches;
[0042] Step S315: Determine whether the patch is compatible based on the system operation status monitored by the virtualization environment.
[0043] The present invention also provides a patch automation test and verification system based on a virtualized environment, the system comprising: a patch acquisition module, a task distribution management module, a patch test and verification module, and a verification result generation module;
[0044] The patch acquisition module is used to acquire a single or multiple patches to be tested and acquire patch-related attributes;
[0045] The task distribution management module is used to distribute the patch test verification task to the virtualization environment cluster;
[0046] The patch testing and verification module automatically performs integrity, security, effectiveness, and compatibility tests on the patch based on the virtualized environment cluster;
[0047] The verification result generating module is used to summarize all patch test results and generate a test verification report.
[0048] Embodiment 1:
[0049] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0050] like Figure 1 The figure shows the process of the patch automation test verification method based on the virtualization environment, which mainly includes the following steps:
[0051] Step S1: obtaining a patch, and performing integrity check on the patch using a virtualized environment cluster;
[0052] Step S2: When the patch integrity check passes, the patch is subjected to security checks such as virus detection and elimination using a virtualized environment cluster;
[0053] Step S3: When the patch passes the security test, the virtualized environment cluster is used to perform a validity test on the patch; the patch may also be further tested for compatibility.
[0054] The specific test steps for effectiveness testing are as follows:
[0055] Step S301: Generate a patch validity test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, system architecture, etc.;
[0056] Step S302: Distribute the patch validity test task to the cloud platform, and the cloud platform creates a corresponding virtualized environment cluster according to the patch attributes;
[0057] Step S303: the virtualized environment cluster automatically downloads and installs patches;
[0058] Step S304: the cloud platform calls and runs the vulnerability verification script corresponding to the patch according to the patch attributes, performs vulnerability verification on the virtualization environment cluster after the patch is installed, and determines whether the patch is valid according to the vulnerability verification results.
[0059] The specific test steps for compatibility testing are as follows:
[0060] Step S311: Generate a patch compatibility test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, system architecture, etc.;
[0061] Step S312: Distribute the patch compatibility test task to the cloud platform, and the cloud platform creates a corresponding virtualization environment cluster according to the patch attributes;
[0062] Step S313: the virtualized environment cluster automatically downloads and installs application software according to the application scenario;
[0063] Step S314: the virtualized environment cluster automatically installs patches;
[0064] Step S315: Determine whether the patch is compatible based on the system operation status monitored by the virtualization environment.
[0065] After completing the effectiveness and compatibility test of step S3, proceed to step S4: based on the above test results, comprehensively generate a patch test verification report, the report content also includes: compatibility test results.
[0066] The present invention also provides a patch automation test and verification system based on a virtualized environment, the system composition of which is as follows: Figure 2 As shown, the system includes: a patch acquisition module, a task distribution management module, a patch test verification module, and a verification result generation module;
[0067] The patch acquisition module is used to acquire a single or multiple patches to be tested and acquire patch-related attributes;
[0068] The task distribution management module is used to distribute the patch test verification task to the virtualization cluster;
[0069] The patch testing and verification module automatically performs integrity, security, effectiveness, and compatibility tests on the patch based on a virtualized environment;
[0070] The verification result generating module is used to summarize all patch test results and generate a test verification report.
[0071] In order to illustrate the virtualization environment cluster used in the embodiment of the present invention, Figure 3The composition of the virtualization environment cluster is illustrated, which includes five major management clusters and a set of security verification tools. The five major management clusters are divided according to the location where software vulnerabilities and patches are generated, from low to high, they are operating system management cluster, application middleware management cluster, database management cluster, security software management cluster and mainstream general software management cluster. When the patch automation test task is established, the operating system management cluster uses the cloud platform template image to batch generate; the application middleware management cluster, database management cluster, security software management cluster and mainstream general software management cluster are built with the help of Harbor warehouse. The Harbor used supports the replication of image resources installed on multiple registry nodes. All images are stored in the private registry to ensure that data and intellectual property rights are controlled in the company's internal network.
[0072] Embodiment 2:
[0073] In order to illustrate the process of the embodiment of the present invention in a specific application, Figure 4 The task distribution management process provided by the embodiment of the present invention is illustrated. The purpose of task distribution management is to meet the test and verification requirements of software patches. Relying on the task execution bus, a task generation module, a task environment construction module, a task verification execution module, and a task result management module are designed to realize the automation and orderliness of patch test and verification work in a virtualized environment.
[0074] Among them, the task generation module can match the patch test verification task generation method through user identity authentication, import the user identity, and perform user authorization verification so that the user can reasonably enable and schedule the virtualization environment cluster. Through patch test task import, specific patch test tasks can be imported. Patch test tasks can be generated based on task rules. Relying on the task execution bus, user information is imported, users and patch test tasks are associated, and patches to be tested and verified are brought in by information import.
[0075] The task environment construction module can generate environmental parameters based on the patch to be verified, automatically create the patch test environment, simulate the loading of software platforms such as operating systems, applications, accounts, and verification tools, meet the available environment during the task verification execution process, and provide a stable working environment for the task during execution, processing, and result feedback. After receiving the task end instruction, it recycles and uninstalls the current task environment, releases the corresponding hardware and network resources, and provides available execution space for subsequent tasks, which can support the parallel execution of multiple virtual machines on the host machine.
[0076] The task verification execution module can perform patch security, effectiveness, compatibility and other tests by calling tools such as the anti-virus engine and vulnerability verification scripts according to the parameter information passed by the task process interface through task verification execution. After the task verification is completed, the corresponding result data will be passed to the task result management module. If all verification tasks are completed based on a constructed task environment, the task execution bus will be used to inform the task environment construction module to release resources as soon as possible to provide the next queue task.
[0077] The task result management module can compare the result data after each verification execution with the standardized evaluation rules. According to the specific verification task, it receives the verification result, retrieves the test verification report template, matches the verification result and fills in the fields, generates the verification result, and feeds back the result report to the task execution bus.
[0078] Embodiment 3:
[0079] The present invention provides a patch automation test verification method based on a virtualized environment, comprising the following steps:
[0080] Step S1: obtaining a patch, and performing integrity check on the patch using a virtualized environment cluster;
[0081] Step S2: When the patch integrity check passes, the patch is subjected to security checks such as virus detection and elimination using a virtualized environment cluster;
[0082] Step S3: When the patch security test passes, the effectiveness of the patch is tested using a virtualized environment cluster;
[0083] Step S4: Based on the above test results, a patch test verification report is comprehensively generated.
[0084] Furthermore, the step S3 specifically includes:
[0085] Step S301: Generate a patch validity test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, system architecture, etc.;
[0086] Step S302: Distribute the patch validity test task to the cloud platform, and the cloud platform creates a corresponding virtualized environment cluster according to the patch attributes;
[0087] Step S303: the virtualized environment cluster automatically downloads and installs patches;
[0088] Step S304: the cloud platform calls and runs the vulnerability verification script corresponding to the patch according to the patch attributes, performs vulnerability verification on the virtualization environment cluster after the patch is installed, and determines whether the patch is valid according to the vulnerability verification results.
[0089] Furthermore, the step S3 may further perform compatibility testing on the patch, specifically including:
[0090] Step S311: Generate a patch compatibility test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, system architecture, etc.;
[0091] Step S312: Distribute the patch compatibility test task to the cloud platform, and the cloud platform creates a corresponding virtualization environment cluster according to the patch attributes;
[0092] Step S313: the virtualized environment cluster automatically downloads and installs application software according to the application scenario;
[0093] Step S314: the virtualized environment cluster automatically installs patches;
[0094] Step S315: Determine whether the patch is compatible based on the system operation status monitored by the virtualization environment.
[0095] Furthermore, the system includes: a patch acquisition module, a task distribution management module, a patch test verification module, and a verification result generation module;
[0096] The patch acquisition module is used to acquire a single or multiple patches to be tested and acquire patch-related attributes;
[0097] The task distribution management module is used to distribute the patch test verification task to the virtualization cluster;
[0098] The patch testing and verification module automatically performs integrity, security, effectiveness, and compatibility tests on the patch based on a virtualized environment;
[0099] The verification result generating module is used to summarize all patch test results and generate a test verification report.
[0100] The beneficial effects of the present invention are as follows: First, automated testing and verification. Automated testing tools and frameworks are used to improve testing efficiency and reduce the input of manual testing to meet the needs of rapid iteration. Second, it is adaptive to different application scenario environments to improve the coverage of patch testing and verification. Through virtualization technology, a variety of basic system operating environments and application program environments are built to simulate as many actual usage scenarios as possible to meet the requirements of diversified testing environments. At the same time, the virtualized environment can also be quickly reconstructed and reused, which improves the efficiency of patch testing and verification.
[0101] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A patch automation test verification method based on a virtualized environment, characterized in that: The method comprises the following steps: Step S1, obtaining a patch, and performing integrity verification on the patch using a virtualized environment cluster, wherein the cluster includes an operating system management cluster, a database management cluster, a middleware management cluster, a security verification tool set, a general software management cluster, and a security software management cluster; Step S2: After the patch integrity check passes, a security check is performed on the patch using a virtualized environment cluster based on a virus detection engine; Step S3: When the patch passes the security test, the effectiveness of the patch is tested using a virtualized environment cluster and a vulnerability verification script library; Step S4: Generate a patch test verification report based on the above test results. The report content includes but is not limited to integrity check results, security test results, and effectiveness test results.
2. The method for automated patch testing and verification based on a virtualized environment as claimed in claim 1, characterized in that: The step S3 specifically includes: Step S301: Generate a patch validity test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, and system architecture; Step S302: Distribute the patch validity test task to the cloud platform, and the cloud platform creates a corresponding virtualized environment cluster according to the patch attributes; Step S303: The virtualized environment cluster automatically downloads and installs patches; Step S304: The cloud platform calls and runs the vulnerability verification script corresponding to the patch according to the patch attributes, performs vulnerability verification on the virtualization environment cluster after the patch is installed, and determines whether the patch is valid according to the vulnerability verification results.
3. The method for automated patch testing and verification based on a virtualized environment as claimed in claim 2, characterized in that: The vulnerability verification script is a vulnerability verification script corresponding to the patch pre-released on the official website of the relevant system before the patch is released.
4. The method for automated patch testing and verification based on a virtualized environment as claimed in claim 1, characterized in that: The step S3 also includes performing a compatibility test on the patch, specifically including: Step S311: Generate a patch compatibility test task according to the attribute information of the patch, wherein the patch attributes include: affected operating system, corresponding vulnerability, and system architecture; Step S312: Distribute the patch compatibility test task to the cloud platform, and the cloud platform creates a corresponding virtualization environment cluster according to the patch attributes; Step S313: the virtualized environment cluster automatically downloads and installs application software according to the application scenario; Step S314: the virtualized environment cluster automatically installs patches; Step S315: Determine whether the patch is compatible based on the system operation status monitored by the virtualization environment.
5. The method for automated patch testing and verification based on a virtualized environment as claimed in claim 4, characterized in that: After completing the effectiveness and compatibility test of step S3, step S4 comprehensively generates a patch test verification report based on the above test results, and the report content also includes: compatibility test results.
6. The method for automated patch testing and verification based on a virtualized environment as claimed in claim 1, characterized in that: The virtualization environment cluster includes five major management clusters and a set of security verification tools. The five major management clusters are divided according to the location where software vulnerabilities and patches are generated, and from low to high they are operating system management cluster, application middleware management cluster, database management cluster, security software management cluster and mainstream general software management cluster.
7. The method for automated patch testing and verification based on a virtualized environment as claimed in claim 6, characterized in that: When the patch automation test task is established, the operating system management cluster uses the cloud platform template image to generate batches.
8. The method for automated patch testing and verification based on a virtualized environment as claimed in claim 6, characterized in that: The application middleware management cluster, database management cluster, security software management cluster and mainstream general software management cluster are built with the help of Harbor warehouse. The Harbor used supports the replication of image resources installed on multiple registry nodes. All images are stored in a private registry to ensure that data and intellectual property rights are managed and controlled within the company's internal network.
9. The method for automated patch testing and verification based on a virtualized environment according to any one of claims 1 to 8, characterized in that: The task generation module matches the patch test verification task generation method through user identity authentication, imports the user identity, and performs user authorization verification so that the user can reasonably activate and schedule the virtualization environment cluster; through patch test task import, imports specific patch test tasks, and the patch test tasks are generated based on task rules, relying on the task execution bus, importing user information, associating users with patch test tasks, and bringing in patches to be tested and verified in an information importing manner; The task environment construction module generates environment parameters according to the patch to be verified, completes the automatic creation of the patch test environment, simulates the loading of the operating system and applications, accounts, and verification tool software platforms, satisfies the available environment during the task verification execution process, and provides a stable working environment for the task during execution, processing, and result feedback. After receiving the task end instruction, it recycles and uninstalls the current task environment, releases the corresponding hardware and network resources, provides available execution space for subsequent tasks, and supports the parallel execution of multiple virtual machines on the host machine; The task verification execution module carries out patch security, effectiveness and compatibility tests by calling the anti-virus engine and vulnerability verification script tools according to the parameter information passed by the task process interface. After the task verification is completed, the corresponding result data is passed to the task result management module. If all verification tasks are completed based on a constructed task environment, the task execution bus is used to inform the task environment construction module to release resources as soon as possible to provide the next queue task. The task result management module compares the result data after each verification execution with the standardized evaluation rules. According to the specific verification task, it receives the verification result, calls the test verification report template, matches the verification result and backfills the fields, generates the verification result, and feeds back the result report to the task execution bus.
10. A virtualized environment based patch automation test and verification system based on the method according to any one of claims 1 to 8, characterized in that: The system includes: a patch acquisition module, a task distribution management module, a patch test verification module, and a verification result generation module; The patch acquisition module is used to acquire a single or multiple patches to be tested and acquire patch-related attributes; The task distribution management module is used to distribute the patch test verification task to the virtualization cluster; The patch testing and verification module automatically performs integrity, security, effectiveness, and compatibility tests on the patch based on a virtualized environment; The verification result generating module is used to summarize all patch test results and generate a test verification report.
Citation Information
Patent Citations
Abnormity detection method and device, and electronic equipment
CN111880959A
Virtualization-based kernel vulnerability patch verification method and device
CN116305133A
Safety intelligent detection method and system based on heterogeneous cloud environment
CN116488856A
Patch test method and equipment based on heterogeneous cloud platform
CN117171037A
