A method and system for detecting encrypted traffic threats based on attack chain perspective

Through the encrypted traffic threat detection method based on the attack chain perspective, the encrypted traffic feature vector is extracted and matched with historical attack chains, which solves the problem of insufficient detection capabilities of encrypted traffic by traditional detection methods and achieves effective analysis and threat identification of network encrypted traffic. .

CN118487873BActive Publication Date: 2024-10-08LISHUI POWER SUPPLY COMPANY OF STATE GRID ZHEJIANG ELECTRIC POWER
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202410931122.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-08
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

Traditional network threat detection methods cannot effectively detect malicious content in encrypted traffic, and have insufficient prevention capabilities against new attack methods, leaving dynamic blind spots.

Method used

Adopting an encrypted traffic threat detection method based on the attack chain perspective, by collecting encrypted traffic packets, extracting network identity attributes, encryption attributes, time and length attributes, constructing the first behavior feature vector, performing clustering and threat analysis, and combining historical attack chains Determine whether the session is malicious and implement corresponding alarm and blocking measures.

Benefits of technology

It achieves full life cycle detection coverage of encrypted traffic without decryption, improves the threat detection capability of network encrypted traffic, promptly identifies and intercepts malicious sessions, and reduces the misjudgment rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118487873B_ABST
    Figure CN118487873B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for detecting encrypted traffic threats based on an attack chain perspective, which relates to the field of network security technology, including collecting encrypted traffic, extracting network identity attributes, encryption attributes, time and length attributes of the encrypted traffic, and obtaining a first behavior feature vector of the encrypted traffic; calculating the weight values ​​of each attribute in the first behavior feature vector, clustering the encrypted traffic based on the weight values, and obtaining a session; calculating the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain according to the historical attack chain, and judging whether the session is a malicious session according to the correlation; when a malicious session is detected, executing an alarm action corresponding to its malicious level, and initiating active blocking. By adopting the embodiments of the present invention, it is possible to achieve detection coverage of the entire life cycle of the attack chain without decryption, and effectively analyze and detect threats to network encrypted traffic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to an encrypted traffic threat detection method and system based on an attack chain perspective. Background Art

[0002] The traditional network threat detection method is to collect logs from various security devices and combine them with the problems found by themselves to issue unified alarms and displays. However, the traditional network threat detection method prevents previously discovered attack methods, and the update of threat matching rules lags behind the attack methods, resulting in a large number of dynamic blind spots.

[0003] In addition, network attacks often use encryption protocols to cover up their attack behavior, and the plaintext content cannot be directly observed in encrypted traffic, so it is difficult to determine whether there is tampered malicious content. Traditional network threat detection methods can no longer adapt to current attack methods. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an encrypted traffic threat detection method and system based on the attack chain perspective, which can achieve detection coverage of the entire life cycle of the attack chain without decryption, and effectively analyze and detect threats to network encrypted traffic.

[0005] To solve the above technical problems, an embodiment of the present invention provides an encrypted traffic threat detection method based on an attack chain perspective, including:

[0006] Collecting encrypted traffic, parsing data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extracting time and length attributes from the data packets of the encrypted traffic, and combining the network identity attributes, encryption attributes, time and length attributes to obtain a first behavior feature vector of the encrypted traffic;

[0007] Calculating a weight value of each attribute in the first behavior feature vector, and clustering the encrypted traffic based on the weight value to obtain a session;

[0008] According to the historical attack chain, calculating the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain, and judging whether the session is a malicious session according to the correlation; the historical attack chain is obtained through a threat intelligence platform;

[0009] When a malicious session is detected, the malicious level of the malicious session is determined according to the severity and impact scope of the malicious session, an alarm action corresponding to the malicious level is executed, and active blocking is initiated through bypass to achieve threat detection and interception.

[0010] As an improvement of the above scheme, the encrypted traffic is collected, the data packet of the encrypted traffic is parsed to obtain a network identity attribute and an encryption attribute, the time and length attributes are extracted from the data packet of the encrypted traffic, and the first behavior feature vector of the encrypted traffic is obtained by combining the network identity attribute, the encryption attribute, the time and length attributes, including:

[0011] Collecting encrypted traffic and obtaining data packets of the encrypted traffic;

[0012] Parsing the data packet to obtain request attributes, certificate attributes, fingerprint attributes, and packet timing attributes of the encrypted traffic as network identity attributes;

[0013] According to the encryption protocol and encryption algorithm distribution, the quantity and proportion attributes of the data packets under different encryption protocols and encryption algorithms are obtained as encryption attributes;

[0014] Extracting the time and length attributes of the data packet; wherein the time and length attributes include a length attribute and a time attribute, and the time attribute includes a flow duration and a packet interval time;

[0015] The network identity attribute, encryption attribute, time and length attribute are converted into vector representation and normalized to obtain the feature vector of the first line.

[0016] As an improvement to the above scheme, the network identity attribute, encryption attribute, time and length attribute are converted into vector representation and normalized to obtain the first line feature vector, including:

[0017] The dimensions of the vector representation of the network identity attribute are merged and normalized to obtain a network identity attribute vector;

[0018] Using a word embedding method, the length attribute and the packet interval time are converted into a multi-dimensional vector representation of a fixed length, the flow duration is converted into a one-dimensional vector representation, and the dimensions of the vector representations of the time and length attributes are merged and normalized to obtain a time and length attribute vector;

[0019] The number and proportion of quantity packets under different encryption protocols and the number and proportion of quantity packets under different encryption algorithms are respectively converted into one-dimensional vector representations, and the dimensions of the vector representations of the encryption attributes are merged and normalized to obtain an encryption attribute vector;

[0020] The network identity attribute vector, the time and length attribute vectors and the encryption attribute vector are combined to obtain a first behavior feature vector.

[0021] As an improvement of the above solution, calculating the weight value of each attribute in the first behavior feature vector, clustering the encrypted traffic based on the weight value, and obtaining a session includes:

[0022] Calculate the correlation between the network identity attribute, the encryption attribute, the time and the length attribute in the first behavior feature vector to obtain an attribute correlation matrix;

[0023] Determine the weight of each attribute in the first behavior feature vector from the attribute association matrix, and weight the first behavior feature vector using a weighted average method;

[0024] The encrypted traffic is clustered based on the weighted first behavior feature vector to obtain a session.

[0025] As an improvement of the above solution, the step of calculating the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain according to the historical attack chain, and judging whether the session is a malicious session according to the correlation includes:

[0026] Obtain the second behavior feature vector of the encrypted traffic in the historical attack chain;

[0027] Calculating a correlation between the first behavior feature vector and the second behavior feature vector, and obtaining a malicious probability score of the encrypted traffic in the session according to the correlation calculation;

[0028] Taking the encrypted traffic with a malicious probability score greater than N as the initial malicious traffic;

[0029] Calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector;

[0030] Analyze the first behavior feature vector of the initial malicious traffic, and when abnormal fluctuations and mutations occur, obtain the abnormal degree of the initial malicious traffic;

[0031] Determining whether the initial malicious traffic is confirmed malicious traffic based on the association strength and the abnormality degree;

