Method and apparatus for assessing change risk

By assessing the impact scope and risk level of software program changes, risk warning information is generated, which solves the problem of difficulty in real-time prevention and control during the change process and improves the security and stability of the change process.

CN115952509BActive Publication Date: 2024-10-18ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211733386.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-10-18
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

Existing technology makes it difficult to prevent and control hidden dangers caused by changes in real time during the process of software program changes, causing abnormalities to be discovered only after faults occur, affecting the production environment.

Method used

By obtaining the target change to be executed, determining its impact scope information, assessing the change risk level based on business attributes and link levels, generating risk warning information, assessing the adequacy of defense, and outputting change risk assessment information to reduce the impact of the change.

Benefits of technology

Analyze change risks from multiple angles before making changes, reduce the impact of changes, and improve the safety and stability of the change process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115952509B_ABST
    Figure CN115952509B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a method and device for evaluating change risks. A specific implementation of the method includes: obtaining a target change to be executed, determining the scope of impact information generated by executing the target change, including several target data objects affected by the target change; determining the change risk level of executing the target change based on the business attributes of the several target data objects and / or the link level of the business link to which they belong; determining the corresponding risk type according to the data type of the several target data objects, and generating change risk warning information, including a description text of the risk type; determining defense adequacy assessment information for the target change based on the risk defense measures for the several target data objects; and outputting change risk assessment information, including the change risk level, the change risk warning information, and the defense adequacy assessment information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of data processing, and more particularly to a method and device for assessing change risk. Background Art

[0002] With the rapid development of Internet technology, software programs have become an indispensable part of human life. Some of these software programs may have provided services to users for many years. Over the years, these programs have been constantly updated. As the scale of programs increases, the cost of program iteration is also increasing. A small change in the program may have a greater impact, which may include more hidden high-risk impacts, burying hidden dangers for the normal operation of subsequent programs. At present, although there is the ability to prevent and control changes in real time during the execution of changes, some of their capabilities are lagging, and the abnormality of the change can only be discovered after the change is executed, that is, after the failure occurs. At this time, it has already affected the production environment. Therefore, in order to minimize the impact of changes, it is necessary to evaluate the risk of changes before making changes. Summary of the invention

[0003] The embodiments of this specification describe a method and apparatus for assessing change risk.

[0004] According to a first aspect, a method for assessing change risk is provided, comprising: obtaining a target change to be executed, determining information on the scope of impact generated by executing the target change, including several target data objects affected by the target change; determining a change risk level for executing the target change based on business attributes of the target data objects and / or link levels of their business links; determining corresponding risk types based on data types of the target data objects, and generating change risk warning information, including a description text of the risk types; determining defense adequacy assessment information for the target change based on risk defense measures for the target data objects; and outputting change risk assessment information, including the change risk level, the change risk warning information and the defense adequacy assessment information.

[0005] According to a second aspect, a device for evaluating change risk is provided, comprising: an acquisition unit, configured to acquire a target change to be executed, and determine information on the scope of impact generated by executing the above target change, including several target data objects affected by the above target change; a first determination unit, configured to determine the change risk level of executing the above target change based on the business attributes of the above target data objects and / or the link level of the business link to which they belong; a second determination unit, configured to determine the corresponding risk type according to the data type of the above target data objects, and generate change risk warning information, including a description text of the above risk type; a third determination unit, configured to determine defense adequacy assessment information for the target change based on risk defense measures for the above target data objects; an output unit, configured to output change risk assessment information, including the above change risk level, the above change risk warning information and the above defense adequacy assessment information.

[0006] According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method described in any implementation manner in the first aspect.

[0007] According to a fourth aspect, a computing device is provided, comprising a memory and a processor, wherein executable code is stored in the memory, and when the processor executes the executable code, the method described in any implementation manner in the first aspect is implemented.

