Safety analysis method, device and equipment after simulation of insertion of diagnosis mechanism and medium

By determining and dividing the circuit range in safety analysis and performing safety measurements, the problem of insufficient comprehensive safety analysis results in the prior art is solved, and the accuracy of safety analysis and comprehensiveness of system safety evaluation are improved.

CN118897794APending Publication Date: 2024-11-05中科鉴芯(北京)科技有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410839170.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

When applying the ISO26262 standard, the existing safety analysis system ignores the circuit changes after the introduction of the safety mechanism, resulting in the incomplete analysis results.

Method used

After inputting the security mechanism file in the target object, the circuit range of the input and output comparison points is determined, divided into the second circuit range corresponding to the security mechanism, the status unit information is obtained, and the security measurement is performed, and a security analysis report is generated to evaluate the security mechanism. effect.

Benefits of technology

It realizes a comprehensive capture of circuit changes after the introduction of the safety mechanism, and improves the accuracy of safety analysis and the flexibility and comprehensiveness of system safety assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897794A_ABST
    Figure CN118897794A_ABST
Patent Text Reader

Abstract

The invention relates to a safety analysis method and device after simulation of insertion of a diagnosis mechanism, equipment and a medium, and the method comprises the steps: determining an input comparison point and an output comparison point which are selected by a target object and correspond to a safety mechanism file under the condition that the target object inputs the safety mechanism file; determining a first circuit range corresponding to the input comparison point and the output comparison point; dividing the first circuit range according to the security mechanism file to determine a second circuit range corresponding to each security mechanism; acquiring unit information of the state units in each second circuit range, and performing security measurement on all the state units in the first circuit range according to the unit information to obtain a first measurement result; and generating a security analysis report according to the first measurement result, the security analysis report including effect evaluation on the security mechanism. The problem that an analysis result is not comprehensive enough due to the fact that introduction of a security mechanism is ignored during security analysis is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic information technology, and in particular to a security analysis method, device, equipment and medium after a simulated insertion diagnosis mechanism. Background Art

[0002] With the continuous improvement of system safety in the automotive electronic system and other fields, ISO26262 standard, as a global functional safety standard, has been widely used in the development of vehicles and electronic systems. However, the current safety analysis system has revealed a series of problems in the actual application of ISO26262 standard. For example, after inserting the safety mechanism, safety verification will be carried out to determine whether the inserted safety mechanism can play an effective role. Then, in order to ensure that the system can still maintain sufficient safety in the actual operating environment, safety analysis is required. However, the current safety analysis after safety verification cannot fully capture the actual changes that may occur in the circuit after the introduction of the safety mechanism. In other words, the analysis results are not comprehensive enough due to the neglect of the introduction of the safety mechanism during the safety analysis.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The present application provides a security analysis method, device, equipment and medium after simulating the insertion of a diagnostic mechanism to solve the above-mentioned technical problem of "the analysis results are not comprehensive enough due to ignoring the introduction of the security mechanism during security analysis".

[0005] According to one aspect of an embodiment of the present application, the present application provides a safety analysis method after simulating the insertion of a diagnostic mechanism, including: when a target object inputs a security mechanism file, determining an input comparison point and an output comparison point selected by the target object and corresponding to the security mechanism file; determining a first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is an overlapping area of ​​an influence range of the input comparison point and an influence range of the output comparison point; dividing the first circuit range according to the security mechanism file to determine a second circuit range corresponding to each safety mechanism; obtaining unit information of a state unit in each second circuit range, and performing security measurement on all state units within the first circuit range according to the unit information to obtain a first measurement result; generating a safety analysis report according to the first measurement result, wherein the safety analysis report includes an evaluation of the effectiveness of the safety mechanism.

[0006] Optionally, determining the first circuit range corresponding to the input comparison point and the output comparison point includes: respectively determining a first influence range of the input comparison point and a second influence range of the output comparison point, wherein the first influence range represents the range of propagation and influence of the change of the input comparison point in the entire circuit system, and the second influence range represents the range of propagation and influence of the change of the output comparison point in the entire circuit system; establishing a circuit model based on the input comparison point and the output comparison point; finding the intersection of the first influence range and the second influence range in the circuit model, and determining the intersection as the first circuit range.

[0007] Optionally, a circuit model is established based on the input comparison point and the output comparison point, including: taking the output comparison point as the starting point, generating component parameters by identifying the components on the first branch, and taking the input comparison point as the starting point, generating component connection data by traversing the components on the second branch, wherein the output comparison point and the input comparison point are the starting point and end point of the first branch respectively, and the second branch is a branch in the opposite direction of the first branch; integrating the component parameters and component connection data to establish a circuit model.

