A website fingerprint identification method, device, memory and processor

By performing sub-traffic segmentation and time tag accumulation processing on Tor network traffic, combined with the bidirectional GRU model to identify website fingerprints, the problem of difficult website fingerprint identification in the Tor network is solved, and accurate identification of encrypted traffic is achieved.

CN115002030BActive Publication Date: 2024-09-03ANHUI UNIVERSITY OF TECHNOLOGY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210455579.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-09-03
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

In the existing technology, the Tor network is vulnerable to website fingerprint traffic analysis attacks, and WTF-PAD technology adds padding when the channel usage is low and cannot effectively identify website fingerprints, resulting in the problem that website fingerprints cannot be identified.

Method used

By obtaining the website traffic, split it into sub-traffic according to the session, divide the data packets according to the preset time interval, accumulate the number of data packet time tags to expand the difference, and use the bidirectional GRU model to identify the processed sub-traffic data to obtain the website fingerprint.

Benefits of technology

It achieves passive identification of website fingerprints for encrypted Tor traffic, overcomes the identification difficulties of WTF-PAD technology when channel usage is low, and improves the accuracy and distinction of website fingerprint identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002030B
    Figure CN115002030B
Patent Text Reader

Abstract

The present application discloses a website fingerprint identification method, device, memory and processor, which obtain website traffic and divide it into several sub-traffic according to the session; divide the data packets in each sub-traffic according to the same preset time interval; obtain the time tags of the data packets belonging to the same preset time interval, and accumulate the number of the time tags according to the flow direction to obtain the first tag number and the second tag number; accumulate a preset first difference to the first tag number to obtain the third tag number; group all the second tag numbers and third tag numbers belonging to the same sub-traffic in pairs and sort them according to the time series to obtain the processed sub-traffic data; use the machine learning model to identify the processed sub-traffic data and obtain the corresponding website fingerprint. This method can identify the tor traffic using WTF-PAT, and can determine which websites the user is visiting through the encrypted connection.
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 method for website fingerprint recognition. Background Art

[0002] Tor is a technology that specifically prevents traffic filtering and sniffing analysis. Tor communicates on an overlay network composed of "onion routers" to achieve anonymous external connections and anonymous hidden services. Specifically, Tor provides this protection by creating an encrypted circuit from the client across three nodes, which relay encrypted communications between the client and the server (usually a website). In this design, no Tor node or eavesdropper can link the user's identity (i.e., IP address and location) to the website he or she visits. Figure 2 It shows the strategy graph of extracting features based on packet size when using ordinary Tor encryption for different websites. Figure 2 In a, taking Facebook and Skype as examples, after using ordinary Tor encrypted access, it can be observed that the difference in the total size of data packets of the two sites within a fixed time interval is still very obvious. Figure 2 b Taking Facebook and Skype as examples, the relationship between the total amount of data packets and time within a 5s period can be observed through the total amount of data packets. The difference between the two different sites can also be observed from a macro perspective. It can also be explained that the size of the data packet is an effective means of feature extraction.

[0003] However, prior art research has shown that Tor is vulnerable to a class of traffic analysis attacks called website fingerprinting (WF). WF attacks allow an adversary to learn information about a client's online activities, even if the traffic is encrypted. To perform the attack, a passive local eavesdropper collects side-channel information from network traffic between the client and the entry node. The attacker then extracts various features from the collected traffic, such as packet statistics or traffic burst patterns, and feeds this information into a machine learning classifier to identify which website the client has visited. The effectiveness and accuracy of this attack are very high.

[0004] In the prior art, the website fingerprint defense WTF-PAD technology can prevent the above traffic analysis attacks. Specifically, the website fingerprint defense WTF-PAD technology adds padding only when the channel usage rate is low, forming a Figure 3In the traffic shown, the size of each sub-flow is the same, so the traffic burst is covered under controllable bandwidth, thus avoiding the existing traffic attack method of distinguishing possible visited websites by identifying the size of the traffic. After adding the WTF-PAD defense mechanism, the size of each data packet is the same. Ordinary feature extraction methods have little effect, and a more suitable website fingerprint identification method needs to be found. Summary of the invention

[0005] The embodiments of the present application provide a website fingerprint recognition method, device, memory and processor to at least solve the problem that the website fingerprint cannot be recognized after adding the WTF-PAD method.

[0006] According to one aspect of the present application, a website fingerprint recognition method is provided, comprising:

[0007] Get website traffic and split it into several sub-traffic according to sessions;

