Method and system for testing software security hidden troubles in virtualized test environment

By dividing the software into modules and calculating the stability index, the problem of software stability and security analysis in the virtualized testing environment is solved, and an efficient evaluation of software security is achieved.

CN119025407AInactive Publication Date: 2024-11-26THREE GORGES JINSHAJIANG CHUANYUN HYDROPOWER DEV CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410955814.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

There is a lack of methods in the prior art to accurately analyze the stability and security of software in a virtualized test environment.

Method used

The tested software is divided into multiple modules according to its functions, obtain the operating information of each module, and set up a stability evaluation model to calculate the stability index of each module, and obtain the final stability index of the software through weighted average to evaluate its security. .

Benefits of technology

It realizes automatic and efficient analysis of software stability and security in virtual environments, and provides an accurate method for software security evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025407A_ABST
    Figure CN119025407A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for testing potential safety hazards of software in a virtualized testing environment, and the method comprises the steps: dividing tested software into a plurality of modules according to functions, and obtaining the operation information of each module, the operation information comprises the resource utilization amount of each module, the maximum resource amount which can be used by each module, the system load of each module, the acceptable longest response time of each module and the operation error rate of each module; a stability evaluation model of the tested software module is set, the stability index of each module of the tested software is calculated according to the operation information, and the stability evaluation model of the tested software module comprises the steps that a dependency value used for representing the correlation degree between the modules is calculated; weighted average is carried out on the stability index of each module of the tested software, the final stability index of the tested software is obtained, the smaller the final stability index is, the higher the stability of the tested software is, and therefore the higher the safety of the tested software is.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software performance testing, and more specifically, relates to a testing method and system for software security risks in a virtualized testing environment. Background Art

[0002] A virtual machine (VM) for software testing is an environment that simulates a computer system, allowing users to run software in an independent, isolated environment, thereby performing various tests without affecting the host system. There are many advantages to using a virtual machine for software testing, such as:

[0003] Isolation: Any problems that occur during testing will not affect the host system.

[0004] Diversity: You can run multiple operating systems on the same physical machine to test the compatibility of software on different platforms.

[0005] Snapshot and restore: You can create snapshots of virtual machines and quickly restore them to their previous states when problems occur, greatly facilitating the testing process.

[0006] Automation: It can be easily integrated with automated testing tools to perform large-scale automated testing.

[0007] However, there is no technical solution in the prior art that can accurately analyze the stability and security of the software under test. Summary of the invention

[0008] In order to solve the above technical problems, the present invention proposes a testing method for software security risks in a virtualized testing environment, comprising:

[0009] Divide the software under test into multiple modules according to their functions, and obtain the operation information of each module, wherein the operation information includes: the resource utilization of each module, the maximum amount of resources that can be used by each module, the system load of each module, the maximum system load that each module can withstand, the response time of each module, the maximum acceptable response time of each module, and the operation error rate of each module;

[0010] Setting a stability evaluation model for the software module under test, and calculating the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating dependency values ​​between modules for indicating the degree of association;

[0011] The stability index of each module of the tested software is weighted averaged to obtain the final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the higher the security of the tested software is.

[0012] Furthermore, the stability evaluation model of the tested software module includes:

[0013]

[0014] Among them, S i is the stability index of the i-th module of the tested software, α i is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the tested software, γ i is the load weight of the i-th module of the tested software, L i is the system load of the i-th module of the software under test, L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈ i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the i-th module and the j-th module of the tested software, D ij,max is the maximum dependency value between the i-th module and the j-th module of the tested software, κ ij It is the dependency value adjustment factor between the i-th module and the j-th module of the software under test.

[0015] Furthermore, the dependency value D between the i-th module and the j-th module of the tested software ij include:

[0016]

[0017] Among them, ω1 is the first weight of the dependency value, C ij is the frequency of calling the jth module from the i-th module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, Tij is the data transfer volume when the i-th module of the tested software calls the j-th module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

[0018] Furthermore, the dependency value first weight ω1 includes:

[0019]

[0020] Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

[0021] Furthermore, the dependency value second weight ω2 includes:

[0022]

[0023] Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈″′ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

[0024] The present invention also provides a testing system for software security risks in a virtualized testing environment, comprising:

[0025] An information acquisition module is used to divide the tested software into multiple modules according to their functions, and acquire the operation information of each module, wherein the operation information includes: the resource utilization of each module, the maximum amount of resources that can be used by each module, the system load of each module, the maximum system load that each module can bear, the response time of each module, the maximum acceptable response time of each module, and the operation error rate of each module;