[0032] When malicious traffic is detected, the session is considered to be a malicious session.

[0033] As an improvement of the above solution, the calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector includes:

[0034] Extracting frequent item sets in the initial malicious traffic according to the first behavior feature vector;

[0035] Associating the frequent item set with the malicious behavior of the initial malicious traffic to obtain an association rule;

[0036] According to the association rule, the association strength between the initial malicious traffic is calculated.

[0037] As an improvement of the above solution, when a malicious session is detected, the malicious level of the malicious session is determined according to the severity and impact scope of the malicious session, an alarm action corresponding to the malicious level is executed, and active blocking is initiated through a bypass to achieve threat detection and interception, including:

[0038] When a malicious session is detected, a priori probability of the malicious session is set, a posterior probability of the malicious session being established is calculated based on the priori probability, and the posterior probability is used as the severity of the malicious session;

[0039] According to the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain, a historical attack chain most relevant to the malicious session is obtained, and a network impact range of the most relevant historical attack chain is used as an impact range of the malicious session;

[0040] Combining the severity and the impact scope, obtaining a malicious level of the malicious session;

[0041] Execute the warning action corresponding to the malicious level;

[0042] Active blocking is initiated through bypass to achieve threat detection and interception. As an improvement of the above solution, the malicious level includes high risk level, medium risk level and low risk level;

[0043] Then, the executing the alarm action corresponding to the malicious level includes:

[0044] When the malicious level is a low-risk level, an alarm message is issued, and the encrypted traffic of the malicious session is directly discarded;

[0045] When the malicious level is a medium risk level or a high risk level, an alarm message is issued, and the encrypted traffic of the malicious session is redirected to a honeypot network;

[0046] The warning message includes the malicious level, source IP, destination IP, protocol type and first behavior feature vector of the malicious session.

[0047] As an improvement of the above solution, the active blocking initiated through bypass to achieve threat detection and interception includes:

[0048] Obtain the source IP and destination IP of the malicious session;

[0049] According to the source IP and the destination IP, a TCPReset packet is actively sent to both ends of the communication through a bypass, an active blocking behavior is initiated, the attack behavior is cut off, and threat detection and interception are achieved.

[0050] As an improvement of the above solution, the encrypted traffic threat detection method based on the attack chain perspective further includes:

[0051] Associating the malicious session with its context session to build a complete attack chain;

[0052] According to the second behavior feature vector of the encrypted traffic in the complete attack chain, the encrypted traffic is clustered to obtain a historical attack chain and uploaded to the threat intelligence platform.

[0053] As an improvement of the above solution, associating the malicious session with its context session to construct a complete attack chain includes:

[0054] Using session tracking technology to obtain metadata information of the malicious session; the metadata information includes session ID, source IP address, destination IP address, port number, protocol type and timestamp;

[0055] According to the metadata information, a time window-based, graph-based or rule-based association analysis algorithm is used to associate the malicious session with its context session to form a complete attack chain.

[0056] As an improvement of the above solution, clustering the encrypted traffic according to the second behavior feature vector of the encrypted traffic in the complete attack chain to obtain a historical attack chain and uploading it to the threat intelligence platform includes:

[0057] Extracting a second behavior feature vector of the encrypted traffic of each session node in the complete attack chain;

[0058] Taking session nodes as units, a clustering algorithm is used to cluster the encrypted traffic to obtain a historical attack chain;

[0059] Upload the historical attack chain to the threat intelligence platform.

[0060] The embodiment of the present invention also provides an encrypted traffic threat detection system based on the attack chain perspective, including:

[0061] A first behavior feature vector acquisition module, used to collect encrypted traffic, parse the data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extract time attributes and length attributes from the data packets of the encrypted traffic, and combine the network identity attributes, encryption attributes, time attributes and length attributes to obtain a first behavior feature vector of the encrypted traffic;

[0062] A session identification module, used to calculate the weight value of each attribute in the first behavior feature vector, and cluster the encrypted traffic based on the weight value to obtain a session;

[0063] a malicious session identification module, configured to calculate the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain according to a historical attack chain, and determine whether the session is a malicious session according to the correlation; the historical attack chain is obtained through a threat intelligence platform;

[0064] The threat processing module is used to determine the malicious level of the malicious session according to the severity and impact scope of the malicious session when a malicious session is detected, execute the alarm action corresponding to the malicious level, and initiate active blocking through bypass to achieve threat detection and interception.

[0065] As an improvement of the above solution, the first behavior feature vector acquisition module is specifically used to:

[0066] Collecting encrypted traffic and obtaining data packets of the encrypted traffic;

[0067] Parsing the data packet to obtain request attributes, certificate attributes, fingerprint attributes, and packet timing attributes of the encrypted traffic as network identity attributes;

[0068] According to the encryption protocol and encryption algorithm distribution, the quantity and proportion attributes of the data packets under different encryption protocols and encryption algorithms are obtained as encryption attributes;

[0069] Extracting the length attribute and time attribute of the data packet; the time attribute includes flow duration and packet interval time;

[0070] The network identity attribute, encryption attribute, length attribute and time attribute are converted into vector representation and normalized to obtain the first line as the feature vector.

[0071] As an improvement of the above solution, the malicious session identification module is specifically used to:

[0072] Obtain the second behavior feature vector of the encrypted traffic in the historical attack chain;

[0073] Calculating a correlation between the first behavior feature vector and the second behavior feature vector, and obtaining a malicious probability score of the encrypted traffic in the session according to the correlation calculation;

[0074] Taking the encrypted traffic with a malicious probability score greater than N as the initial malicious traffic;

[0075] Calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector;

[0076] Analyze the first behavior feature vector of the initial malicious traffic, and when abnormal fluctuations and mutations occur, obtain the abnormal degree of the initial malicious traffic;

[0077] Determining whether the initial malicious traffic is confirmed malicious traffic based on the association strength and the abnormality degree;

[0078] When malicious traffic is detected, the session is considered to be a malicious session.

[0079] As an improvement of the above solution, the encrypted traffic threat detection system based on the attack chain perspective further includes:

[0080] A complete attack chain building module, used to associate the malicious session with its context session to build a complete attack chain;

[0081] The intelligence sharing module is used to cluster the encrypted traffic according to the second behavior feature vector of the encrypted traffic in the complete attack chain to obtain a historical attack chain and upload it to the threat intelligence platform.

[0082] Compared with the prior art, the present invention discloses an encrypted traffic threat detection method and system based on the attack chain perspective, which collects encrypted traffic, parses the data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extracts time and length attributes from the data packets of the encrypted traffic, and combines the network identity attributes, encryption attributes, time and length attributes to obtain the first behavior feature vector of the encrypted traffic; calculates the weight value of each attribute in the first behavior feature vector, clusters the encrypted traffic based on the weight value, and obtains a session; calculates the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain according to the historical attack chain, and determines whether the session is a malicious session according to the correlation; the historical attack chain is obtained through a threat intelligence platform; when a malicious session is detected, the malicious level of the malicious session is determined according to the severity and impact range of the malicious session, the alarm action corresponding to the malicious level is executed, and active blocking is initiated through bypass to achieve threat detection and interception. By adopting the embodiment of the present invention, the detection coverage of the entire life cycle of the attack chain can be achieved without decryption, and the network encrypted traffic can be effectively analyzed and the threat detection can be effectively performed. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] Figure 1 It is a schematic diagram of the steps of a method for detecting encrypted traffic threats based on an attack chain perspective provided by an embodiment of the present invention;

