Search

CN-115203327-B - Accident tracing method and system for block chain security control system

CN115203327BCN 115203327 BCN115203327 BCN 115203327BCN-115203327-B

Abstract

The invention discloses a block chain security control system accident tracing method and system, which are characterized in that modification and uploading data of each node of a block chain are recorded in a local tracing chain when data modification and uploading are carried out, the non-repairable modification and traceability of the data are guaranteed by utilizing an asymmetric encryption mechanism and transaction traceability characteristic of the block chain, the tracing chain can lock accident source data, accurately position the fault node and lock a modification initiator and an account book notary, the tracing reliability is guaranteed, and secondly, related information of the whole block chain is required to be traced back when the accident tracing is carried out in the past, the block chain data is increasingly and redundantly operated along with time, the time complexity of the whole information amount is high, and the blocking of a communication channel is possibly caused. After the accident nodes are determined through block head data comparison of the tracing chain after the tracing chain is introduced, specific accident liability people can be confirmed only by calling account book information of the accident nodes, and the time cost of accident tracing is greatly reduced.

Inventors

  • XIE HAIPENG
  • WANG YUN
  • GAO JIANLONG
  • BIE CHAOHONG
  • LI GENGFENG

Assignees

  • 西安交通大学

Dates

Publication Date
20260508
Application Date
20220712

Claims (8)

  1. 1. The accident tracing method of the block chain security control system is characterized by comprising the following steps of: s1, recording modification and uploading data of each node of the block chain in a local tracing chain when data modification and uploading are performed; s2, when an accident occurs, the blockchain system sends a tracing request to each node of the blockchain, and each node of the blockchain uploads a blockhead record of a local tracing chain; s3, comparing the block header records of all nodes of the block chain, and acquiring and broadcasting block header numbers corresponding to abnormal data modification behaviors to all nodes of the block chain; S4, each node of the block chain determines the position of the corresponding data modification behavior in the original block chain system according to the broadcasted block head number, and uploads the block information in the original block chain system; S5, comparing and analyzing according to the block information provided by each node of the block chain to obtain corresponding nodes of the accident; the method comprises the steps of determining abnormal data modification behaviors by comparing the tracing chain block head data, if accidents caused by malicious bifurcation attack exist, enabling the tracing chain block head data of a corresponding node to be different from other nodes, positioning the corresponding abnormal data modification positions according to the data different positions, and if malicious bifurcation does not exist, enabling all the node data to be the same, wherein the faults are caused by the last modification of the corresponding node data.
  2. 2. The method for tracing back accidents of a blockchain security control system according to claim 1, wherein when data modification or data uploading is performed locally, a data tracing chain is generated through a contract, and a user ID, a parameter number and a block position of a modification behavior in an original blockchain are recorded once by a block body of each block.
  3. 3. The method for tracing accidents of a blockchain security control system according to claim 1, wherein the data tracing chain is used for recording three types of data including parameter numbers, parameter changes and block information where the data tracing chain is located.
  4. 4. The blockchain security system accident tracing method according to claim 1, wherein the blockchain adopts a security system in the form of a alliance chain or a private chain organization, and adopts Raft algorithm or PBFT algorithm as a common recognition algorithm of the private chain or the alliance chain.
  5. 5. The method of claim 4, wherein the node or nodes with computing power are selected randomly in the original blockchain security system according to a consensus mechanism.
  6. 6. The method for tracing accidents of a blockchain security control system according to claim 1, wherein the block header of each block of the traceable chain is generated by hash encryption after the hash encryption of the blockvolume data of the traceable chain is connected with the block header of the last block.
  7. 7. The blockchain security system incident tracing method of claim 1, wherein the block header data corresponding to the abnormal data modification and the last group of block header data of the failed node are recorded simultaneously.
  8. 8. The accident tracing system of the block chain security control system is characterized by comprising a data collection module, a data comparison module and a tracing module; the data collection module is used for recording the modification and uploading data of each node of the block chain in a local tracing chain when the data modification and uploading are carried out; the data comparison module is used for sending a tracing request to each node of the block chain to obtain a block head record of the local tracing chain uploaded by each node of the block chain when an accident occurs; The tracing module is used for comparing block header records of all nodes of the block chain, acquiring and broadcasting block header numbers corresponding to abnormal data modification behaviors to all nodes of the block chain, determining the positions of the corresponding data modification behaviors in an original block chain system according to the broadcasted block header numbers by all nodes of the block chain, uploading the block information in the original block chain system, comparing and analyzing the block information provided by all nodes of the block chain according to the block information to obtain corresponding nodes of accidents, determining the abnormal data modification behaviors by comparing the tracing chain block header data, if accidents caused by malicious bifurcation attacks exist, enabling the tracing chain block header data of the corresponding nodes to be different from other nodes, and positioning the positions of corresponding abnormal data modification according to the positions of the data, if malicious bifurcation does not exist, and if all the node data are the same, the faults are caused by the last modification of the corresponding node data.