[0008] According to the method and device for evaluating change risks provided by the embodiments of this specification, first, the target change to be executed is obtained, and the impact range information generated by executing the target change is determined, and the impact range information includes several target data objects affected by the target change. Then, based on the business attributes of several target data objects and / or the link level of the business link to which they belong, the change risk level of executing the target change is determined; the corresponding risk type is determined according to the data type of several target data objects, and change risk warning information is generated, and the change risk warning information includes a description text of the risk type; based on the risk defense measures for several target data objects, the defense adequacy assessment information for the target change is determined. Finally, the change risk level, change risk warning information and defense adequacy assessment information are output. Therefore, before the change, the target change is analyzed from multiple angles such as change risk level, change risk warning, and defense adequacy assessment, so as to reduce the impact of the change to a greater extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A schematic diagram showing an application scenario in which the embodiments of this specification can be applied;

[0010] Figure 2A flow chart showing a method for assessing change risk according to one embodiment;

[0011] Figure 3 A schematic block diagram of an apparatus for assessing change risk according to an embodiment is shown. DETAILED DESCRIPTION

[0012] The technical solution provided in this specification is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the relevant inventions are shown in the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments of this specification and the features in the embodiments can be combined with each other.

[0013] As mentioned above, in order to minimize the impact of changes, it is necessary to evaluate the risk of changes before the changes are made. To this end, the embodiments of this specification provide a method for evaluating the risk of changes, so that the target changes are analyzed from multiple perspectives before the target changes are executed, thereby greatly minimizing the impact of changes. Figure 1 A schematic diagram showing an application scenario in which the embodiments of this specification can be applied is shown. Figure 1 In the application scenario shown, technician A can input the target change to be executed into server 102 through the terminal device 101 used. Server 102 obtains the target change and determines the impact range information generated by executing the target change, and the impact range information includes several target data objects affected by the target change. After that, server 102 concurrently performs the following steps a), b) and c), wherein step a) is: based on the business attributes of several target data objects and / or the link level of the business link to which they belong, determine the change risk level of executing the target change. Step b) is: according to the data type of several target data objects, determine the corresponding risk type, and generate change risk warning information, which includes a description text of the risk type. Step c) is: based on the risk defense means for several target data objects, determine the defense adequacy assessment information for the target change. Finally, server 102 outputs the change risk level, change risk warning information and defense adequacy assessment information to terminal device 101, so that terminal device 101 can display it to technician A.

[0014] Continue to see Figure 2 , Figure 2 A flow chart of a method for assessing change risk according to an embodiment is shown. The method can be executed by any device, equipment, platform, equipment cluster, etc. having computing and processing capabilities.

[0015] like Figure 2As shown, the method for assessing change risk may include the following steps:

[0016] Step 201: Obtain the target change to be executed, and determine the impact scope information generated by executing the target change.

[0017] In this embodiment, after obtaining the target change to be executed, the impact scope information generated by executing the target change can be determined according to the target change. Among them, the impact scope information may include several target data objects affected by the target change, such as applications, servers, interfaces, logs, monitoring items, data tables, data table fields, etc. Here, the application can be an independently deliverable unit that provides services to the outside world. It is the smallest logical unit of development, deployment, release, and operation and maintenance. In the R&D state, the application usually corresponds to one or more functional modules and is associated with one or more code libraries. In the running state, the application usually corresponds to one or more services. Taking the e-commerce system as an example, the shopping cart, product details, ordering system, etc. are all independent applications. Numerous applications constitute the business system of e-commerce.

[0018] Here, the target change can be any behavior that causes a change in the status of the online service. For example, the target change can include code changes and / or configuration changes, etc. Usually, after the R&D personnel have developed the code program, they will deploy the code program to the server in the production environment to release the code. The configuration change can refer to changing the configuration that the online environment code program depends on through platform operations or interface triggers, thereby affecting the running behavior of the production environment program. After the change is executed, anything that changes the running behavior of the production environment can be counted as the scope of the change.

[0019] In some implementations, when the target change includes a code change, the above step 201 can be specifically performed as follows: First, determine the first affected object of the code change through program static analysis. Then, obtain data flow information of online business data of the business platform targeted by the target change, and modify the first affected object according to the data flow information to obtain the affected scope information.