[0008] Dividing the data packets in each sub-flow according to the same preset time interval;

[0009] Obtain time tags of data packets belonging to the same preset time interval, and add up the number of the time tags according to the flow direction to obtain a first tag number and a second tag number, where the first tag number is the sum of the number of time tags of all data packets in the first flow direction, and the second tag number is the sum of the number of time tags of all data packets in the second flow direction;

[0010] Accumulating a preset first difference to the first label quantity to obtain a third label quantity, wherein the first difference is used to expand the difference between the first label quantity and the second label quantity;

[0011] All the second label quantities and third label quantities belonging to the same sub-flow are grouped in pairs and sorted in time series to obtain processed sub-flow data;

[0012] The processed sub-traffic data is identified using a machine learning model and a corresponding website fingerprint is obtained.

[0013] Furthermore, in the present invention, after the second label quantity and the third label quantity belonging to the same sub-flow are grouped in pairs and sorted in time series and before the processed sub-flow data is obtained, it includes: adding a number of fourth label quantities and fifth label quantities arranged alternately to the tail of the sorted queue, the fourth label quantity is the average of the second label quantities belonging to the same sub-flow, the fifth label quantity is the average of the third label quantities belonging to the same sub-flow, and the fourth label quantity and the fifth label quantity are both the number of intervals that can be divided according to the same preset time interval according to the remaining time of the same preset session time except the time occupied by all sub-flows.

[0014] Furthermore, in the present invention, the same preset session time is 10 seconds.

[0015] Furthermore, in the present invention, dividing the data packets in each sub-flow according to the same preset time interval includes: the same preset time interval is 0.03 seconds to 1 second.

[0016] Furthermore, in the present invention, the step of adding a preset first difference to the first label quantity to obtain a third label quantity includes:

[0017] The number of the first tags is increased to 50 to 100 times the original number.

[0018] Furthermore, in the present invention, the machine learning model is a bidirectional GRU model.

[0019] Furthermore, in the present invention, the loss rate of the Dropout layer and the fully connected layer of the machine learning model is 0.1.

[0020] A second aspect of the present invention is to provide a website fingerprint recognition device, comprising:

[0021] A website traffic acquisition module is used to acquire website traffic and divide it into several sub-traffic according to sessions;

[0022] A division module, used for dividing the data packets in each sub-flow according to the same preset time interval;

[0023] An acquisition module, used to acquire time tags of data packets belonging to the same preset time interval, and to accumulate the number of the time tags according to the flow direction to obtain a first tag number and a second tag number; the first tag number is the sum of the number of time tags of all data packets in the first flow direction, and the second tag number is the sum of the number of time tags of all data packets in the second flow direction;

[0024] An accumulation module, used for accumulating a preset first difference to the first label quantity to obtain a third label quantity, wherein the first difference is used to expand the difference between the first label quantity and the second label quantity;

[0025] A processing module, used for grouping all the second label quantities and third label quantities belonging to the same sub-flow in pairs and sorting them in time series to obtain processed sub-flow data;

[0026] An identification module is used to use a machine learning model to identify the processed sub-traffic data and obtain the corresponding website fingerprint

[0027] A third aspect of the present invention is to provide a memory for storing software, wherein the software is used to execute the method described in the first aspect.

[0028] A fourth aspect of the present invention is a processor, characterized in that it is used to execute software, wherein the software is used to execute the method described in the first aspect above.

[0029] The present application provides a website fingerprint identification method, which obtains website traffic and divides it into several sub-traffic according to the session; divides the data packets in each sub-traffic according to the same preset time interval; obtains the time tags of the data packets in the same preset time interval, and accumulates the number of the time tags according to the traffic direction to obtain the first tag number and the second tag number, wherein the first tag number is the sum of the time tag numbers of all data packets in the first traffic direction, and the second tag number is the sum of the time tag numbers of all data packets in the second traffic direction; accumulates a preset first difference to the first tag number to obtain the third tag number, and the first difference is used to expand the difference between the first tag number and the second tag number; groups all the second tag numbers and the third tag numbers belonging to the same sub-traffic in pairs and sorts them according to the time series to obtain the processed sub-traffic data; uses the machine learning model to identify the processed sub-traffic data and obtain the corresponding website fingerprint. The above device classifies the tor traffic using WTF-PAT, and can determine which websites the user is visiting through an encrypted connection. Among them, the model used is trained using multiple sets of training data. Through the above method, passive identification of website fingerprints is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0031] Figure 1 is a flow chart of a website fingerprint recognition method according to an embodiment of the present application;