[0008] Optionally, the first circuit range is divided according to the security mechanism file to determine the second circuit range corresponding to each security mechanism, including: obtaining the target function of each security mechanism from the security mechanism file; determining the target element for realizing the target function from each element within the first circuit range; dividing the circuit area where the target element for realizing the same target function is located into the same second circuit range, so as to divide the first circuit range into second circuit ranges corresponding to each security mechanism.

[0009] Optionally, obtaining unit information of each status unit in the second circuit range includes: searching for each status unit in the second circuit range; determining the status unit type of each status unit and the status unit position of the status unit in the second circuit range; and respectively determining the association relationship between each status unit and the security mechanism, wherein the unit information includes the status unit type, the status unit position and the association relationship with the security mechanism of the status unit.

[0010] Optionally, security measurement is performed on all status units within the scope of the first circuit according to the unit information to obtain a first measurement result, including: obtaining historical data of all status units and obtaining a first measurement indicator, wherein the historical data is generated by the status unit during operation, and the first measurement indicator includes diagnostic coverage; extracting target data corresponding to the first measurement indicator from the historical data; and calculating the measurement value of the first measurement indicator according to the target data to obtain the first measurement result.

[0011] Optionally, a security analysis report is generated based on the first measurement result, including generating an effectiveness evaluation of the security mechanism in the following manner: determining a second measurement indicator corresponding to each security mechanism, wherein the first measurement indicator includes the second measurement indicator; extracting a second measurement result of the second measurement indicator from the first measurement result; obtaining a pre-set target expected value, and comparing the second measurement result with the target expected value to obtain a comparison result; and generating an effectiveness evaluation of the security mechanism based on the comparison result.

[0012] According to another aspect of an embodiment of the present application, the present application provides a safety analysis device after simulating the insertion of a diagnostic mechanism, including: a first determination module, used to determine the input comparison point and the output comparison point corresponding to the security mechanism file selected by the target object when the target object inputs the security mechanism file; a second determination module, used to determine the first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is the overlapping area of ​​the influence range of the input comparison point and the influence range of the output comparison point; a division module, used to divide the first circuit range according to the security mechanism file to determine the second circuit range corresponding to each security mechanism; an acquisition module, used to obtain unit information of the state unit in each second circuit range, and perform security measurement on all state units in the first circuit range according to the unit information to obtain a first measurement result; a generation module, used to generate a safety analysis report based on the first measurement result, wherein the safety analysis report includes an evaluation of the effectiveness of the safety mechanism.

[0013] According to another aspect of an embodiment of the present application, the present application provides an electronic device, including a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, the memory and the processor communicate through the communication bus and the communication interface, and the steps of the above method are implemented when the processor executes the computer program.

[0014] According to another aspect of an embodiment of the present application, the present application also provides a computer-readable medium having a non-volatile program code executable by a processor, and the program code enables the processor to execute the above method.

[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:

[0016] The present application adopts a safety analysis method after simulating the insertion of a diagnostic mechanism, including: when the target object inputs a safety mechanism file, determining the input comparison point and the output comparison point corresponding to the safety mechanism file selected by the target object; determining the first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is the overlapping area of ​​the influence range of the input comparison point and the influence range of the output comparison point; dividing the first circuit range according to the safety mechanism file to determine the second circuit range corresponding to each safety mechanism; obtaining the unit information of the state unit in each second circuit range, and performing safety measurement on all the state units in the first circuit range according to the unit information to obtain the first measurement result; generating a safety analysis report according to the first measurement result, wherein the safety analysis report includes an evaluation of the effect of the safety mechanism. By determining the first circuit range jointly affected by the input comparison point and the output comparison point corresponding to the safety mechanism file, and further dividing it into the second circuit range corresponding to each safety mechanism, then performing safety measurement on the state units in each second circuit range, and finally generating an analysis report including the evaluation of the effect of the safety mechanism. The problem that the analysis result is not comprehensive due to ignoring the introduction of the safety mechanism during safety analysis is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 A flowchart of an optional safety analysis method after simulating an insertion diagnosis mechanism according to an embodiment of the present application;

[0020] Figure 2-a An optional circuit diagram before identifying a common coverage circuit range provided according to an embodiment of the present application;

[0021] Figure 2-b An optional circuit diagram after identifying a common coverage circuit range provided according to an embodiment of the present application;

[0022] Figure 3 A block diagram of an optional safety analysis device after simulation insertion diagnosis mechanism provided according to an embodiment of the present application;

[0023] Figure 4A schematic diagram of an optional electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0025] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.

