Block chain network attack detection method and device, equipment, medium and program product

By using linear prediction coding spectral features and time series prediction networks in the blockchain network to determine the characteristics of the time series evolution pattern, it solves the problem of static behavioral pattern mining in the existing technology being difficult to adapt to changes in network attack patterns, and achieves a more efficient network Attack detection.

CN118802274AActive Publication Date: 2024-10-18XIANGYANG BRANCH CHINA MOBILE GRP HUBEI CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410219981.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2024-10-18
Estimated Expiration
2044-02-28

AI Technical Summary

Technical Problem

Existing network attack detection technology uses static behavioral pattern mining, which is difficult to adapt to the rapid dynamic changes of network attack patterns and cannot effectively detect new network attacks.

Method used

By obtaining the network access behavior between blockchain nodes, extracting network access characteristics and constructing a feature set, linear predictive coding spectral features and time series prediction networks are used to determine the time series evolution pattern characteristics and conduct network attack detection.

Benefits of technology

It improves the identification accuracy of network attack detection, can adapt to the rapid dynamic changes of network attack patterns, and improves the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802274A_ABST
    Figure CN118802274A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network security, and provides a block chain network attack detection method and device, equipment, a medium and a program product, and the method comprises the steps: obtaining network access behaviors between block chain nodes, extracting network access features from the network access behaviors, and constructing a network access feature set; determining linear predictive coding spectrum features of the network access feature set according to a preset network access target and the time slice; inputting the linear predictive coding spectrum characteristics to a time sequence predictive network, and taking an output state of the time sequence predictive network as time sequence evolution mode characteristics of a network access target; and carrying out network attack detection according to the time sequence evolution mode characteristics. According to the method, the time sequence evolution mode characteristics of the network access target are determined through the linear predictive coding spectrum characteristics of the network access characteristic set, and the method can adapt to rapid dynamic change of a network attack mode, so that the precision of network attack detection and identification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a blockchain network attack detection method, device, equipment, medium and program product. Background Art

[0002] As an integrated innovation of multiple technologies such as peer-to-peer networks, cryptography, sharing mechanisms, and smart contracts, blockchain provides a trusted channel for information and value transfer and exchange in untrusted networks. Blockchain technology has become a hot concept in the world, whether in building an Internet with free flow of value or in enterprises building joint multi-center data sharing, and has broad market prospects. Blockchain data security is the basis of data application. In order to ensure data security, existing technologies generally monitor network attacks against important blockchain data to improve the security protection level.

[0003] Existing network attack detection technology mainly uses static behavior pattern mining methods, which can effectively distinguish the difference between network attacks and normal network access behavior patterns, but the stability of its pattern characteristics is poor, and the network attack behavior pattern library needs to be updated at any time. Most network attacks are characterized by constantly updating attack methods and constantly upgrading patterns. The new behavioral patterns are unknown and it is difficult to predict in advance, which brings difficulties to network attack detection. This means that it is difficult to use static behavior pattern mining to simply meet the requirements of new network attack detection based on past behavior pattern experience, and it cannot adapt to the rapid dynamic changes in network attack patterns. Summary of the invention

[0004] The present application provides a blockchain network attack detection method, device, equipment, medium and program product to solve the defects that static behavior pattern mining is difficult to meet the requirements of new network attack detection based on past behavior pattern experience, and cannot adapt to the rapid dynamic changes of network attack patterns.

[0005] In a first aspect, the present application provides a blockchain network attack detection method, comprising:

[0006] Obtaining network access behaviors between blockchain nodes, extracting network access features from the network access behaviors and constructing a network access feature set;

[0007] Determining the linear prediction coding spectrum characteristics of the network access feature set according to a preset network access target and time slice;

[0008] Inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as the time series evolution pattern feature of the network access target;

[0009] Network attack detection is performed according to the time series evolution pattern characteristics.

[0010] In one embodiment, the determining of the linear prediction coding spectrum features of the network access feature set according to the preset network access target and time slice includes:

[0011] Sampling the network access features according to the network access target and the time slice, encoding the sampled network access features based on linear prediction coding, and obtaining characteristic spectrum features corresponding to each time slice;