[0032] Figure 2 In the prior art, different websites use ordinary Tor encryption and extract characteristic strategy graphs based on the size of data packets;

[0033] Figure 3 It is a schematic diagram of the form of data packets obtained by using the website fingerprint defense WTF-PAD technology in the prior art. DETAILED DESCRIPTION

[0034] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0035] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] The embodiments of the present invention analyze the network traffic of the type that adopts the website fingerprint defense WTF-PAD technology in the prior art to identify the target website visited. The technical principle of this type of technology is analyzed. Its mechanism of being able to conceal the target website is to inject virtual traffic into the real traffic multiple times and relatively smoothly, so that the overall traffic is packaged into a relatively stable state, so that the real website access traffic burst is concealed, and the target website cannot be identified by the characteristics of the traffic burst. Precisely because the rectified traffic cannot be used as a feature to identify the target, the solution of this embodiment analyzes the characteristics of the traffic from a more basic traffic packet dimension, in order to discover deeper characteristics, so as to identify the corresponding target website.

[0037] The visit of real website will lead to explosive growth of traffic, including the growth of traffic in the two directions of request and question and answer. Different websites usually have different explosive patterns, at least reflected in the increase of interaction frequency and traffic size in the above two directions. But the interaction frequency and traffic size of different websites are not exactly the same, but show their own regularity. However, the defense rate of virtual traffic injected in website fingerprint defense WTF-PAD technology is in a fixed range, that is, the interaction frequency and traffic size virtualized by this kind of traffic are always relatively stable, and no substantial distinction is made for different websites.

[0038] Therefore, based on the above reasons, it can be foreseen that using data that can reflect interaction dimensions such as interaction frequency and / or traffic size as features can well reflect the website to which the traffic is directed, and can also overcome the impact of virtual traffic.

[0039] In the prior art, it is easy to think of associating features and websites through machine learning models. In the embodiments of the present application, it is necessary to further consider whether the features relied on by the embodiments of the present application are suitable for the use of machine learning models. In the prior art, a common method is to use a combination of -1 and +1 to represent data in different directions, and to express a data packet in two dimensions, namely, the size of the data packet. When the data of the above data packet is fed into the machine learning model for machine learning, due to the small difference between the size of the data packet and the data representing the direction, when faced with massive data, it is likely that the model will not be able to recognize the difference in the data, resulting in failure to obtain satisfactory classification results. Therefore, in order to better distinguish the features of the data using a more basic traffic packet dimension proposed in this embodiment, the embodiments of the present application propose to focus on the data representing the direction and ignore the data representing the size of the data packet, and at the same time increase the distinction of the above data in different directions, so as to better distinguish the characteristics of the interaction between the uplink and downlink data, and better allow the machine learning model to complete the training.

[0040] Therefore, the embodiment of the present application proposes a method for identifying website fingerprints, the basic idea of ​​which is based on a machine learning model, and includes the following steps from early model data collection to deployment:

[0041] Step 1: Data Collection

[0042] Collect the original data of WTF-PAD type Tor traffic and annotate the original data.

[0043] Specifically, an optional method is provided in this embodiment, using the scripts and simulators officially provided by WTF-PAD to construct defense filling data, constructing all data into the target identification data of this embodiment, using multiple machines to access the homepage of each common site several times, and dumping the traffic generated by each visit separately.

[0044] Step 2: Data Processing

[0045] Divide the original data into data streams, formulate feature amplification strategies, extract features for each stream, and organize and classify them into training sets, test sets, and validation sets.

[0046] The specific data processing process is the same as the method steps in the specific embodiment after the model is trained, and will be introduced uniformly below.

[0047] Step 3: Model Construction

[0048] Construct and tune the recurrent neural network model Gate Recurrent Unit, referred to as GRU model. This model is sensitive to data related to time features and is more suitable for features such as the interaction frequency selected in the embodiment of the present application. In this embodiment, the model selects a bidirectional GRU model, including four consecutive bidirectional GRU layers, a fully connected layer, and a softmax layer. After debugging and selection, the specific model parameters recommended in this embodiment are as follows: the number of hidden layer neurons in the first bidirectional GRU layer is 128; the number of hidden layer neurons in the second bidirectional GRU layer is 128; the number of hidden layer neurons in the third bidirectional GRU layer is 128; the number of hidden layer neurons in the fourth bidirectional GRU layer is 128; the dropout layer fully connected layer loss rate is 0.1; the number of hidden layer neurons in the fully connected layer is 64.