[0084] Figure 2 It is a schematic diagram of the steps of a method for obtaining a characteristic vector of a first behavior of encrypted traffic provided by an embodiment of the present invention;

[0085] Figure 3 It is a schematic flow chart of the steps of a method for determining whether the session is a malicious session provided by an embodiment of the present invention;

[0086] Figure 4 It is a schematic diagram of the steps of a threat handling method provided by an embodiment of the present invention;

[0087] Figure 5 It is a module diagram of an encrypted traffic threat detection system based on an attack chain perspective provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0088] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0089] In the description of the specification and claims, it is to be understood that the terms first, second, etc. in the specification and claims are only used for the purpose of describing the same technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated, nor necessarily describing the order or time sequence. The terms are interchangeable where appropriate. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0090] See also Figure 1 , an embodiment of the present invention provides a schematic flow chart of the steps of an encrypted traffic threat detection method based on an attack chain perspective. In this embodiment, the encrypted traffic threat detection method based on an attack chain perspective is specifically performed through steps S1 to S4:

[0091] S1. Collect encrypted traffic, parse the data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extract time and length attributes from the data packets of the encrypted traffic, and obtain a first behavior feature vector of the encrypted traffic by combining the network identity attributes, encryption attributes, time and length attributes.

[0092] The network identity attribute is used to indicate whether the identity information of the sender of the encrypted traffic is authentic and valid; the encryption attribute is used to indicate the encryption protocol and encryption algorithm used by the encrypted traffic, so that the behavior characteristics of the encrypted traffic can be analyzed without decryption; the time and length attributes are used to indicate the characteristics of the data packet itself, such as the size of the data packet and the time interval between sending. In the embodiment of the present invention, by combining the network identity attribute, encryption attribute, time and length attribute, the encrypted traffic can be fully extracted, thereby realizing threat detection from multiple dimensions.

[0093] S2. Calculate the weight value of each attribute in the first behavior feature vector, and cluster the encrypted traffic based on the weight value to obtain a session.

[0094] It should be noted that the sender and receiver of the encrypted traffic can be obtained from the first behavior feature vector, which is specifically determined by network identity attributes, generally by IP to identify whether it is the same sender or receiver. In the process of obtaining the session, in addition to clustering the encrypted traffic with similar first behavior feature vectors, it should also be noted that the sender and receiver in the same session should be consistent.

[0095] S3. According to the historical attack chain, calculate the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain, and determine whether the session is a malicious session according to the correlation; the historical attack chain is obtained through a threat intelligence platform.

[0096] It should be noted that the Threat Intelligence Platform (TIP) is a local or cloud deployment platform provided for enterprise users, which can realize intelligence landing and facilitate users to efficiently use intelligence to discover threats. Enterprises can conveniently use threat intelligence in security construction to enhance their own detection, response and prevention capabilities, and achieve accurate, comprehensive and timely threat discovery; quickly characterize and analyze events, connect to users' local security devices to achieve linkage management, and prevent attacks in advance. Deploying a threat intelligence platform is a core link in active defense, and it is also the only way for enterprises to improve their own security operations. In an embodiment of the present invention, the threat intelligence platform can gather local intelligence and external shared intelligence, perform correlation analysis on local intelligence and external shared intelligence, extract common features and related clues, and discover more potential threats.

[0097] It should also be noted that the method for generating the second behavior feature vector is consistent with the method for generating the first behavior feature vector. Therefore, by calculating the similarity between the first behavior feature vector and the second behavior feature vector, the correlation between the characteristics of the current detection session and the historical attack chain can be obtained. If the correlation is too high, there is reason to suspect that the current detection session contains malicious behavior.

[0098] In some embodiments, considering that different attack stages in an attack chain may have different behavioral characteristics, the encrypted traffic in the historical attack chain is also clustered, and the second behavioral feature vector is the behavioral feature vector of each attack stage in the historical attack chain, that is, the first behavioral feature vector of the session is correlated with the second behavioral feature vector of each attack stage in the historical attack chain.

[0099] S4. When a malicious session is detected, the malicious level of the malicious session is determined according to the severity and impact scope of the malicious session, an alarm action corresponding to the malicious level is executed, and active blocking is initiated through bypass to achieve threat detection and interception.

[0100] In some embodiments, TCPReset packets are sent to both ends of the communication via a bypass to achieve active blocking of encrypted traffic, and encrypted traffic can be further captured before active blocking for in-depth analysis. In the embodiments of the present invention, security management personnel can be notified in a timely manner for analysis and processing, and attack behaviors can be cut off in a timely manner to prevent the network from being further attacked and causing serious consequences.

[0101] In the above scheme, by extracting the first behavior feature vector of encrypted traffic from multiple dimensions and clustering it to obtain sessions, and then matching it with historical attack chains, malicious sessions can be promptly alerted and actively blocked. This can achieve detection coverage of the entire life cycle of the attack chain without decryption, and effectively analyze and detect threats to network encrypted traffic.

[0102] See also Figure 2 In a preferred embodiment, step S1, collecting encrypted traffic, parsing the data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extracting time and length attributes from the traffic packets of the encrypted traffic, combining the network identity attributes, encryption attributes, time and length attributes, and obtaining the first behavior feature vector of the encrypted traffic, is specifically performed through steps S11 to S15:

[0103] S11, collecting encrypted traffic and obtaining data packets of the encrypted traffic;

[0104] S12, parsing the data packet to obtain request attributes, certificate attributes, fingerprint attributes and packet timing attributes of the encrypted traffic as network identity attributes;

[0105] S13. According to the encryption protocol and encryption algorithm distribution, obtain the quantity and proportion attributes of the data packets under different encryption protocols and encryption algorithms as encryption attributes;

[0106] S14, extracting the time and length attributes of the data packet; wherein the time and length attributes include a length attribute and a time attribute, and the time attribute includes a flow duration and a packet interval;

[0107] S15. Convert the network identity attribute, encryption attribute, time and length attribute into vector representation, and perform normalization processing to obtain a first line of feature vectors.

[0108] In some embodiments, request attributes are obtained by analyzing HTTP request information, and the request attributes include IP address, port number, request method and request header. Certificate attributes are obtained by analyzing ClientHello and SeverHello messages in the SSL / TLS handshake process, and the certificate attributes include certificate length, certificate validity period and certificate issuing authority. According to the characteristic rules of known operating systems, browsers and applications, fingerprint attributes of encrypted traffic are obtained by parsing. By analyzing the order of data packets, the timing pattern and dependency of encrypted traffic are captured, and the packet timing attributes of the encrypted traffic are obtained.