[0012] All the characteristic spectrum features of the same time slice are concatenated to determine the linear prediction coding spectrum features of the network access feature set.

[0013] In one embodiment, before determining the linear prediction coding spectrum features of the network access feature set according to the preset network access target and time slice, the method further includes:

[0014] Feature optimization is performed on the network access feature set to remove redundant network access features and irrelevant network access features in the network access feature set.

[0015] In one embodiment, the performing feature optimization on the network access feature set to remove redundant network access features and irrelevant network access features in the network access feature set includes:

[0016] Normalizing the network access features to obtain normalized network access features;

[0017] Constructing a network attack identification and classification model according to the normalized network access features, the preset feature weight vectors, and the preset blockchain node identity tags;

[0018] Training the network attack identification and classification model based on a maximum likelihood function and a parameter optimization algorithm to obtain an updated feature weight vector;

[0019] According to the updated feature weight vector and the preset weight vector threshold, redundant network access features and irrelevant network access features in the network access feature set are removed.

[0020] In one embodiment, the network attack identification and classification model is trained based on the maximum likelihood function and the parameter optimization algorithm to obtain the updated feature weight vector, including:

[0021] Determining a loss function of the network attack identification and classification model based on the maximized likelihood function;

[0022] Determining the maximum value of the loss function based on a gradient ascent algorithm;

[0023] Based on the gradient descent algorithm, the maximum value of the loss function is converted into a gradient descent task, and the loss function is minimized according to the gradient descent task to obtain the updated feature weight vector.

[0024] In one embodiment, the network access behavior includes access time, access source node, target node and access characteristics, and the access characteristics include source IP, destination IP, source port and destination port.

[0025] In a second aspect, the present application also provides a blockchain network attack detection device, comprising:

[0026] An extraction module, used to obtain network access behaviors between blockchain nodes, extract network access features from the network access behaviors and construct a network access feature set;

[0027] A determination module, used to determine the linear prediction coding spectrum characteristics of the network access feature set according to a preset network access target and time slice;

[0028] A prediction module, used for inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as the time series evolution pattern feature of the network access target;

[0029] The detection module is used to perform network attack detection according to the time series evolution pattern characteristics.

[0030] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a blockchain network attack detection method as described above is implemented.

[0031] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a blockchain network attack detection method as described in any one of the above.

[0032] In a fifth aspect, the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned blockchain network attack detection methods.

[0033] The blockchain network attack detection method, device, equipment, medium and program product provided in this application determine the time evolution pattern characteristics of the network access target through the linear prediction coding spectrum characteristics of the network access feature set, which can adapt to the rapid dynamic changes of the network attack pattern, thereby improving the accuracy of network attack detection and identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 This is one of the flowcharts of the blockchain network attack detection method provided by this application;

[0036] Figure 2 This is the second flow chart of the blockchain network attack detection method provided by this application;

[0037] Figure 3 It is a schematic diagram of the feature optimization process provided by this application;

[0038] Figure 4 It is a schematic diagram of the linear prediction coding spectrum feature determination process provided by the present application;

[0039] Figure 5 It is a structural diagram of the blockchain network attack detection device provided by this application;

[0040] Figure 6 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION

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

[0042] Figure 1 This is one of the flowcharts of the blockchain network attack detection method provided by this application, such as Figure 1 As shown, the present application provides a blockchain network attack detection method, comprising:

[0043] Step S110, obtaining network access behaviors between blockchain nodes, extracting network access features from the network access behaviors and constructing a network access feature set;

[0044] The network access behavior includes access time, access source node, target node and access characteristics, and the access characteristics include source IP, destination IP, source port and destination port.

[0045] Given U = {u1,u2,u3...u M} is represented by a set of M blockchain nodes, V = {v1, v2, v3...v N} represents the target node set accessed by N blockchain nodes. i ,v j ,t,a) means an event occurs at time t at node u i ∈U network access behavior, where v j ∈V represents the visited target node, where the network access feature can be expressed as a, and the network access feature includes source IP, destination IP, source port and destination port.