[0049] More specifically, the GRU model includes:

[0050] Update gate: determines how much past information can be passed on to the future. The output ht-1 of the previous moment and the input xt of the current moment are linearly transformed, that is, they are multiplied by the weight matrix on the right, and then the added data is sent to the update gate, that is, the value zt between [0,1] is calculated using the logic function σ:

[0051] z t =σ(W z ·[h t-1 ,x t ])

[0052] Reset gate: determines how much historical information cannot be passed to the next moment. Similar to the data processing of the update gate, the output ht-1 of the previous moment and the input xt of the current moment are linearly transformed, that is, they are right-multiplied by the weight matrix respectively, and then the added data is sent to the reset gate, that is, the value rt between [0,1] is calculated using the logic function σ. The only difference is the value and purpose of the weight matrix twice:

[0053] r t =σ(W r ·[h t-1 ,x t ])

[0054] Reset phase: Use the reset gate to control the amount of data of current information and memory information, and generate new memory information to continue forward transmission:

[0055] h=tanh(W·[r t *h t-1 ,x t ])

[0056] Update phase: The output information of the hidden state is composed of the hidden state information ht-1 of the previous moment and the hidden state output ht of the current moment. The update gate is used to control the transmission of these two pieces of information to future data:

[0057] h t =(1-z t )*h t-1 +z t *t

[0058] In the above formula, Wr, Wz, and W are all weight matrices.

[0059] Step 4: Data training

[0060] Input the training set data into the model for training.

[0061] Step 5: Model Validation

[0062] Input the test set to train the model, verify the accuracy, and output the test website name.

[0063] Step 6: Model deployment

[0064] The trained model is deployed in real network nodes to classify the labeled sites and play a role in threat monitoring.

[0065] Based on the trained model, we can obtain Figure 1 A website fingerprint recognition method proposed in an embodiment of the present application is shown, comprising the following steps:

[0066] Step S102: Obtain website traffic and divide it into several sub-traffics according to sessions.

[0067] Step S104, dividing the data packets in each sub-flow according to the same preset time interval;

[0068] Step S106, obtaining time tags of data packets belonging to the same preset time interval, and accumulating the number of the time tags according to the flow direction to obtain a first tag number and a second tag number, wherein the first tag number is the sum of the number of time tags of all data packets in the first flow direction, and the second tag number is the sum of the number of time tags of all data packets in the second flow direction;

[0069] Step S108, accumulating a preset first difference to the first label quantity to obtain a third label quantity, wherein the first difference is used to expand the difference between the first label quantity and the second label quantity;

[0070] Step S110, grouping all the second label quantities and third label quantities belonging to the same sub-flow in pairs and sorting them in time series to obtain processed sub-flow data;

[0071] Step S112: Use a machine learning model to identify the processed sub-traffic data and obtain a corresponding website fingerprint.

[0072] The above method provides a method for processing traffic data, accumulating the data representing the traffic interaction direction in the traffic data to form the first label quantity and the second label quantity, and accumulating the preset first difference to expand the differentiation of the number of interactions in different directions. In this process, it is necessary to combine the time dimension of the traffic data to construct a unified data form to feed the machine learning model. The above method focuses the data of interest on the traffic direction after processing and appropriately expands the difference, which makes it easier to train the machine learning model and identify specific website fingerprints.

[0073] In this embodiment, in order to unify the data format, considering that the sizes of different sessions may be different, it is necessary to supplement the data of sessions that do not meet the preset session time. It is specifically implemented in the following manner: after the second label quantity and the third label quantity belonging to the same sub-flow are grouped in pairs and sorted according to the time series, before the processed sub-flow data is obtained, it includes: supplementing a number of fourth label quantities and fifth label quantities that are alternately arranged at the end of the sorted queue, the fourth label quantity is the average of the second label quantity belonging to the same sub-flow, the fifth label quantity is the average of the third label quantity belonging to the same sub-flow, and the fourth label quantity and the fifth label quantity are both the number of intervals that can be divided according to the same preset time interval for the remaining time except the time occupied by all sub-flows in the same preset session time. In the above supplementation process, in order to avoid the adverse effects of supplementary data on the actual acquired traffic data, the supplemented data is taken as the label average obtained based on these actual acquired traffic data, thereby taking into account the insufficient data volume and the overall effect of keeping the interaction frequency consistent with the actual acquired data.