[0109] In some embodiments, the encryption attributes are obtained by counting the number and proportion of data packets of different encryption protocols (such as SSL, TLS, and SSH, etc.) and the number and proportion of data packets of different encryption algorithms (such as RAS, DES, and AES, etc.) in the encrypted traffic.

[0110] In some embodiments, the mean, variance, maximum or minimum value of the length of data packets in the encrypted traffic is used as a length attribute; the mean, variance, maximum or minimum value of the packet time interval is used as one of the time attributes.

[0111] Further, preferably, step S15, converting the network identity attribute, encryption attribute, time and length attribute into vector representation, and performing normalization processing to obtain the first behavior feature vector, specifically includes:

[0112] The dimensions of the vector representation of the network identity attribute are merged and normalized to obtain a network identity attribute vector;

[0113] Using a word embedding method, the length attribute and the packet interval time are converted into a multi-dimensional vector representation of a fixed length, the flow duration is converted into a one-dimensional vector representation, and the dimensions of the vector representations of the time and length attributes are merged and normalized to obtain a time and length attribute vector;

[0114] The number and proportion of quantity packets under different encryption protocols and the number and proportion of quantity packets under different encryption algorithms are respectively converted into one-dimensional vector representations, and the dimensions of the vector representations of the encryption attributes are merged and normalized to obtain an encryption attribute vector;

[0115] The network identity attribute vector, the time and length attribute vectors and the encryption attribute vector are combined to obtain a first behavior feature vector.

[0116] In some embodiments, the dimensionality of the vector representation of the network identity attributes is fused and normalized by respectively establishing vectors for the request attributes, certificate attributes, fingerprint attributes, and packet timing attributes in the network identity attributes, converting the request attributes, certificate attributes, and fingerprint attributes into one-dimensional vector representations, and converting the packet timing attributes into an n-dimensional vector representation according to the window size for collecting encrypted traffic; and then fusing and normalizing the vector representations to obtain a network identity attribute vector.

[0117] In some embodiments, the length attribute is converted into a 128-dimensional vector representation, the packet interval is converted into a 64-dimensional vector representation, and the flow duration is converted into a 1-dimensional vector representation, and the fusion is performed to obtain a 193-dimensional vector representation. Normalize the value range of each dimension to the interval [0,1] to obtain the time and length attribute vectors; is the normalized vector representation of the current encrypted traffic, z is the 193-dimensional vector representation of the current encrypted traffic, min is the 193-dimensional vector representation of the minimum encrypted traffic, and max is the 193-dimensional vector representation of the maximum encrypted traffic.

[0118] In a preferred embodiment, step S2, calculating the weight value of each attribute in the first behavior feature vector, and clustering the encrypted traffic based on the weight value to obtain a session, includes:

[0119] Calculate the correlation between the network identity attribute, the encryption attribute, the time and the length attribute in the first behavior feature vector to obtain an attribute correlation matrix;

[0120] Determine the weight of each attribute in the first behavior feature vector from the attribute association matrix, and weight the first behavior feature vector using a weighted average method;

[0121] The encrypted traffic is clustered based on the weighted first behavior feature vector to obtain a session.

[0122] Exemplarily, when calculating the correlation of time and length attributes, the minimum support and minimum confidence can be set by the association rule mining method, such as setting the minimum support to 0.2 and the minimum confidence to 0.8, to obtain the association rule of "the average packet length is greater than 1000 bytes -> the flow duration is greater than 10s", and then calculate the correlation between the length attribute and the flow duration in the time and length attributes. If the correlation between the mean packet length and the flow duration is calculated to be 0.8, 0.8 is used as the weight of the time and length attributes. Naturally, in some cases, the correlation between the mean packet interval time and the flow duration and the correlation between the mean packet length and the mean packet interval time can also be obtained to adjust the weights of the time and length attributes. Based on the same principle, the weights of other attributes can be obtained based on this method to achieve weighting of the first behavior feature vector.

[0123] For example, after obtaining the weighted first behavior feature vector, k first behavior feature vectors are randomly selected as initial clustering centers. , the other first line features are { }, and then through , calculate the distance between the first behavior feature vector and the initial cluster center; by calculate The cluster label of Will After k clusters are obtained, Update the value of the cluster center and continue to iterate the clustering until the value of the cluster center no longer changes. As a session.

[0124] The weighted first behavior feature vector has a deeper expression of the attributes with higher correlation within it, and can match the attack chain based on the highly correlated attributes, so as to obtain accurate malicious session identification results.

[0125] See also Figure 3 In a preferred embodiment, step S3, according to the historical attack chain, calculates the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain, and determines whether the session is a malicious session according to the correlation, which is specifically performed through steps S31 to S37:

[0126] S31, obtaining a second behavior feature vector of encrypted traffic in a historical attack chain;

[0127] S32, calculating the correlation between the first behavior feature vector and the second behavior feature vector, and obtaining a malicious probability score of the encrypted traffic in the session according to the correlation calculation;

[0128] S33, taking the encrypted traffic with a malicious probability score greater than N as the initial malicious traffic;

[0129] S34. Calculate the correlation strength between the initial malicious traffic according to the first behavior feature vector;

[0130] S35, analyzing the first behavior feature vector of the initial malicious traffic, and when abnormal fluctuations and mutations occur, obtaining the abnormality degree of the initial malicious traffic;

[0131] S36, combining the association strength and the abnormality degree, determining whether the initial malicious traffic is confirmed malicious traffic;

[0132] S37: When malicious traffic is detected, the session is considered to be a malicious session.

[0133] It should be noted that both the first behavior feature vector and the second behavior feature vector have a deeper representation of the attributes with high internal correlation, and the second behavior feature vector is obtained based on the overall historical attack chain. By calculating the correlation between the first behavior feature vector and the second behavior feature vector, not only can we compare whether the attributes are similar, but we can also compare whether the importance of the attributes of the encrypted traffic in the session is similar.

[0134] It should also be noted that the value of N can be a fixed value obtained based on the historical attack chain analysis process, or it can be dynamically set during the calculation process. For example, the mean of the malicious probability score calculated is 0.6 and the standard deviation is 0.2. The malicious probability threshold is dynamically set to 0.8, and the encrypted traffic with a malicious probability score higher than 0.8 is determined as initial malicious traffic, and the encrypted traffic with a malicious probability score not higher than 0.8 is determined as normal traffic.

[0135] In the above scheme, by calculating the correlation between the first behavior feature vector and the second behavior feature vector, the correlation between the encrypted traffic and the historical attack chain can be obtained. Combined with the correlation strength and abnormality degree between the initial malicious traffic, it is possible to judge from multiple dimensions whether the initial malicious traffic is confirmed malicious traffic, thereby reducing the possibility of misjudgment.

[0136] Further, preferably, the calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector includes:

[0137] Extracting frequent item sets in the initial malicious traffic according to the first behavior feature vector;

[0138] Associating the frequent item set with the malicious behavior of the initial malicious traffic to obtain an association rule;

[0139] According to the association rule, the association strength between the initial malicious traffic is calculated.

