A fast detection method for encrypted traffic combining plaintext and ciphertext traffic characteristics
By combining plain and ciphertext traffic features, using Bloom filters and encrypted traffic feature libraries, we solve the problems of low efficiency in encrypted traffic detection and difficulty in identifying new threats in the network boundary stack, and achieve rapid detection and autonomy of encrypted traffic. Learning improves detection efficiency and accuracy.
Patent Information
- Application Number
- CN202410347186.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-26
AI Technical Summary
It is difficult for the existing technology to efficiently detect threats and new threat traffic in encrypted traffic in the network boundary stack. Moreover, the training cost of encrypted traffic detection is high, the sample data is unbalanced, and it cannot adapt to new APT-type malicious traffic.
Adopt a rapid detection method for encrypted traffic that combines plain and ciphertext traffic features, collect encrypted traffic features through the border security stack, use Bloom filters to build a feature query, perform feature matching and decryption detection, build an encrypted traffic feature library, and implement encryption Rapid detection and autonomous learning of traffic.
It reduces the cost and complexity of encrypted traffic detection, improves detection efficiency, can quickly identify new threat traffic, achieves accurate and safe detection of encrypted traffic, and reduces resource consumption of the border security stack.
Smart Images

Figure CN118337416B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of network anomaly detection, and in particular relates to a method for quickly detecting encrypted traffic by combining plaintext and ciphertext traffic features. Background Art
[0002] Cyberspace has become the living environment for people, but its openness and interconnectivity, especially the security vulnerabilities of protocols and software, will bring various and multi-level network threats and security risks to network information systems. In order to improve the security of network information systems, traditional network security solutions generally deploy relevant security facilities at the network boundary, set corresponding security policies, conduct network security analysis on the network traffic passing through, identify and analyze data through the dimensions of source security domain, destination security domain, source address, destination address, geographic location, user, service, application, time, etc., so as to realize anti-virus, vulnerability protection, anti-spyware, URL filtering, file filtering, content filtering, email filtering and other security functions for data traffic.
[0003] Network security analysis refers to the use of network traffic analysis technology to analyze and compare security parameters in the current network environment, obtain the trend of current network traffic changes, and detect whether there are network anomalies. Network security analysis mainly includes host cardinality analysis, network flow analysis, abnormal behavior detection and other categories. A network flow is a data stream composed of one or more data packets with the same attributes, including data packet header information, data packet content, and data packet description information. Network flow analysis is often used to carry out practical tasks such as abnormal traffic detection, network resource allocation, and traffic billing. By deploying network traffic probes at the network boundary, the traffic at specific entrances and exits of the network boundary is monitored, or the network traffic of key nodes is mirrored to the network security analysis system, the traffic behavior, transmission protocol, and data content are analyzed, and matched with the threat intelligence database to achieve real-time analysis, monitoring, and early warning of network traffic. Network security analysis can realize real-time detection and tracking of abnormal behaviors and network attacks in network traffic, thereby effectively defending against network threats such as DDoS attacks, and effectively ensuring the reliable operation of network information systems and critical information infrastructure.
[0004] However, in order to ensure the security of information transmission in the actual network, network traffic is usually encrypted for transmission, such as the HTTPS encryption protocol. Because the data content is in a completely encrypted state, network encrypted traffic poses a huge challenge to the network traffic analysis and detection functions of border security. The border security stack integrated with the network traffic analysis system is difficult to analyze the data of encrypted traffic, and it is even more difficult to detect whether the traffic data contains threats, viruses or unauthorized data transmission. In response to the detection and analysis of encrypted traffic, researchers in related fields have carried out special research on abnormal behavior detection technology. For example, by analyzing the structured information in the traffic, including the instantaneous traffic size or number of packets in the uplink and downlink traffic, the type and proportion of the transmission protocol in the traffic, and the source address characteristics, malicious encrypted traffic behavior detection is achieved. Some researchers have also proposed a malicious encrypted traffic detection model based on the hidden Markov model, which compares and analyzes the gene sequence features in bioinformatics, especially matching key gene subsequences, so as to achieve malicious encrypted traffic identification.
[0005] The above methods are all designed for encrypted traffic, but they all need to use existing encrypted traffic for training and obtaining features to establish intelligence libraries and detection models for actual deployment and application. However, there is a huge gap between the theory and practical application of encrypted traffic detection. (1) The samples of encrypted threat traffic detection are unbalanced, especially for some new APT-type malicious traffic, whose sample data is very small or even impossible to obtain in advance. The encrypted traffic analysis system integrated in the network boundary security stack is difficult to adapt to new encrypted threat traffic; (2) It is necessary to collect large-scale encrypted threat traffic features in advance, and the training cost is high. Especially for some advanced threats, even if the communication method, encryption algorithm and traffic characteristics are clearly understood, it is difficult to train a general detection model and solution. These problems are common difficulties currently faced by academia and industry in the practice of encrypted traffic detection. Summary of the invention
[0006] 1. Technical issues to be resolved
[0007] The technical problem to be solved by the present invention is how to provide a method for quickly detecting encrypted traffic that combines plaintext and ciphertext traffic features, so as to solve the problems of high overhead, poor efficiency and inability to detect new threat traffic in encrypted traffic analysis in the network boundary stack.
[0008] (II) Technical solution
[0009] In order to solve the above technical problems, the present invention proposes a method for quickly detecting encrypted traffic by combining plaintext and ciphertext traffic features, the method comprising the following steps:
[0010] S1. Feature extraction: The border security stack uses network traffic monitoring probes to collect encrypted traffic and extract encrypted traffic features;
[0011] S2, feature matching: by building a feature query based on Bloom filter, set the corresponding detection array for the collected encrypted traffic features, query the encrypted traffic feature library through the detection array, and match and analyze whether the extracted encrypted traffic features can be queried. If they can be queried, it is considered as known traffic and enters step S3; if they are not queried, it is considered as unknown traffic and enters step S4;
[0012] S3, known traffic anomaly detection: The encrypted traffic feature library feeds back a binary tuple, and a judgment is made based on the fed-back binary tuple. If the marking result in the binary tuple is no anomaly, that is, the encrypted traffic has passed the security check of the decrypted content, the traffic is allowed to pass directly; if the marking result is abnormal, it has failed the security check of the decrypted content, and a blocking operation is implemented;
[0013] S4, unknown traffic decryption: For incoming traffic, use the decryption function in the boundary security stack to decrypt the encrypted traffic;
[0014] S5. Plaintext traffic content detection: Perform deep content detection on plaintext traffic and output the detection results after the detection is completed. If there is an abnormality, that is, the traffic does not pass the content security check, the border security stack will implement a blocking operation; if there is no abnormality, that is, the traffic passes the content security check, the border security stack will re-encrypt the network traffic to allow the traffic to pass safely;
[0015] S6, constructing a tuple of features and tags: Based on the encrypted traffic features extracted in step S1 and the plaintext traffic detection results obtained in step S5, construct a tuple <feature, tag>, where the tag represents the detection result. Then, build a Bloom filter for the encrypted traffic features, use the probabilistic structural model to get the storage position of the encrypted traffic features in the encrypted traffic feature library, store the tuple and the detection array of the Bloom filter and update it to the corresponding storage position in the encrypted traffic feature library.
[0016] (III) Beneficial effects
[0017] The present invention proposes a method for quickly detecting encrypted traffic by combining plaintext and ciphertext traffic features. The beneficial effects of the present invention are as follows:
[0018] In order to solve the problems of high cost of training samples for encrypted traffic anomaly detection and small amount of advanced threat sample data, the present invention proposes a method for rapid detection of encrypted traffic anomalies by combining plaintext and ciphertext traffic features. The plaintext traffic detection results are used to mark the ciphertext traffic features, and an encrypted traffic feature library is constructed to support the detection and authentication of subsequent encrypted traffic, thereby realizing rapid detection of encrypted traffic and solving the problems of high overhead, poor efficiency and inability to detect new threat traffic in encrypted traffic analysis in the network boundary stack.
[0019] Aiming at the problem that traffic feature query has large space occupation and low query efficiency, the present invention proposes to use Bloom filter to build an efficient query engine. The query engine can calculate the hash value of unknown traffic feature value, and compare and match whether the network traffic feature has been detected and determined, so as to realize the fast matching of traffic feature.
[0020] The detection method of the present invention can achieve more accurate and secure detection and analysis by decrypting unknown encrypted traffic to perform in-depth detection of plaintext content, while realizing autonomous learning of encrypted traffic detection and authentication. At the same time, based on the precipitated and learned network traffic feature data, it can realize rapid detection of encrypted traffic with the same features, and decryption and authentication can be repeated infinitely, reducing the complexity and overhead of the border security stack.
[0021] The detection method of the present invention can be quickly integrated into the existing network boundary security stack. Combined with the function of decryption detection of encrypted traffic in the boundary security stack, the traffic feature library and its query construction method proposed in the present invention can be quickly deployed to the existing boundary security stack, thereby realizing rapid detection of encrypted traffic. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A framework diagram of the method of the present invention;
[0023] Figure 2 It is a specific flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0025] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to propose a method for rapid detection of encrypted traffic anomalies that combines plaintext and ciphertext traffic features, and use the plaintext traffic features to correlate and analyze the anomalies of encrypted traffic, thereby achieving rapid detection of encrypted traffic and solving the problems of high overhead, poor efficiency and inability to detect new types of threat traffic in encrypted traffic analysis in the network boundary stack.
[0026] In order to achieve the above object, the technical solution adopted by the present invention is:
[0027] The present invention proposes a method for rapid detection of encrypted traffic anomalies that combines plaintext and ciphertext traffic features. The method decrypts, detects and authenticates unknown encrypted traffic, and uses the plaintext traffic detection results to mark the ciphertext traffic features, builds an encrypted traffic feature library, and supports the detection and authentication of subsequent encrypted traffic, thereby achieving autonomous learning and efficiency improvement of encrypted traffic detection. For unknown encrypted traffic, the traffic encryption and decryption function integrated in the network boundary stack is used to first decrypt it and perform deep content detection, including virus detection, spyware detection, URL detection, etc., and then the encrypted traffic features are marked using the detection results, such as normal traffic and abnormal traffic, to support the detection and authentication of subsequent encrypted traffic, thereby achieving autonomous learning of unknown encrypted traffic detection. For known encrypted traffic, the stored traffic feature library and its marking results are used for rapid judgment, to achieve rapid detection of encrypted traffic, reduce the time of boundary stack traffic detection, and improve detection efficiency.
[0028] The present invention provides a method for quickly detecting anomalies in encrypted traffic by combining plaintext and ciphertext traffic features. Figure 1 As shown, the specific steps include:
[0029] S1. Feature extraction: The border security stack uses network traffic monitoring probes to collect encrypted traffic and extract encrypted traffic features. As network flows are continuously forwarded, the efficient performance detection algorithm based on the probabilistic structure algorithm can extract the network flow features of encrypted traffic in real time.
[0030] S2, feature matching: by building a feature query based on Bloom filter, set the corresponding detection array for the collected encrypted traffic features, query the encrypted traffic feature library through the detection array, and match and analyze whether the extracted encrypted traffic features can be queried. If they can be queried, it is known traffic and enters step S3; if not, it is regarded as unknown traffic and enters step S4.
[0031] S3. Detection of known traffic anomalies: The encrypted traffic feature library feeds back a tuple, and a judgment is made based on the fed-back tuple. If the marking result in the tuple is no anomaly, that is, the encrypted traffic has passed the security check of the decrypted content, the traffic is allowed to pass directly. If the marking result is abnormal, it has failed the security check of the decrypted content and a blocking operation is implemented.
[0032] S4. Decryption of unknown traffic: For incoming traffic, use the decryption function in the boundary security stack to decrypt the encrypted traffic. For example, use the SSL decryption function to decrypt the SSL encrypted traffic to obtain the plaintext traffic.
[0033] S5. Plaintext traffic content detection: Perform deep content detection on plaintext traffic. The detection process can utilize the orchestration function of the border security stack. Multiple security network elements such as virus detection, spyware detection, and URL detection can be deployed simultaneously to achieve one-time traffic decryption, multiple security network elements can use and process multiple times, and improve the detection efficiency of plaintext traffic. After the detection is completed, the detection results are output. If there are anomalies, that is, the traffic has not passed the content security check, the border security stack will implement blocking operations to effectively intercept the supply of encrypted traffic and information leakage. If there are no anomalies, that is, the traffic passes the content security check, the border security stack will re-encrypt the network traffic to allow the traffic to pass safely, ensuring that the traffic decrypted by the border security stack is still safe when it leaves the border security stack.
[0034] S6, constructing a tuple of features and tags: Based on the encrypted traffic features extracted in step S1 and the plaintext traffic detection results obtained in step S5, construct a tuple <feature, tag>, where the tag represents the detection result. Then, build a Bloom filter for the encrypted traffic features, use the probabilistic structural model to get the storage position of the encrypted traffic features in the encrypted traffic feature library, store and update the detection array of the tuple and Bloom filter to the corresponding storage position in the encrypted traffic feature library, support the detection and authentication of subsequent encrypted traffic, and thus realize autonomous learning of unknown encrypted traffic detection.
[0035] A fast detection system for encrypted traffic anomaly combining plaintext and ciphertext traffic features, comprising: a feature extraction module and a feature matching module, wherein:
[0036] The feature extraction module is implemented as follows:
[0037] In order to ensure the normal operation of key protection targets and their information networks, and prevent malicious network attacks such as DoS attacks and DDoS attacks from causing abnormal network status, the border security stack usually uses mainstream high-end network traffic monitoring probes to conduct multi-dimensional monitoring of the border inbound and outbound traffic of key network systems in real time. For example, the inbound and outbound traffic information of the network border is detected every five minutes. The collected traffic can include the following information (at the i-th moment):
[0038] Table 1 Collected traffic information
[0039]
[0040]
[0041] Using the above real-time network traffic information, we can extract multi-dimensional network traffic behavior characteristics. In terms of time, at the dth day and nth minute, the instantaneous traffic characteristics are expressed as
[0042] y INST (d,n)=[fup (i), f down (i), p up (i), p down (i), f TCP (i), f UDP (i), f OTHER (i), p TCP (i), p UDP (i), p OTHER (i)] T
[0043] The collection time of flow information is i=d×24×60+n, y INST (d, n) is a 10×1 dimensional column vector. Since the network traffic monitoring probe collects encrypted traffic information every five minutes, the value range of i is {0, 5, 10, ..., 24×60=1440}.
[0044] For the encrypted traffic feature vectors collected, a mature probabilistic structure model is used to store and record them, and multiple modulus operations are used to calculate the hash function h z (y INST (d, n))(z=1, 2, ..., Z) obtains the storage location of the encrypted traffic features in the encrypted traffic feature library, thereby realizing the storage of the encrypted traffic features and using the characteristics of the probabilistic storage structure to support fast query of the features. Z is the number of hash functions of the probabilistic structure model.
[0045] The feature matching module is implemented as follows:
[0046] In order to speed up the query speed and reduce the complexity of feature query and matching algorithm, the present invention constructs a Bloom filter for encrypted traffic features, which is used to query and determine whether the encrypted traffic features have passed the detection. Bloom filter is a space-efficient data structure for relational query. It consists of an M-bit detection array with an initial value of 0 and K independent hash functions h k The result range of the hash function is (0, 1, 2, ..., M-1), k = 1, 2, ..., K. For the element x in the data set S, that is, the encrypted traffic feature, calculate h in turn k , k = 1, 2, ..., K, and h k , k = 1, 2, ..., K represents the bit of the Bloom filter set to 1. To query whether an element y belongs to the data set S, check the K positions h where y is located. k, k = 1, 2, ..., whether K is all 1. If so, y belongs to the data set S, otherwise, y does not belong to the data set S. Although Bloom filters have certain false positives due to hash function conflicts, they are often used in data structures in relational queries due to their fast query speed and small space requirements.
[0047] In the present invention, the feature query based on Bloom filter includes three basic operations: initialization, element insertion and element query:
[0048] S201, initialization, first generate a Bloom filter BF of an M-bit (for example, M=100) binary bit detection array, and each bit from BF[0] to BF[M-1] is initialized to 0.
[0049] S202, element insertion, define K hash functions [h1, ..., h K ], calculate the hash value for the inserted element, that is, calculate the hash value of the encrypted traffic feature. Assuming that the B1 element is inserted, then calculate h1(B1), ..., h K (B1), set the corresponding position of the detection array BF, that is, BF[h1(B1)]=BF[h2(B1)]=...=BF[h K (B1)]=1. In the specific implementation, a specific hash function is selected so that its calculation result is within the range of 0-99;
[0050] S203, element query, assuming that the query requires whether the element B1 exists in the feature library, first calculate the K positions corresponding to B1, h1(B1), ..., h K (B1), and then check the K corresponding positions in the detection array BF: BF[h1(B1)], BF[h2(B1)], ..., BF[h K (B1)] are all 1. As long as one of these positions is 0, the encrypted traffic feature is definitely not in the feature library, which means that the network traffic is unknown traffic.
[0051] Embodiment 1:
[0052] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0053] A method for rapid detection of encrypted traffic that combines plaintext and ciphertext traffic features is proposed. By decrypting, detecting and authenticating unknown encrypted traffic, and marking ciphertext traffic features with plaintext traffic detection results, an encrypted traffic feature library is constructed to support the detection and authentication of subsequent encrypted traffic, thereby achieving autonomous learning and efficiency improvement of encrypted traffic detection. For unknown encrypted traffic, the traffic encryption and decryption function integrated in the network edge stack is used to first decrypt and perform deep content detection, including virus detection, spyware detection, URL detection, etc., and then the encrypted traffic features are marked with the detection results, such as normal traffic and abnormal traffic, and a network traffic feature library is constructed by sedimentation and accumulation to support the detection and authentication of subsequent encrypted traffic, thereby achieving autonomous learning of unknown encrypted traffic detection. At the same time, a feature query is constructed using a Bloom filter to improve the speed of feature query. For known encrypted traffic, the stored traffic feature library and its marking results are used for rapid judgment to achieve rapid detection of encrypted traffic, without the need to re-decrypt the same type of encrypted traffic for plaintext detection, thereby reducing the time of edge stack traffic detection and improving detection efficiency.
[0054] A method for quickly detecting anomalies in encrypted traffic by combining plaintext and ciphertext traffic features, specifically comprising the following steps:
[0055] 1) System initialization: Complete the initialization of the Bloom filter. First, generate a Bloom filter BF of an M-bit (for example, M=100) binary bit array, and each bit from BF[0] to BF[M-1] is initialized to 0.
[0056] 2) Feature extraction: The border security stack uses network traffic monitoring probes to collect encrypted traffic. As network traffic is continuously forwarded, an efficient performance detection algorithm based on a probabilistic structure is used to extract network flow features of encrypted traffic in real time.
[0057] In order to ensure the normal operation of key protection targets and their information networks, the border security stack deploys mainstream high-end network traffic monitoring probes to conduct multi-dimensional monitoring and feature collection of the border inbound and outbound traffic of key network systems in real time. For example, the inbound and outbound traffic information of the network border is detected every five minutes. The collected traffic may include the following as shown in Table 1 (at the i-th moment):
[0058] Using the above real-time network traffic information, we can extract multi-dimensional network traffic behavior characteristics. In the time dimension, at the nth minute of the dth day, the instantaneous traffic characteristics can be expressed as
[0059] y INST (d,n)=[f up (i), f down (i), p up (i), p down (i), f TCP (i), fUDP (i), f OTHER (i), p TCP (i), p UDP (i), p OTHER (i)] T
[0060] The collection time of flow information is i=d×24×60+n, y INST (d, n) is a 10×1 dimensional column vector. Since the network traffic monitoring probe collects encrypted traffic information every five minutes, the value range of i is {0, 5, 10, ..., 24×60=1440}.
[0061] 3) Feature matching: By querying the encrypted traffic feature library, the extracted network flow features are matched and analyzed to see if they have passed the detection.
[0062] Assume that the characteristic element y is required INST If (d, n) exists in the feature library, first calculate y INST (d, n) corresponding to the K positions, h1(y INST (d, n)), ..., h K (y INST (d, n)), and then check the k corresponding positions in array BF:
[0063] BF[h1(y INST (d, n))], BF[h2(y INST (d, n))], ..., BF[h K (y INST (d,n))]
[0064] Are they all 1? As long as one of these positions is 0, the network traffic feature is definitely not in the feature library, which means that the network traffic is unknown traffic, and go to step 5). Otherwise, the traffic has passed the relevant detection and is known traffic, and go to step 4).
[0065] 4) Known traffic anomaly detection: The judgment is made based on the binary group fed back by the encrypted traffic feature library query. If the marking result in the binary group is no anomaly, that is, the encrypted traffic has passed the security check of the decrypted content, the traffic is allowed to pass directly.
[0066] 5) Decryption of unknown traffic: For incoming traffic, use the decryption function in the boundary security stack to decrypt the encrypted traffic, for example, use the SSL decryption function to decrypt the SSL encrypted traffic to obtain the plaintext traffic.
[0067] 6) Plaintext traffic content detection: Perform deep content detection on plaintext traffic. The detection process can utilize the orchestration function of the border security stack. Multiple security network elements such as virus detection, spyware detection, and URL detection can be deployed simultaneously to achieve one-time traffic decryption, multiple security network elements can use and process multiple times, and improve the detection efficiency of plaintext traffic. After the detection is completed, the detection results are output. If there are anomalies, that is, the traffic has not passed the content security check, the border security stack will implement blocking operations to effectively intercept the supply of encrypted traffic and information leakage. If there are no anomalies, that is, the traffic passes the content security check, the border security stack will re-encrypt the network traffic to ensure that the traffic decrypted by the border security stack is still safe when it leaves the border security stack.
[0068] 7) Update of encrypted traffic feature library: Based on the encrypted traffic feature y extracted in step 2) INST (d, n) and the plaintext traffic detection results obtained in step 6) to construct a tuple <feature, tag>, and then update it to the encrypted traffic feature library to support the detection and authentication of subsequent encrypted traffic, thereby realizing autonomous learning of unknown encrypted traffic detection. The update process is as follows: using multiple modulus operations hash function h z (y INST (d, n))(z=1, 2, ..., Z) obtains the storage position of the feature data in the encrypted traffic feature library, stores the tuple <feature, tag> in the corresponding position, and sets the corresponding position of the array BF, that is, BF[h1(B1)]=BF[h2(B1)]=...=BF[h K (B1)] = 1. The update is completed.
[0069] The beneficial effects of the present invention are:
[0070] In order to solve the problems of high cost of training samples for encrypted traffic anomaly detection and small amount of advanced threat sample data, the present invention proposes a method for rapid detection of encrypted traffic anomalies by combining plaintext and ciphertext traffic features. The plaintext traffic detection results are used to mark the ciphertext traffic features, and an encrypted traffic feature library is constructed to support the detection and authentication of subsequent encrypted traffic, thereby realizing rapid detection of encrypted traffic and solving the problems of high overhead, poor efficiency and inability to detect new threat traffic in encrypted traffic analysis in the network boundary stack.
[0071] Aiming at the problem that traffic feature query has large space occupation and low query efficiency, the present invention proposes to use Bloom filter to build an efficient query engine. The query engine can calculate the hash value of unknown traffic feature value, and compare and match whether the network traffic feature has been detected and determined, so as to realize the fast matching of traffic feature.
[0072] The detection method of the present invention can achieve more accurate and secure detection and analysis by decrypting unknown encrypted traffic to perform in-depth detection of plaintext content, while realizing autonomous learning of encrypted traffic detection and authentication. At the same time, based on the precipitated and learned network traffic feature data, it can realize rapid detection of encrypted traffic with the same features, and decryption and authentication can be repeated infinitely, reducing the complexity and overhead of the border security stack.
[0073] The detection method of the present invention can be quickly integrated into the existing network boundary security stack. Combined with the function of decryption detection of encrypted traffic in the boundary security stack, the traffic feature library and its query construction method proposed in the present invention can be quickly deployed to the existing boundary security stack, thereby realizing rapid detection of encrypted traffic.
[0074] Compared with the prior art, the present invention has the following advantages:
[0075] Economic efficiency: The present invention fully considers the encrypted traffic decryption detection function in the border security stack, and proposes a method for rapid detection of encrypted traffic anomalies that combines plaintext and ciphertext traffic features. First, it can be quickly integrated into the existing network border security stack without replacing the border security stack system. Second, it uses the results of unknown encrypted traffic decryption authentication to accumulate and build an encrypted traffic feature library to support rapid detection and authentication of subsequent encrypted traffic, solve the problem of high overhead and poor efficiency of encrypted traffic analysis in the network border stack, and has certain economic and commercial value.
[0076] Real-time: The mainstream high-end network traffic monitoring probe of the present invention can monitor and collect the boundary in-and-out traffic information of the network system in real-time and multi-dimensionally, can quickly process high-speed network data, reduce the time consumption of data collection, and can be used for real-time network flow collection.
[0077] High accuracy: The present invention uses the decryption function in the border security stack to decrypt unknown encrypted traffic, and performs deep content detection on the decrypted plaintext, which can detect abnormalities in the traffic with high accuracy. At the same time, for encrypted traffic, the present invention proposes to collect up to 10 types of encrypted traffic information, which can be used to capture the characteristics of encrypted traffic and achieve high accuracy in matching the same type of traffic.
[0078] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features, characterized in that: The method comprises the following steps: S1. Feature extraction: The border security stack uses network traffic monitoring probes to collect encrypted traffic and extract encrypted traffic features; S2, feature matching: by building a feature query based on Bloom filter, set the corresponding detection array for the collected encrypted traffic features, query the encrypted traffic feature library through the detection array, and match and analyze whether the extracted encrypted traffic features can be queried. If they can be queried, it is known traffic and enters step S3; If no query is found, it is regarded as unknown traffic and goes to step S4; S3, known traffic anomaly detection: The encrypted traffic feature library feeds back a binary tuple, and a judgment is made based on the fed-back binary tuple. If the marking result in the binary tuple is no anomaly, that is, the encrypted traffic has passed the security check of the decrypted content, the traffic is allowed to pass directly; if the marking result is abnormal, it has failed the security check of the decrypted content, and a blocking operation is implemented; S4, unknown traffic decryption: For incoming traffic, use the decryption function in the boundary security stack to decrypt the encrypted traffic; S5. Plaintext traffic content detection: Perform deep content detection on plaintext traffic and output the detection results after the detection is completed. If there is an abnormality, that is, the traffic does not pass the content security check, the border security stack will implement a blocking operation; if there is no abnormality, that is, the traffic passes the content security check, the border security stack will re-encrypt the network traffic to allow the traffic to pass safely; S6, constructing a tuple of features and tags: Based on the encrypted traffic features extracted in step S1 and the plaintext traffic detection results obtained in step S5, construct a tuple <feature, tag>, where the tag represents the detection result. Then, build a Bloom filter for the encrypted traffic features, use the probabilistic structural model to get the storage position of the encrypted traffic features in the encrypted traffic feature library, store the tuple and the detection array of the Bloom filter and update it to the corresponding storage position in the encrypted traffic feature library.
2. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as claimed in claim 1 is characterized in that: In S1, a detection algorithm based on a probabilistic structural algorithm is used to extract network flow features of encrypted traffic in real time.
3. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as described in claim 2 is characterized in that: In S1, the border security stack uses network traffic monitoring probes to perform multi-dimensional monitoring of the border inbound and outbound traffic of key network systems in real time, collect traffic information, and extract multi-dimensional network traffic behavior characteristics. At n minutes on the dth day, the instantaneous traffic characteristics are expressed as y INST (d,n)=[f up (i),f down (i),p up (i),p down (i),f TCP (i), f UDP (i),f OTHER (i),p TCP (i),p UDP (i),p OTHER (i)] T The collection time of flow information is i=d×24×60+n, y INST (d,n) is a 10×1 dimensional column vector, f up (i) is the uplink traffic, f down (i) is the downlink traffic, p up (i) is the number of uplink packets, p down (i) is the number of downlink packets, f TCP (i) is the TCP protocol flow at the transport layer, f UDP (i) is the transport layer UDP protocol traffic, f OTHER (i) is the traffic of other protocols in the transport layer, p TCP (i) is the number of TCP protocol packets at the transport layer, p UDP (i) is the number of UDP protocol packets at the transport layer, p OTHER (i) is the number of other protocol packets in the transport layer.
4. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as claimed in claim 3 is characterized in that: The network traffic monitoring probe collects encrypted traffic information every five minutes, and the value range of i is {0,5,10,...,24×60=1440}.
5. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as claimed in claim 3 is characterized in that: In S5, the orchestration function of the border security stack is used to deploy multiple security network elements synchronously to achieve one-time traffic decryption, multiple security network elements multiple times of use and processing, and the security network elements include: virus detection, spyware detection and URL detection.
6. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as claimed in claim 3 is characterized in that: In S6, the encrypted traffic feature obtained by using the probabilistic structure model and the storage location in the encrypted traffic feature library includes: using multiple modulus operations hash function h z (y INST (d,n)), z=1,2,...,Z, and obtain the storage location of the encrypted traffic feature in the encrypted traffic feature library, where Z is the number of hash functions of the probabilistic structural model.
7. The method for rapid detection of encrypted traffic by combining plaintext and ciphertext traffic features as described in any one of claims 3 to 6, characterized in that: The Bloom filter consists of an M-bit detection array with an initial value of 0 and K independent hash functions h k The result range of the hash function is 0, 1, 2, ..., M-1, k = 1, 2, ..., K; for the element x in the data set S, that is, the encrypted traffic feature, calculate h in turn k , k=1,2,...,K, and h k The bit of the Bloom filter represented by is set to 1; to query whether element y belongs to the dataset S, check the K positions h where y is located k Are all 1? If so, y belongs to the data set S, otherwise, y does not belong to the data set S.
8. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as claimed in claim 7, characterized in that: The feature query based on Bloom filter includes three basic operations: initialization, element insertion and element query: S201, initialization, first generate a Bloom filter BF of an M-bit binary bit detection array, each bit from BF[0] to BF[M-1] is initialized to 0; S202, element insertion, define K hash functions [h1,…,h K ], calculate the hash value for the inserted element, that is, calculate the hash value of the encrypted traffic feature. Assuming that the B1 element is inserted, then calculate h1(B1),…,h K (B1), set the corresponding position of the detection array BF, that is, BF[h1(B1)]=BF[h2(B1)]=…=BF[h K (B1)] = 1; S203, element query, assuming that the query needs to know whether element B1 exists in the feature library, first calculate the K positions corresponding to B1, h1(B1),…,h K (B1), and then check the K corresponding positions in the detection array BF: BF[h1(B1)], BF[h2(B1)],…, BF[h K (B1)] are all 1; as long as one of these positions is 0, the encrypted traffic feature is definitely not in the feature library, which means that the network traffic is unknown traffic.
9. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as claimed in claim 8, characterized in that: M=100。 10. The method for rapid detection of encrypted traffic combining plaintext and ciphertext traffic features as claimed in claim 8, characterized in that: In S6, a plurality of modulus operations are used to calculate the hash function h z (y INST (d,n)), z=1,2,...,Z, get the storage position of the feature data in the encrypted traffic feature library, store the tuple <feature, tag> in the corresponding position, and set the corresponding position of the array BF, that is, BF[h1(B1)]=BF[h2(B1)]=…=BF[h K (B1)]=1, the update is completed.
Citation Information
Patent Citations
Method and system for detecting and tracing malicious encrypted network traffic
CN115426137A
Detecting malicious attacks using network behavior and header analysis
US20060098585A1