[0026] With the continuous improvement of system safety in the automotive electronic system and other fields, ISO26262 standard, as a global functional safety standard, has been widely used in the development of vehicles and electronic systems. However, the current safety analysis system has revealed a series of problems in the actual application of ISO26262 standard. For example, after inserting the safety mechanism, safety verification will be carried out to determine whether the inserted safety mechanism can play an effective role. Then, in order to ensure that the system can still maintain sufficient safety in the actual operating environment, safety analysis is required. However, the current safety analysis after safety verification cannot fully capture the actual changes that may occur in the circuit after the introduction of the safety mechanism. In other words, the analysis results are not comprehensive enough due to the neglect of the introduction of the safety mechanism during the safety analysis.

[0027] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiment of the present application, a safety analysis method after simulating the insertion of a diagnostic mechanism is provided, such as Figure 1 As shown, including:

[0028] Step 101, when the target object inputs a security mechanism file, determining an input comparison point and an output comparison point corresponding to the security mechanism file selected by the target object;

[0029] Step 103, determining a first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is an overlapping area of ​​the influence range of the input comparison point and the influence range of the output comparison point;

[0030] Step 105, dividing the first circuit range according to the security mechanism file to determine the second circuit range corresponding to each security mechanism;

[0031] Step 107, obtaining unit information of each state unit in the second circuit range, and performing security measurement on all state units in the first circuit range according to the unit information to obtain a first measurement result;

[0032] Step 109: Generate a security analysis report based on the first measurement result, wherein the security analysis report includes an evaluation of the effectiveness of the security mechanism.

[0033] The embodiments provided in the present application are performed at the circuit gate level, and can realize automatic insertion and regional analysis of security mechanisms.

[0034] Specifically, the safety mechanism file is a file provided by the user that complies with the ISO26262 standard. The safety mechanism file includes detailed information on various safety mechanisms, such as error detection and correction code, safety shielding, and fault-tolerant logic. At the same time, the user will specify input comparison points and output comparison points, where the input comparison points and output comparison points are both gate-level nodes in the circuit. By inputting the safety mechanism file, the insertion of the diagnostic mechanism can be simulated. After the user inputs the safety mechanism file and specifies the input comparison points and output comparison points, a comprehensive safety analysis can be performed on the circuit system that simulates the insertion of the safety mechanism.

[0035] The present application first determines the first circuit range that is jointly affected by the input comparison points and output comparison points corresponding to the security mechanism file, and further divides the first circuit range into second circuit ranges corresponding to each security mechanism, then performs security measurement on the state units within each second circuit range, and finally generates a security analysis report including an evaluation of the effectiveness of the security mechanism.

[0036] The embodiment provided in the present application is to perform a security analysis based on input comparison points and output comparison points after the user inputs the security mechanism file, aiming to improve the flexible adaptability of the security mechanism, and at the same time optimize the system security evaluation process through more accurate circuit analysis and comprehensive system-level analysis.

[0037] Next, it is described how to determine the first circuit range jointly influenced by the input comparison point and the output comparison point corresponding to the safety mechanism file according to the two points.

[0038] As an optional embodiment, determining the first circuit range corresponding to the input comparison point and the output comparison point includes: respectively determining a first influence range of the input comparison point and a second influence range of the output comparison point, wherein the first influence range represents the range of propagation and influence of the change of the input comparison point in the entire circuit system, and the second influence range represents the range of propagation and influence of the change of the output comparison point in the entire circuit system; establishing a circuit model based on the input comparison point and the output comparison point; finding the intersection of the first influence range and the second influence range in the circuit model, and determining the intersection as the first circuit range.

[0039] Specifically, the first influence range of the input comparison point is determined by analyzing the influence cone, and the second influence range of the output comparison point is determined by analyzing the influence cone. By automatically analyzing the influence cone between the input comparison point and the output comparison point, the comprehensive impact of input changes on the output and gate-level circuit range can be taken into account.

[0040] By deeply studying the system's circuit structure and signal propagation path, we can ensure that when the input changes, we can fully understand the corresponding output and the circuit range affected by it.

[0041] Specifically, after the circuit model is established, the common coverage circuit range between the input comparison points and the output comparison points is identified on the circuit model to determine the system part protected by the security mechanism.

[0042] Figure 2-a The identification schematic diagram before identifying the common coverage circuit scope provided for this application. Endpoint is the input of all state devices (flip-flops and latches), the input of black box blocks, and the top-level output of the design. TOP.module2 (STATE), EP1, EP2, OUTPUT1, OUTPUT2, OUTPUT3, and OUTPUT4 in the figure can all be used as Endpoint. Startpoint is the output of the state device, the output of the black box block, and the top-level input of the design. SP1, SP2, SP3, SP4, INPUT1, INPUT2, INPUT3, and INPUT4 in the figure can all be used as Startpoint. Cone is the structure between Startpoint and Endpoint. G1~G8 are the various logic gates in the circuit.