Description

Accident tracing method and system for block chain security control system Technical Field The invention belongs to the technical field of wind control of a block chain security control system, and particularly relates to an accident tracing method and system of the block chain security control system. Background The blockchain technique is a chained data structure in which data blocks are assembled in a sequential manner in time order. The bottom structure of the blockchain is a systematic combination of multiple technologies and concepts such as a multi-main body, a distributed database, a cryptography tool, a consensus mechanism and the like, has the advantages of tamper resistance, traceability, multi-point consensus, distributed storage and the like, and drives the development of various industries. The block chain technology is naturally consistent with the network attribute of the security control system, a large number of security control devices connected through a dispatching data network are used as block chain participation nodes, and a consensus mechanism and a distributed accounting technology of the block chain provide powerful technical support for the security control system management and control. The data party which is stored on the blockchain and has reached reliable consensus can put into the production system to actually play a role, so that the correctness of key parameters and the possibility of avoiding tampering are ensured, and meanwhile, an effective technical means is provided for posthoc responsibility tracing and abnormal behavior analysis. With the development of blockchain technology and popularization of blockchain application, the following problems are more and more emphasized. First, for a coalition chain employing a practical bayer consensus mechanism (PBFT), considering that the system block-out speed is already close to the system information transmission speed and the system is running in an asynchronous state, the system can have a bifurcation (fork) state of simultaneously block-out or first requesting data and then uplink, so that the data of different nodes are not identical in a certain time. This leaves some room for tampering with the data, i.e. an intruder, after having caused errors by data modification by uploading the erroneous data, re-branches the blockchain and rapidly lengthens the branching chain, resulting in erroneous data not being recorded due to the chain length problem, thus destroying the consistency of the system. At this time, the accuracy of the tracing result is greatly affected by performing accident tracing only through the data on the chain, so that misleading of accident tracing is generated, and the accident node is difficult to accurately confirm, so that the accident responsible person is difficult to confirm. Disclosure of Invention The invention aims to provide a block chain security control system accident tracing method and system, which are used for overcoming the defects of the prior art. An accident tracing method of a block chain security control system comprises the following steps: s1, recording modification and uploading data of each node of the block chain in a local tracing chain when data modification and uploading are performed; s2, when an accident occurs, the blockchain system sends a tracing request to each node of the blockchain, and each node of the blockchain uploads a blockhead record of a local tracing chain; s3, comparing the block header records of all nodes of the block chain, and acquiring and broadcasting block header numbers corresponding to abnormal data modification behaviors to all nodes of the block chain; S4, each node of the block chain determines the position of the corresponding data modification behavior in the original block chain system according to the broadcasted block head number, and uploads the block information in the original block chain system; S5, comparing and analyzing according to the block information provided by each node of the block chain to obtain the corresponding node of the accident. Preferably, when data modification or data uploading is performed locally, a data tracing chain is generated through contracts, and the block body of each block records the user ID, the parameter number and the block position of the modification behavior in the original block chain once. Preferably, the data tracing chain is used for recording three types of data including parameter numbers, parameter changes and block information where the parameter changes and the block information are located. Preferably, the blockchain adopts a security control system in the form of a alliance chain or a private chain organization, and adopts Raft algorithm or PBFT algorithm as a consensus algorithm of the private chain or the alliance chain. Preferably, one or more nodes with computing power are selected randomly in the original blockchain security system according to a consensus mechanism. Preferably, the