[0046] The set of network access behaviors between blockchain nodes can be expressed as F=(U∪V,E), where E is the edge.

[0047] Extracting network access features from the network access behaviors and constructing a network access feature set includes extracting the corresponding network access features from each of the network access behaviors and combining all the network access features to obtain a network access feature set.

[0048] Step S120, determining the linear prediction coding spectrum features of the network access feature set according to the preset network access target and time slice;

[0049] The preset network access target is blockchain node u i The target node to be visited is the time slice obtained by dividing the preset time T, which can be expressed as T = {t1, t2, t3...t τ}, T can be one day or one hour, etc.

[0050] Determining the linear prediction coding spectrum features of the network access feature set includes: i The network access features corresponding to the network access target are sampled, and the network access features are divided into discrete data. Then, the frequency characteristic estimation of the discrete data of the network access features is calculated through linear predictive coding (LPC), and the frequency characteristic estimation is used as the linear predictive coding spectrum feature.

[0051] Step S130, input the linear prediction coding spectrum features into the time series prediction network, and use the output state of the time series prediction network as the temporal evolution pattern features of the network access target; the temporal evolution pattern features of the network access target include the temporal evolution pattern features corresponding to normal access and network attacks.

[0052] The time series prediction network can use the long short-term memory (LSTM) network. The time series evolution pattern characteristics are used to characterize the blockchain node u i The changes in the network access characteristics corresponding to the target nodes they access over time.

[0053] Step S140: Perform network attack detection according to the time series evolution pattern characteristics.

[0054] The time series evolution pattern characteristics are the changing characteristics of normal network access over time. If they do not meet the time series evolution pattern characteristics, they can be determined as network attacks.

[0055] Optionally, the time-series evolution pattern features can be updated in real time to improve the accuracy of network attack identification, or can be updated regularly to reduce the amount of calculation.

[0056] It can be understood that the present application determines the time-series evolution pattern characteristics of the network access target through the linear prediction coding spectrum characteristics of the network access feature set, which can adapt to the rapid dynamic changes of the network attack pattern, thereby improving the accuracy of network attack detection and identification.

[0057] Figure 2 This is the second flow chart of the blockchain network attack detection method provided by this application, such as Figure 2 As shown, based on the above embodiment, as an optional embodiment, before determining the linear prediction coding spectrum characteristics of the network access feature set according to the preset network access target and time slice, it also includes:

[0058] Feature optimization is performed on the network access feature set to remove redundant network access features and irrelevant network access features in the network access feature set. Feature optimization can improve the accuracy of linear prediction coding spectrum features, thereby improving the accuracy of network attack detection and identification.

[0059] Figure 3 This is a schematic diagram of the feature optimization process provided by this application, such as Figure 3 As shown, optionally, the feature optimization of the network access feature set to remove redundant network access features and irrelevant network access features in the network access feature set includes:

[0060] Step S310, normalizing the network access feature to obtain a normalized network access feature; normalizing the network access features in the network access feature set according to the feature items to obtain a normalized network access feature f={a1, a2, a3...a p}.

[0061] Step S320, constructing a network attack identification and classification model according to the normalized network access features, the preset feature weight vector, and the preset blockchain node identity tag;