[0043] The circuit structure diagram provided in this application will distinguish whether the components of the current level contain a state node (DFF, DLATCH, RS, etc.) at the lower level, that is, marked as STATE or NOTSTATE (such as TOP.module2 (STATE) and TOP.module1 (NOTSTATE) in the figure). State nodes are usually storage elements, such as triggers, which have state information, while non-state nodes are usually combinational logic gates, etc., which do not store states.

[0044] In addition, for the internal invisible black box BlackBox component, it is a stateful node by default, marked as STATE, such as Top.module 1.BlackBox(STATE).

[0045] exist Figure 2-a On the basis of Figure 2-bAn analysis is performed to specify INPUT2, INPUT4, SP1, SP2, SP3 and SP4 as input comparison points, and EP2 and TOP.module2 (STATE) as output comparison points, and a schematic diagram of the common coverage circuit range is obtained, wherein the connection part cone between the input comparison point and the output comparison point is the common coverage circuit range.

[0046] For example, the steps of identifying the common coverage circuit range of the input comparison point and the output comparison point include:

[0047] Step 1, determine the source trigger set (i.e., the set of input comparison points), recorded as "input point set", and determine the tail trigger set (i.e., the set of output comparison points), recorded as "output point set";

[0048] Step 2, create an empty list "first trigger list" for storing the triggers in all traceability paths, create an empty set "coverage area" for storing the covered circuit area, and create a queue "second trigger list" for storing the triggers to be processed;

[0049] Step 3, add all triggers in the "input point set" to the "second trigger list";

[0050] Step 4, iteratively process the triggers in the queue. The processing steps include:

[0051] Take a current trigger "Trigger A" from the "Second Trigger List". If "Trigger A" is already in the "First Trigger List", skip it. If "Trigger A" is not in the "First Trigger List", add "Trigger A" to the "First Trigger List" and the "Overlay Area".

[0052] Find the output signal of "Trigger A" and identify the trigger "Trigger a" driven directly by it. If "Trigger a" is in the "Output Point Set" and has not passed through other triggers, then add "Trigger a" to the "First Trigger List" and "Coverage Area";

[0053] When the "second trigger list" is empty, terminate step 4 and execute step 5;

[0054] Step 5, output results: output the "first trigger list", that is, a list of all paths that can directly reach the tail trigger from the source trigger without passing through other triggers, and output the "coverage area", that is, the circuit area covered by all these paths.

[0055] As an optional embodiment, a circuit model is established based on the input comparison point and the output comparison point, including: taking the output comparison point as the starting point, generating component parameters by identifying the components on the first branch, and taking the input comparison point as the starting point, generating component connection data by traversing the components on the second branch, wherein the output comparison point and the input comparison point are the starting point and end point of the first branch respectively, and the second branch is a branch in the opposite direction of the first branch; integrating the component parameters and component connection data to establish a circuit model.

[0056] Specifically, the component parameters include key information such as the type, input / output signals, and functional description of each component, and the component connection data includes the connection relationship between components.

[0057] For example, the circuit model is established according to the input comparison point and the output comparison point, including: starting from the output comparison point, the system identifies and records all involved circuit gate-level elements, including logic gates, state units, etc. At the same time, the circuit is traversed from the input comparison point to obtain the connection relationship of the elements to establish a complete circuit model of the system.

[0058] Specifically, taking the output comparison point as the starting point, component parameters are generated by identifying the components on the first branch, including: starting from the output comparison point, gradually traversing the circuit in reverse according to the flow direction of the signal on the first branch; recording each component passed (such as logic gates, state units, etc.), and for each component, obtaining its input and output signals, as well as the interaction with other components.

[0059] Specifically, starting from the input comparison point, generating component connection data by traversing the components on the second branch includes: starting from the input comparison point, traversing forward according to the flow direction of the signal on the second branch, and gradually analyzing each component in the circuit. During the traversal process, each component is recorded, and the connection relationship between each component is recorded.

[0060] The information obtained from the forward and reverse traversals is integrated to form a complete circuit description, and then a circuit model is created based on the circuit description. The model can accurately reflect the structure, components, and signal flow of the circuit.

[0061] Traversing from the input comparison point and the output comparison point respectively can ensure that the system can accurately capture and record all circuit elements within the affected range. By optimizing the traversal algorithm, a comprehensive circuit traversal from the output comparison point forward and from the input comparison point backward is achieved, accurately identifying and recording all involved circuit gate-level elements, including logic gates, state cells, etc.