[0074] In this embodiment, the same preset session time is 10 seconds. The data volume of 10 seconds is sufficient to distinguish the browsing of different websites. Therefore, the embodiment of the present application uses the sub-flow composed of the data obtained every 10 seconds as the data source for identification, and the subsequently processed data forms a standard data format as the processed sub-flow data to feed the model.

[0075] In this embodiment, the data packets in each sub-flow are divided according to the same preset time interval, including: the same preset time interval is 0.03 seconds to 1 second. In this embodiment, 0.05 seconds is specifically selected as the preset time interval to divide the data packets in each sub-flow. Therefore, in each 10-second time interval, the length of the traffic sequence in each time interval that can be divided is L=200.

[0076] In this embodiment, the step of adding a preset first difference to the first tag quantity to obtain the third tag quantity includes:

[0077] The number of the first tags is increased to 50 to 100 times the original number.

[0078] In this embodiment, the first traffic direction is represented by +1, and the second traffic direction is represented by -1. All +1 time tags in the 200 data packets in each time interval are accumulated to obtain the first label quantity. Similarly, all +1 time tags in the 200 data packets in each time interval are accumulated to obtain the second label quantity. In order to expand the difference between the first time tag and the second time tag, the first label quantity is expanded. The above expansion is performed after the accumulation is completed. It can also be performed by changing the +1 data of the first traffic direction to an expanded multiple, such as +100, before accumulation. The order of expansion processing does not affect the effect of achieving the differentiated effect of the number of labels in different directions in each time interval.

[0079] For example, in some embodiments, the following processing is specifically provided:

[0080] First, all network traffic is divided into categories Y{Y1,Y2,…,Yn}, where Yi represents the distributed application corresponding to label i.

[0081] Using the session as the cutting standard, the traffic corresponding to Yi is split into several sub-flows and exported to the same CSV file. Each line in the CSV file contains information obtained from the data packet, including timestamp, packet length (a fixed value), and packet direction. All sub-flows of Yi are processed into new sequences through the following steps:

[0082] ① Extract the records of each subflow from the CSV file corresponding to Yi, which includes a list of pairs of {timestamp, packet direction} for each packet in the flow.

[0083] ② Normalize all timestamp values ​​by subtracting the timestamp of the first data packet from the timestamp of each data packet in the substream;

[0084] ③ Set the time interval T = 0.05s and the traffic sequence length L = 200, and add up the number of timestamps of the data in a flow every 0.05s according to the direction of the data packet, where the initial value of the timestamp number of the forward request packet is set to 0, and the initial value of the timestamp number of the reverse request packet is set to 100;

[0085] In a second aspect of the embodiments of the present application, a website fingerprint recognition device is further provided, comprising:

[0086] A website traffic acquisition module is used to acquire website traffic and divide it into several sub-traffic according to sessions;

[0087] A division module, used for dividing the data packets in each sub-flow according to the same preset time interval;

[0088] An acquisition module, used to acquire time tags of data packets belonging to the same preset time interval, and to accumulate the number of the time tags according to the flow direction to obtain a first tag number and a second tag number; the first tag number is the sum of the number of time tags of all data packets in the first flow direction, and the second tag number is the sum of the number of time tags of all data packets in the second flow direction;

[0089] An accumulation module, used for accumulating a preset first difference to the first label quantity to obtain a third label quantity, wherein the first difference is used to expand the difference between the first label quantity and the second label quantity;

[0090] A processing module, used for grouping all the second label quantities and third label quantities belonging to the same sub-flow in pairs and sorting them in time series to obtain processed sub-flow data;

[0091] The identification module is used to use a machine learning model to identify the processed sub-traffic data and obtain a corresponding website fingerprint.

[0092] The above device classifies the Tor traffic using WTF-PAT and can determine which websites the user is accessing through the encrypted connection. The model used is trained using multiple sets of training data. Through the above method, passive identification of website fingerprints is achieved.

[0093] According to another aspect of the present application, a processor is provided for executing software, wherein the software is used to execute the website fingerprint recognition method.

[0094] According to another aspect of the present application, a memory is provided for storing software, wherein the software is used to execute the website fingerprint recognition method.

[0095] It should be noted that the website fingerprint recognition performed by the above software is the same as the website fingerprint recognition introduced above, and will not be repeated here.

[0096] In this embodiment, an electronic device is provided, including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the method in the above embodiment.

[0097] These computer programs 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, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in one or more blocks can be implemented by different modules corresponding to different steps.