[0062] The preset feature weight vector can be expressed as θ={θ1,θ2,θ3...θ p}, and f={a1,a2,a3...a p The preset blockchain node identity tag is the tag of the blockchain node corresponding to the network access target, y=1 (marked as network attack), y=0 (marked as normal network access); the node identity tag marks the network access behavior, corresponding to the access node.

[0063] Building a network attack identification and classification model includes building a classification prediction model of blockchain nodes based on the sigmoid function, and building a network attack identification and classification model based on the classification prediction model.

[0064] The classification prediction model is as follows:

[0065]

[0066] Among them, θ1a1+θ2a2+...+θ p a p =θ T f.

[0067] The network attack identification classification model is as follows:

[0068] P(y|f;θ)=(h θ (f)) y (1-h θ (f)) 1-y ;

[0069] Among them, P(y|f;θ) represents the probability of output classification recognition given the input feature f and model parameter θ.

[0070] Step S330, training the network attack identification and classification model based on the maximum likelihood function and the parameter optimization algorithm to obtain the updated feature weight vector;

[0071] The maximum likelihood function is used to calculate the model training loss function, and the parameter optimization algorithm is used to optimize the parameters of the loss function.

[0072] Step S340: removing redundant network access features and irrelevant network access features in the network access feature set according to the updated feature weight vector and the preset weight vector threshold.

[0073] Set the threshold η, filter out the feature items whose weight items are less than η, filter out redundant features, and get the optimized feature set f new ={a1,a2,a3...a s}.

[0074] In one embodiment, the network attack identification and classification model is trained based on the maximum likelihood function and the parameter optimization algorithm to obtain the updated feature weight vector, including:

[0075] Step S331, determining a loss function of the network attack identification and classification model based on the maximized likelihood function;

[0076] The loss function L(θ) is expressed as follows:

[0077]

[0078] Maximizing the likelihood function is a statistical method used to estimate the optimal value of a parameter. In the process of maximizing the likelihood function, we try to find a set of parameter values ​​that maximizes the probability of a given observation.

[0079] Step S332, determining the maximum value of the loss function based on a gradient ascent algorithm;

[0080] By taking the logarithm of both sides, the gradient ascent algorithm is used to find the maximum value:

[0081]

[0082] The gradient ascent algorithm is an optimization algorithm used to maximize a function. In contrast to the gradient descent algorithm, the goal of the gradient ascent algorithm is to find the local maximum or global maximum of a function, rather than the minimum. The basic idea of ​​the gradient ascent algorithm is to iteratively update the value of the parameter so that the function value gradually increases. This is achieved by making adjustments along the direction of the function's gradient, because the direction of the gradient is the direction in which the function grows fastest.

[0083] Step S333: converting the maximum value of the loss function into a gradient descent task based on the gradient descent algorithm, performing minimization training on the loss function according to the gradient descent task, and obtaining the updated feature weight vector.

[0084] Introduction Converted into a gradient descent task, the attribute feature weight parameter update is obtained by minimizing the loss function:

[0085]

[0086] In the formula, α is the model learning rate.

[0087] The gradient descent algorithm is an optimization algorithm used to minimize a function. The basic idea is to iteratively update the value of the parameter so that the function value gradually decreases until it reaches the minimum value.

[0088] The model is trained by minimizing the loss function to obtain the attribute feature weight vector θ, and then the weight of θ is normalized:

[0089]

[0090] Set the threshold η, filter out the feature items whose weight items are less than η, filter out redundant features, and get the optimized feature set f new ={a1,a2,a3...a s}.

[0091] It can be understood that the present application provides a technical solution for feature optimization, which can improve the accuracy of linear prediction coding spectrum features through feature optimization, thereby improving the accuracy of network attack detection and identification.

[0092] Figure 4 : is a schematic diagram of the linear prediction coding spectrum feature determination process provided by this application, such as Figure 4 As shown, based on the above embodiment, as an optional embodiment, the linear prediction coding spectrum characteristics of the network access feature set are determined according to the preset network access target and time slice, including:

[0093] Step S410, sampling the network access features according to the network access target and the time slice, encoding the sampled network access features based on linear prediction coding, and obtaining characteristic spectrum features corresponding to each time slice;

[0094] Step S420, concatenating all the characteristic spectrum features of the same time slice to determine the linear prediction coding spectrum features of the network access feature set.

[0095] In other embodiments, step S410 may also sample the optimized network access features. Specifically, according to the obtained feature set f new , and then optimize the feature items a i Sampling is performed based on a preset time interval, where the preset time interval is related to the time slice. The time slice t is extracted according to the LPC code i Based on feature a i LPC spectrum characteristics By splicing and merging, we can obtain the i Next node u i The network access target LPC spectrum features: Node u iThe LPC spectrum features at each time slice are expressed as

[0096] It can be understood that the present application provides a technical solution for calculating linear prediction coding spectral features, which estimates the frequency characteristics of network access features through linear prediction coding, facilitates the determination of periodicity and oscillation characteristics in the signal, removes noise in the signal, and reduces computational complexity.

[0097] Based on the above embodiment, as an optional embodiment, the calculation formula of the output state of the time series prediction network is as follows:

[0098]

[0099] In the formula, h o and c o Represent the initial hidden unit and state unit of the model input, respectively. Represented as the output state of the LSTM network.

[0100] According to the time series evolution pattern characteristics, network attack detection includes inputting the time series evolution pattern characteristics into the sigmoid function to realize node u i Network attack identification and detection:

[0101]

[0102] If y u =1, the node u i Identified as a network attack; if y u = 0, the node u i Identified as normal network access.

[0103] It can be understood that the present application analyzes and compares the differences between network attacks and normal network access structure change patterns, and accordingly proposes a network attack detection algorithm based on the characteristics of network attack change patterns, thereby improving the accuracy of network attack detection and identification.

[0104] The blockchain network attack detection device provided in the present application is described below. The blockchain network attack detection device described below and the blockchain network attack detection method described above can be referenced to each other.

[0105] Figure 5 This is a block diagram of the blockchain network attack detection device provided by this application. Figure 5 As shown, the present application also provides a blockchain network attack detection device, including:

[0106] An extraction module 510, configured to obtain network access behaviors between blockchain nodes, extract network access features from the network access behaviors, and construct a network access feature set;

[0107] A determination module 520, configured to determine the linear prediction coding spectrum features of the network access feature set according to a preset network access target and a time slice;

[0108] A prediction module 530, used for inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as a time series evolution pattern feature of the network access target;

[0109] The detection module 540 is used to perform network attack detection according to the time series evolution pattern characteristics.

[0110] In one embodiment, the determining module 520 is further configured to:

[0111] Sampling the network access features according to the network access target and the time slice, encoding the sampled network access features based on linear prediction coding, and obtaining characteristic spectrum features corresponding to each time slice;

[0112] All the characteristic spectrum features of the same time slice are concatenated to determine the linear prediction coding spectrum features of the network access feature set.

[0113] In one embodiment, it further includes:

[0114] The optimization module is used to optimize the network access feature set and remove redundant network access features and irrelevant network access features in the network access feature set.

[0115] In one embodiment, the optimization module is further configured to:

[0116] Normalizing the network access features to obtain normalized network access features;

[0117] Constructing a network attack identification and classification model according to the normalized network access features, the preset feature weight vectors, and the preset blockchain node identity tags;

[0118] Training the network attack identification and classification model based on a maximum likelihood function and a parameter optimization algorithm to obtain an updated feature weight vector;

[0119] According to the updated feature weight vector and the preset weight vector threshold, redundant network access features and irrelevant network access features in the network access feature set are removed.

[0120] In one embodiment, the optimization module is further configured to:

[0121] Determining a loss function of the network attack identification and classification model based on the maximized likelihood function;

[0122] Determining the maximum value of the loss function based on a gradient ascent algorithm;

[0123] Based on the gradient descent algorithm, the maximum value of the loss function is converted into a gradient descent task, and the loss function is minimized according to the gradient descent task to obtain the updated feature weight vector.

[0124] In one embodiment, the network access behavior includes access time, access source node, target node and access characteristics, and the access characteristics include source IP, destination IP, source port and destination port.

[0125] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the blockchain network attack detection method, which includes:

[0126] Obtaining network access behaviors between blockchain nodes, extracting network access features from the network access behaviors and constructing a network access feature set;

[0127] Determining the linear prediction coding spectrum characteristics of the network access feature set according to a preset network access target and time slice;

[0128] Inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as the time series evolution pattern feature of the network access target;

[0129] Network attack detection is performed according to the time series evolution pattern characteristics.

[0130] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0131] On the other hand, the present application also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the blockchain network attack detection method provided by the above methods, the method including:

[0132] Obtaining network access behaviors between blockchain nodes, extracting network access features from the network access behaviors and constructing a network access feature set;

[0133] Determining the linear prediction coding spectrum characteristics of the network access feature set according to a preset network access target and time slice;

[0134] Inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as the time series evolution pattern feature of the network access target;

[0135] Network attack detection is performed according to the time series evolution pattern characteristics.

[0136] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the blockchain network attack detection method provided by the above methods, the method comprising:

[0137] Obtaining network access behaviors between blockchain nodes, extracting network access features from the network access behaviors and constructing a network access feature set;

[0138] Determining the linear prediction coding spectrum characteristics of the network access feature set according to a preset network access target and time slice;

[0139] Inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as the time series evolution pattern feature of the network access target;

[0140] Network attack detection is performed according to the time series evolution pattern characteristics.

[0141] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0143] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A blockchain network attack detection method, characterized in that: include: Obtaining network access behaviors between blockchain nodes, extracting network access features from the network access behaviors and constructing a network access feature set; Determining the linear prediction coding spectrum characteristics of the network access feature set according to a preset network access target and time slice; Inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as the time series evolution pattern feature of the network access target; Network attack detection is performed according to the time series evolution pattern characteristics.

2. The blockchain network attack detection method according to claim 1 is characterized in that: The step of determining the linear prediction coding spectrum features of the network access feature set according to the preset network access target and time slice includes: Sampling the network access features according to the network access target and the time slice, encoding the sampled network access features based on linear prediction coding, and obtaining characteristic spectrum features corresponding to each time slice; All the characteristic spectrum features of the same time slice are concatenated to determine the linear prediction coding spectrum features of the network access feature set.