[0020] In this implementation, program static analysis may refer to a method of performing program analysis without running a computer program. Through program static analysis, the specific behaviors affected by the code change can be analyzed, such as adding interfaces, generating logs, modifying databases, etc., so as to determine the first affected object of the code change, such as interfaces, logs, data tables / fields, etc. Afterwards, the data flow information of the online business data of the business platform targeted by the target change is obtained, that is, the actual business traffic of the production environment, and the first affected object is corrected according to the data flow information to obtain the impact range information. Through this implementation, the data flow information of the online business data and the results of program static analysis can be combined to effectively conduct a refined analysis of the scope of the actual impact of the target change, making the analysis content more accurate.

[0021] After determining the impact range information generated by executing the target change, the target change can be evaluated from multiple perspectives based on the impact range information. In practice, the target change can be evaluated from multiple perspectives in a concurrent execution manner. Specifically, the following steps 202, 203, and 204 can be executed concurrently.

[0022] Step 202: Determine the change risk level of the target change based on the business attributes of the target data objects and / or the link level of the business link to which they belong.

[0023] In this embodiment, the business link may refer to all applications that the user request passes through, usually displayed in the form of a directed graph. In practice, the business link may include a group of applications, and the changed application may be in a link in the business link. If the changed application fails, the request flow of the business link may be interrupted, and the entire link cannot provide services. Here, the change risk level of executing the target change can be determined based on the business attributes of several target data objects and / or the link level of the business link to which they belong. Here, the link level can be determined in a variety of ways. For example, it can be determined according to the fault level of the fault caused by the corresponding business link. For another example, it can be determined according to the business importance of the corresponding business link. For another example, it can be determined according to the business traffic of the corresponding business link.

[0024] In some implementations, the impact range information may include several target data objects affected by the target change, wherein the several target data objects may include affected target applications. In this case, the above determination of the change risk level of the target change may be specifically performed as follows:

[0025] 1) Determine the link level of the first service link to which the target application belongs.

[0026] 2) Based on the link level of the first service link and a preset application classification rule, determine the program level of the target application program.

[0027] As an example, faults can be graded based on factors such as the amount of financial loss, service cost / customer complaints, number of affected users, and amount of data errors. Fault grading can be used to measure the impact of a fault on a service. Link levels are divided into P1-P5 and no level in descending order of the severity of the fault caused by the corresponding service link. Based on this, the above step 2) can be specifically performed as follows:

[0028] If the link level of the first service link is P1 or P2, the program level of the target application is determined to be H1.

[0029] If the link level of the first service link is in P1-P5, or the traffic of the target application within a preset time period (eg, within a week, within a month, etc.) is greater than a preset threshold, the program level of the target application is determined to be H2.

[0030] If the first service link is accessible to external network users, or the target application is used to modify data configuration of an application at level H1 or H2, then the program level of the target application is determined to be H3.

[0031] If the target application does not conform to the H1, H2, or H3 level, the program level of the target application is determined to be H4.

[0032] Through this implementation, the target application program can be classified into H1-H4 levels based on the link level of the first service link and the application classification rule.

[0033] 3) Determine the change risk level based on the program level.

[0034] In this implementation, the change risk level can be determined according to the program level of the target application. As an example, the correspondence between the program level and the change risk level can be preset, so that the change risk level of the target change can be determined according to the program level of the target application and the correspondence.

[0035] In some implementations, the plurality of target data objects may include an affected target interface. In this case, the above determination of the change risk level of the execution target change may be specifically performed as follows:

[0036] 1) Determine the link level of the second service link to which the target interface belongs.

[0037] 2) Based on the link level of the second service link and a preset interface classification rule, the interface level of the target interface is determined.

[0038] As an example, the interface levels may include A1-A4, specifically,

[0039] If the link level of the second service link is P1 or P2, the interface level of the target interface is determined to be A1.

[0040] If the link level of the second business link is in P1-P5, or the traffic of the target interface within a preset time period (for example, within a week, within a month, etc.) is greater than a preset threshold, or the target interface involves financial data, the interface level of the target interface is determined to be A2.

[0041] If the second service link is accessible to external network users, the interface level of the target interface is determined to be A3.

[0042] If the target interface does not conform to the A1, A2, or A3 level, the interface level of the target interface is determined to be A4.

[0043] 3) Determine the change risk level based on the interface level.