[0026] A model module is set to set a stability evaluation model for the software module under test, and calculate the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating the dependency value between the modules for indicating the degree of association;

[0027] The evaluation module is used to perform weighted average of the stability index of each module of the tested software to obtain a final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the higher the security of the tested software is.

[0028] Furthermore, the stability evaluation model of the tested software module includes:

[0029]

[0030] Among them, S i is the stability index of the i-th module of the tested software, α i is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the tested software, γ i is the load weight of the i-th module of the tested software, L i is the system load of the i-th module of the software under test, L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈ i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the i-th module and the j-th module of the tested software, D ij,max is the maximum dependency value between the i-th module and the j-th module of the tested software, κ ij It is the dependency value adjustment factor between the i-th module and the j-th module of the software under test.

[0031] Furthermore, the dependency value D between the i-th module and the j-th module of the tested software ij include:

[0032]

[0033] Among them, ω1 is the first weight of the dependency value, C ij is the frequency of calling the jth module from the i-th module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, Tij is the data transfer volume when the i-th module of the tested software calls the j-th module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

[0034] Furthermore, the dependency value first weight ω1 includes:

[0035]

[0036] Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

[0037] Furthermore, the dependency value second weight ω2 includes:

[0038]

[0039] Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈′″ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

[0040] Compared with the prior art, the above technical solution conceived by the present invention has the following beneficial effects:

[0041] The present invention sets a stability evaluation model for the tested software module, and calculates the stability index of each module of the tested software according to the operation information, wherein the tested software module stability evaluation model includes: calculating the dependency value between modules for indicating the degree of association; weighted averaging the stability index of each module of the tested software to obtain the final stability index of the tested software, the smaller the final stability index is, the higher the stability of the tested software is, which represents the higher the security of the tested software is. Through the above technical scheme, the present invention can automatically and efficiently analyze the stability of the tested software in a virtual environment, thereby completing the security analysis of the tested software. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of the method of embodiment 1 of the present invention;

[0043] Figure 2 It is a system structure diagram of embodiment 2 of the present invention. DETAILED DESCRIPTION

[0044] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0045] The method provided by the present invention can be implemented in the following terminal environment, and the terminal may include one or more of the following components: a processor, a storage medium, and a display screen. The storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method described in the following embodiment.

[0046] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts in the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the storage medium, and calling data stored in the storage medium.

[0047] The storage medium may include a random access memory (RAM) or a read-only memory (ROM). The storage medium may be used to store instructions, programs, codes, code sets or instructions.

[0048] The display is used to show the interactive cross-section of each application.

[0049] All subscripts in the formulas of the present invention are only used to distinguish parameters and have no actual meaning.

[0050] In addition, those skilled in the art can understand that the structure of the above terminal does not constitute a limitation on the terminal, and the terminal may include more or fewer components, or combine certain components, or arrange the components differently. For example, the terminal also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, and a power supply, which will not be described in detail here.

[0051] Example 1

[0052] like Figure 1 As shown, the present invention proposes a testing method for software security risks in a virtualized testing environment, comprising:

[0053] Step 101, dividing the tested software into multiple modules according to functions, and obtaining operation information of each module, wherein the operation information includes: resource utilization of each module, maximum resource usage of each module, system load of each module, maximum system load that each module can bear, response time of each module, maximum acceptable response time of each module, and operation error rate of each module;

[0054] Step 102, setting a stability evaluation model for the software module under test, and calculating the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating dependency values ​​between modules for indicating the degree of association;

[0055] Specifically, the stability evaluation model of the tested software module includes:

[0056]

[0057] Among them, S i is the stability index of the i-th module of the tested software, α i is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the tested software, γ i is the load weight of the i-th module of the tested software, L i is the system load of the i-th module of the software under test, L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈ i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the i-th module and the j-th module of the tested software, D ij,max is the maximum dependency value between the i-th module and the j-th module of the tested software, κ ij It is the dependency value adjustment factor between the i-th module and the j-th module of the software under test.

[0058] For example, the resource utilization U of the i-th module of the tested software i The resources usually include but are not limited to the following categories:

[0059] CPU usage: The processor time used when the module is running. This indicator can measure the module's demand for computing power.

[0060] Example: A module that performs complex calculations may consume high CPU usage.

[0061] Memory usage: The amount of memory used by the module. This is often used to measure the RAM requirements of the module.

[0062] Example: A module that loads a large amount of data for processing may have high memory usage.