[0062] As an optional embodiment, the first circuit range is divided according to the security mechanism file to determine the second circuit range corresponding to each security mechanism, including: obtaining the target function of each security mechanism from the security mechanism file; determining the target element for realizing the target function from each element within the first circuit range; dividing the circuit area where the target element for realizing the same target function is located into the same second circuit range, so as to divide the first circuit range into each second circuit range corresponding to each security mechanism.

[0063] After determining the first circuit range, it is also necessary to divide the first circuit range into second circuit ranges that match the various safety mechanisms in the safety mechanism file. Because if a system involves multiple input and output ports and logic gates, the different divided areas may contain different input and output ports and logic gates, so they need to be marked and processed separately. This ensures that each area can receive appropriate security assessment and processing.

[0064] First determine the security mechanism to be implemented by the security mechanism file, that is, obtain the target functions of each security mechanism from the security mechanism file (such as access control, encrypted communication, fault isolation, data integrity check, etc.). Perform a detailed analysis of the entire circuit system, including each component, signal flow, data interaction, etc., to identify the key nodes and components for the implementation of the security mechanism in the circuit, that is, the target components. The area where the components corresponding to the same target function are located is divided into the second circuit range of the target function. The second circuit range is the circuit range that matches the security mechanism corresponding to the target function.

[0065] Optionally, each second circuit range may correspond to one security mechanism or multiple security mechanisms, as long as corresponding security requirements and application scenarios are met.

[0066] By dividing the entire first circuit range into second circuit ranges corresponding to each safety mechanism, appropriate safety measures and control methods can be implemented according to the characteristics and requirements of each circuit range, thereby effectively reducing safety risks. Ensuring that each safety mechanism is correctly applied to a specific part of the system provides a reliable basis for subsequent safety metric calculations.

[0067] After completing the circuit division, in order to better understand the internal status of the system and the distribution of security mechanisms and provide data support for subsequent safety measurement and effect evaluation, it is also necessary to identify the status units within each second circuit range and obtain the unit information of the status units. The following explains how to obtain the unit information.

[0068] As an optional embodiment, obtaining unit information of status units in each second circuit range includes: searching for each status unit in the second circuit range; determining the status unit type of each status unit and the status unit position of the status unit in the second circuit range; and respectively determining the association relationship between each status unit and the security mechanism, wherein the unit information includes the status unit type, the status unit position and the association relationship with the security mechanism of the status unit.

[0069] Specifically, the state unit includes but is not limited to: flip-flops, latches, registers, black boxes, memory (for storing data), etc.

[0070] For example, starting from the input end, the circuit model can be traversed to identify all state units; the state unit position of each state unit is marked; the state unit type of each state unit is recorded; it is determined how the state unit participates in the implementation of the security mechanism, such as whether to store keys, control signals or security states, and an association relationship between each state unit and the security mechanism is established.

[0071] The association relationship between each state unit and the security mechanism can be established through a mapping table, including: creating a mapping table to correspond each state unit to the relevant security mechanism; recording in the mapping table how the state unit interacts with the security mechanism, including data flow, control signals, etc.

[0072] Accurately identifying the status units in each second circuit range and recording the unit information is important for improving circuit safety, optimizing performance, improving design, and troubleshooting and debugging. For example, in an automotive electronic system, if an area includes the vehicle's braking system, etc., then identifying the braking-related status units in the area and determining their types and locations can help the system understand the safety and reliability of the braking system and provide a basis for selecting appropriate safety mechanisms.

[0073] After obtaining the cell information of all the state cells in the entire first circuit range, security metrics can be performed on all the state cells. The security metrics are described in detail below.

[0074] As an optional embodiment, security measurement is performed on all status units within the first circuit range according to unit information to obtain a first measurement result, including: obtaining historical data of all status units and obtaining a first measurement indicator, wherein the historical data is generated by the status unit during operation, and the first measurement indicator includes diagnostic coverage; extracting target data corresponding to the first measurement indicator from the historical data; and calculating the measurement value of the first measurement indicator according to the target data to obtain the first measurement result.

[0075] The first metric includes but is not limited to diagnostic coverage, fault detection rate, etc. A reasonable threshold is set for each metric to determine whether the safety performance of the circuit meets the standard.

[0076] Historical data is the recorded data generated by the state unit during operation. Taking diagnostic coverage as an example, diagnostic coverage is the ratio of the number of detected fault modes to the total number of fault modes. Target data corresponding to the diagnostic coverage is extracted from the historical data. These data can directly reflect the fault detection status of the state unit. According to the definition and calculation method of diagnostic coverage, the value of diagnostic coverage can be calculated through the target data.