[0098] The above program can be run in the processor, or it can be stored in the memory (or computer-readable medium), which includes permanent and non-permanent, removable and non-removable media. Information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0099] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A website fingerprint recognition method, characterized in that: Get website traffic and split it into several sub-traffic according to sessions; Divide the data packets in each sub-flow according to the same preset time interval; Obtain time tags of data packets belonging to the same preset time interval, and add up the number of the time tags according to the flow direction to obtain a first tag number and a second tag number, where the first tag number is the sum of the number of time tags of all data packets in the first flow direction, and the second tag number is the sum of the number of time tags of all data packets in the second flow direction; Accumulating a preset first difference to the first label quantity to obtain a third label quantity, wherein the first difference is used to expand the difference between the first label quantity and the second label quantity; All the second label quantities and third label quantities belonging to the same sub-flow are grouped in pairs and sorted in time series to obtain processed sub-flow data; Using a machine learning model to identify the processed sub-traffic data and obtain a corresponding website fingerprint; The machine learning model is a bidirectional recurrent neural network model GRU model, including four consecutive bidirectional GRU layers, a fully connected layer, and a softmax layer. The number of hidden layer neurons in the first bidirectional GRU layer is 128; the number of hidden layer neurons in the second bidirectional GRU layer is 128; the number of hidden layer neurons in the third bidirectional GRU layer is 128; the number of hidden layer neurons in the fourth bidirectional GRU layer is 128; the dropout layer loss rate of the fully connected layer is 0.1; the number of hidden layer neurons in the fully connected layer is 64.

2. The method according to claim 1, characterized in that: After the second label numbers and the third label numbers belonging to the same sub-flow are grouped in pairs and sorted according to the time series and before the processed sub-flow data is obtained, the method includes: adding a plurality of fourth label numbers and fifth label numbers arranged alternately to the tail of the sorted queue, the fourth label number is the average of the second label numbers belonging to the same sub-flow, the fifth label number is the average of the third label numbers belonging to the same sub-flow, and the fourth label number and the fifth label number are both the number of intervals that can be divided according to the same preset time interval according to the remaining time of the same preset session time except the time occupied by all sub-flows.

3. The method according to claim 2, characterized in that: The same preset session time is 10 seconds.

4. The method according to claim 1, characterized in that: The dividing the data packets in each sub-flow according to the same preset time interval includes: the same preset time interval is 0.03 seconds to 1 second.

5. The method according to claim 1, characterized in that: The step of adding a preset first difference to the first tag quantity to obtain a third tag quantity includes: The number of the first tags is increased to 50 to 100 times the original number.

6. A website fingerprint recognition device, characterized in that: include A website traffic acquisition module is used to acquire website traffic and divide it into several sub-traffic according to sessions; A division module, used for dividing the data packets in each sub-flow according to the same preset time interval; An acquisition module, used to acquire time tags of data packets belonging to the same preset time interval, and to accumulate the number of the time tags according to the flow direction to obtain a first tag number and a second tag number; the first tag number is the sum of the number of time tags of all data packets in the first flow direction, and the second tag number is the sum of the number of time tags of all data packets in the second flow direction; An accumulation module, used for accumulating a preset first difference to the first label quantity to obtain a third label quantity, wherein the first difference is used to expand the difference between the first label quantity and the second label quantity; A processing module, used for grouping all the second label quantities and third label quantities belonging to the same sub-flow in pairs and sorting them in time series to obtain processed sub-flow data; An identification module, used to identify the processed sub-traffic data using a machine learning model and obtain a corresponding website fingerprint; The machine learning model is a bidirectional recurrent neural network model GRU model, including four consecutive bidirectional GRU layers, a fully connected layer, and a softmax layer. The number of hidden layer neurons in the first bidirectional GRU layer is 128; the number of hidden layer neurons in the second bidirectional GRU layer is 128; the number of hidden layer neurons in the third bidirectional GRU layer is 128; the number of hidden layer neurons in the fourth bidirectional GRU layer is 128; the dropout layer loss rate of the fully connected layer is 0.1; the number of hidden layer neurons in the fully connected layer is 64.

Citation Information

Patent Citations

  • Logistic regression based multi-feature network popular tag prediction method

    CN106446191A

  • Automatic sample calibration method for encrypted traffic recognition

    CN108881305A

  • Intelligent traffic confusion method and system for website fingerprint defense and computer storage medium

    CN113347156A

  • User-specific policy enforcement based on network traffic fingerprinting

    US10263868B1

  • Indicating website reputations within search results

    US20060253582A1