[0140] Exemplarily, according to the first behavior feature vector, the frequent item set extracted from the initial malicious traffic is "domain name A&&certificate B", and its malicious behavior is "malicious behavior C", then the association rule of "domain name A&&certificate B->malicious behavior C" is constructed, and the support degree of the association rule is set to 0.2, the confidence degree is 0.8, and the lift degree is 3.0; then according to the association rule, the correlation strength between the initial malicious traffic is calculated.

[0141] In some embodiments, the prior probability of malicious behavior can be set based on the association rules, and the posterior probability can be calculated. When the posterior probability is greater than a preset decision threshold, the authenticity of the initial malicious traffic is further verified.

[0142] Furthermore, in some embodiments, after determining a malicious session, the malicious session may be classified into different levels in combination with the value of the posterior probability.

[0143] See also Figure 4 In a preferred embodiment, step S4, when a malicious session is detected, the malicious level of the malicious session is determined according to the severity and impact scope of the malicious session, an alarm action corresponding to the malicious level is executed, and active blocking is initiated through bypass to achieve threat detection and interception, which is specifically performed through steps S41 to SS45:

[0144] S41. When a malicious session is detected, a priori probability of the malicious session is set, a posterior probability of the malicious session being established is calculated based on the priori probability, and the posterior probability is used as the severity of the malicious session.

[0145] Exemplarily, in a specific embodiment, the prior probability of the malicious session is set to 0.3, and the posterior probability is calculated to be 0.85. The preset preliminary classification rule is to preliminarily classify malicious sessions with a posterior probability greater than 0.9 into a high-risk level, to preliminarily classify malicious sessions with a posterior probability greater than 0.7 and not greater than 0.9 into a medium-risk level, and to preliminarily classify malicious sessions with a posterior probability not greater than 0.7 into a low-risk level. Therefore, the malicious session is preliminarily classified into a medium-risk level, and the final malicious level is further determined in combination with its impact range.

[0146] S42. Obtain a historical attack chain most relevant to the malicious session based on the correlation between the first behavior feature vector and a second behavior feature vector of encrypted traffic in the historical attack chain, and obtain an influence scope of the malicious session based on an influence scope of the most relevant historical attack chain.

[0147] In some embodiments, if the correlation is greater than a certain threshold, such as 0.9, the influence range of the historical attack chain can be directly used as the influence range of the malicious session; otherwise, the influence range is weighted according to the correlation and used as the influence range of the malicious session.

[0148] In other embodiments, the malicious session is redirected to a honeypot network, and the impact scope of the malicious session is determined according to the attacked nodes of the honeypot network.

[0149] S43: Obtain the maliciousness level of the malicious session by combining the severity and the impact scope.

[0150] S44: Execute an alarm action corresponding to the malicious level.

[0151] Further, preferably, the malicious level includes a high risk level, a medium risk level and a low risk level;

[0152] Then, step S44, executing the alarm action corresponding to the malicious level, specifically includes:

[0153] When the malicious level is a low-risk level, an alarm message is issued, and the encrypted traffic of the malicious session is directly discarded;

[0154] When the malicious level is a medium risk level or a high risk level, an alarm message is issued, and the encrypted traffic of the malicious session is redirected to a honeypot network;

[0155] The warning message includes the malicious level, source IP, destination IP, protocol type and first behavior feature vector of the malicious session.

[0156] For example, malicious sessions at a high risk level are immediately notified to relevant personnel for emergency handling via email, text message, phone call, etc., malicious sessions at a medium risk level are notified to relevant personnel via email and text message to handle within 2 hours, and malicious sessions at a low risk level are only notified to relevant personnel via email for attention.

[0157] Honeypot networks can deceive attackers by placing some bait hosts, network services or information to induce attackers to attack them. In this way, the attack behavior can be captured and analyzed, the tools and methods used by the attackers can be understood, and the attack intentions and motives can be inferred. This allows defenders to clearly understand the security threats they face and enhance the security protection capabilities of the actual system through technical and management means.

[0158] S45. Active blocking is initiated through bypass to achieve threat detection and interception.

[0159] Further, in some embodiments, step S45 is performed by the following steps:

[0160] Obtain the source IP and destination IP of the malicious session;

[0161] According to the source IP and the destination IP, a TCPReset packet is actively sent to both ends of the communication through a bypass, an active blocking behavior is initiated, the attack behavior is cut off, and threat detection and interception are achieved.

[0162] In the above scheme, active response blocking through bypass can not only cut off the attacker's attack behavior in time, but also will not affect the Internet access speed.

[0163] Based on the above embodiment of the present invention, the encrypted traffic threat detection method based on the attack chain perspective further includes steps S5 to S6:

[0164] S5. Associate the malicious session with its context session to build a complete attack chain.

[0165] Preferably, associating the malicious session with its context session to construct a complete attack chain includes:

[0166] Using session tracking technology to obtain metadata information of the malicious session; the metadata information includes session ID, source IP address, destination IP address, port number, protocol type and timestamp;

[0167] According to the metadata information, a time window-based, graph-based or rule-based association analysis algorithm is used to associate the malicious session with its context session to form a complete attack chain.

[0168] In some embodiments, a malicious session is associated with its context session through a time window-based association analysis method, with the timestamp of the malicious session as the center, a certain time range before and after is set as the time window, and other sessions within the time window are counted. Based on the time interval between sessions, protocol type and other features, their correlation scores with the malicious session are calculated, and the top N sessions with the highest scores are selected as relevant context sessions.

[0169] In other embodiments, a malicious session is associated with its context session through a graph-based association analysis method, all sessions are taken as nodes of the graph, the correlations between sessions are taken as edges of the graph, a session association graph is constructed, and a graph traversal algorithm, such as depth-first search, breadth-first search, etc., is used to start from the malicious session node and search for other nodes directly or indirectly connected to it, and generate a subgraph of related sessions as the context session of the malicious session. A rule-based association analysis algorithm predefines a series of association rules according to the attack mode, such as "sessions with the same source IP address", "sessions with a time interval of less than 5 minutes", "sessions with the same destination port", etc. For each malicious session, all session metadata records are traversed to check whether the association rules are met. If so, the corresponding session is added to the relevant context session set.

[0170] S6. According to the second behavior feature vector of the encrypted traffic in the complete attack chain, cluster the encrypted traffic to obtain a historical attack chain and upload it to the threat intelligence platform.

[0171] Preferably, clustering the encrypted traffic according to the second behavior feature vector of the encrypted traffic in the complete attack chain to obtain a historical attack chain and uploading it to a threat intelligence platform includes:

[0172] Extracting a second behavior feature vector of the encrypted traffic of each session node in the complete attack chain;

[0173] Taking session nodes as units, a clustering algorithm is used to cluster the encrypted traffic to obtain a historical attack chain;

[0174] Upload the historical attack chain to the threat intelligence platform.