[0077] When calculating security metrics, all state nodes are assumed to be endpoints (i.e., output points) for judgment and calculation, and other internal logic gates are considered to be cones (i.e., intermediate structures) for calculation and processing.

[0078] As an optional embodiment, a security analysis report is generated based on the first measurement result, including generating an effectiveness evaluation of the security mechanism in the following manner: determining a second measurement indicator corresponding to each security mechanism, wherein the first measurement indicator includes the second measurement indicator; extracting a second measurement result of the second measurement indicator from the first measurement result; obtaining a pre-set target expected value, and comparing the second measurement result with the target expected value to obtain a comparison result; and generating an effectiveness evaluation of the security mechanism based on the comparison result.

[0079] The security analysis report includes a security assessment and an effectiveness evaluation of the security mechanism. Generating the security analysis report according to the first measurement result includes: performing a security assessment according to the first measurement result, and performing an effectiveness evaluation of the security mechanism according to the first measurement result.

[0080] Safety assessment includes: comprehensively considering the status units of each area, the application of safety mechanisms and the overall safety requirements of the system, and evaluating the safety of the system. The assessment can be based on the relevant requirements and indicators of the ISO26262 standard.

[0081] The effect evaluation includes: for each safety mechanism, analyzing its application effect in each area, including indicators such as coverage, fault detection rate, fault tolerance, etc. Specifically, the evaluation can be carried out by comparing the state unit situation and fault detection situation before and after the application of the safety mechanism.

[0082] Improvement suggestions include: Based on the results of in-depth analysis, possible improvement suggestions are put forward, including optimizing the application strategy of security mechanisms, adjusting the area division scheme, improving the state unit design, etc., to improve the security and reliability of the system.

[0083] Specifically, the effectiveness of the security mechanism is evaluated based on the first measurement result, including: for each security mechanism, determining the second measurement indicator related to it, which should be a measurement standard that can directly reflect the operating effect of the security mechanism, such as the interception rate of the firewall, the false alarm rate of the intrusion detection system, etc.; screening out the second measurement results corresponding to each security mechanism from the first measurement result, and the second measurement results can individually reflect the actual effect of each security mechanism; the target expected value is determined in advance based on the security requirements and risk assessment of the system, and the second measurement result is compared with the target expected value to analyze the differences and trends between them. According to the comparison results, the operating effect of each security mechanism is divided into up-to-standard and not up-to-standard; for the security mechanism that does not reach the target expected value, the reasons are deeply analyzed, such as: unreasonable mechanism design, improper configuration or poor operating environment, etc.; based on the comparison results and cause analysis, a security mechanism effectiveness evaluation report is generated, which includes a detailed description of the operating effect of each security mechanism, evaluation conclusions and improvement suggestions.

[0084] Evaluate the actual effect of the security mechanism based on the second measurement result, analyze whether these mechanisms have effectively improved the security of the system, and whether there is room for improvement or optimization, so as to generate corresponding improvement suggestions.

[0085] Specifically, a security assessment is performed based on the first measurement result, including: for each first measurement indicator, by comparing the values ​​and trends between different indicators, the correlation and mutual influence between them are discovered, and by comparing the actual value of the same indicator with the preset expected value, abnormal values ​​of certain indicators, data that does not meet expectations, or an obvious downward trend, etc. are found. At this time, improvement measures can be generated based on the gap between the indicator and the expected value; the overall security status of the system is evaluated based on the analysis results of all measurement indicators and the identification of security risk points.

[0086] The overall security status of the system is analyzed based on the first measurement result. By analyzing the correlation between various security indicators, it can be determined whether there are potential security vulnerabilities or risk points in the system.

[0087] Based on the measurement results, a comprehensive and in-depth assessment of the overall security status of the system is conducted, which provides strong support for the security management and improvement of the system, helps to discover security issues in the system, formulate corresponding improvement measures, and thus improve the overall security of the system.

[0088] After the security analysis report is generated, it is presented to the user to help the user better understand the security status of the system.

[0089] The present application adopts a safety analysis method after simulating the insertion of a diagnostic mechanism, including: when the target object inputs a safety mechanism file, determining the input comparison point and the output comparison point corresponding to the safety mechanism file selected by the target object; determining the first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is the overlapping area of ​​the influence range of the input comparison point and the influence range of the output comparison point; dividing the first circuit range according to the safety mechanism file to determine the second circuit range corresponding to each safety mechanism; obtaining the unit information of the state unit in each second circuit range, and performing safety measurement on all the state units in the first circuit range according to the unit information to obtain the first measurement result; generating a safety analysis report according to the first measurement result, wherein the safety analysis report includes an evaluation of the effect of the safety mechanism. By determining the first circuit range jointly affected by the input comparison point and the output comparison point corresponding to the safety mechanism file, and further dividing it into the second circuit range corresponding to each safety mechanism, then performing safety measurement on the state units in each second circuit range, and finally generating an analysis report including the evaluation of the effect of the safety mechanism. The problem that the analysis result is not comprehensive due to ignoring the introduction of the safety mechanism during safety analysis is solved.