[0063] Disk I / O usage: The disk bandwidth and number of read and write operations used by the module. This can reflect the frequency and intensity of the module's access to the storage device.

[0064] Example: A module that frequently reads and writes large files may have high disk I / O usage.

[0065] Network bandwidth usage: The bandwidth occupied by the module to transmit data on the network. This is usually used to measure the network communication requirements of the module.

[0066] Example: A module that needs to frequently communicate with other modules or external services may have high network bandwidth usage.

[0067] GPU usage: If the module uses a graphics processing unit for computation, GPU usage is also an important resource utilization indicator.

[0068] Example: A module that performs image processing or deep learning inference may have high GPU usage.

[0069] Specifically, the dependency value D between the i-th module and the j-th module of the tested software ij include:

[0070]

[0071] Among them, ω1 is the first weight of the dependency value, C ij is the frequency of calling the jth module from the i-th module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, T ij is the data transfer volume when the i-th module of the tested software calls the j-th module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

[0072] Specifically, the first weight ω1 of the dependency value includes:

[0073]

[0074] Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

[0075] Specifically, the dependency value second weight ω2 includes:

[0076]

[0077] Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈″′ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

[0078] Step 103 , weighted average the stability index of each module of the tested software to obtain a final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the security of the tested software is higher.

[0079] Example 2

[0080] like Figure 2 As shown, the embodiment of the present invention also provides a testing system for software security risks in a virtualized testing environment, including:

[0081] An information acquisition module is used to divide the tested software into multiple modules according to their functions, and acquire the operation information of each module, wherein the operation information includes: the resource utilization of each module, the maximum amount of resources that can be used by each module, the system load of each module, the maximum system load that each module can bear, the response time of each module, the maximum acceptable response time of each module, and the operation error rate of each module;

[0082] A model module is set to set a stability evaluation model for the software module under test, and calculate the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating the dependency value between the modules for indicating the degree of association;

[0083] Specifically, the stability evaluation model of the tested software module includes:

[0084]

[0085] Among them, S i is the stability index of the i-th module of the tested software, αi is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the tested software, γ i is the load weight of the i-th module of the tested software, L i is the system load of the i-th module of the software under test, L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈ i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the i-th module and the j-th module of the tested software, D ij,max is the maximum dependency value between the i-th module and the j-th module of the tested software, κ ij It is the dependency value adjustment factor between the i-th module and the j-th module of the software under test.

[0086] Specifically, the dependency value D between the i-th module and the h-th module of the tested software ij include:

[0087]

[0088] Among them, ω1 is the first weight of the dependency value, C ij is the frequency of calling the jth module from the i-th module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, T ij is the data transfer volume when the i-th module of the tested software calls the j-th module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

[0089] Specifically, the first weight ω1 of the dependency value includes:

[0090]

[0091] Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

[0092] Specifically, the dependency value second weight ω2 includes:

[0093]

[0094] Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈″′ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

[0095] The evaluation module is used to perform weighted average of the stability index of each module of the tested software to obtain a final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the higher the security of the tested software is.

[0096] Example 3

[0097] The embodiment of the present invention further provides a storage medium storing a plurality of instructions, wherein the instructions are used to implement the method for testing software security risks in a virtualized testing environment.

[0098] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0099] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: Step 101, dividing the tested software into multiple modules according to functions, and obtaining operation information of each module, wherein the operation information includes: resource utilization of each module, maximum resource usage of each module, system load of each module, maximum system load that each module can bear, response time of each module, maximum acceptable response time of each module, and operation error rate of each module;

[0100] Step 102, setting a stability evaluation model for the software module under test, and calculating the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating dependency values ​​between modules for indicating the degree of association;

[0101] Specifically, the stability evaluation model of the tested software module includes:

[0102]

[0103] Among them, S i is the stability index of the i-th module of the tested software, α i is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the software under test, γi is the load weight of the i-th module of the software under test, L is the system load of the i-th module of the software under test, and L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈ i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the i-th module and the j-th module of the tested software, D ij,max is the maximum dependency value between the i-th module and the j-th module of the tested software, κ ij It is the dependency value adjustment factor between the i-th module and the j-th module of the software under test.

[0104] Specifically, the dependency value D between the i-th module and the j-th module of the tested software ij include:

[0105]

[0106] Among them, ω1 is the first weight of the dependency value, C ijis the frequency of calling the jth module from the i-th module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, T ij is the data transfer volume when the i-th module of the tested software calls the j-th module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

[0107] Specifically, the first weight ω1 of the dependency value includes:

[0108]

[0109] Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

[0110] Specifically, the dependency value second weight ω2 includes:

[0111]

[0112] Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈″′ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

[0113] Step 103 , weighted average the stability index of each module of the tested software to obtain a final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the security of the tested software is higher.

[0114] Example 4

[0115] An embodiment of the present invention also proposes an electronic device, including a processor and a storage medium connected to the processor, wherein the storage medium stores multiple instructions, and the instructions can be loaded and executed by the processor to enable the processor to execute a method for testing software security risks in a virtualized testing environment.

[0116] Specifically, the electronic device of this embodiment may be a computer terminal, and the computer terminal may include: one or more processors, and a storage medium.

[0117] Among them, the storage medium can be used to store software programs and modules, such as a testing method for software security risks in a virtualized test environment in an embodiment of the present invention, corresponding program instructions / modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the storage medium, that is, realizing the above-mentioned testing method for software security risks in a virtualized test environment. The storage medium may include a high-speed random storage medium, and may also include a non-volatile storage medium, such as one or more magnetic storage systems, flash memory, or other non-volatile solid-state storage media. In some instances, the storage medium may further include a storage medium remotely arranged relative to the processor, and these remote storage media may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0118] The processor may call the information and application program stored in the storage medium through the transmission system to execute the steps: Step 101, divide the tested software into multiple modules according to the function, and obtain the operation information of each module, wherein the operation information includes: the resource utilization of each module, the maximum resource amount that each module can use, the system load of each module, the maximum system load that each module can bear, the response time of each module, the maximum acceptable response time of each module, and the operation error rate of each module;

[0119] Step 102, setting a stability evaluation model for the software module under test, and calculating the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating dependency values ​​between modules for indicating the degree of association;

[0120] Specifically, the stability evaluation model of the tested software module includes:

[0121]

[0122] Among them, S i is the stability index of the i-th module of the tested software, α i is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the tested software, γ i is the load weight of the i-th module of the tested software, L i is the system load of the i-th module of the software under test, L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the i-th module and the j-th module of the tested software, D ij,max is the maximum dependency value between the i-th module and the j-th module of the tested software, κ ij It is the dependency value adjustment factor between the i-th module and the j-th module of the software under test.

[0123] Specifically, the dependency value D between the i-th module and the j-th module of the tested software ij include:

[0124]

[0125] Among them, ω1 is the first weight of the dependency value, C ij is the frequency of calling the jth module from the i-th module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, T ij is the data transfer volume when the i-th module of the tested software calls the j-th module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

[0126] Specifically, the first weight ω1 of the dependency value includes:

[0127]

[0128] Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

[0129] Specifically, the dependency value second weight ω2 includes:

[0130]

[0131] Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈″′ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

[0132] Step 103 , weighted average the stability index of each module of the tested software to obtain a final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the security of the tested software is higher.

[0133] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0134] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0135] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0137] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only storage medium (ROM, Read-Only Memory), random access storage medium (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0139] 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 testing software security risks in a virtualized testing environment, characterized in that: include: Divide the software under test into multiple modules according to their functions, and obtain the operation information of each module, wherein the operation information includes: the resource utilization of each module, the maximum amount of resources that can be used by each module, the system load of each module, the maximum system load that each module can withstand, the response time of each module, the maximum acceptable response time of each module, and the operation error rate of each module; Setting a stability evaluation model for the software module under test, and calculating the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating dependency values ​​between modules for indicating the degree of association; The stability index of each module of the tested software is weighted averaged to obtain the final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the higher the security of the tested software is.

2. A method for testing software security risks in a virtualized test environment as claimed in claim 1, characterized in that: The stability evaluation model of the tested software module includes: Among them, S i is the stability index of the i-th module of the tested software, α i is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the tested software, γ i is the load weight of the i-th module of the tested software, L i is the system load of the i-th module of the software under test, L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈ i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the i-th module and the j-th module of the tested software, D ij,max is the maximum dependency value between the i-th module and the,th module of the tested software, κ ij is the dependency value adjustment factor between the i-th module and the,th module of the software under test.

3. A method for testing software security risks in a virtualized testing environment as claimed in claim 2, characterized in that: The dependency value D between the i-th module and the j-th module of the tested software ij include: Among them, ω1 is the first weight of the dependency value, C ij is the frequency of calling the th module by the ith module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, T ij is the data transfer volume when the ith module of the tested software calls the ith module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

4. A method for testing software security risks in a virtualized test environment as claimed in claim 3, characterized in that: The first weight ω1 of the dependency value includes: Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