[0175] In some embodiments, a density-based clustering method is used, and the feature vector of each session node is used as a data point. The Euclidean distance between the data points is calculated, and the distance threshold and density threshold are set to aggregate the data points whose distance is less than the distance threshold and whose density is greater than the density threshold into a cluster, corresponding to an attack stage. Furthermore, after obtaining the cluster, the encrypted traffic in the cluster is analyzed for commonalities to obtain the communication mode of each cluster for malicious behavior analysis. Exemplarily, the communication mode of cluster 1 is "low frequency, small packet, long time, strong encryption", and the communication mode of cluster 2 is "high frequency, large packet, short time, weak encryption".

[0176] In other embodiments, a hierarchical clustering method is used to construct a feature tree (CFTree) using the feature vector of each session node as a data point. The height of the tree and the cluster radius of the leaf nodes are controlled by adjusting the branching factor and threshold, and hierarchical clustering is performed from bottom to top to generate attack stages of different granularities.

[0177] In some other embodiments, a model-based clustering method is used, assuming that the attack stage obeys a Gaussian mixture distribution, and the parameters of the Gaussian mixture model, including the mean, variance, and weight of each Gaussian component, are estimated through the maximum expectation algorithm (EM), and each session node is divided into the Gaussian component with the highest probability to generate the corresponding attack stage.

[0178] It should be noted that there may be multiple stages in the historical attack chain, and not all encrypted traffic in each stage contains malicious behavior. In the above scheme, the historical attack chain is obtained by clustering the encrypted traffic, which can obtain the behavioral feature vectors of each stage of the historical attack chain, so as to better cover the entire life cycle of the historical attack chain and effectively prevent and detect malicious behavior.

[0179] An encrypted traffic threat detection method based on an attack chain perspective provided by an embodiment of the present invention extracts the first behavior feature vector of the encrypted traffic from multiple dimensions, clusters the sessions, and then matches them with historical attack chains, so as to promptly alert and actively block malicious sessions. It is possible to achieve detection coverage of the entire life cycle of the attack chain without decryption, and effectively analyze and detect threats to network encrypted traffic.

[0180] See also Figure 5 The embodiment of the present invention provides an encrypted traffic threat detection system based on the attack chain perspective, including a first behavior feature vector acquisition module 11, a session identification module 12, a malicious session determination module 13 and a threat processing module 14, wherein:

[0181] A first behavior feature vector acquisition module 11 is used to collect encrypted traffic, parse the data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extract time attributes and length attributes from the data packets of the encrypted traffic, and combine the network identity attributes, encryption attributes, time attributes and length attributes to obtain a first behavior feature vector of the encrypted traffic;

[0182] A session identification module 12, configured to calculate a weight value of each attribute in the first behavior feature vector, and cluster the encrypted traffic based on the weight value to obtain a session;

[0183] A malicious session identification module 13 is used to calculate the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain according to the historical attack chain, and determine whether the session is a malicious session according to the correlation; the historical attack chain is obtained through a threat intelligence platform;

[0184] The threat processing module 14 is used to determine the malicious level of the malicious session according to the severity and impact scope of the malicious session when a malicious session is detected, execute the alarm action corresponding to the malicious level, and initiate active blocking through bypass to achieve threat detection and interception.

[0185] As a preferred implementation, the first behavior feature vector acquisition module 11 is specifically used to:

[0186] Collecting encrypted traffic and obtaining data packets of the encrypted traffic;

[0187] Parsing the data packet to obtain request attributes, certificate attributes, fingerprint attributes, and packet timing attributes of the encrypted traffic as network identity attributes;

[0188] According to the encryption protocol and encryption algorithm distribution, the quantity and proportion attributes of the data packets under different encryption protocols and encryption algorithms are obtained as encryption attributes;

[0189] Extracting the time and length attributes of the data packet; wherein the time and length attributes include a length attribute and a time attribute, and the time attribute includes a flow duration and a packet interval time;

[0190] The network identity attribute, encryption attribute, time and length attribute are converted into vector representation and normalized to obtain the feature vector of the first line.

[0191] Furthermore, the network identity attribute, encryption attribute, time and length attribute are converted into vector representation, and normalized to obtain a first behavior feature vector, including:

[0192] The dimensions of the vector representation of the network identity attribute are merged and normalized to obtain a network identity attribute vector;

[0193] Using a word embedding method, the length attribute and the packet interval time are converted into a multi-dimensional vector representation of a fixed length, the flow duration is converted into a one-dimensional vector representation, and the dimensions of the vector representations of the time and length attributes are merged and normalized to obtain a time and length attribute vector;

[0194] The number and proportion of quantity packets under different encryption protocols and the number and proportion of quantity packets under different encryption algorithms are respectively converted into one-dimensional vector representations, and the dimensions of the vector representations of the encryption attributes are merged and normalized to obtain an encryption attribute vector;

[0195] The network identity attribute vector, the time and length attribute vectors and the encryption attribute vector are combined to obtain a first behavior feature vector.

[0196] As a preferred implementation, the session identification module 12 is specifically used for:

[0197] Calculate the correlation between the network identity attribute, the encryption attribute, the time and the length attribute in the first behavior feature vector to obtain an attribute correlation matrix;

[0198] Determine the weight of each attribute in the first behavior feature vector from the attribute association matrix, and weight the first behavior feature vector using a weighted average method;

[0199] The encrypted traffic is clustered based on the weighted first behavior feature vector to obtain a session.

[0200] As a preferred implementation, the malicious session identification module 13 is specifically used for:

[0201] Obtain the second behavior feature vector of the encrypted traffic in the historical attack chain;

[0202] Calculating a correlation between the first behavior feature vector and the second behavior feature vector, and obtaining a malicious probability score of the encrypted traffic in the session according to the correlation calculation;

[0203] Taking the encrypted traffic with a malicious probability score greater than N as the initial malicious traffic;

[0204] Calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector;

[0205] Analyze the first behavior feature vector of the initial malicious traffic, and when abnormal fluctuations and mutations occur, obtain the abnormal degree of the initial malicious traffic;

[0206] Determining whether the initial malicious traffic is confirmed malicious traffic based on the association strength and the abnormality degree;

[0207] When malicious traffic is detected, the session is considered to be a malicious session.

[0208] Further, preferably, the calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector includes:

[0209] Extracting frequent item sets in the initial malicious traffic according to the first behavior feature vector;

[0210] Associating the frequent item set with the malicious behavior of the initial malicious traffic to obtain an association rule;

[0211] According to the association rule, the association strength between the initial malicious traffic is calculated.

[0212] As a preferred implementation, the threat processing module 14 is specifically used for:

[0213] When a malicious session is detected, a priori probability of the malicious session is set, a posterior probability of the malicious session being established is calculated based on the priori probability, and the posterior probability is used as the severity of the malicious session;

[0214] Obtaining a historical attack chain most relevant to the malicious session based on the correlation between the first behavior feature vector and a second behavior feature vector of encrypted traffic in the historical attack chain, and obtaining an influence scope of the malicious session based on a network influence scope of the most relevant historical attack chain;

[0215] Combining the severity and the impact scope, obtaining a malicious level of the malicious session;

[0216] Execute the warning action corresponding to the malicious level;

[0217] Active blocking is initiated through bypass to detect and intercept threats.

[0218] Further, preferably, the malicious level includes a high risk level, a medium risk level and a low risk level;

