Block chain attack detection method and device based on graph neural network
By constructing the graph structure of the blockchain network and extracting features based on the graph neural network method, the problem of difficulty in detecting blockchain attacks in the existing technology is solved, and effective detection of DDoS and double-spending attacks in the blockchain network is achieved. Recognition improves the accuracy and adaptability of the detection algorithm.
Patent Information
- Application Number
- CN202410824496.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-15
AI Technical Summary
It is difficult for existing technologies to effectively detect potential attacks in blockchain networks, especially the lack of security mechanisms for the unique structure and characteristics of blockchains, which results in the detection algorithm being unable to fully consider the structural elements of the network to be inspected.
Design a blockchain attack detection method based on graph neural network, by collecting traffic data from the blockchain network, building a graph structure, extracting node and edge features, and using a GNN model to classify the graph to identify attack types and Attacked entity.
It achieves effective detection of DDoS attacks and double-spending attacks in blockchain networks, improves the accuracy and adaptability of the detection algorithm, can be applied to different types of networks and attacks, and provides a scalable solution.
Smart Images

Figure CN118784285A_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of blockchain, and in particular to a blockchain attack detection method and device based on graph neural network. Background Art
[0002] Blockchain has received widespread attention and investment. With the development and advancement of blockchain technology, it has been widely used in finance, supply chain, medical care, real estate and other fields.
[0003] Blockchain technology has brought a huge market, and its security has naturally received widespread attention. Traditional network service applications are mostly based on a centralized architecture, and a few entities are often the administrators of the entire network and services. In such a network architecture, the essence of the interaction between non-central nodes is that they interact with the center at the same time. The old P2P decentralized network is too loose, and in essence, each participating node provides its own service, and the network as a whole lacks linkage effect. Blockchain technology solves these problems. The network based on blockchain technology architecture is the same as the old P2P network. Each participating node not only accesses services, but also provides services to the outside world; at the same time, with the help of technologies such as consensus protocols and smart contracts, the nodes participating in the network can interact and collaborate with each other to jointly provide more complex services to the outside world.
[0004] The threats facing blockchain can be roughly divided into three categories: threats to blockchain carriers, threats to blockchain peer-to-peer networks, and threats to blockchain applications. The following will introduce each of them.
[0005] Regarding blockchain carriers: blockchain uses a specific chain structure to ensure that it cannot be tampered with. The blockchain packages the data to be saved into blocks, and then attaches a block header with key information to it. By including the verification information of the old block in the new block, the blockchain ensures that the old block cannot be tampered with alone. For private chains controlled by a single entity, it is quite simple to maintain the chain structure of data. However, for alliance chains and public chain systems involving multiple entities, each entity has the opportunity to participate in the generation of new blocks, and each entity operates relatively independently. As a result, the network may generate multiple subsequent blocks for a block at the same time. This is called a branch or fork of the blockchain. Abandoned branches will cause problems. The generally decentralized design of the blockchain network means that there is no one or some authoritative nodes to announce to the entire network how to select branches. Each node must select according to the information from its own perspective and in accordance with unified algorithms and principles. This makes it take a long time to reach a consensus again once a branch is generated in the blockchain network.
[0006] Regarding blockchain peer-to-peer networks: The unique peer-to-peer network system of blockchain systems provides unique security features, but also generates and facilitates certain specific attacks. Public chains have made a lot of zero-trust designs. Nodes do not need to prove their identities, but only need to prove their rights to participate in blockchain management and benefits. As a result, malicious nodes in these blockchain systems can easily forge identities, or even go further and launch sybil attacks on blockchain networks. For centralized network services, users only need to establish connections with specific central nodes. In contrast, in the peer-to-peer network of blockchains, nodes often need to establish connections with a large number of peer nodes, and there is an upper limit to the number of such connections. At this time, malicious participants can launch an eclipse attack, control some nodes or fabricate the existence of a large number of nodes, and then establish a large number of connections with the target node until the target's memory list of peer node addresses is occupied by invalid or attacker-controlled IPs, forcing the target node to only establish connections with nodes controlled by the attacker. At this time, the target is isolated from the network by the attacker.
[0007] Regarding blockchain applications: Although applications built on blockchains run based on the consensus protocol of blockchains, their functions and services are relatively independent, and they have their own unique vulnerabilities and attack surfaces. In the blockchain architecture, a transaction is not considered officially completed until it is packaged into a block and submitted to the main chain. However, in order to improve the efficiency of transactions, many applications may only check that the transaction has been submitted before the supplier redeems its services. However, the submitted transaction may not be selected by the node responsible for packaging the new block, especially when the transaction conflicts with another transaction. This will result in the supplier not receiving payment for the service in the end. Transaction conflicts can also be artificially created, deliberately paying the same cryptocurrency to different objects. If these service providers redeem the service before fully confirming the transaction, malicious users can spend one money to buy several services. Even malicious users can set up a transaction to transfer the money to themselves. If the transaction to transfer the property back to themselves is finally recognized, the malicious user will enjoy the service without paying any price.
[0008] The structure and characteristics of blockchain networks are different from other types of networks. Therefore, the security mechanisms applicable to blockchain networks are also different from other networks. Therefore, it is necessary to conduct targeted research on the unique characteristics of blockchain. Furthermore, when designing security mechanisms applicable to blockchain, it is necessary to take into account the unique characteristics of public chains or consortium chains, so as to improve the reliability and practicality of the designed security mechanisms. At present, there are relatively few and incomplete studies on related aspects at home and abroad. Therefore, how to effectively detect potential blockchain attacks urgently needs further research.
[0009] Few of the current blockchain attack detection algorithms, whether statistical or using machine learning algorithms, can explicitly consider the structural elements of the network to be tested. Summary of the invention
[0010] In view of the above-mentioned defects of the prior art, the technical problems to be solved by the present invention include:
[0011] How to design a blockchain attack detection method based on graph neural network to overcome the above technical problems.
[0012] To achieve the above object, the present invention provides a blockchain attack detection method based on graph neural network, comprising the steps of:
[0013] Step 1, collect traffic from the blockchain network;
[0014] Step 2, divide the collected traffic into time slots, extract traffic data from it and construct a graph to be classified;
[0015] Step 3: Classify the graph through the GNN model;
[0016] Step 4: infer whether there is an attack in the network, possible types of attacks and / or possible attacked entities based on the classification results.
[0017] Furthermore, the constructing of the graph to be classified includes: constructing the graph from the data, extracting the features of the nodes from the data, and extracting the features of the edges from the data.
[0018] Furthermore, constructing a graph in the data is specifically: generating a graph by replicating the topological structure of the blockchain network, using the blockchain network nodes as nodes of the graph, and the communication between the blockchain network nodes as edges between corresponding nodes in the graph.
[0019] Furthermore, the method of extracting node features from data is specifically as follows: taking the function of the node in the network as a feature of the node; taking the number of times the node's service is accessed by other nodes within a certain period of time as another feature of the node; the method of taking the function of the node in the network as a feature of the node is specifically as follows: assigning type identifiers to different types of nodes, and taking the type identifier of each node as a row of the node feature matrix.
[0020] Furthermore, the edge features extracted from the data are specifically: subdividing the traffic transmitted between nodes, extracting four edge features of total traffic, data traffic, input traffic of node services, and output traffic of node services from the data packet dimension, and extracting four edge features of total traffic, data traffic, input traffic of node services, and output traffic of node services from the total number of bytes dimension.
[0021] Furthermore, the traffic transmitted between nodes is subdivided, specifically: by distinguishing whether the load on the data packet is a TLS load, it is confirmed whether the data packet is a packet for transmitting blockchain data.
[0022] Furthermore, the classification of the graph by the GNN model is specifically as follows: the graph is divided into 16 categories, including one category representing normal operation, 5 categories representing double-spending attacks, and 10 categories representing DDoS.
[0023] Furthermore, the inferring whether there is an attack, possible types of attack and / or possible attacked entities in the network based on the classification results is specifically: judging whether there is an attack, possible types of attack and / or possible attacked entities in the network based on whether there is a category representing normal operation, 5 categories representing double-spending attacks and 10 categories representing DDoS in the graph.
[0024] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned method when executing the computer program.
[0025] A computer-readable storage medium stores a computer program for executing the above method.
[0026] Compared with the prior art solutions, the technical effects of the present invention are:
[0027] For the current blockchain attack detection algorithms, whether statistical or using machine learning algorithms, there are not many that can clearly consider the structural elements of the network to be detected. The present invention appropriately considers the structural characteristics of the network architecture hyperledger fabric to be detected when designing the feature extractor of the preprocessing module, and makes a useful attempt to include the network structure characteristics in the algorithm. The blockchain detection algorithm edge-GNN based on graph neural network is implemented, and its detection ability is tested for DDoS attacks and double flower attacks on the alliance chain. It can be believed that only some model parameters need to be appropriately modified, and this model can be fully extended to other types of networks and attacks. The blockchain attack detection algorithm edge-GNN based on graph neural network designed by the present invention first uses its preprocessing module to extract relevant information from the traffic data and construct a graph structure, converting part of the structural information of the data and the network into the features of the nodes and edges in the graph, and then, the classifier in edge-GNN will classify the graph constructed by the preprocessor according to the various features of these graphs to confirm whether there is an anomaly in the corresponding traffic data and what kind of anomaly it is.
[0028] There is currently a lack of data sets related to blockchain attack detection. The present invention builds a network to run and launch attacks, collects corresponding data, and constructs a data set by itself, providing resources for research and development work with similar needs. The data set is hosted on github. The present invention builds a hyperledger fabric blockchain network environment by itself, and automatically attacks the built network, collects traffic data to build a supervised data set. There are 10 nodes in the constructed fabric experimental environment, including 5 peer nodes and 5 orderer nodes. All orderer nodes are placed in the same organization concil to provide a unified sorting service, although these orderer nodes will actually be installed on different hosts. Each peer node belongs to a different organization and runs independently. Finally, all nodes and organizations are connected to the channel mainchannel.
[0029] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a basic structural diagram of the edge-GNN blockchain attack detector of the present invention;
[0031] Figure 2 This is a schematic diagram of the MPNNLayer structure and information transmission of the present invention;
[0032] Figure 3 It is a schematic diagram of the hyperledger fabric network architecture built by the present invention;
[0033] Figure 4 It is a line graph of training rounds-model prediction accuracy of the present invention;
[0034] Figure 5 It is a distribution diagram of the processing time of the sample by the model of the present invention. DETAILED DESCRIPTION
[0035] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.
[0036] The present invention provides a blockchain attack detection method based on graph neural network. The method comprises the following steps:
[0037] Step 1, collect traffic from the blockchain network;
[0038] Step 2, divide the collected traffic into time slots, extract traffic data from it and construct a graph to be classified;
[0039] Step 3: Classify the graph through the GNN model;
[0040] Step 4: Infer whether there is an attack in the network, possible types of attacks and / or possible attacked entities based on the classification results.
[0041] The constructing of the graph to be classified includes: constructing the graph from the data, extracting the features of the nodes from the data, and extracting the features of the edges from the data.
[0042] The graph constructed in the data is specifically: generating a graph by replicating the topological structure of the blockchain network, using the blockchain network nodes as nodes of the graph, and the communication between the blockchain network nodes as edges between corresponding nodes in the graph.
[0043] The method of extracting node features from data is specifically as follows: taking the function of the node in the network as a feature of the node; taking the number of times the node's service is accessed by other nodes within a certain period of time as another feature of the node; the method of taking the function of the node in the network as a feature of the node is specifically as follows: assigning type identifiers to different types of nodes, and taking the type identifier of each node as a row of the node feature matrix.
[0044] The method of extracting edge features from data is specifically as follows: subdividing the traffic transmitted between nodes, extracting four edge features of total traffic, data traffic, input traffic of node services, and output traffic of node services from the data packet dimension, and extracting four edge features of total traffic, data traffic, input traffic of node services, and output traffic of node services from the total number of bytes dimension.
[0045] The traffic transmitted between nodes is subdivided, specifically: by distinguishing whether the load on the data packet is a TLS load, it is confirmed whether the data packet is a packet for transmitting blockchain data.
[0046] The classification of the graph by the GNN model is specifically as follows: the graph is divided into 16 categories, including one category representing normal work, 5 categories representing double-spending attacks, and 10 categories representing DDoS.
[0047] The inferring whether there is an attack, possible types of attack and / or possible attacked entities in the network based on the classification results is specifically: judging whether there is an attack, possible types of attack and / or possible attacked entities in the network based on whether there is a category representing normal operation, 5 categories representing double-spending attacks and 10 categories representing DDoS in the graph.
[0048] The present invention provides a GNN-based blockchain attack detection model edge-GNN, the overall architecture of the attack detection model is as follows: Figure 1 As shown in the figure. edge-GNN divides the traffic collected from the blockchain network into time slots, extracts traffic data from it and uses it to construct a graph to be classified. The graph is classified through the GNN model, and finally, based on the classification results, it is inferred whether there is an attack in the network, the possible types of attacks, and the possible attacked entities. The detection model mainly consists of two parts: data collection and preprocessing module, and classification module.
[0049] The data collection and preprocessing module collects traffic data from the blockchain network to be detected and uses the extracted traffic data to construct a traffic transfer graph of the network in a shorter time slot. The classifier accepts the graph constructed by the graph feature extractor as input, calculates based on the node features, edge features and adjacency relationships of the graph, and outputs the classification result of the graph.
[0050] The data collection and preprocessing module is divided into three parts: building a graph from the data, extracting node features from the data, and extracting edge features from the data. The following is a detailed introduction.
[0051] Constructing a graph from data: In order to detect possible threats in the blockchain network, the graph we construct needs to clearly represent the current state of the network. It is a simple and quick method to generate the graph structure by replicating the topological structure of the blockchain network. Therefore, we use the blockchain network nodes, that is, the hosts, as the nodes of the graph, and the communication between the hosts naturally becomes the edges between the corresponding nodes in the graph.
[0052] Extract node features from data: In the hyperledger fabric network architecture used in the present invention, there are two types of nodes with different functions, peer (user node) and orderer (sorting node). Peer nodes are responsible for maintaining ledgers, verifying transactions, executing smart contracts and other key tasks, while orderer nodes are responsible for transaction sorting, consensus mechanisms and block generation and other core functions. We regard the function of the node in the network as one of the characteristics of the node. Specifically, we assign different types of nodes their own type identifiers and use the type identifier of each node as a row of the node feature matrix. At the same time, when building a hyperledger fabric network, the main listening port of each functional node in the network is set manually. The node will continue to listen to this port, and other nodes will access the node's services by accessing this port of the node. However, when a node tries to obtain the services of other nodes, the node will access the other party's main listening port through a local random high-order port. We regard the number of times the node's services are accessed by other nodes within a certain period of time as another feature of the node.
[0053] Extract edge features from data: We first consider the total amount of traffic transmitted between nodes within a certain period of time, which to a certain extent reflects the closeness of the relationship between the two nodes during this period of time. Next, we subdivide these flows. We try to confirm whether the data packet is a packet that transmits blockchain data by distinguishing whether the load on the data packet is a TLS load, so as to distinguish it from those protocol handshake packets and control instruction packets. In this way, we have achieved a rough extraction of data traffic between nodes. We will extract the edge features we need from the four items of total traffic, data traffic, input traffic of node services, and output traffic of node services. For each item, we will extract the features of two dimensions: the total number of data packets and the total number of bytes in a period of time. In this way, we have successfully extracted eight dimensions of edge features from the traffic data.
[0054] The classification module includes two MPNNLayers based on the neural network propagation algorithm and two linear layers. The structure of a single MPNNLayer is as follows: Figure 2 As shown, the basic structure of the MPNNLayer in the model constructed by the present invention is consistent with the general message transmission layer, but the message generation algorithm and node update function are rewritten. The specific process is described below.
[0055] When MPNNLayer performs forward operation, it first runs the message generation function to generate a message. The message generation function takes the feature x_i of node i, the feature x_j of node j, and the edge feature edge_attr_i_j of edge (i, j) as input to generate a message from node i to node j. The message generation function rewritten by the present invention first processes the edge feature with a linear mechanism, combines the result with the edge feature, and then inputs the next linear mechanism to generate a message.
[0056] After the network generates messages between nodes, the node will call the message aggregation function for aggregation. For a certain node j, the message aggregation function aggregates the messages sent by all nodes connected to it, and finally outputs an aggregate message. This article uses the default summation function in the Pytorch library as the aggregation function. The node will add all incoming messages to generate an aggregate message. After the aggregate message is generated, the node can call the node update function to update itself accordingly.
[0057] Each layer of the neural network, including MPNNLayer and linear layer, uses Sigmoid() function as activation function to introduce nonlinearity. No nonlinear factors are introduced inside MPNNLayer. It can be considered that in a single layer of MPNNLayer, the interaction between edge features and node features is linear. Therefore, when designing the entire network, we arranged two layers of MPNNLayer and input the initial edge feature data into the two layers of MPNNLayer successively. The purpose of this design is to make the interaction between edge features and node features nonlinear in the entire edge-GNN network.
[0058] After using two MPNNLayers to integrate the edge features and node features of the graph, we need to further process these node features that aggregate the edge features to produce the final classification results. We used two linear layers to convert the processed node feature main sentences into classification prediction vectors and used the log_softmax method to normalize them. The entire classifier obtains a prediction vector as the final output. The input graph will eventually be divided into 16 categories, including one category representing normal work, 5 categories representing double-spending attacks (attacks come from 5 different peers), and 10 categories representing DDoS (5 orderers and one of the 5 peers are attacked).
[0059] In order to complete the training of the classifier in edge-GNN, this article built a hyperledger fabric blockchain network environment by itself, and automatically attacked the built network, collecting traffic data to build a supervised data set. There are 10 nodes in the entire network, including 5 peer nodes and 5 orderer nodes. All orderer nodes are placed in the same organization concil to provide unified sorting services, although these orderer nodes will be actually installed on different hosts. Each peer node belongs to a different organization and runs independently. Finally, all nodes and organizations are connected to the channel mainchannel. The experimental environment structure is as follows Figure 3 shown.
[0060] The present invention needs to simulate double-spending attacks and DDoS attacks. The key point of a double-spending attack is to submit two conflicting transactions to the network in a short period of time, that is, submit a transaction that spends the same property before the network confirms a transaction. These transactions that spend the same property will eventually be recognized by the blockchain system at most one of them. This will result in only one of the suppliers who delivered their service content being able to receive the money, so that the double-spending attack is successfully implemented. There are relatively rich tools related to DDoS attacks. This article uses the hping3 tool to launch a DDoS attack on the experimental network. Each peer node and orderer node has its own main listening port for providing services to the outside world. During the experiment, the hping3 tool is directly controlled to launch a SYN flood on the address and main listening port of the corresponding node. For a double-spending attack, the attack code will select a peer, launch an attack with its identity, and record the time point when the attack is launched. For a DDoS attack, the attack code will randomly select the duration of the attack and a network member, launch a SYN flood on it, and record the time point when the attack occurs and ends.
[0061] Running the experimental environment and attack code, we captured a total of 48.3GB of pcap traffic data, which was split into 104 shards of no more than 500MB. The training set will contain 82 shards with a total of 38.0GB of traffic data, including 4375 double-flower attacks and 1083 DDoS attacks. The preprocessor extracted a total of 111,106 labeled graphs from them, including 4375 graphs affected by double-flower attacks and 1 graph affected by DDoS attacks. The test set contains 22 shards, a total of 10.3GB of traffic data, including 1362 double-flower attacks and 281 DDoS attacks. A total of 30,252 graphs were extracted from the test set, including 1362 graphs affected by double-flower attacks and 10,385 graphs affected by DDoS attacks.
[0062] During training, 40 images were put into the same batch, and cross entropy loss was used as the loss function for training. One round was defined as one round in which the entire training set completed one training. After the fifth round of training, the overall classification accuracy of the model was relatively stable. The relationship between the overall classification accuracy and the number of training rounds is as follows: Figure 4 shown.
[0063] To verify the effectiveness of edge-GNN for real-time attack detection, we designed relevant experiments. We adjusted the preprocessor to capture traffic data from the blockchain network and transferred the model to the virtual machine where the blockchain runs, running the model and launching attacks in real time. In the real-time attack test, we will measure the time t from the preprocessor completing the processing of the traffic data in the time slice, submitting the relevant features of the graph to the model to completing the classification. We generated 5411 samples during the running time, and these samples were divided into two groups according to the time t (unit:
[0064] The distribution of seconds is as follows Figure 5 shown.
[0065] For the model that completed 50 rounds of training, 19,183 of the 30,252 time slices in the training set were successfully identified, with an accuracy rate of 63.41%; a total of 281 DDoS attacks occurred, occupying 10,385 time slices, hitting 6,584 time slices, with a hit rate of 63.40%. Each DDoS attack was discovered, and the highest DDoS attack was not discovered in the first 5 time slices; 1,362 double-spending attacks occurred, 532 of which were hit, with a hit rate of 39.06%.
[0066] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0067] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0068] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0069] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A blockchain attack detection method based on graph neural network, characterized in that: Includes steps: Step 1, collect traffic from the blockchain network; Step 2, divide the collected traffic into time slots, extract traffic data from it and construct a graph to be classified; Step 3: Classify the graph through the GNN model; Step 4: Infer whether there is an attack in the network, possible types of attacks and / or possible attacked entities based on the classification results.
2. The attack detection method according to claim 1, characterized in that: The constructing of the graph to be classified includes: constructing the graph from the data, extracting the features of the nodes from the data, and extracting the features of the edges from the data.
3. The attack detection method according to claim 2, characterized in that: The graph constructed in the data is specifically: generating a graph by replicating the topological structure of the blockchain network, using the blockchain network nodes as nodes of the graph, and the communication between the blockchain network nodes as edges between corresponding nodes in the graph.
4. The attack detection method according to claim 3, characterized in that: The specific method of extracting node features from data is: taking the function of the node in the network as one feature of the node; taking the number of times the node's service is accessed by other nodes within a certain period of time as another feature of the node; The use of the function of a node in the network as a feature of the node specifically includes: assigning a type identifier to different types of nodes, and using the type identifier of each node as a row of a node feature matrix.
5. The attack detection method according to claim 4, characterized in that: The method of extracting edge features from data is specifically as follows: subdividing the traffic transmitted between nodes, extracting four edge features of total traffic, data traffic, input traffic of node services, and output traffic of node services from the data packet dimension, and extracting four edge features of total traffic, data traffic, input traffic of node services, and output traffic of node services from the total number of bytes dimension.
6. The attack detection method according to claim 5, characterized in that: The traffic transmitted between nodes is subdivided, specifically: by distinguishing whether the load on the data packet is a TLS load, it is confirmed whether the data packet is a packet for transmitting blockchain data.
7. The attack detection method according to claim 6, characterized in that: The classification of the graph by the GNN model is specifically as follows: the graph is divided into 16 categories, including one category representing normal work, 5 categories representing double-spending attacks, and 10 categories representing DDoS.
8. The attack detection method according to claim 7, characterized in that: The inferring whether there is an attack, possible types of attack and / or possible attacked entities in the network based on the classification results is specifically: judging whether there is an attack, possible types of attack and / or possible attacked entities in the network based on whether there is a category representing normal operation, 5 categories representing double-spending attacks and 10 categories representing DDoS in the graph.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 8.
Citation Information
Cited By
Channel access attack classification method based on Shaplet and Transform graph convolutional network
CN121188559A
Channel access attack classification method based on shapelet and transformer graph convolution network
CN121188559B