[0044] In this implementation, the change risk level can be determined according to the interface level of the target interface. As an example, the correspondence between the interface level and the change risk level can be preset, so that the change risk level of the target change can be determined according to the interface level of the target interface and the correspondence.

[0045] In some implementations, the plurality of target data objects may include affected target data table fields. In this case, the above determination of the change risk level of the execution target change may be specifically performed as follows:

[0046] ①, Determine whether the business attribute of the target data table field is fund-related.

[0047] For example, if the target data table field contains fields such as amount, status, account number, rate, or currency, it means that the business attribute of the target data table field is fund-related.

[0048] ②. Determine the change risk level of the target change based on the results of the business attribute determination.

[0049] In this implementation, the change risk level of the target change can be determined according to the business attribute of the target data table field. Generally, if the business attribute of the target data table field is fund-related, that is, the change affects funds, the change risk of the target change will be relatively high.

[0050] For example, the change risk level can be divided into three levels: high, medium, and low. As an example, the following criteria can be used:

[0051] High risk level: Changes affect H1 applications, A1 interfaces, or funding tables related to funds;

[0052] Low risk level: does not affect H1, H2 or H3 applications, does not affect A1, A2 or A3 interfaces, and does not affect fund-related fund tables;

[0053] Medium risk level: Other changes that do not meet the requirements of high risk level and low risk level.

[0054] A high risk level can mean that the change has a wide impact or is very likely to fail. A medium risk level can mean that the change has a moderate impact and a moderate probability of failure. A low risk level can mean that the change is robust and is not likely to fail or has a small impact.

[0055] Step 203: determine the corresponding risk type according to the data types of the target data objects, and generate change risk warning information.

[0056] In this embodiment, the change risk warning information may include a description text of the risk type.

[0057] In some implementations, the impact range information may include several target data objects affected by the target change, wherein the several target data objects may include affected target logs. At this time, the above-mentioned determination of the corresponding risk type according to the data types of the several target data objects may be specifically performed as follows: determining whether the target log is configured with a monitoring item, and if not, determining the corresponding risk type as a monitorable risk.

[0058] In some implementations, the target data objects may include target values ​​for configuration items. In this case, the above-mentioned determination of the corresponding risk type according to the data types of the target data objects may be specifically performed as follows: determining whether the target value is legal according to the historical value of the configuration item, and if it is illegal, determining the corresponding risk type as configuration risk.

[0059] Here, the configuration item can be a variable of the application. Depending on the value of the variable, the application will have different running trajectories / response effects. In practice, the configuration item can be described by attributes / values. For example, the environment of the application is production, and the number of servers of the application is N. Here, "environment" and "number of servers" are configuration items, and "production" and "N" are corresponding values. In this example, the legality of the target value of the configuration item can be judged based on the historical values ​​of the configuration item that have appeared in history. For example, if the historical value of the configuration item has appeared in the numbers 1-10, and the target value is 100, since the deviation between the historical value and the target value is large, it can be judged that the target value is illegal. For another example, if the historical value of the configuration item is a string such as "hello", "app", "repo", and the target value is a number, since the type deviation between the historical value and the target value is large, it can be judged that the target value is illegal. When the target value of the configuration item has appeared in the historical value or is similar to the historical value, the target value can be judged to be legal.

[0060] In some implementations, the target data objects may include the structure of the affected data table. In this case, the above-mentioned determination of the corresponding risk type according to the data types of the target data objects may be specifically performed as follows: determining whether the database metadata corresponding to the affected data table has undergone a change corresponding to the structure of the data table, and if not, determining that the corresponding risk type is a database risk.

[0061] In some implementations, the plurality of target data objects may include an affected fund table. In this case, determining the corresponding risk type according to the data types of the plurality of target data objects may be specifically performed as follows: determining whether there is a check rule corresponding to the affected fund table, and if not, determining that the corresponding risk type is a fund risk.

[0062] Step 204, based on the risk defense measures for several target data objects, determine the defense adequacy assessment information for the target change.

[0063] In this embodiment, corresponding risk defense measures may be pre-set for a number of target data objects affected by the target change. Based on the risk defense measures, defense adequacy evaluation information for the target change may be determined.