[0090] According to another aspect of the embodiment of the present application, the present application provides a safety analysis device after simulating an insertion diagnosis mechanism, such as Figure 3 As shown, including:

[0091] A first determination module 302 is used to determine the input comparison point and the output comparison point corresponding to the security mechanism file selected by the target object when the target object inputs the security mechanism file;

[0092] A second determination module 304 is used to determine a first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is an overlapped area between an influence range of the input comparison point and an influence range of the output comparison point;

[0093] A division module 306, configured to divide the first circuit range according to the security mechanism file to determine a second circuit range corresponding to each security mechanism;

[0094] An acquisition module 308 is used to acquire unit information of the state units in each second circuit range, and perform security measurement on all the state units in the first circuit range according to the unit information to obtain a first measurement result;

[0095] The generating module 310 is used to generate a security analysis report according to the first measurement result, wherein the security analysis report includes an evaluation of the effectiveness of the security mechanism.

[0096] It should be noted that the first determination module 302 in this embodiment can be used to execute step 101 in the embodiment of the present application, the second determination module 304 in this embodiment can be used to execute step 103 in the embodiment of the present application, the division module 306 in this embodiment can be used to execute step 105 in the embodiment of the present application, the acquisition module 308 in this embodiment can be used to execute step 107 in the embodiment of the present application, and the generation module 310 in this embodiment can be used to execute step 109 in the embodiment of the present application.

[0097] Optionally, the second determining module 304 includes:

[0098] A first range determination unit is used to determine a first influence range of the input comparison point and a second influence range of the output comparison point, respectively, wherein the first influence range represents the range of propagation and influence of the change of the input comparison point in the entire circuit system, and the second influence range represents the range of propagation and influence of the change of the output comparison point in the entire circuit system;

[0099] A model building unit, used for building a circuit model according to an input comparison point and an output comparison point;

[0100] The second range determination unit is used to find the intersection of the first influence range and the second influence range in the circuit model, and determine the intersection as the first circuit range.

[0101] Optionally, the model building unit is specifically used to generate component parameters by identifying components on the first branch with the output comparison point as the starting point, and to generate component connection data by traversing components on the second branch with the input comparison point as the starting point, wherein the output comparison point and the input comparison point are the starting point and end point of the first branch respectively, and the second branch is the branch in the opposite direction of the first branch; the component parameters and component connection data are integrated to establish a circuit model.

[0102] Optionally, the division module 306 is also used to obtain the target function of each security mechanism from the security mechanism file; determine the target element used to achieve the target function among the various elements within the first circuit range; divide the circuit area where the target element used to achieve the same target function is located into the same second circuit range, so as to divide the first circuit range into various second circuit ranges corresponding to each security mechanism.

[0103] Optionally, the acquisition module 308 is also used to search for each state unit within the second circuit range; determine the state unit type of each state unit and the state unit position of the state unit in the second circuit range; and determine the association relationship between each state unit and the security mechanism respectively, wherein the unit information includes the state unit type of the state unit, the state unit position and the association relationship with the security mechanism.

[0104] Optionally, the acquisition module 308 is also used to acquire historical data of all state units and obtain a first measurement indicator, wherein the historical data is generated by the state unit during operation, and the first measurement indicator includes diagnostic coverage; extract target data corresponding to the first measurement indicator from the historical data; calculate the measurement value of the first measurement indicator based on the target data to obtain a first measurement result.

[0105] Optionally, the generation module 310 is also used to generate an effectiveness evaluation of the security mechanism in the following manner: determine a second measurement indicator corresponding to each security mechanism, wherein the first measurement indicator includes the second measurement indicator; extract a second measurement result of the second measurement indicator from the first measurement result; obtain a pre-set target expected value, and compare the second measurement result with the target expected value to obtain a comparison result; and generate an effectiveness evaluation of the security mechanism based on the comparison result.

[0106] It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.

[0107] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Figure 4 As shown, it includes a memory 401, a processor 403, a communication interface 405 and a communication bus 407. The memory 401 stores a computer program that can be run on the processor 403. The memory 401 and the processor 403 communicate through the communication interface 405 and the communication bus 407. When the processor 403 executes the computer program, the steps of the above method are implemented.

[0108] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.