5. A method for testing software security risks in a virtualized test environment as claimed in claim 4, characterized in that: The dependency value second weight ω2 includes: Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈″′ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

6. A testing system for software security risks in a virtualized testing environment, characterized in that: include: An information acquisition module is used to divide the tested software into multiple modules according to their functions, and acquire the operation information of each module, wherein the operation information includes: the resource utilization of each module, the maximum amount of resources that can be used by each module, the system load of each module, the maximum system load that each module can bear, the response time of each module, the maximum acceptable response time of each module, and the operation error rate of each module; A model module is set to set a stability evaluation model for the software module under test, and calculate the stability index of each module of the software under test according to the operation information, wherein the stability evaluation model for the software module under test includes: calculating the dependency value between the modules for indicating the degree of association; The evaluation module is used to perform weighted average of the stability index of each module of the tested software to obtain a final stability index of the tested software. The smaller the final stability index is, the higher the stability of the tested software is, which means the higher the security of the tested software is.

7. A system for testing software security risks in a virtualized testing environment as claimed in claim 6, characterized in that: The stability evaluation model of the tested software module includes: Among them, S i is the stability index of the i-th module of the tested software, α i is the resource weight of the i-th module of the tested software, U i is the resource utilization of the i-th module of the tested software, U i,max is the maximum amount of resources that can be used by the i-th module of the software under test, β i is the resource adjustment factor of the i-th module of the tested software, γ i is the load weight of the i-th module of the tested software, L i is the system load of the i-th module of the software under test, L i,max is the maximum system load that the i-th module of the tested software can bear, δ i is the load adjustment factor of the i-th module of the tested software, ∈ i is the first weight of the response time of the i-th module of the tested software, R i is the response time of the i-th module of the tested software, R i,max is the longest acceptable response time of the i-th module of the tested software, ζ i is the first adjustment factor of the response time of the i-th module of the tested software, η i is the running error rate weight of the i-th module of the tested software, E i is the running error rate of the i-th module of the tested software, n is the number of interdependent modules, θ ij is the dependency value weight between the i-th module and the j-th module of the tested software, D ij is the dependency value between the ith module and the ith module of the software under test, D ij,max is the maximum dependency value between the i-th module and the,th module of the tested software, κ ij is the dependency value adjustment factor between the i-th module and the,th module of the software under test.

8. A system for testing software security risks in a virtualized testing environment as claimed in claim 7, characterized in that: The dependency value D between the i-th module and the ,th module of the tested software ij include: Among them, ω1 is the first weight of the dependency value, C ij is the frequency of calling the jth module from the i-th module of the tested software, C ij,max is the maximum frequency of the i-th module of the tested software calling all modules, α′ is the first adjustment factor of the calling frequency, β′ is the first adjustment factor of the data transmission volume, T ij is the data transfer volume when the ith module of the tested software calls the ith module, T ij,max is the maximum data transmission volume between the i-th module of the tested software and all modules, γ′ is the second adjustment factor of data transmission volume, ω2 is the second weight of dependency value, ∈′ is the second weight of response time, and δ′ is the second adjustment factor of response time.

9. A system for testing software security risks in a virtualized testing environment as claimed in claim 8, characterized in that: The first weight ω1 of the dependency value includes: Wherein, N is the total number of software modules under test, k′ is the second adjustment factor of call frequency, λ is the third adjustment factor of data transmission volume, m is the fourth adjustment factor of data transmission volume, ∈″ is the adjustment factor of the first weight of dependency value, p is the fifth adjustment factor of data transmission volume, and n′ is the third adjustment factor of call frequency.

10. A system for testing software security risks in a virtualized testing environment as claimed in claim 9, characterized in that: The dependency value second weight ω2 includes: Among them, q is the third adjustment factor of response time, μ is the fourth adjustment factor of call frequency, r″ is the fifth adjustment factor of call frequency, ∈″′ is the adjustment factor of the second weight of dependency value, s′ is the fourth adjustment factor of response time, and t is the sixth adjustment factor of call frequency.

Citation Information

Patent Citations

  • Software risk assessment method based on defect analysis

    CN103366123A

  • Software testing and evaluation method based on cloud computation technology

    CN108255716A

  • Method, device and system for evaluating functional modules in application program

    CN109032916A

  • Software system reliability evaluation method and device, electronic equipment and storage medium

    CN115080410A

  • Network evaluation system, non-operation rate calculation method, and program

    JP2017146746A