[0064] In some implementations, the above-mentioned determination of the defense adequacy assessment information for the target change may be specifically performed as follows:

[0065] (1) Determine the coverage rate, historical defense success rate, and test defense success rate of risk defense measures.

[0066] (2) Determine the defense adequacy assessment information based on the coverage rate of risk defense measures, historical defense success rate, and test defense success rate.

[0067] In this implementation, the coverage rate, historical defense success rate, and test defense success rate of the risk defense means can be comprehensively analyzed to determine the defense adequacy evaluation information. For example, the defense adequacy evaluation information can be calculated according to a pre-set calculation rule. For example, the product of the coverage rate, the historical defense success rate, and the test defense success rate can be calculated as the defense adequacy evaluation value.

[0068] 0 Step 205, output change risk assessment information.

[0069] In this embodiment, the change risk assessment information can be output for display. Here, the change risk assessment information can include the change risk level, change risk warning information and defense adequacy assessment information. Therefore, before the change is executed, the target change is evaluated from multiple angles, thereby reducing the impact of the change to a greater extent.

[0070] Reviewing the above process, in the embodiment of this specification, firstly, the target change to be executed is obtained, and the impact range information generated by the target change is determined. The impact range information includes several target data objects affected by the target change.

[0071] Then, based on the business attributes of several target data objects and / or the link level of the business link to which they belong, determine the change risk level of the execution target change; determine the corresponding risk type according to the data type of several target data objects, and generate change risk warning information, which includes a description text of the risk type; based on the data attributes of several target data objects, ....

[0072] Finally, the change risk level, 0 change risk warning information and defense adequacy evaluation information are output.

[0073] Analyze target changes from multiple angles such as warning and defense adequacy assessment, so as to minimize the impact of changes.

[0074] According to another aspect of the embodiment, a device for assessing change risk is provided. The device for assessing change risk can be deployed in any device, platform or device cluster with computing and processing capabilities.

[0075] 5 Figure 3 FIG. 1 is a schematic block diagram of an apparatus for assessing change risk according to an embodiment. Figure 3 As shown,

[0076] The device 300 for assessing change risk includes: an acquisition unit 301 configured to acquire a target change to be executed, determine the impact scope information generated by executing the target change, including a number of target data objects affected by the target change; a first determination unit 302 configured to determine the impact scope information generated by executing the target change based on the business attributes and / or business chains to which the target data objects belong;

[0077] The link level of the path is used to determine the change risk level of executing the above-mentioned target change; the second determination unit 303 is configured to determine the corresponding risk type according to the data type of the above-mentioned several target data objects, and generate change risk warning information, which includes a description text of the above-mentioned risk type; the third determination unit 304 is configured to determine the defense adequacy assessment information for the target change based on the risk defense measures for the above-mentioned several target data objects; the output unit 305 is configured to output the change risk assessment information, which includes the above-mentioned change risk level, the above-mentioned change risk warning information and the above-mentioned defense adequacy assessment information.

[0078] In some optional implementations of the present embodiment, the above-mentioned several target data objects include an affected target application; and the first determination unit 302 includes: a link level determination unit (not shown in the figure), configured to determine the link level of the first business link to which the above-mentioned target application belongs; a first determination sub-unit (not shown in the figure), configured to determine the program level of the above-mentioned target application based on the link level of the above-mentioned first business link and a pre-set application classification rule; a second determination sub-unit (not shown in the figure), configured to determine the above-mentioned change risk level according to the above-mentioned program level.

[0079] In some optional implementations of this embodiment, the above-mentioned several target data objects include an affected target interface; and the first determination unit 302 is further configured to: determine the link level of the second business link to which the above-mentioned target interface belongs; determine the interface level of the above-mentioned target interface based on the link level of the above-mentioned second business link and a pre-set interface grading rule; and determine the above-mentioned change risk level based on the above-mentioned interface level.

[0080] In some optional implementations of this embodiment, the above-mentioned several target data objects include affected target data table fields; the first determination unit 302 is further configured to: determine whether the business attributes of the above-mentioned target data table fields are fund-related; and determine the change risk level of the above-mentioned target change based on the determination results of the above-mentioned business attributes.

