A Tor key node discovery method and device based on time series network
By deploying relay nodes in the Tor network, building a time series network model and calculating the time series degree value, it solves the key node identification problem caused by the anonymity and dynamics of the Tor network, achieves more accurate and efficient key node discovery, and adapts to the network Real-time changes provide new technical means for network security management.
Patent Information
- Application Number
- CN202410814758.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-24
AI Technical Summary
The anonymity and dynamics of the Tor network make it difficult to accurately identify and continuously track key nodes. Existing methods still need to be improved in efficiency and accuracy, and are designed to resist traffic analysis and monitoring, making it more difficult to discover key nodes.
By deploying Tor relay nodes, network data flow is monitored and recorded in real time, a time series network model is constructed, and the time series degree value of the node is calculated to identify key nodes. Specific steps include discovering and collecting network topology, building a timing network model, calculating timing values, and identifying key nodes.
It improves the accuracy and timeliness of key nodes, can dynamically capture changes in node importance, adapt to real-time changes in the Tor network, overcomes the limitations of traditional static analysis methods, and provides a more efficient key node discovery method.
Smart Images

Figure CN118413452B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a Tor key node discovery method and device based on a time series network. Background Art
[0002] As an anonymous communication network, the discovery of key nodes in the Tor network is of great significance to network security. Key nodes are generally nodes that are at the core of the entire network and have a great influence on the structure or function of the entire network. Discovering these nodes not only helps to understand the operating mechanism of the Tor network, but also provides important information for network security protection. In addition, the study of key nodes can also help to reveal potential illegal activities, thereby strengthening network supervision and law enforcement.
[0003] At present, researchers have proposed a variety of Tor key node discovery methods. These methods are mainly based on technologies such as traffic analysis, network topology analysis, and behavioral pattern recognition. For example, some studies identify potential key nodes by analyzing the patterns and characteristics of network traffic. Other studies use machine learning algorithms to predict and identify key nodes by learning the behavioral patterns of nodes. Although existing studies have made some progress in Tor key node discovery, there are still some difficulties and challenges. First, the high anonymity and dynamics of the Tor network make it difficult to accurately identify and continuously track nodes. Second, the existing detection methods still need to be improved in terms of efficiency and accuracy. In addition, the design of the Tor network makes it resistant to traffic analysis and monitoring, which further increases the difficulty of key node discovery.
[0004] Therefore, future research needs to consider how to overcome the difficulties brought by the anonymity and dynamics of the Tor network to achieve more effective Tor key node discovery. Summary of the invention
[0005] In view of the problem that the anonymity and dynamics of the Tor network make it difficult to discover key nodes, the present invention provides a Tor key node discovery method and device based on a timing network. By deploying Tor relay nodes, the data flow in the network is monitored and recorded in real time, so as to obtain the timing topology information of the Tor network, build a timing network model, and calculate the timing degree of the node based on the topological structure of the timing network, and finally identify the key nodes.
[0006] The present invention discloses a Tor key node discovery method based on a time series network, which comprises:
[0007] Discover and collect Tor network topology;
[0008] Construct a Tor node timing network model;
[0009] Calculate the Tor node timing value;
[0010] Identify Tor key nodes.
[0011] Furthermore, the discovery and collection of Tor network topology includes:
[0012] The deployed nodes can only be used as intermediate nodes in the Tor link;
[0013] The deployed Tor honeypot relay node establishes a stable connection in the Tor network and starts to participate in the forwarding of network data. When the node runs stably, it obtains complete link information when the link is created, that is, obtains the exit node, intermediate node and entry node of the link.
[0014] When the node plays a forwarding role, it monitors and records the IP addresses of the entry and exit nodes passing through the node in real time, as well as the current time information;
[0015] Collect and organize the collected IP address information and current time information.
[0016] Furthermore, the deployed nodes can only be used as intermediate nodes in the Tor link, including:
[0017] When deploying a Tor honeypot node, the bandwidth traffic is limited in the configuration file so that it does not meet the needs of the entry node, ensuring that the deployed node can only be used as an intermediate node in the Tor link.
[0018] Furthermore, the construction of the Tor node timing network model includes:
[0019] Preprocess the connection relationship data Q between the connection time, entry nodes, relay nodes and exit nodes in the Tor network collected over a period of time;
[0020] Traverse the IP address set of the deployed honeypot relay nodes, and obtain data D based on the number of exit nodes and entry nodes corresponding to each honeypot relay node;
[0021] Based on data D, a Tor node connection topology graph is drawn. The nodes in the Tor node connection topology graph represent the IP addresses of Tor network nodes, and the edges represent the connection relationships between nodes. The connection timestamps are embedded into the edges of the Tor node connection topology graph, so that each edge carries the specific time series information of the interaction between nodes.
[0022] Furthermore, the preprocessing of the connection relationship data Q between the connection time, the entry node, the relay node and the exit node in the Tor network collected within a period of time includes:
[0023] Set the second level of the connection time to 0 and convert it into a timestamp format; deduplicate according to the "entry node, relay node, exit node, connection timestamp" recorded in the connection relationship data Q.
[0024] Furthermore, the IP address set of the deployed honeypot relay nodes is traversed, and based on the number of exit nodes and entry nodes corresponding to each honeypot relay node, data D is obtained, including:
[0025] The IP address set of the deployed honeypot relay nodes is traversed to count the number of exit nodes and entry nodes corresponding to each honeypot relay node; if the number of exit nodes and entry nodes corresponding to the relay node does not exceed the preset value, the record containing the relay node is deleted in Q, otherwise no processing is performed, and finally the processed data D is obtained.
[0026] Further, the calculating of the Tor node timing value includes:
[0027] Step 1: Select the Tor node time series topology graph of any day and calculate the total number of nodes in the Tor node time series topology graph ;
[0028] Step 2: Select a node in the Tor node timing topology diagram , set M time periods, calculate the nodes in M time periods The timing value of is a node set;
[0029] Step 3: The nodes obtained in step 2 The average of the M time series degree values is used as the node The timing value of
[0030] Step 4: Repeat steps 2 and 3 until the calculation of the timing degree values of all nodes in the Tor node timing topology diagram is completed.
[0031] Furthermore, in the second step, a time period Internal Node The calculation formula of the timing value is:
[0032]
[0033] In the formula, Indicates time Time Node The degree, Indicates the total number of nodes in the topology graph.
[0034] Further, the identifying of Tor key nodes includes:
[0035] Filter the node whitelist and delete Tor nodes; the whitelist includes Tor directory servers, deployed Tor honeypot relay nodes, and manually set Tor node IP information;
[0036] Sort the filtered Tor nodes by their time-series values from large to small, and record the rankings;
[0037] Determine in turn whether the node timing values of the first N nodes are equal to the last node. If they are not equal, add them to the Tor key node list;
[0038] If the Tor key node list is empty, it means that no Tor key node was found on that day, otherwise the IP addresses in the list are identified Tor key nodes.
[0039] The present invention also discloses a Tor key node discovery device based on a time series network, which implements any of the Tor key node discovery methods based on a time series network described above, and includes a data acquisition module, a time series network construction module and a key node identification module;
[0040] The collection module is used to collect and transmit node connection information at set time intervals on the deployed Tor relay nodes; the node connection information includes the IP addresses and corresponding timestamps of the entry node, relay node, and exit node; the node connection information is used to construct a time-series network topology diagram that reflects the dynamic changes of the Tor network;
[0041] The time series network construction module is used to use the node connection information collected by the data acquisition module to build a time series network that reflects the connection relationship between nodes in the form of triples and relay node IP, exit node IP, and timestamp; the triples include entry node IP, relay node IP, and timestamp;
[0042] The key node identification module is used to evaluate the importance of nodes in the timing network. By analyzing the connection status of nodes at different time points, the timing value of each node is calculated, and the key nodes in the Tor network are identified.
[0043] Due to the adoption of the above technical solution, the present invention has the following advantages:
[0044] 1. Improve the accuracy of key node discovery: By constructing a time-series network and calculating the time-series degree value of the node, the present invention can dynamically capture the changes in the importance of nodes in the Tor network, thereby more accurately identifying nodes that are critical to network communication. This method overcomes the limitation of traditional static network analysis methods that cannot effectively reflect the dynamics of the network.
[0045] 2. Strong adaptability: Due to the high anonymity and dynamics of the Tor network, traditional node discovery methods are often difficult to adapt to its rapidly changing characteristics. The method of the present invention can update network topology information in real time and adapt to real-time changes in the network, thereby improving the timeliness of key node discovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0047] Figure 1 A schematic diagram of a flow chart of a Tor key node discovery method based on a time series network according to an embodiment of the present invention;
[0048] Figure 2 This is a Tor node connection time aggregation graph of an embodiment of the present invention;
[0049] Figure 3 The present invention is a block diagram of a Tor key node discovery device based on a timing network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The present invention is further described in conjunction with the accompanying drawings and embodiments, and the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field should fall within the scope of protection of the embodiments of the present invention.
[0051] The present invention aims to solve the problems of insufficient accuracy and difficulty in dealing with network anonymity and dynamics in existing Tor key node discovery methods. By constructing a temporal network model and calculating the temporal degree value of the node, the present invention can more effectively identify the key nodes in the Tor network, providing a new technical means for network security management and illegal activity monitoring. Figure 1 The present invention provides an embodiment of a Tor key node discovery method based on a time series network, which includes:
[0052] S1. Discover and collect Tor network topology;
[0053] S11. When deploying Tor honeypot nodes, limit the bandwidth flow in the configuration file so that it does not meet the needs of the entry node, thereby ensuring that the deployed nodes can only be used as intermediate nodes in the Tor link.
[0054] S12, enable the deployed Tor honeypot relay node to establish a stable connection in the Tor network and start to participate in the forwarding of network data. When the node runs stably, the node can obtain complete link information when the link is created, that is, obtain the exit node, intermediate node and entry node of this link.
[0055] S13. When the node plays a forwarding role, the IP addresses of the entry node and the exit node passing through the node, as well as the current time information, are monitored and recorded in real time.
[0056] S14. Collect and organize the collected IP address information and current time information.
[0057] S2, build a Tor node timing network model;
[0058] S21. Data on connection time, entry nodes, relay nodes, and exit nodes in the Tor network collected over a period of time (24 hours is optional) Q First, set the second level of the connection time to 0 (for example, convert 2024-04-01 00:01:37 to 2024-04-01 00:01:00) and convert it to a timestamp format; then, Q The “entry node, relay node, exit node, connection timestamp” are recorded in the data to deduplicate.
[0059] S22, traverse the IP address set of the deployed honeypot relay nodes, and count the number of exit nodes and entry nodes corresponding to each honeypot relay node. If the number of exit nodes and entry nodes corresponding to the relay node does not exceed the preset value, the preset value can be set to 3, then Q Delete the record containing the relay node, otherwise no processing is done.
[0060] S23, based on the data processed by S22 D , draw a Tor node connection topology graph, where the nodes represent the IP addresses of Tor network nodes and the edges represent the connection relationships between nodes. The connection timestamps are embedded into the edges of the topology graph, so that each edge carries the specific time series information of the interaction between nodes, such as Figure 2 shown.
[0061] S3, calculate the Tor node timing value;
[0062] The main idea of identifying key nodes in the Tor network is that the larger the degree of a node, the more important the node is in the Tor network. Since the present invention is a time-series dynamic network topology, the time-series degree value of the node is calculated. The larger the time-series degree value of the node, the more important the node is, and the greater the possibility that the node becomes a key node. Internal Node The calculation method of the timing value is as follows:
[0063]
[0064] In the formula, Indicates time Time Node The degree, Indicates the total number of nodes in the topology graph, A collection of nodes.
[0065] The specific implementation steps are as follows:
[0066] Step 1: Select the Tor node time series topology graph for a certain day and calculate the total number of nodes in the graph ;
[0067] Step 2: Select the node in the graph , set the time periods to [0 o'clock, 1 o'clock], [0 o'clock, 2 o'clock], [0 o'clock, 3 o'clock], ... [0 o'clock, 24 o'clock], and calculate the nodes in these time periods The timing value of .
[0068] Step 3: The nodes obtained in step 2 The average of the 24 time series values is used as the node The timing value of .
[0069] Step 4: Repeat steps 2 and 3 until the calculation of the timing values of all nodes in the graph is completed.
[0070] S4. Identify Tor key nodes.
[0071] S41, filtering the node whitelist and deleting the Tor node, wherein the whitelist includes the Tor directory server, the deployed Tor honeypot relay node, and the manually set Tor node IP information.
[0072] S42, sorting the filtered Tor nodes from large to small according to the time sequence value, and recording the sorting ranking;
[0073] S43, determining in turn whether the node timing values of the first, second, third and last nodes are equal, if not, adding them to the Tor key node list;
[0074] S44. If the Tor key node list is empty, it means that no Tor key node is found on that day, otherwise the IP address in the list is an identified Tor key node.
[0075] The present invention first deploys Tor relay nodes, and when the nodes play a forwarding role, records the IP of the entry node and the exit node, obtains the current moment Tor network topology information, and establishes a time-series network model based on a static graph. Through this method, the node connection information in the network can be effectively monitored and recorded without destroying the anonymity of the user. Secondly, based on the topological structure of the time-series network, the present invention comprehensively considers the time factor and the node importance, and calculates the time-series degree value of the Tor node. The larger the time-series degree value of the node is, the higher the importance of the node in the network is, and the greater the possibility of becoming a key node is. This node importance evaluation method based on the time-series degree value can not only capture the dynamic characteristics of the node, but also improve the accuracy and efficiency of key node discovery.
[0076] See also Figure 3 , the present invention also provides an embodiment of a Tor key node discovery device based on a time series network, which implements the Tor key node discovery method based on a time series network described in the above embodiment, and includes a data acquisition module, a time series network construction module and a key node identification module;
[0077] The collection module is responsible for collecting and transmitting node connection information on the deployed Tor relay nodes at set time intervals (e.g. once an hour); the node connection information includes the IP addresses and corresponding timestamps of the entry node, relay node, and exit node; and the node connection information is used to construct a time-series network topology diagram that reflects the dynamic changes of the Tor network.
[0078] The time series network construction module uses the information collected by the data acquisition module to build a time series network that reflects the connection relationship between nodes in the form of triplets (entry node IP, relay node IP, timestamp) and (relay node IP, exit node IP, timestamp).
[0079] The key node identification module is the final output part. It evaluates the importance of nodes in the time series network, calculates the time series value of each node by analyzing the connection status of the nodes at different time points, and identifies the key nodes in the Tor network. These key nodes may be potential risk points in the network or key transmission nodes of network traffic, which are of great significance for network security supervision and network optimization.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A Tor key node discovery method based on a time series network, characterized in that: include: Discover and collect Tor network topology; Construct a Tor node timing network model; Calculate the Tor node timing value; Identify Tor key nodes; The discovery and collection of Tor network topology includes: The deployed nodes can only be used as intermediate nodes in the Tor link; The deployed Tor honeypot relay node establishes a stable connection in the Tor network and starts to participate in the forwarding of network data. When the node runs stably, it obtains complete link information when the link is created, that is, obtains the exit node, intermediate node and entry node of the link. When the node plays a forwarding role, it monitors and records the IP addresses of the entry and exit nodes passing through the node in real time, as well as the current time information; Collect and organize the collected IP address information and current time information; The construction of the Tor node timing network model includes: Preprocess the connection relationship data Q between the connection time, entry nodes, relay nodes and exit nodes in the Tor network collected over a period of time; Traverse the IP address set of the deployed honeypot relay nodes, and obtain data D based on the number of exit nodes and entry nodes corresponding to each honeypot relay node; Based on data D, a Tor node connection topology graph is drawn. The nodes in the Tor node connection topology graph represent the IP addresses of Tor network nodes, and the edges represent the connection relationships between nodes. The connection timestamps are embedded into the edges of the Tor node connection topology graph, so that each edge carries the specific time series information of the interaction between nodes. The calculating of the Tor node timing value comprises: Step 1: Select the Tor node time series topology graph of any day and calculate the total number of nodes in the Tor node time series topology graph ; Step 2: Select a node in the Tor node timing topology diagram , set M time periods, calculate the nodes in M time periods The timing value of is a node set; Step 3: The nodes obtained in step 2 The average of the M time series degree values is used as the node The timing value of Step 4: Repeat steps 2 and 3 until the calculation of the timing degree values of all nodes in the Tor node timing topology diagram is completed; The identifying of Tor key nodes includes: Filter the node whitelist and delete Tor nodes; the whitelist includes Tor directory servers, deployed Tor honeypot relay nodes, and manually set Tor node IP information; Sort the filtered Tor nodes by their time-series values from large to small, and record the rankings; Determine in turn whether the node timing values of the first N nodes are equal to the last node. If they are not equal, add them to the Tor key node list; If the Tor key node list is empty, it means that no Tor key node was found on that day, otherwise the IP addresses in the list are identified Tor key nodes.
2. The Tor key node discovery method based on a time series network according to claim 1, characterized in that: The deployed nodes can only be used as intermediate nodes in the Tor link, including: When deploying a Tor honeypot node, the bandwidth traffic is limited in the configuration file so that it does not meet the needs of the entry node, ensuring that the deployed node can only be used as an intermediate node in the Tor link.
3. The Tor key node discovery method based on time series network according to claim 1, characterized in that: The preprocessing of the connection relationship data Q between the connection time, the entry node, the relay node and the exit node in the Tor network collected within a period of time includes: Set the second level of the connection time to 0 and convert it into a timestamp format; deduplicate according to the "entry node, relay node, exit node, connection timestamp" recorded in the connection relationship data Q.
4. The Tor key node discovery method based on a time series network according to claim 3 is characterized in that: The IP address set of the deployed honeypot relay nodes is traversed, and data D is obtained based on the number of exit nodes and entry nodes corresponding to each honeypot relay node, including: The IP address set of the deployed honeypot relay nodes is traversed to count the number of exit nodes and entry nodes corresponding to each honeypot relay node; if the number of exit nodes and entry nodes corresponding to the relay node does not exceed the preset value, the record containing the relay node is deleted in Q, otherwise no processing is performed, and finally the processed data D is obtained.
5. The Tor key node discovery method based on time series network according to claim 1, characterized in that: In the second step, a time period Internal Node The calculation formula of the timing value is: In the formula, Indicates time Time Node The degree, Indicates the total number of nodes in the topology graph.
6. A Tor key node discovery device based on a time series network, implementing the Tor key node discovery method based on a time series network as described in any one of claims 1 to 5, characterized in that: It includes data acquisition module, time series network construction module and key node identification module; The collection module is used to collect and transmit node connection information on the deployed Tor relay nodes at set time intervals; the node connection information includes the IP addresses and corresponding timestamps of the entry node, relay node, and exit node; Build a time-series network topology diagram that reflects the dynamic changes of the Tor network through node connection information; The time series network construction module is used to use the node connection information collected by the data acquisition module to build a time series network that reflects the connection relationship between nodes in the form of triples and relay node IP, exit node IP, and timestamp; the triples include entry node IP, relay node IP, and timestamp; The key node identification module is used to evaluate the importance of nodes in the timing network. By analyzing the connection status of nodes at different time points, the timing value of each node is calculated, and the key nodes in the Tor network are identified.
