Network information security early warning method and system based on block chain technology
Through real-time monitoring and two-way verification mechanisms, combined with smart contract security audits and machine learning models, the authenticity of cross-chain data is evaluated and early warning signals are generated, which solves the problem of false data caused by loopholes in the cross-chain bridge verification mechanism and improves network information security warnings. System security and stability.
Patent Information
- Application Number
- CN202410761498.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the network information security early warning system based on the blockchain, there are loopholes in the verification mechanism of the cross-chain bridge, causing false cross-chain data to be accepted, destroying the normal operation of the early warning system.
Through real-time monitoring of the cross-chain information transmission process, a two-way verification mechanism is used to verify cross-chain data on the source chain and target chain, and security audits and real-time monitoring of smart contracts are conducted to evaluate the authenticity of cross-chain data and the security of smart contracts. It predicts the authenticity of cross-chain data through machine learning models and generates early warning signals during the data transmission process.
Effectively identify and prevent false cross-chain data, ensure the authenticity and validity of cross-chain data, improve the overall security and stability of the system, promptly discover potential abnormal information transmission processes, and provide early warning and processing to avoid the expansion of the problem.
Smart Images

Figure CN118540144A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network information security technology, and in particular to a network information security early warning method and system based on blockchain technology. Background Art
[0002] The network information security early warning based on blockchain technology refers to the use of the decentralized, tamper-proof and traceable characteristics of blockchain to build a more secure and transparent network information security monitoring and early warning system. By recording and sharing network security events, threat intelligence and emergency response information on the blockchain, each participating node can obtain the latest security situation in real time, so as to respond quickly and prevent the spread and escalation of security incidents.
[0003] Specifically, this early warning system can encrypt network security data (such as malicious attack behaviors, vulnerability information, etc.) and write them into the blockchain to ensure the authenticity and integrity of the data. At the same time, the early warning rules are automatically executed through smart contracts, triggering corresponding security response measures and sending alarms to all relevant parties, forming a collaborative defense ecosystem and improving the overall network information security defense capabilities.
[0004] The prior art has the following deficiencies:
[0005] In the prior art, with the development of blockchain technology, the demand for interoperability between different blockchain networks has increased. In a blockchain-based network information security early warning system, data exchange and collaboration between multiple blockchain networks may be required. Cross-chain bridges usually need to verify the authenticity and validity of data between different blockchains. However, if there are loopholes in the verification mechanism of the cross-chain bridge, it may make it difficult to verify the authenticity of data between cross-chain data, thereby allowing false cross-chain data to be accepted. For example, by manipulating the information flow through cross-chain exchange data, attackers can transmit false information between different blockchain networks and disrupt the normal operation of the early warning system.
[0006] Cross-chain bridges are a technical solution that aims to achieve data and value transmission and interoperability between different blockchain networks. Since different blockchain networks usually use different protocols, consensus mechanisms and data structures, direct interoperability is very challenging. Cross-chain bridges solve these interoperability problems through specific mechanisms and protocols, allowing information to be transmitted securely and reliably between different blockchains. Summary of the invention
[0007] The purpose of the present invention is to provide a network information security early warning method and system based on blockchain technology to solve the shortcomings of the background technology.
[0008] In order to achieve the above object, the present invention provides the following technical solution: a network information security early warning method based on blockchain technology, comprising the following steps:
[0009] S1: Monitor the cross-chain information transmission process in real time, verify the cross-chain data on the source chain and the target chain through a two-way verification mechanism, and collect and record the verification information;
[0010] S2: Analyze the obtained verification information, and based on the analysis results, determine the deviation of cross-chain data transmission between the source chain and the target chain, and evaluate the stability of the cross-chain data transmission process;
[0011] S3: Conduct security audits on the smart contracts used by the cross-chain bridge, monitor the running status and behavior of the smart contracts in real time, analyze the frequency of loopholes and abnormal calls in the smart contracts, and evaluate the security level of the smart contracts of the cross-chain bridge;
[0012] S4: Comprehensively analyze the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract, and evaluate and predict the authenticity of the cross-chain data based on the analysis results;
[0013] S5: According to the prediction results, the authenticity of the cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, and corresponding processing is performed;
[0014] S6: When cross-chain data is classified as possibly authentic cross-chain data, further analysis is conducted on the authenticity of the cross-chain data over a period of time, and early prediction and warning of abnormal information transmission processes are conducted based on the analysis results.
[0015] In a preferred embodiment, in S2, the verification time difference between the source chain and the target chain is analyzed to determine the delay of data transmission, obtain the overall transmission efficiency offset value of the cross-chain data, and evaluate the stability of the cross-chain data transmission process. The method for obtaining the overall transmission efficiency offset value is:
[0016] Obtain the verification time difference data between the source chain and the target chain to obtain a time series, and calculate the autoregressive moving average of the time series. The specific calculation expression is: MN t =A+s1MN t-1 +s2MN t-2 +...+s p MN t-p +m1EL t-1 +m2EL t-2 +...+m p EL t-p ; where s1, s2, ..., s pand m1, m2, ..., m p are the autoregressive and moving average coefficients respectively, p is a positive integer greater than 0, MN t represents the autoregressive moving average of the time series at time t, A is a constant term, MN t-1 MN t-2 、...、MN t-p represents the p observations before time t, EL t-1 ,EL t-2 ,...,EL t-p It is the p error terms before time point t, indicating the error between the observed value and the predicted value. The autoregressive moving average model is used to fit the verification time difference data to obtain the predicted value. The variance of the verification time difference data is calculated, and the variance of the autoregressive moving average and the verification time difference are analyzed. The sum of the two is used to obtain the overall transmission efficiency offset value.
[0017] In a preferred embodiment, the overall transmission efficiency offset value of the obtained cross-chain data is compared with the overall transmission efficiency offset value reference threshold in the historical data. If the overall transmission efficiency offset value of the cross-chain data is greater than or equal to the overall transmission efficiency offset value reference threshold, a data transmission stable signal is generated; if the overall transmission efficiency offset value of the cross-chain data is less than the overall transmission efficiency offset value reference threshold, a data transmission unstable signal is generated.
[0018] In a preferred implementation, in S3, by collecting and analyzing the operation log of the smart contract, recording each vulnerability and abnormal call that occurs, calculating the frequency of occurrence of vulnerabilities and abnormal calls within a period of time, analyzing the fault frequency data, obtaining the fault frequency fluctuation value, and evaluating the security of the smart contract of the cross-chain bridge, the method for obtaining the fault frequency fluctuation value is:
[0019] Collect smart contract operation logs, record the number and time of vulnerabilities and abnormal calls, generate fault frequency time series data {Yt}, select the attenuation coefficient λ, where 0<λ≤1, calculate the initial EWMA value of the time series data, and for each time point (t), calculate the time series data EWMA(t) value. The specific calculation expression is: EWMA(t)=λYt+(1-λ)EWMA(t-1); where Yt is the observed value of the fault frequency at time point t, and EWMA is the exponentially weighted moving average at time point (t). The logarithmic rate of return Rt is calculated for the fault frequency time series. The specific calculation expression is: The mean and variance of the logarithmic rate of return are calculated based on the calculated logarithmic rate of return, and the volatility of the logarithmic rate of return is calculated based on the mean and variance of the logarithmic rate of return. The volatility of the logarithmic rate of return and the exponentially weighted moving average are analyzed to calculate the fluctuation value of the fault frequency. The specific calculation expression is: Where kW is the fault frequency fluctuation value, and σ is the volatility of the logarithmic rate of return.
[0020] In a preferred embodiment, the acquired fault frequency fluctuation value is compared with the fault frequency fluctuation value reference threshold in the historical data. If the fault frequency fluctuation value is greater than or equal to the fault frequency fluctuation value reference threshold, a smart contract abnormal signal is generated; if the fault frequency fluctuation value is less than the fault frequency fluctuation value reference threshold, a smart contract normal signal is generated.
[0021] In a preferred implementation, in S4, the stability of the cross-chain data transmission process and the security of the smart contract of the cross-chain bridge are comprehensively analyzed, specifically:
[0022] The overall transmission efficiency offset value and the fault frequency fluctuation value are converted into feature vectors, and the feature vectors are used as the input of the machine learning model. The machine learning model predicts the authenticity value label of the cross-chain data for each set of feature vectors as the prediction target, and minimizes the sum of the prediction errors of the authenticity value labels of all cross-chain data as the training target. The machine learning model is trained until the sum of the prediction errors converges, and the model training is stopped. The authenticity value of the cross-chain data is determined according to the model output results, wherein the machine learning model is a polynomial regression model.
[0023] In a preferred embodiment, in S5, the authenticity of the cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, specifically:
[0024] Compare the authenticity value of the obtained cross-chain data with the gradient standard threshold, the gradient standard threshold includes a first standard threshold and a second standard threshold, and the first standard threshold is less than the second standard threshold, and compare the authenticity value of the cross-chain data with the first standard threshold and the second standard threshold respectively;
[0025] If the authenticity value of the cross-chain data is greater than the second standard threshold, the corresponding cross-chain data is classified as authentic cross-chain data; if the authenticity value of the cross-chain data is greater than the first standard threshold and less than or equal to the second standard threshold, the corresponding cross-chain data is classified as possibly authentic cross-chain data; if the authenticity value of the cross-chain data is less than or equal to the first standard threshold, the corresponding cross-chain data is classified as unauthentic cross-chain data.
[0026] In a preferred embodiment, in S6, the authenticity of cross-chain data within a period of time is further analyzed, and an early prediction and warning of abnormal information transmission processes are performed based on the analysis results;
[0027] When cross-chain data is classified as possibly authentic cross-chain data, that is, the authenticity value of the cross-chain data generated within a period of time is greater than the first standard threshold and less than or equal to the second standard threshold, the authenticity values of the cross-chain data generated within a subsequent period of time are collected and a data set is established;
[0028] Calculate the mean and standard deviation of the data set, and mark the authenticity value of the cross-chain data obtained in the subsequent period as QM new , respectively, with the mean QM of the data set v and standard deviation QM σ For comparison, if |QM new -QM v |≧k*QM σ , an early warning signal is generated at this time; if |QM new -QM v | <k*QM σ , no warning signal is generated at this time, k is the threshold, and is a positive integer greater than 0.
[0029] The present invention also provides a network information security early warning system based on blockchain technology, including a cross-chain information verification module, a cross-chain data deviation analysis module, a smart contract monitoring module, a comprehensive analysis module, an authenticity division module and a prediction and early warning module:
[0030] Cross-chain information verification module: monitors the cross-chain information transmission process in real time, verifies the cross-chain data on the source chain and the target chain through a two-way verification mechanism, and collects and records the verification information;
[0031] Cross-chain data deviation analysis module: Analyze the obtained verification information, and based on the analysis results, determine the deviation of cross-chain data transmission between the source chain and the target chain, and evaluate the stability of the cross-chain data transmission process;
[0032] Smart contract monitoring module: conduct security audits on smart contracts used by the cross-chain bridge, monitor the running status and behavior of smart contracts in real time, analyze the frequency of loopholes and abnormal calls in smart contracts, and evaluate the security level of smart contracts of the cross-chain bridge;
[0033] Comprehensive analysis module: conducts a comprehensive analysis of the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract, and evaluates and predicts the authenticity of the cross-chain data based on the analysis results;
[0034] Authenticity division module: Based on the prediction results, the authenticity of cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, and corresponding processing is performed;
[0035] Prediction and warning module: When cross-chain data is classified as possibly authentic cross-chain data, further analysis is conducted on the authenticity of the cross-chain data over a period of time, and based on the analysis results, early prediction and warning are conducted on abnormal information transmission processes.
[0036] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0037] 1. The present invention can effectively identify and prevent false cross-chain data and ensure the authenticity and validity of cross-chain data through real-time monitoring and two-way verification mechanism of cross-chain information transmission process, as well as security audit and real-time monitoring of cross-chain bridge smart contracts. The comprehensive analysis module ensures the stability of the cross-chain data transmission process and the security of the cross-chain bridge smart contract, thereby improving the overall security and stability of the system.
[0038] 2. The present invention can generate early warning signals in time before abnormal data transmission occurs by real-time analysis and evaluation of the authenticity of cross-chain data during data transmission, especially further analysis and monitoring of cross-chain data with possible authenticity. The prediction and early warning module calculates the mean and standard deviation of the data set, compares the degree of deviation of subsequent data, and promptly discovers potential abnormal information transmission processes, issues early warnings and handles them, avoids the expansion of problems, and thus ensures the reliability and accuracy of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0040] Figure 1 The present invention is a flow chart of the method.
[0041] Figure 2 It is a system module diagram of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Example 1
[0044] See also Figure 1As shown, the network information security early warning method based on blockchain technology described in this embodiment includes the following steps:
[0045] S1: Monitor the cross-chain information transmission process in real time, verify the cross-chain data on the source chain and the target chain through a two-way verification mechanism, and collect and record the verification information;
[0046] S2: Analyze the obtained verification information, and based on the analysis results, determine the deviation of cross-chain data transmission between the source chain and the target chain, and evaluate the stability of the cross-chain data transmission process;
[0047] S3: Conduct security audits on the smart contracts used by the cross-chain bridge, monitor the running status and behavior of the smart contracts in real time, analyze the frequency of loopholes and abnormal calls in the smart contracts, and evaluate the security level of the smart contracts of the cross-chain bridge;
[0048] S4: Comprehensively analyze the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract, and evaluate and predict the authenticity of the cross-chain data based on the analysis results;
[0049] S5: According to the prediction results, the authenticity of the cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, and corresponding processing is performed;
[0050] S6: When cross-chain data is classified as possibly authentic cross-chain data, further analysis is conducted on the authenticity of the cross-chain data over a period of time, and early prediction and warning of abnormal information transmission processes are conducted based on the analysis results.
[0051] Among them, in S1, the cross-chain information transmission process is monitored in real time, and the cross-chain data on the source chain and the target chain are verified through a two-way verification mechanism, and the verification information is collected and recorded, specifically:
[0052] Deploy the cross-chain bridge smart contract on the source chain and the target chain respectively, and configure the verification mechanism. Set up a multi-signature mechanism to ensure that each cross-chain transaction requires the signatures of multiple independent verifiers. Configure a two-way verification mechanism to ensure that each cross-chain transaction needs to be verified on both the source chain and the target chain.
[0053] The user initiates a cross-chain transaction on the source chain and locks the data into the smart contract of the cross-chain bridge. The smart contract locks the user's data and generates a cross-chain transaction request, which contains detailed information about the transaction (such as the amount of data, the target chain address, etc.).
[0054] The validator on the source chain performs a preliminary verification of the cross-chain transaction request to confirm the legitimacy and accuracy of the transaction. Once the source chain verification is passed, the cross-chain bridge notifies the cross-chain bridge smart contract on the target chain of the transaction request. After receiving the transaction request, the validator on the target chain performs the first verification of the transaction to confirm that the locking operation on the source chain has been successful. Record the information of the first verification, including the verification time, validator ID, verification result, etc. The validator on the source chain verifies the verification result of the target chain to confirm that the first verification result on the target chain is accurate. Record the information of the second verification, including the verification time, validator ID, verification result, etc. The cross-chain bridge smart contract on the target chain casts the corresponding number of representative assets based on the verification result of the source chain. Record the detailed information of asset casting, including the casting quantity, time, target address, etc. When the user wants to transfer the asset back to the source chain, the representative asset is destroyed on the target chain. Repeat the two-way verification process to confirm that the destruction operation of the representative asset has been successful.
[0055] Deploy real-time monitoring tools to monitor all transactions on the cross-chain bridge, and detect and identify abnormal transaction behaviors in real time. The information of each two-way verification needs to be recorded in detail, including the verifier ID, verification time, verification results, etc. Record detailed logs of all cross-chain transactions, including initiation time, transaction details, verification process, asset status, etc. Regularly conduct security audits on cross-chain transactions and verification data to discover and handle potential security issues. Generate detailed audit reports to record the problems found and solutions.
[0056] S2: Analyze the obtained verification information, and based on the analysis results, determine the deviation of cross-chain data transmission between the source chain and the target chain, and evaluate the stability of the cross-chain data transmission process.
[0057] During the cross-chain data transmission process, each two-way verification will generate a large amount of verification information. This information mainly includes: Verifier ID: the identification of the node or person involved in the verification. Verification time: the specific timestamp of each verification. Verification result: the result of each verification, whether it is success or failure. Transaction details: detailed information of cross-chain transactions, including transaction volume, transaction object, transaction hash, etc. By analyzing these verification information, abnormal situations in the cross-chain data transmission process can be identified and evaluated.
[0058] Analyze the verification time difference between the source chain and the target chain, determine the delay of data transmission, obtain the overall transmission efficiency offset value of cross-chain data, and evaluate the stability of the cross-chain data transmission process. The method for obtaining the overall transmission efficiency offset value is:
[0059] Obtain the verification time difference data between the source chain and the target chain to obtain a time series, and calculate the autoregressive moving average of the time series. The specific calculation expression is: MN t=A+s1MN t-1 +s2MN t-2 +...+s p MN t-p +m1EL t-1 +m2EL t-2 +...+m p EL t-p ; where s1, s2, ..., s p and m1, m2, ..., m p are the autoregressive and moving average coefficients respectively, p is a positive integer greater than 0, MN t represents the autoregressive moving average of the time series at time t, A is a constant term, MN t-1 MN t-2 、...、MN t-p represents the p observations before time t, EL t-1 ,EL t-2 ,...,EL t-p It is the p error terms before time point t, indicating the error between the observed value and the predicted value. The autoregressive moving average model is used to fit the verification time difference data to obtain the predicted value. The variance of the verification time difference data is calculated, and the variance of the autoregressive moving average and the verification time difference are analyzed. The sum of the two is used to obtain the overall transmission efficiency offset value.
[0060] The obtained overall transmission efficiency offset value of the cross-chain data is compared with the overall transmission efficiency offset value reference threshold in the historical data. If the overall transmission efficiency offset value of the cross-chain data is greater than or equal to the overall transmission efficiency offset value reference threshold, it means that the stability of the cross-chain data transmission process is higher, and a data transmission stability signal is generated at this time; if the overall transmission efficiency offset value of the cross-chain data is less than the overall transmission efficiency offset value reference threshold, it means that the stability of the cross-chain data transmission process is lower, and a data transmission instability signal is generated at this time.
[0061] Unstable delay: During cross-chain data transmission, the larger the overall transmission efficiency deviation value, the greater the delay time variation and the more difficult it is to predict, which may affect the real-time requirements of the system.
[0062] Low transmission efficiency: If the overall transmission efficiency deviation value is large and fluctuates violently, the transmission efficiency may be affected, which may lead to untimely data transmission and affect the performance and reliability of the system.
[0063] Many potential problems: A high overall transmission efficiency offset value may reflect that there are many potential problems in the system, such as network congestion, inconsistent node performance, and processing bottlenecks in the cross-chain mechanism.
[0064] In the present invention, by calculating and analyzing the overall transmission efficiency offset value of cross-chain data and comparing it with the reference threshold in historical data, abnormal situations in the cross-chain data transmission process can be effectively identified and evaluated. It can timely discover transmission delays, low transmission efficiency and potential system problems, generate corresponding stable or unstable signals, and provide accurate early warning information and data support for system administrators, which helps to improve the real-time, reliability and overall performance of cross-chain data transmission, thereby ensuring the effective operation of the network information security early warning system.
[0065] S3: Conduct security audits on the smart contracts used by the cross-chain bridge, monitor the running status and behavior of the smart contracts in real time, analyze the frequency of loopholes and abnormal calls in the smart contracts, and evaluate the security level of the smart contracts of the cross-chain bridge.
[0066] Security audits and real-time monitoring of smart contracts used by cross-chain bridges can timely discover and repair potential security vulnerabilities and ensure that the code of smart contracts is safe and reliable; by real-time monitoring of the operating status and behavior of contracts, abnormal situations can be quickly detected and responded to to ensure the normal operation of smart contracts; by analyzing vulnerabilities and abnormal call frequencies, common attack patterns and system failures can be identified to improve the overall security and stability of the system. This method can comprehensively evaluate the security level of cross-chain bridge smart contracts and provide system administrators with valuable security information and decision-making basis.
[0067] Security audit refers to the detailed inspection and analysis of the code of smart contracts, with the aim of discovering and fixing potential vulnerabilities and security issues. Specifically, it includes:
[0068] Check the code of smart contracts through static analysis tools and manual review to identify possible vulnerabilities, such as reentrancy attacks, overflow errors, unchecked external calls, etc. Ensure that the logic and functions of smart contracts run as expected without unexpected behaviors or errors. Use unit tests, integration tests, and simulated attack tests to verify the security and stability of smart contracts in various situations. Generate a detailed audit report that lists the vulnerabilities found, potential risks, and recommended fixes.
[0069] Real-time monitoring refers to the continuous tracking and recording of the status and behavior of smart contracts during their operation. Specifically, it includes:
[0070] Monitor the storage status, variable values, account balances, etc. of smart contracts in real time to ensure that their status is within the normal range. Track every call of smart contracts, including function calls, event triggers, and transaction processing, and record their input parameters and output results. Detect abnormal behaviors during the operation of smart contracts, such as unexpected function calls, abnormal transaction volumes, and frequent status changes.
[0071] By collecting and analyzing the operation logs of smart contracts, recording each vulnerability and abnormal call, calculating the frequency of vulnerability and abnormal call within a period of time, analyzing the fault frequency data, obtaining the fault frequency fluctuation value, and evaluating the security of the cross-chain bridge smart contract, the method for obtaining the fault frequency fluctuation value is as follows:
[0072] Collect smart contract operation logs, record the number and time of vulnerabilities and abnormal calls, and generate fault frequency time series data {Yt}; select the attenuation coefficient λ, where 0<λ≤1, calculate the initial EWMA value of the time series data, usually select the first observation value Y1 as the initial value, where EWMA1=Y1, for each time point (t), calculate the time series data EWMA(t) value, the specific calculation expression is: EWMA(t)=λYt+(1-λ)EWMA(t-1); where Yt is the fault frequency observation value at time point t, EWMA is the exponentially weighted moving average at time point (t), calculate the logarithmic rate of return Rt for the fault frequency time series, the specific calculation expression is: The mean and variance of the logarithmic rate of return are calculated based on the calculated logarithmic rate of return, and the volatility of the logarithmic rate of return is calculated based on the mean and variance of the logarithmic rate of return. The volatility of the logarithmic rate of return and the exponentially weighted moving average are analyzed to calculate the fluctuation value of the fault frequency. The specific calculation expression is: Where kW is the fault frequency fluctuation value, and σ is the volatility of the logarithmic rate of return.
[0073] The acquired fault frequency fluctuation value is compared with the fault frequency fluctuation value reference threshold in the historical data. If the fault frequency fluctuation value is greater than or equal to the fault frequency fluctuation value reference threshold, it means that the security of the cross-chain bridge's smart contract is lower, and a smart contract abnormal signal is generated at this time; if the fault frequency fluctuation value is less than the fault frequency fluctuation value reference threshold, it means that the security of the cross-chain bridge's smart contract is higher, and a smart contract normal signal is generated at this time.
[0074] The greater the fluctuation value of the fault frequency, the more faults and abnormal calls the smart contract has in a period of time, indicating that there are many problems in the operation of the system. High frequency of faults and abnormal calls may mean that there are loopholes in the code of the smart contract, or it may be easily exploited by attackers under certain conditions, thereby reducing the security of the contract.
[0075] The volatility reflects the instability of the fault frequency. If the fault frequency fluctuation value is high, it means that the fault frequency fluctuates greatly and the system exhibits unstable characteristics. This instability may cause the system to fail frequently in a short period of time, which is difficult to predict and control, increases the difficulty of maintenance and repair, and also increases the risk of being attacked.
[0076] The greater the fluctuation value of the fault frequency, the more it may reveal potential system risks, such as network congestion, inconsistent node performance, and processing bottlenecks in cross-chain mechanisms. If these problems are not solved in time, they may lead to more serious security incidents. In the case of high fluctuations, smart contracts are more likely to be exploited by undiscovered vulnerabilities or attack methods, increasing the risk of system attacks and data leaks.
[0077] In this invention, by conducting security audits and real-time monitoring of the smart contracts of the cross-chain bridge, potential security vulnerabilities can be discovered and repaired in a timely manner to ensure that the code of the smart contract is safe and reliable; by real-time monitoring of the operating status and behavior of the contract, abnormal situations can be quickly detected and responded to to ensure the normal operation of the smart contract; by analyzing the frequency of vulnerabilities and abnormal calls, common attack modes and system failures can be identified to improve the overall security and stability of the system. Providing valuable security information and decision-making basis for system administrators helps to improve the reliability of the system.
[0078] S4: Conduct a comprehensive analysis of the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract, and evaluate and predict the authenticity of the cross-chain data based on the analysis results.
[0079] The overall transmission efficiency offset value and the fault frequency fluctuation value are converted into feature vectors, and the feature vectors are used as the input of the machine learning model. The machine learning model predicts the authenticity value label of the cross-chain data for each set of feature vectors as the prediction target, and minimizes the sum of the prediction errors of the authenticity value labels of all cross-chain data as the training target. The machine learning model is trained until the sum of the prediction errors converges, and the model training is stopped. The authenticity value of the cross-chain data is determined according to the model output results, wherein the machine learning model is a polynomial regression model.
[0080] The method for obtaining the authenticity value of cross-chain data is: from the feature vector training data of the trained machine learning model, obtain the corresponding function expression: QM=F(KQ, kW); where F is the output function of the model, KQ is the overall transmission efficiency offset value, cKW is the fault frequency fluctuation value, and QM is the authenticity value of the cross-chain data.
[0081] S5: According to the prediction results, the authenticity of the cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, and corresponding processing is performed.
[0082] Compare the authenticity value of the obtained cross-chain data with the gradient standard threshold, where the gradient standard threshold in the present application includes a first standard threshold and a second standard threshold, and the first standard threshold is less than the second standard threshold, and compare the authenticity value of the cross-chain data with the first standard threshold and the second standard threshold respectively;
[0083] If the authenticity value of the cross-chain data is greater than the second standard threshold, the corresponding cross-chain data is classified as authentic cross-chain data; these data are recorded in a trusted data storage and marked as verified real data. At the same time, these data are synchronized to all related blockchain networks to ensure that each node has consistent and reliable data.
[0084] If the authenticity value of the cross-chain data is greater than the first standard threshold and less than or equal to the second standard threshold, the corresponding cross-chain data is classified as possibly authentic cross-chain data; additional verification and inspection are performed on these data, and these data are temporarily stored in an intermediate state, awaiting further verification results.
[0085] If the authenticity value of the cross-chain data is less than or equal to the first standard threshold, the corresponding cross-chain data will be classified as unauthentic cross-chain data; these data need to be rejected and ignored immediately, and not stored or propagated in the system. Formulate security strategies and take further protective measures, such as blocking relevant nodes, adjusting verification strategies, etc., to prevent similar false data from entering the system again.
[0086] In this embodiment, the accuracy of cross-chain data transmission is ensured through real-time monitoring and two-way verification mechanisms, the stability of the transmission process is evaluated by analyzing the verification information, the cross-chain bridge smart contract is security audited and monitored in real time, and vulnerabilities and abnormal call frequencies are identified and handled. The authenticity of cross-chain data is evaluated by comprehensively analyzing the transmission stability and the security of the smart contract, and the data is processed according to the gradient standard threshold classification. Overall, this solution can improve the security and reliability of the system, respond to and handle potential security threats in a timely manner, and ensure the authenticity of cross-chain data and the stable operation of the system.
[0087] Example 2
[0088] S6: When cross-chain data is classified as possibly authentic cross-chain data, further analysis is conducted on the authenticity of the cross-chain data over a period of time, and early prediction and warning of abnormal information transmission processes are conducted based on the analysis results.
[0089] When cross-chain data is classified as cross-chain data with possible authenticity, further analysis of the authenticity of this data over a period of time can identify potential anomalies, and predict and warn of problems that may arise during information transmission in advance based on the analysis results. It can timely detect and deal with potential security threats before the problem expands, improve the overall security and stability of the system, and ensure the reliability and accuracy of cross-chain data transmission.
[0090] When cross-chain data is classified as possibly authentic cross-chain data, that is, the authenticity value of the cross-chain data generated within a period of time is greater than the first standard threshold and less than or equal to the second standard threshold, the authenticity values of the cross-chain data generated within a subsequent period of time are collected and a data set is established.
[0091] Calculate the mean and standard deviation of the data set, and mark the authenticity value of the cross-chain data obtained in the subsequent period as QM new , respectively, with the mean QM of the data set v and standard deviation QM σ For comparison, if |QM new -QM v |≧k*QM σ ; It indicates that abnormal conditions may occur during information transmission, and an early warning signal is generated at this time; if |QM new -QM v | <k*QM σ ; It indicates that the information transmission process is in normal state and no warning signal is generated at this time. k is the threshold and is a positive integer greater than 0, indicating the degree of data deviation.
[0092] For the identified abnormal situations, it is necessary to locate the problem, find out the root cause of the abnormality, and take corresponding repair measures as soon as possible to restore the normal state of the cross-chain data transmission process. The generated warning signal needs to be delivered to the relevant system administrators or operation and maintenance personnel in a timely manner so that they can respond quickly and take necessary countermeasures. Develop processing strategies and emergency plans for different types of abnormal situations, including how to deal with different situations such as network attacks, data tampering, system failures, etc., to minimize the possible impact. At the same time, it is necessary to continuously monitor the cross-chain data transmission process, promptly discover and handle new abnormal situations, and continuously improve the early warning system and security protection mechanism to improve the system's risk resistance and stability.
[0093] In this embodiment, when cross-chain data is marked as possible authenticity cross-chain data, that is, the authenticity value of the data generated within a period of time is within a specific threshold range, the data generated in the subsequent period of time will be collected and its mean and standard deviation will be calculated. By comparing the statistical parameters of the new data with the existing data set, if the data is found to deviate from the normal range, an early warning signal is generated. At this point, further processing will include analyzing the abnormal situation, locating and repairing the problem, timely delivering the early warning information to relevant personnel, and formulating appropriate exception handling strategies to ensure the reliability and security of the cross-chain data transmission process.
[0094] Example 3
[0095] See also Figure 2 As shown, the network information security early warning system based on blockchain technology described in this embodiment includes a cross-chain information verification module, a cross-chain data deviation analysis module, a smart contract monitoring module, a comprehensive analysis module, an authenticity division module and a prediction and early warning module:
[0096] Cross-chain information verification module: monitors the cross-chain information transmission process in real time, verifies the cross-chain data on the source chain and the target chain through a two-way verification mechanism, and collects and records the verification information;
[0097] Cross-chain data deviation analysis module: Analyze the obtained verification information, and based on the analysis results, determine the deviation of cross-chain data transmission between the source chain and the target chain, and evaluate the stability of the cross-chain data transmission process;
[0098] Smart contract monitoring module: conduct security audits on smart contracts used by the cross-chain bridge, monitor the running status and behavior of smart contracts in real time, analyze the frequency of loopholes and abnormal calls in smart contracts, and evaluate the security level of smart contracts of the cross-chain bridge;
[0099] Comprehensive analysis module: conducts a comprehensive analysis of the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract, and evaluates and predicts the authenticity of the cross-chain data based on the analysis results;
[0100] Authenticity division module: Based on the prediction results, the authenticity of cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, and corresponding processing is performed;
[0101] Prediction and warning module: When cross-chain data is classified as possibly authentic cross-chain data, further analysis is conducted on the authenticity of the cross-chain data over a period of time, and based on the analysis results, early prediction and warning are conducted on abnormal information transmission processes.
[0102] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0103] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0104] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0105] 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.
[0106] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A network information security early warning method based on blockchain technology, characterized by: The steps include: S1: Monitor the cross-chain information transmission process in real time, verify the cross-chain data on the source chain and the target chain through a two-way verification mechanism, and collect and record the verification information; S2: Analyze the obtained verification information, and based on the analysis results, determine the deviation of cross-chain data transmission between the source chain and the target chain, and evaluate the stability of the cross-chain data transmission process; S3: Conduct security audits on the smart contracts used by the cross-chain bridge, monitor the running status and behavior of the smart contracts in real time, analyze the frequency of loopholes and abnormal calls in the smart contracts, and evaluate the security level of the smart contracts of the cross-chain bridge; S4: Comprehensively analyze the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract, and evaluate and predict the authenticity of the cross-chain data based on the analysis results; S5: According to the prediction results, the authenticity of the cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, and corresponding processing is performed; S6: When cross-chain data is classified as possibly authentic cross-chain data, further analysis is conducted on the authenticity of the cross-chain data over a period of time, and early prediction and warning of abnormal information transmission processes are conducted based on the analysis results.
2. According to claim 1, a network information security early warning method based on blockchain technology is characterized in that: In S2, the verification time difference between the source chain and the target chain is analyzed to determine the delay of data transmission, obtain the overall transmission efficiency offset value of the cross-chain data, and evaluate the stability of the cross-chain data transmission process. The method for obtaining the overall transmission efficiency offset value is: Obtain the verification time difference data between the source chain and the target chain to obtain a time series, and calculate the autoregressive moving average of the time series. The specific calculation expression is: MN t =A+s1MN t-1 +s2MN t-2 +...+s p MN t-p +m1EL t-1 +m2EL t-2 +...+m p EL t-p ; where s1, s2, ..., s p and m1, m2, ..., m p are the autoregressive and moving average coefficients respectively, p is a positive integer greater than 0, MN t represents the autoregressive moving average of the time series at time t, A is a constant term, MN t-1 MN t-2 、...、MN t-p represents the p observations before time t, EL t-1 ,EL t-2 ,...,EL t-p It is the p error terms before time point t, indicating the error between the observed value and the predicted value. The autoregressive moving average model is used to fit the verification time difference data to obtain the predicted value. The variance of the verification time difference data is calculated, and the variance of the autoregressive moving average and the verification time difference are analyzed. The sum of the two is used to obtain the overall transmission efficiency offset value.
3. According to claim 2, a network information security early warning method based on blockchain technology is characterized in that: The obtained overall transmission efficiency offset value of the cross-chain data is compared with the overall transmission efficiency offset value reference threshold in the historical data. If the overall transmission efficiency offset value of the cross-chain data is greater than or equal to the overall transmission efficiency offset value reference threshold, a data transmission stable signal is generated; if the overall transmission efficiency offset value of the cross-chain data is less than the overall transmission efficiency offset value reference threshold, an unstable data transmission signal is generated.
4. According to claim 3, a network information security early warning method based on blockchain technology is characterized in that: In S3, by collecting and analyzing the operation logs of the smart contract, recording each vulnerability and abnormal call, calculating the frequency of vulnerability and abnormal call within a period of time, analyzing the fault frequency data, obtaining the fault frequency fluctuation value, and evaluating the security of the cross-chain bridge smart contract, the method for obtaining the fault frequency fluctuation value is as follows: Collect smart contract operation logs, record the number and time of vulnerabilities and abnormal calls, generate fault frequency time series data {Yt}, select the attenuation coefficient λ, where 0<λ≤1, calculate the initial EWMA value of the time series data, and for each time point (t), calculate the time series data EWMA(t) value. The specific calculation expression is: EWMA(t)=λYt+(1-λ)EWMA(t-1); where Yt is the observed value of the fault frequency at time point t, and EWMA is the exponentially weighted moving average at time point (t). The logarithmic rate of return Rt is calculated for the fault frequency time series. The specific calculation expression is: The mean and variance of the logarithmic rate of return are calculated based on the calculated logarithmic rate of return, and the volatility of the logarithmic rate of return is calculated based on the mean and variance of the logarithmic rate of return. The volatility of the logarithmic rate of return and the exponentially weighted moving average are analyzed to calculate the fluctuation value of the fault frequency. The specific calculation expression is: Where KW is the failure frequency fluctuation value, and σ is the volatility of the logarithmic return rate.
5. According to claim 4, a network information security early warning method based on blockchain technology is characterized in that: Compare the acquired fault frequency fluctuation value with the fault frequency fluctuation value reference threshold in the historical data. If the fault frequency fluctuation value is greater than or equal to the fault frequency fluctuation value reference threshold, a smart contract abnormality signal is generated. If the fault frequency fluctuation value is less than the fault frequency fluctuation value reference threshold, a normal signal of the smart contract is generated.
6. According to claim 5, a network information security early warning method based on blockchain technology is characterized in that: In S4, the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract are comprehensively analyzed, specifically: The overall transmission efficiency offset value and the fault frequency fluctuation value are converted into feature vectors, and the feature vectors are used as the input of the machine learning model. The machine learning model predicts the authenticity value label of the cross-chain data for each set of feature vectors as the prediction target, and minimizes the sum of the prediction errors of the authenticity value labels of all cross-chain data as the training target. The machine learning model is trained until the sum of the prediction errors converges, and the model training is stopped. The authenticity value of the cross-chain data is determined according to the model output results, wherein the machine learning model is a polynomial regression model.
7. According to claim 6, a network information security early warning method based on blockchain technology is characterized in that: In S5, the authenticity of cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, specifically: Compare the authenticity value of the obtained cross-chain data with the gradient standard threshold, the gradient standard threshold includes a first standard threshold and a second standard threshold, and the first standard threshold is less than the second standard threshold, and compare the authenticity value of the cross-chain data with the first standard threshold and the second standard threshold respectively; If the authenticity value of the cross-chain data is greater than the second standard threshold, the corresponding cross-chain data is classified as authentic cross-chain data; if the authenticity value of the cross-chain data is greater than the first standard threshold and less than or equal to the second standard threshold, the corresponding cross-chain data is classified as possibly authentic cross-chain data; if the authenticity value of the cross-chain data is less than or equal to the first standard threshold, the corresponding cross-chain data is classified as unauthentic cross-chain data.
8. According to claim 7, a network information security early warning method based on blockchain technology is characterized in that: In S6, the authenticity of cross-chain data within a period of time is further analyzed, and the abnormal information transmission process is predicted and warned in advance based on the analysis results; When cross-chain data is classified as possibly authentic cross-chain data, that is, the authenticity value of the cross-chain data generated within a period of time is greater than the first standard threshold and less than or equal to the second standard threshold, the authenticity values of the cross-chain data generated within a subsequent period of time are collected and a data set is established; Calculate the mean and standard deviation of the data set, and mark the authenticity value of the cross-chain data obtained in the subsequent period as QM new , respectively, with the mean QM of the data set v and standard deviation QM σ For comparison, if |QM new -QM v |≧k*QM σ , an early warning signal is generated at this time; if |QM new -QM v | <k*QM σ , no warning signal is generated at this time, k is the threshold, and is a positive integer greater than 0.
9. A network information security early warning system based on blockchain technology, used to implement a network information security early warning method based on blockchain technology as described in any one of claims 1 to 8, characterized in that: Including cross-chain information verification module, cross-chain data deviation analysis module, smart contract monitoring module, comprehensive analysis module, authenticity division module and prediction and early warning module: Cross-chain information verification module: monitors the cross-chain information transmission process in real time, verifies the cross-chain data on the source chain and the target chain through a two-way verification mechanism, and collects and records the verification information; Cross-chain data deviation analysis module: Analyze the obtained verification information, and based on the analysis results, determine the deviation of cross-chain data transmission between the source chain and the target chain, and evaluate the stability of the cross-chain data transmission process; Smart contract monitoring module: conduct security audits on smart contracts used by the cross-chain bridge, monitor the running status and behavior of smart contracts in real time, analyze the frequency of loopholes and abnormal calls in smart contracts, and evaluate the security level of smart contracts of the cross-chain bridge; Comprehensive analysis module: conducts a comprehensive analysis of the stability of the cross-chain data transmission process and the security of the cross-chain bridge’s smart contract, and evaluates and predicts the authenticity of the cross-chain data based on the analysis results; Authenticity division module: Based on the prediction results, the authenticity of cross-chain data is divided into authentic cross-chain data, possibly authentic cross-chain data, and unauthentic cross-chain data, and corresponding processing is performed; Prediction and warning module: When cross-chain data is classified as possibly authentic cross-chain data, further analysis is conducted on the authenticity of the cross-chain data over a period of time, and based on the analysis results, early prediction and warning are conducted on abnormal information transmission processes.
Citation Information
Cited By
National capital and national enterprise supervision platform management system and method based on big data technology
CN118863820A
A state-owned assets and state-owned enterprise supervision platform management system and method based on big data technology
CN118863820B
Decentralization management method and system for user registration and storage medium
CN119728080A
Decentralized management method, system and storage medium for user registration
CN119728080B
Pig slaughtering full-process traceability method based on industrial internet identification
CN121213090A