[0081] In some optional implementations of this embodiment, the link level is determined according to the fault level of the fault caused by the corresponding service link.

[0082] In some optional implementations of the present embodiment, the link levels are divided into P1-P5 and no level in order from severe to mild of the faults caused by the corresponding business links; the first determination subunit is further configured as: if the link level of the first business link is P1 or P2, the program level of the target application is determined to be H1; if the link level of the first business link is in P1-P5, or the traffic of the target application within a preset time period is greater than a preset threshold, the program level of the target application is determined to be H2; if the first business link is accessible to external network users, or the target application is used to modify the data configuration of an application of level H1 or H2, the program level of the target application is determined to be H3; if the target application does not meet the H1, H2 or H3 levels, the program level of the target application is determined to be H4.

[0083] In some optional implementations of this embodiment, the above-mentioned target change includes a code change; the acquisition unit 301 is further configured to: determine the first impact object of the above-mentioned code change through program static analysis; obtain data flow information of online business data of the business platform targeted by the above-mentioned target change, and according to the above-mentioned data flow information, correct the above-mentioned first impact object to obtain the above-mentioned impact range information.

[0084] In some optional implementations of this embodiment, the above-mentioned several target data objects include affected target logs, and the second determination unit 303 is further configured to: determine whether the above-mentioned target logs are configured with monitoring items, and if no monitoring items are configured, determine that the corresponding risk type is a monitorable risk.

[0085] In some optional implementations of this embodiment, the above-mentioned several target data objects include, for the target value of the configuration item, the second determination unit 303 is further configured to: determine whether the above-mentioned target value is legal based on the historical value of the above-mentioned configuration item, and if it is illegal, determine the corresponding risk type as configuration risk.

[0086] In some optional implementations of this embodiment, the above-mentioned several target data objects include the structure of the affected data table, and the second determination unit 303 is further configured to: determine whether the database metadata corresponding to the above-mentioned data table has undergone changes corresponding to the structure of the above-mentioned data table; if not, determine that the corresponding risk type is database risk.

[0087] In some optional implementations of this embodiment, the above-mentioned several target data objects include an affected fund table, and the second determination unit 303 is further configured to: determine whether there is a verification rule corresponding to the above-mentioned fund table, and if not, determine that the corresponding risk type is fund risk.

[0088] In some optional implementations of this embodiment, the third determination unit 304 includes: a probability determination unit (not shown in the figure), configured to determine the coverage, historical defense success rate, and test defense success rate of the above-mentioned risk defense measures; an sufficiency determination unit (not shown in the figure), configured to determine the above-mentioned defense sufficiency evaluation information based on the above-mentioned coverage, historical defense success rate, and test defense success rate.

[0089] In some optional implementations of this embodiment, the sufficiency determination unit is further configured to: calculate the product of the above coverage rate, historical defense success rate, and test defense success rate as a defense sufficiency evaluation value.

[0090] In some optional implementations of this embodiment, the above-mentioned target change includes a code change and / or a configuration change.

[0091] According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute Figure 2 The method described.

[0092] According to another embodiment, there is also provided a computing device, comprising a memory and a processor, wherein the memory stores an executable code, and when the processor executes the executable code, Figure 2 The method described.

[0093] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0094] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented by hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0095] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for assessing the risk of change, include: Acquire a target change to be executed, and determine the impact scope information generated by executing the target change, including a number of target data objects affected by the target change, wherein the target change includes a code change and / or a configuration change; Determining a change risk level for executing the target change based on the business attributes of the target data objects and / or the link levels of the business links to which they belong; Determine corresponding risk types according to the data types of the target data objects, and generate change risk warning information, including a description text of the risk type; Determining defense adequacy assessment information for target changes based on risk defense measures for the target data objects; Output change risk assessment information, including the change risk level, the change risk warning information and the defense adequacy assessment information.

2. The method according to claim 1, in, The several target data objects include affected target applications; as well as The determining of the change risk level for executing the target change includes: Determining a link level of a first service link to which the target application belongs; Determining the program level of the target application based on the link level of the first service link and a preset application classification rule; The change risk level is determined based on the program level.