[0219] Then, the executing the alarm action corresponding to the malicious level includes:

[0220] When the malicious level is a low-risk level, an alarm message is issued, and the encrypted traffic of the malicious session is directly discarded;

[0221] When the malicious level is a medium risk level or a high risk level, an alarm message is issued, and the encrypted traffic of the malicious session is redirected to a honeypot network;

[0222] The warning message includes the malicious level, source IP, destination IP, protocol type and first behavior feature vector of the malicious session.

[0223] As a preferred implementation, the active blocking initiated by bypass to achieve threat detection and interception includes:

[0224] Obtain the source IP and destination IP of the malicious session;

[0225] According to the source IP and the destination IP, a TCPReset packet is actively sent to both ends of the communication through a bypass, an active blocking behavior is initiated, the attack behavior is cut off, and threat detection and interception are achieved.

[0226] Based on the above embodiment, the encrypted traffic threat detection system based on the attack chain perspective further includes a complete attack chain construction module and an intelligence sharing module, wherein:

[0227] A complete attack chain building module, used to associate the malicious session with its context session to build a complete attack chain;

[0228] The intelligence sharing module is used to cluster the encrypted traffic according to the second behavior feature vector of the encrypted traffic in the complete attack chain to obtain a historical attack chain and upload it to the threat intelligence platform.

[0229] As a preferred implementation, the complete attack chain building module is specifically used to:

[0230] Using session tracking technology to obtain metadata information of the malicious session; the metadata information includes session ID, source IP address, destination IP address, port number, protocol type and timestamp;

[0231] According to the metadata information, a time window-based, graph-based or rule-based association analysis algorithm is used to associate the malicious session with its context session to form a complete attack chain.

[0232] As a preferred implementation, the complete attack chain building module is specifically used to:

[0233] Extracting a second behavior feature vector of the encrypted traffic of each session node in the complete attack chain;

[0234] Taking session nodes as units, a clustering algorithm is used to cluster the encrypted traffic to obtain a historical attack chain;

[0235] Upload the historical attack chain to the threat intelligence platform.

[0236] An encrypted traffic threat detection system based on an attack chain perspective provided by an embodiment of the present invention extracts the first behavior feature vector of the encrypted traffic from multiple dimensions, clusters the sessions, and then matches them with historical attack chains, so as to promptly alert and actively block malicious sessions. It can achieve detection coverage of the entire life cycle of the attack chain without decryption, and effectively analyze and detect threats to network encrypted traffic.

[0237] The present invention may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 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.

[0238] It should be understood that the embodiments of the present application are not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the embodiments of the present application is limited only by the appended claims.

[0239] The above-mentioned embodiments only express several implementation methods of the embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the embodiments of the present application, and these all belong to the protection scope of the embodiments of the present application.

Claims

1. A method for detecting encrypted traffic threats based on an attack chain perspective, characterized in that: include: Collecting encrypted traffic, parsing data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extracting time and length attributes from the data packets of the encrypted traffic, and combining the network identity attributes, encryption attributes, time and length attributes to obtain a first behavior feature vector of the encrypted traffic; Calculating a weight value of each attribute in the first behavior feature vector, and clustering the encrypted traffic based on the weight value to obtain a session; According to the historical attack chain, calculating the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain, and judging whether the session is a malicious session according to the correlation; the historical attack chain is obtained through a threat intelligence platform; When a malicious session is detected, the malicious level of the malicious session is determined according to the severity and impact scope of the malicious session, the alarm action corresponding to the malicious level is executed, and active blocking is initiated through bypass to achieve threat detection and interception; in, The collecting of encrypted traffic, parsing the data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extracting time and length attributes from the data packets of the encrypted traffic, and combining the network identity attributes, encryption attributes, time and length attributes to obtain a first behavior feature vector of the encrypted traffic, includes: Collect encrypted traffic and obtain data packets of the encrypted traffic; parse the data packets to obtain request attributes, certificate attributes, fingerprint attributes and packet timing attributes of the encrypted traffic as network identity attributes; obtain the number and proportion attributes of the data packets under different encryption protocols and encryption algorithms as encryption attributes according to the encryption protocol and encryption algorithm distribution; extract the time and length attributes of the data packets; wherein the time and length attributes include length attributes and time attributes, and the time attributes include flow duration and packet interval time; convert the network identity attributes, encryption attributes, time and length attributes into vector representations, and perform normalization processing to obtain the first line feature vector; The calculating the weight value of each attribute in the first behavior feature vector, and clustering the encrypted traffic based on the weight value to obtain a session includes: Calculate the correlation between the network identity attribute, encryption attribute, time and length attributes in the first behavior feature vector to obtain an attribute association matrix; determine the weight of each attribute in the first behavior feature vector from the attribute association matrix, and weight the first behavior feature vector using a weighted average method; cluster the encrypted traffic based on the weighted first behavior feature vector to obtain a session.

2. The encrypted traffic threat detection method based on the attack chain perspective as claimed in claim 1, characterized in that: The network identity attribute, encryption attribute, time and length attribute are converted into vector representation, and normalized to obtain a first behavior feature vector, including: The dimensions of the vector representation of the network identity attribute are merged and normalized to obtain a network identity attribute vector; Using a word embedding method, the length attribute and the packet interval time are converted into a multi-dimensional vector representation of a fixed length, the flow duration is converted into a one-dimensional vector representation, and the dimensions of the vector representations of the time and length attributes are merged and normalized to obtain a time and length attribute vector; The number and proportion of quantity packets under different encryption protocols and the number and proportion of quantity packets under different encryption algorithms are respectively converted into one-dimensional vector representations, and the dimensions of the vector representations of the encryption attributes are merged and normalized to obtain an encryption attribute vector; The network identity attribute vector, the time and length attribute vectors and the encryption attribute vector are combined to obtain a first behavior feature vector.

3. The encrypted traffic threat detection method based on the attack chain perspective as claimed in claim 1 is characterized in that: The calculating, according to the historical attack chain, the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain, and judging whether the session is a malicious session according to the correlation includes: Obtain the second behavior feature vector of the encrypted traffic in the historical attack chain; Calculating a correlation between the first behavior feature vector and the second behavior feature vector, and obtaining a malicious probability score of the encrypted traffic in the session according to the correlation calculation; Taking the encrypted traffic with a malicious probability score greater than N as the initial malicious traffic; Calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector; Analyze the first behavior feature vector of the initial malicious traffic, and when abnormal fluctuations and mutations occur, obtain the abnormal degree of the initial malicious traffic; Determining whether the initial malicious traffic is confirmed malicious traffic based on the association strength and the abnormality degree; When malicious traffic is detected, the session is considered to be a malicious session.

4. The encrypted traffic threat detection method based on the attack chain perspective as claimed in claim 3 is characterized in that: The calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector includes: Extracting frequent item sets in the initial malicious traffic according to the first behavior feature vector; Associating the frequent item set with the malicious behavior of the initial malicious traffic to obtain an association rule; According to the association rule, the association strength between the initial malicious traffic is calculated.