[0109] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0110] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0111] According to another aspect of the embodiments of the present application, a computer-readable medium having a non-volatile program code executable by a processor is provided.

[0112] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0113] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.

[0114] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0115] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0116] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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.

[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0118] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0119] 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.

[0120] In addition, each functional unit in each embodiment of the present application 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.

[0121] If the function 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 such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0122] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A safety analysis method after simulating an insertion diagnosis mechanism, characterized in that: include: In the case where the target object inputs a security mechanism file, determining an input comparison point and an output comparison point corresponding to the security mechanism file selected by the target object; Determine a first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is an overlapping area of ​​an influence range of the input comparison point and an influence range of the output comparison point; Dividing the first circuit range according to the security mechanism file to determine the second circuit range corresponding to each security mechanism; Acquire unit information of each state unit in the second circuit range, and perform security measurement on all the state units in the first circuit range according to the unit information to obtain a first measurement result; A security analysis report is generated according to the first measurement result, wherein the security analysis report includes an evaluation of the effectiveness of the security mechanism.

2. The method according to claim 1, characterized in that The determining a first circuit range corresponding to the input comparison point and the output comparison point includes: Determine a first influence range of the input comparison point and a second influence range of the output comparison point respectively, wherein the first influence range indicates the range of propagation and influence of the change of the input comparison point in the entire circuit system, and the second influence range indicates the range of propagation and influence of the change of the output comparison point in the entire circuit system; Establishing a circuit model according to the input comparison point and the output comparison point; An intersection of the first influence range and the second influence range is found in the circuit model, and the intersection is determined as the first circuit range.

3. The method according to claim 2, characterized in that The establishing of a circuit model according to the input comparison point and the output comparison point includes: Taking the output comparison point as a starting point, generating component parameters by identifying components on a first branch, and taking the input comparison point as a starting point, generating component connection data by traversing components on a second branch, wherein the output comparison point and the input comparison point are respectively the starting point and the end point of the first branch, and the second branch is a branch in the opposite direction of the first branch; The component parameters and the component connection data are integrated to establish the circuit model.

4. The method according to claim 1, characterized in that: The dividing the first circuit range according to the security mechanism file to determine the second circuit range corresponding to each security mechanism includes: Acquire the target function of each security mechanism from the security mechanism file; Determining a target component for realizing the target function among various components within the first circuit range; The circuit area where the target element for realizing the same target function is located is divided into the same second circuit range, so as to divide the first circuit range into respective second circuit ranges corresponding to respective safety mechanisms.

5. The method according to claim 4, characterized in that The acquiring unit information of each state unit in the second circuit range includes: Searching for each of the state cells within the second circuit range; Determine a state cell type of each state cell and a state cell position of the state cell in the second circuit range; The association relationship between each of the state units and the security mechanism is determined respectively, wherein the unit information includes the state unit type of the state unit, the state unit position, and the association relationship with the security mechanism.

6. The method according to claim 1, characterized in that The performing security measurement on all the state units within the first circuit range according to the unit information to obtain a first measurement result includes: Acquire historical data of all the state units and acquire a first metric indicator, wherein the historical data is generated by the state units during operation, and the first metric indicator includes a diagnostic coverage rate; Extracting target data corresponding to the first metric from the historical data; The measurement value of the first measurement indicator is calculated according to the target data to obtain the first measurement result.

7. The method according to claim 6, characterized in that Generating a security analysis report according to the first measurement result includes generating the effect evaluation of the security mechanism in the following manner: Determine a second metric corresponding to each of the security mechanisms, wherein the first metric includes the second metric; Extracting a second measurement result of the second measurement indicator from the first measurement result; Obtaining a preset target expected value, and comparing the second measurement result with the target expected value to obtain a comparison result; The effectiveness evaluation of the security mechanism is generated according to the comparison result.

8. A safety analysis device after simulating an insertion diagnosis mechanism, characterized in that: include: A first determination module is used to determine, when a target object inputs a security mechanism file, an input comparison point and an output comparison point corresponding to the security mechanism file selected by the target object; A second determination module is used to determine a first circuit range corresponding to the input comparison point and the output comparison point, wherein the first circuit range is an overlapping area of ​​an influence range of the input comparison point and an influence range of the output comparison point; A division module, used for dividing the first circuit range according to the security mechanism file to determine the second circuit range corresponding to each security mechanism; an acquisition module, configured to acquire unit information of each state unit in the second circuit range, and perform security measurement on all the state units in the first circuit range according to the unit information to obtain a first measurement result; A generation module is used to generate a security analysis report based on the first measurement result, wherein the security analysis report includes an evaluation of the effectiveness of the security mechanism.

9. An electronic device, comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate through the communication bus and the communication interface, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 7.