3. The method according to claim 1, in, The plurality of target data objects include affected target interfaces; The determining of the change risk level for executing the target change includes: Determine a link level of a second service link to which the target interface belongs; Determining the interface level of the target interface based on the link level of the second service link and a preset interface classification rule; The change risk level is determined according to the interface level.

4. The method according to claim 1, in, The plurality of target data objects include affected target data table fields; The determining of the change risk level for executing the target change includes: Determine whether the business attribute of the target data table field is fund-related; According to the determination result of the business attribute, a change risk level of the target change is determined.

5. The method according to any one of claims 1 to 3, in, The link level is determined according to the fault level of the fault caused by the corresponding service link.

6. The method according to claim 2, in, The link levels are divided into P1-P5 levels and no level in descending order of the faults caused by the corresponding service links; as well as The determining the program level of the target application program based on the link level of the first service link and a preset application classification rule includes: If the link level of the first service link is P1 or P2, determining the program level of the target application to be H1; If the link level of the first service link is in P1-P5, or the traffic of the target application within a preset time period is greater than a preset threshold, then determining that the program level of the target application is H2; If the first service link is accessible to external network users, or the target application is used to modify data configuration of an application at level H1 or H2, then the program level of the target application is determined to be H3; If the target application does not conform to the H1, H2 or H3 level, the program level of the target application is determined to be H4.

7. The method according to claim 1, in, The target change includes code change; Determine the scope of impact of executing the target change, including: Determine the first impact object of the code change through program static analysis; The data flow information of the online business data of the business platform targeted by the target change is obtained, and the first affected object is corrected according to the data flow information to obtain the affected scope information.

8. The method according to claim 1, in, The plurality of target data objects include affected target logs, and determining corresponding risk types according to data types of the plurality of target data objects includes: Determine whether the target log is configured with monitoring items. If no monitoring items are configured, determine that the corresponding risk type is a monitorable risk.

9. The method according to claim 1, in, The plurality of target data objects include target values ​​for configuration items, and the determining corresponding risk types according to data types of the plurality of target data objects includes: Whether the target value is legal is determined according to the historical value of the configuration item. If it is illegal, the corresponding risk type is determined to be a configuration risk.

10. The method according to claim 1, in, The target data objects include structures of affected data tables, and determining corresponding risk types according to data types of the target data objects includes: It is determined whether the database metadata corresponding to the data table has been changed corresponding to the structure of the data table; if not, it is determined that the corresponding risk type is a database risk.

11. The method according to claim 1, in, The plurality of target data objects include an affected fund table, and the determining corresponding risk types according to the data types of the plurality of target data objects includes: Determine whether there is a check rule corresponding to the fund table, and if not, determine that the corresponding risk type is fund risk.

12. The method according to claim 1, in, The determination of the defense adequacy assessment information for the target change includes: Determine the coverage rate, historical defense success rate, and test defense success rate of the risk defense measures; The defense adequacy evaluation information is determined according to the coverage rate, the historical defense success rate, and the test defense success rate.

13. The method according to claim 12, in, Determine the defense adequacy evaluation information according to the coverage rate, the historical defense success rate, and the test defense success rate, including: The product of the coverage rate, the historical defense success rate, and the test defense success rate is calculated as a defense adequacy evaluation value.

14. A device for assessing the risk of a change, include: an acquisition unit, configured to acquire a target change to be executed, and determine information on an impact scope caused by executing the target change, including a number of target data objects affected by the target change, wherein the target change includes a code change and / or a configuration change; A first determining unit is configured to determine a change risk level for executing the target change based on the business attributes of the target data objects and / or the link level of the business link to which they belong; A second determination unit is configured to determine corresponding risk types according to the data types of the target data objects, and generate change risk warning information, including a description text of the risk type; A third determination unit is configured to determine defense adequacy assessment information for target changes based on risk defense measures for the plurality of target data objects; The output unit is configured to output change risk assessment information, including the change risk level, the change risk warning information and the defense adequacy assessment information.

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 13.

16. A computing device comprising a memory and a processor, It is characterized in that The memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Risk assessment method, device and apparatus and computer readable storage medium

    CN111582771A

  • Monitoring and early warning method for power operation and maintenance network security

    CN112766517A