5. The encrypted traffic threat detection method based on the attack chain perspective as claimed in claim 1, characterized in that: When a malicious session is detected, the malicious level of the malicious session is determined according to the severity and impact scope of the malicious session, an alarm action corresponding to the malicious level is executed, and active blocking is initiated through a bypass to achieve threat detection and interception, including: When a malicious session is detected, a priori probability of the malicious session is set, a posterior probability of the malicious session being established is calculated based on the priori probability, and the posterior probability is used as the severity of the malicious session; Obtaining a historical attack chain most relevant to the malicious session based on the correlation between the first behavior feature vector and a second behavior feature vector of encrypted traffic in the historical attack chain, and obtaining an influence scope of the malicious session based on a network influence scope of the most relevant historical attack chain; Combining the severity and the impact scope, obtaining a malicious level of the malicious session; Execute the warning action corresponding to the malicious level; Active blocking is initiated through bypass to detect and intercept threats.

6. The encrypted traffic threat detection method based on the attack chain perspective as claimed in claim 5, characterized in that: The malicious level includes high risk level, medium risk level and low risk level; Then, the executing the alarm action corresponding to the malicious level includes: When the malicious level is a low-risk level, an alarm message is issued, and the encrypted traffic of the malicious session is directly discarded; When the malicious level is a medium risk level or a high risk level, an alarm message is issued, and the encrypted traffic of the malicious session is redirected to a honeypot network; The warning message includes the malicious level, source IP, destination IP, protocol type and first behavior feature vector of the malicious session.

7. The method for detecting encrypted traffic threats based on an attack chain perspective as claimed in claim 5, characterized in that: The active blocking initiated by bypassing to detect and intercept threats includes: Obtain the source IP and destination IP of the malicious session; According to the source IP and the destination IP, a TCPReset packet is actively sent to both ends of the communication through a bypass, an active blocking behavior is initiated, the attack behavior is cut off, and threat detection and interception are achieved.

8. The encrypted traffic threat detection method based on the attack chain perspective as claimed in claim 1, characterized in that: The encrypted traffic threat detection method based on the attack chain perspective also includes: Associating the malicious session with its context session to build a complete attack chain; According to the second behavior feature vector of the encrypted traffic in the complete attack chain, the encrypted traffic is clustered to obtain a historical attack chain and uploaded to the threat intelligence platform.

9. The method for detecting encrypted traffic threats based on an attack chain perspective as claimed in claim 8, characterized in that: The step of associating the malicious session with its context session to construct a complete attack chain includes: Using session tracking technology to obtain metadata information of the malicious session; the metadata information includes session ID, source IP address, destination IP address, port number, protocol type and timestamp; According to the metadata information, a time window-based, graph-based or rule-based association analysis algorithm is used to associate the malicious session with its context session to form a complete attack chain.

10. The encrypted traffic threat detection method based on the attack chain perspective as claimed in claim 8, characterized in that: The step of clustering the encrypted traffic according to the second behavior feature vector of the encrypted traffic in the complete attack chain to obtain a historical attack chain and uploading the historical attack chain to the threat intelligence platform includes: Extracting a second behavior feature vector of the encrypted traffic of each session node in the complete attack chain; Taking session nodes as units, a clustering algorithm is used to cluster the encrypted traffic to obtain a historical attack chain; Upload the historical attack chain to the threat intelligence platform.

11. An encrypted traffic threat detection system based on attack chain perspective, characterized in that: include: A first behavior feature vector acquisition module, used to collect encrypted traffic, parse the data packets of the encrypted traffic to obtain network identity attributes and encryption attributes, extract time attributes and length attributes from the data packets of the encrypted traffic, and combine the network identity attributes, encryption attributes, time attributes and length attributes to obtain a first behavior feature vector of the encrypted traffic; A session identification module, used to calculate the weight value of each attribute in the first behavior feature vector, and cluster the encrypted traffic based on the weight value to obtain a session; a malicious session identification module, configured to calculate the correlation between the first behavior feature vector and the second behavior feature vector of the encrypted traffic in the historical attack chain according to a historical attack chain, and determine whether the session is a malicious session according to the correlation; the historical attack chain is obtained through a threat intelligence platform; A threat processing module is used to determine the malicious level of a malicious session according to the severity and impact scope of the malicious session when a malicious session is detected, execute an alarm action corresponding to the malicious level, and initiate active blocking through a bypass to achieve threat detection and interception; in, The first behavior feature vector acquisition module is specifically used to: Collect encrypted traffic and obtain data packets of the encrypted traffic; parse the data packets to obtain request attributes, certificate attributes, fingerprint attributes and packet timing attributes of the encrypted traffic as network identity attributes; obtain the number and proportion attributes of the data packets under different encryption protocols and encryption algorithms as encryption attributes according to the encryption protocol and encryption algorithm distribution; extract the length attribute and time attribute of the data packets; the time attribute includes flow duration and packet interval time; convert the network identity attribute, encryption attribute, length attribute and time attribute into vector representation, and perform normalization processing to obtain the first line feature vector; The session identification module is specifically used for: Calculate the correlation between the network identity attribute, encryption attribute, time and length attributes in the first behavior feature vector to obtain an attribute association matrix; determine the weight of each attribute in the first behavior feature vector from the attribute association matrix, and weight the first behavior feature vector using a weighted average method; cluster the encrypted traffic based on the weighted first behavior feature vector to obtain a session.

12. The encrypted traffic threat detection system based on attack chain perspective as claimed in claim 11, characterized in that: The malicious session identification module is specifically used for: Obtain the second behavior feature vector of the encrypted traffic in the historical attack chain; Calculating a correlation between the first behavior feature vector and the second behavior feature vector, and obtaining a malicious probability score of the encrypted traffic in the session according to the correlation calculation; Taking the encrypted traffic with a malicious probability score greater than N as the initial malicious traffic; Calculating the correlation strength between the initial malicious traffic according to the first behavior feature vector; Analyze the first behavior feature vector of the initial malicious traffic, and when abnormal fluctuations and mutations occur, obtain the abnormal degree of the initial malicious traffic; Determining whether the initial malicious traffic is confirmed malicious traffic based on the association strength and the abnormality degree; When malicious traffic is detected, the session is considered to be a malicious session.

13. The encrypted traffic threat detection system based on attack chain perspective as claimed in claim 11, characterized in that: The encrypted traffic threat detection system based on the attack chain perspective also includes: A complete attack chain building module, used to associate the malicious session with its context session to build a complete attack chain; The intelligence sharing module is used to cluster the encrypted traffic according to the second behavior feature vector of the encrypted traffic in the complete attack chain to obtain a historical attack chain and upload it to the threat intelligence platform.

Citation Information

Patent Citations

  • Encrypted traffic maliciousness detection model establishment method and system and encrypted traffic maliciousness detection method and system

    CN113329023A

  • Malicious encrypted traffic detection method and device

    CN113949531A

  • TLS encryption threat detection method and system

    CN114679307A

  • Encrypted traffic classification system based on data packets

    CN114866486A

  • Counterfeit malicious encrypted traffic detection method based on refined statistical feature analysis

    CN115150181A