3. The blockchain network attack detection method according to claim 1 is characterized in that: Before determining the linear prediction coding spectrum features of the network access feature set according to the preset network access target and time slice, the method further includes: Feature optimization is performed on the network access feature set to remove redundant network access features and irrelevant network access features in the network access feature set.

4. The blockchain network attack detection method according to claim 3 is characterized in that: The performing feature optimization on the network access feature set to remove redundant network access features and irrelevant network access features in the network access feature set includes: Normalizing the network access features to obtain normalized network access features; Constructing a network attack identification and classification model according to the normalized network access features, the preset feature weight vectors, and the preset blockchain node identity tags; Training the network attack identification and classification model based on a maximum likelihood function and a parameter optimization algorithm to obtain an updated feature weight vector; According to the updated feature weight vector and the preset weight vector threshold, redundant network access features and irrelevant network access features in the network access feature set are removed.

5. The blockchain network attack detection method according to claim 4 is characterized in that: The network attack identification and classification model is trained based on the maximum likelihood function and the parameter optimization algorithm to obtain the updated feature weight vector, including: Determining a loss function of the network attack identification and classification model based on the maximized likelihood function; Determining the maximum value of the loss function based on a gradient ascent algorithm; Based on the gradient descent algorithm, the maximum value of the loss function is converted into a gradient descent task, and the loss function is minimized according to the gradient descent task to obtain the updated feature weight vector.

6. The blockchain network attack detection method according to any one of claims 1 to 5, characterized in that: The network access behavior includes access time, access source node, target node and access characteristics, and the access characteristics include source IP, destination IP, source port and destination port.

7. A blockchain network attack detection device, characterized in that: include: An extraction module, used to obtain network access behaviors between blockchain nodes, extract network access features from the network access behaviors and construct a network access feature set; A determination module, used to determine the linear prediction coding spectrum characteristics of the network access feature set according to a preset network access target and time slice; A prediction module, used for inputting the linear prediction coding spectrum feature into a time series prediction network, and using the output state of the time series prediction network as the time series evolution pattern feature of the network access target; The detection module is used to perform network attack detection according to the time series evolution pattern characteristics.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the blockchain network attack detection method as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the blockchain network attack detection method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the blockchain network attack detection method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Network penetration identification method based on interactive behavior analysis

    CN110138793A

  • Network flow prediction method for optimizing LSTM based on decision grey wolf algorithm

    CN111371607A

  • LDoS attack detection method based on perceptual linear prediction and SVDD

    CN114095222A

  • Time series data anomaly detection method, electronic equipment and computer storage medium

    CN114970717A

  • Method for predicting attack intention through graph neural network based on honeypot data

    CN114978708A