A green technology authorization method and system based on blockchain

By analyzing the difference between network attacks and normal access modes, and using the LSTM network attack transition mode feature detection algorithm, the problem of low network attack detection accuracy in the existing technology is solved, and the security of blockchain green technology authorization is improved.

CN117978496BActive Publication Date: 2024-10-11TIANJIN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410140647.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-01
Publication Date
2024-10-11
Estimated Expiration
2044-02-01

AI Technical Summary

Technical Problem

Existing network attack detection methods are difficult to adapt to dynamic changes in network attack patterns, resulting in low detection accuracy and difficulty in effectively identifying new network attacks.

Method used

By analyzing the difference between network attacks and normal network access structure change modes, a network attack change mode feature detection algorithm based on LSTM is used to identify network attacks and optimize feature sets to improve detection accuracy.

Benefits of technology

It improves the identification accuracy of network attack detection, improves the security of green technology authorization in the blockchain, and can more effectively adapt to the rapid changes in network attack methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117978496B_ABST
    Figure CN117978496B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of blockchain technology, and in particular to a green technology authorization method and system based on blockchain. Step S1, defining network access behavior based on blockchain; step S2, constructing a network access social network feature set; step S3, optimizing the network access social network feature set to remove redundant and irrelevant feature items; step S4, identifying network attacks based on the LSTM network access target evolution pattern; step S5, performing green technology authorization processing based on the network attack identification results. Aiming at the problem that traditional network attack detection technology is difficult to adapt to the dynamic changes of network attack patterns, the present invention analyzes and compares the differences between network attack and normal network access structure change patterns, and proposes a network attack detection algorithm based on network attack change pattern characteristics, thereby improving the accuracy of network attack detection and identification, and improving the security of green technology authorization in blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and more specifically, to a green technology authorization method and system based on blockchain. 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 data sharing based on "establishing a joint multi-center" for enterprises, and has broad market prospects.

[0003] Green technology is a general term for "no-pollution" or "less-pollution" technologies, processes and products that follow ecological principles and ecological economic laws, save resources and energy, avoid, eliminate or reduce ecological environmental pollution and damage, and minimize negative ecological effects. Its contents mainly include: pollution control and prevention technology, source reduction technology, waste minimization technology, recycling technology, ecological process, green products, purification technology, etc. It can be seen that green technology is a new type of modern technology system that is coordinated with the ecological environment system.

[0004] Blockchain can serve as the basis for authorized applications of green technology. In order to ensure the security of authorized applications, network attacks against important blockchain data are generally monitored to improve the level of security protection.

[0005] However, the inventors have found that the existing network attack detection methods have new and unknown behavioral patterns, and it is difficult to predict in advance, which brings difficulties to network attack detection. Existing network attack detection technology mainly uses static behavior pattern mining methods, and most network attacks have the characteristics of "continuously updating attack methods and constantly upgrading patterns", which means that it is difficult to simply meet the requirements of new network attack detection based on past behavior pattern experience. Summary of the invention

[0006] Traditional network attack detection methods can effectively distinguish the difference between network attacks and normal network access behavior patterns, but the stability of their pattern characteristics is poor, and the network attack behavior pattern library needs to be updated at any time, which makes it difficult to adapt to the impact of rapid changes in network attack methods. In view of the problem that traditional network attack detection technology is difficult to adapt to the dynamic changes of network attack patterns, the present invention provides a green technology authorization method and system based on blockchain, which analyzes and compares the differences between network attacks and normal network access structure change patterns, and proposes a network attack detection algorithm based on network attack change pattern characteristics, thereby improving the accuracy of network attack detection and identification, and improving the security of green technology authorization in blockchain.

[0007] To achieve the above objectives, the present invention provides a green technology authorization method and system based on blockchain, comprising the following steps:

[0008] Step S1, defining the network access behavior based on blockchain;

[0009] Step S2, constructing a network access social network feature set;

[0010] Step S3, optimizing the network access social network feature set to remove redundant and irrelevant feature items;

[0011] Step S4, identifying network attacks based on the LSTM network access target evolution pattern;

[0012] Step S5: Perform green technology authorization processing based on the network attack identification result.

[0013] Furthermore, in step S1, the specific steps of constructing a network access social network feature set include: given U = {u1,u2,u3...u M} is represented by a set of M blockchain nodes, V = {v1, v2, v3...v N} represents the number of N blockchain nodes accessing the target node set. (u 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 is a, and a is a one-dimensional vector consisting of p network access behavior features. The network access behavior feature can be source IP, destination IP, source port, destination port, etc.

[0014] Furthermore, in step S2, the specific step of constructing a network access social network feature set includes: defining a set of network access behaviors between nodes as a network access social network feature set, expressed as F = (U∪V, E), where E is an edge.

[0015] Furthermore, in step S3, the specific steps of optimizing the network access social network feature set to remove redundant and irrelevant feature items include:

[0016] S31, normalize the original network access features according to the feature items to obtain f = {a1, a2, a3...a p}, given the attribute feature weight vector θ = {θ1,θ2,θ3...θ p} and node identity label: y = 1, marked as a network attack; y = 0, marked as normal network access.

[0017] S32, realize node classification prediction through sigmoid function:

[0018]

[0019] where θ1a1+θ2a2+...+θ p a p =θ T f

[0020] S33, computing network attack identification and classification tasks:

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

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

[0023] S34, calculate the model training loss function L(θ) by maximizing the likelihood function:

[0024]

[0025] S35, by taking the bilateral logarithm, using gradient ascent to find the maximum value:

[0026]

[0027] S36, introduced Converted to a gradient descent task, the attribute feature weight parameter update is obtained by minimizing the loss:

[0028]

[0029] Among them, α is the model learning rate;

[0030] S37, train the model by minimizing the loss function to obtain the attribute feature weight vector θ, and then normalize the weight of θ:

[0031]

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

[0033] Furthermore, in step S4, the specific steps of identifying network attacks based on LSTM network access target evolution pattern extraction include:

[0034] S41, based on the obtained feature set f new , given the network access target of node u, the optimized feature items a are i Perform time-based interval sampling;

[0035] S42, divide the time into a set of time slices, represented by T = {t1, t2, t3...t τ}, using the aforementioned LPC coding to extract the time slice t i Based on feature a i LPC spectrum characteristics By splicing and merging, we can obtain the time slice t i The network access target LPC spectrum characteristics of the next node u are:

[0036] S43, the LPC spectrum feature of node u at each time slice is expressed as And use this as the input of the LSTM timing network, and we get:

[0037]

[0038] where 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,

[0039] S44, taking this as the time series evolution pattern feature of the node u network access target, thereby realizing the network attack identification and detection of the node u:

[0040]

[0041] Where σ is the sigmoid function. If y u =1, the network access behavior is identified as a network attack; if y u =0, the network access behavior is identified as normal network access.

[0042] Furthermore, in step S5, the specific steps of performing green technology authorization processing based on the network attack identification result include: if the network attack identification result is a network attack, no green technology authorization is performed; if the network attack identification result is a normal network access, green technology authorization is performed. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is a flow chart of an embodiment of the present invention;

[0044] Figure 2 is a step-by-step flow chart of step S3 of the present invention;

[0045] Figure 3 It is a step-by-step flow chart of step S4 of the present invention. DETAILED DESCRIPTION

[0046] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0047] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0048] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0049] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0050] See also Figure 1 As shown, it is a flow chart of an embodiment of the present invention. The present invention provides a green technology authorization method and system based on blockchain, including:

[0051] Step S1, constructing a network access social network feature set. Specifically, step S1 includes: given U = {u1,u2,u3...u M} is represented by a set of M blockchain nodes, V = {v1, v2, v3...v N} represents the number of N blockchain nodes accessing the target node set, (u i ,v j ,t,a) means an event occurs at time t at node u i ∈U network access behavior, where vj ∈V represents the visited target node, where the network access feature is a, and a is a one-dimensional vector consisting of p network access behavior features. The network access behavior feature can be source IP, destination IP, source port, destination port, etc.

[0052] Step S2, constructing a network access social network feature set. Specifically, step S2 includes: defining a set of network access behaviors between nodes as a network access social network feature set, expressed as F = (U∪V, E), where E is an edge.

[0053] Step S3, optimize the network access social network feature set to remove redundant and irrelevant feature items. For details, please refer to Figure 2 As shown, step S3 includes:

[0054] S31, normalize the original network access features according to the feature items to obtain f = {a1, a2, a3...a p}, given the attribute feature weight vector θ = {θ1,θ2,θ3...θ p} and node identity label: y = 1, marked as network attack; y = 0, marked as normal network access;

[0055] S32, realize node classification prediction through sigmoid function:

[0056]

[0057] where θ1a1+θ2a2+...+θ p a p =θ T f

[0058] S33, computing network attack identification and classification tasks:

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

[0060] Among them, P(y|f; θ) represents the probability of classification recognition obtained by the model given the original input feature f and the model parameter θ;

[0061] S34, calculate the model training loss function L(θ) by maximizing the likelihood function:

[0062]

[0063] S35, by taking the bilateral logarithm, using gradient ascent to find the maximum value:

[0064]

[0065] S36, introduced Converted to a gradient descent task, the attribute feature weight parameter update is obtained by minimizing the loss:

[0066]

[0067] Among them, α is the model learning rate;

[0068] S37, train the model by minimizing the loss function to obtain the attribute feature weight vector θ, and then normalize the weight of θ:

[0069]

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

[0071] Step S4, network attack identification based on LSTM network access target evolution pattern extraction, specifically, please refer to Figure 3 As shown, step S4 includes:

[0072] S41, based on the obtained feature set f new , given the network access target of node u, the optimized feature items a are i Perform time-based interval sampling;

[0073] S42, divide the time into a set of time slices, represented by T = {t1, t2, t3...t τ}, using the aforementioned LPC coding to extract the time slice t i Based on feature a i LPC spectrum characteristics By splicing and merging, we can obtain the time slice t i The network access target LPC spectrum characteristics of the next node u are:

[0074] S43, the LPC spectrum feature of node u at each time slice is expressed as And use this as the input of the LSTM timing network, and get:

[0075]

[0076] where h o and c oRepresent the initial hidden unit and state unit of the model input, respectively. Represented as the output state of the LSTM network;

[0077] S44, taking this as the time series evolution pattern feature of the node u network access target, thereby realizing the network attack identification and detection of the node u:

[0078]

[0079] Where σ is the sigmoid function, if y u =1, the network access behavior is identified as a network attack; if y u =0, the network access behavior is identified as normal network access.

[0080] Step S5, performing green technology authorization processing based on the network attack identification result. Specifically, step S5 includes: if the network attack identification result is a network attack, no green technology authorization is performed; if the network attack identification result is a normal network access, green technology authorization is performed.

[0081] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A green technology authorization method based on blockchain, characterized in that: The following steps are involved: Step S1, defining the network access behavior based on blockchain; Step S2, constructing a network access social network feature set; Step S3, optimizing the network access social network feature set to remove redundant and irrelevant feature items; Step S4, identifying network attacks based on the LSTM network access target evolution pattern, and according to the obtained feature set f new , given the network access target of node u, the optimized feature items a are i Perform time-based interval sampling and divide the time into a set of time slices, represented by T = {t1, t2, t3...t τ }, extract the time slice t using LPC coding i Based on feature a i LPC spectrum characteristics By splicing and merging, we can obtain the time slice t i The network access target LPC spectrum characteristics of the next node u are: The LPC spectrum features of node u at each time slice are expressed as And use this as the input of the LSTM timing network, and we get: where 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, As the time series evolution pattern feature of the node u network access target, the network attack identification and detection of node u can be realized: Where σ is the sigmoid function, if y u =1, identify the network access behavior as a network attack, if y u =0, the network access behavior is identified as normal network access; Step S5, performing green technology authorization processing based on the network attack identification result. If the network attack identification result is a network attack, green technology authorization is not performed; if the network attack identification result is a normal network access, green technology authorization is performed.

2. According to a blockchain-based green technology authorization method according to claim 1, it is characterized in that: In step S1, the specific steps of defining the network access behavior based on blockchain include: given U = {u1,u2,u3...u M } is represented by a set of M blockchain nodes, V = {v1, v2, v3...v N } represents the number of N blockchain nodes accessing the target node set, (u 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, the network access feature is a, and a is a one-dimensional vector consisting of p number of network access behavior features.

3. According to a green technology authorization method based on blockchain in claim 1, it is characterized in that: In step S2, the specific step of constructing a network access social network feature set includes: defining a set of network access behaviors between nodes as a network access social network feature set, expressed as F = (U∪V, E), where E is an edge.

4. According to a green technology authorization method based on blockchain in claim 1, it is characterized in that: In step S3, the specific steps of optimizing the network access social network feature set to remove redundant and irrelevant feature items include: S31, normalize the original network access features according to the feature items to obtain f = {a1, a2, a3...a p }, given the attribute feature weight vector θ = {θ1,θ2,θ3...θ p } and node identity label: y = 1, marked as network attack; y = 0, marked as normal network access; S32, realize node classification prediction through sigmoid function: Whereθ1a1+θ2a2+...+θ p a p =θ T f S33, computing network attack identification and classification tasks: P(y|f;θ)=(h θ (f)) y (1-h θ (f)) 1-y Among them, P(y|f; θ) represents the probability of classification recognition obtained by the model given the original input feature f and the model parameter θ; S34, calculate the model training loss function L(θ) by maximizing the likelihood function: S35, by taking the bilateral logarithm, using gradient ascent to find the maximum value: S36, introduced Converted to a gradient descent task, the attribute feature weight parameter update is obtained by minimizing the loss: Among them, α is the model learning rate; S37, train the model by minimizing the loss function to obtain the attribute feature weight vector θ, and then normalize the weight of θ: S38, set a threshold η, filter out feature items whose weight items are less than η, filter out redundant features, and obtain the optimized feature set f new ={a1,a2,a3...a s }.

Citation Information

Patent Citations

  • Network attack detection method based on network flow attribute directed topology

    CN114553475A

  • Real-time monitoring and analyzing method and system for software and hardware interaction information of chip mounter

    CN117009186A

  • System and method for decentralized identity management, authentication and authorization of applications

    US20200106610A1