Encrypted traffic detection method, system, device and storage medium
By extracting the query domain name and IP address in the encrypted traffic, matching it with the threat intelligence database, and combining the matching of the target access address and certificate information, the problem of poor recognition of threat traffic in the existing technology is solved, and encryption is achieved Effective identification and security supervision of traffic.
Patent Information
- Application Number
- CN202111567253.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-12-20
AI Technical Summary
In the prior art, the threat traffic identification effect of encrypted traffic is poor, and it is difficult to effectively identify illegal attempts in encrypted communications.
Before the encrypted traffic enters the target access system, extract the query domain name and IP access address in the traffic message to be accessed, and match it with the threat intelligence library; after the encrypted traffic enters the system, extract the target access address and certificate information and connect to the local blacklist. Match with the threat intelligence library to determine whether the encrypted traffic is threatening traffic, and store and process it.
By parsing and matching the query domain name and IP address in advance, and timely identifying and storing threat traffic, the security supervision of encrypted traffic and the recognition efficiency of threat traffic are improved, and network security is enhanced.
Smart Images

Figure CN114363020B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to an encrypted traffic detection method, system, device and storage medium. Background Art
[0002] As awareness of network security prevention increases, encrypted communications have become mainstream in order to ensure transmission security. Most network transmission traffic is encrypted using the Transport Layer Security Protocol, but this has also brought new security issues. Traffic encryption protects privacy while also concealing illegal attempts. Most malware also uses the Transport Layer Security Protocol for communication, so identifying threat traffic from encrypted traffic is a difficult problem currently faced. Summary of the invention
[0003] The main purpose of this application is to provide an encrypted traffic detection method, system, device and storage medium, aiming to solve the technical problem of poor threat traffic identification effect in the prior art.
[0004] To achieve the above object, the present application provides an encrypted traffic detection method, the encrypted traffic detection method comprising:
[0005] Before the encrypted traffic enters the target access system, the traffic message to be accessed is obtained, and the query domain name and IP access address corresponding to the traffic message to be accessed are extracted;
[0006] If the query domain name matches the domain name in the threat intelligence library, the IP access address corresponding to the query domain name is stored in a pre-configured local blacklist;
[0007] When the encrypted traffic enters the target access system, extracting the target access address corresponding to the encrypted traffic;
[0008] Matching the target access address with the local blacklist and the threat intelligence library respectively, and extracting the target certificate information corresponding to the encrypted traffic in the process of establishing a session connection;
[0009] If the target access address matches successfully, the encrypted traffic is determined to be threat traffic, and the target certificate information is stored in the local blacklist;
[0010] If the target access address fails to match, the target certificate information is matched with the local blacklist and the threat intelligence library respectively, and it is determined whether the encrypted traffic is threat traffic based on the matching result.
[0011] Optionally, the step of matching the target certificate information with the local blacklist and the threat intelligence library respectively, and determining whether the encrypted traffic is threat traffic according to the matching result includes:
[0012] Traversing and matching the target certificate information with the local blacklist to obtain a first matching result;
[0013] If the first matching result is a matching failure, the target certificate information is traversed and matched with the certificate information in the threat intelligence library to obtain a second matching result;
[0014] If the second matching result is a successful match, the encrypted traffic is determined to be threat traffic, and the target access address of the encrypted traffic is stored in the local blacklist.
[0015] Optionally, before the step of storing the IP access address corresponding to the query domain name in a pre-configured local blacklist if the query domain name and the domain name in the threat intelligence library are successfully traversed and matched, the encrypted traffic detection method further includes:
[0016] If the query domain name and the domain name in the threat intelligence library fail to be traversed and matched, the IP access address and the IP address in the threat intelligence library are traversed and matched;
[0017] If the match is successful, the query domain name corresponding to the IP access address is stored in the local blacklist.
[0018] Optionally, the step of extracting target certificate information corresponding to the encrypted traffic in the process of establishing a session connection includes:
[0019] Obtaining handshake information corresponding to the process of establishing a session connection with the encrypted traffic;
[0020] The handshake information is parsed to obtain the target certificate information.
[0021] Optionally, after the step of traversing and matching the target certificate information with the certificate information in the threat intelligence library to obtain a second matching result if the first matching result is a matching failure, the encrypted traffic detection method further includes:
[0022] If the second matching result is a matching failure, the encrypted traffic is determined to be normal traffic, and the encrypted traffic is released to perform a communication access operation.
[0023] Optionally, the step of storing the target access address in the local blacklist includes:
[0024] If the target access address does not exist in the local blacklist, the target access address is stored in the local blacklist, and the hit time point corresponding to the target access address is recorded.
[0025] Optionally, after the step of storing the target access address in the local blacklist if the target access address does not exist in the local blacklist, and recording the hit time point corresponding to the target access address, the encrypted traffic detection method includes:
[0026] Detecting a hit time point corresponding to each access address in the local blacklist;
[0027] If the hit time point exceeds the preset duration, the access address corresponding to the time exceeding the preset duration is deleted to obtain an updated local blacklist.
[0028] The present application also provides an encrypted traffic detection system, which is a virtual system and includes:
[0029] The first extraction module is used to obtain the traffic message to be accessed before the encrypted traffic enters the target access system, and extract the query domain name and IP access address corresponding to the traffic message to be accessed;
[0030] A first matching module, configured to store the IP access address corresponding to the query domain name into a pre-configured local blacklist if the query domain name matches the domain name in the threat intelligence library;
[0031] A second extraction module, used for extracting a target access address corresponding to the encrypted traffic after the encrypted traffic enters the target access system;
[0032] A second matching module is used to match the target access address with the local blacklist and the threat intelligence library respectively, and extract the target certificate information corresponding to the encrypted traffic in the process of establishing a session connection;
[0033] A determination module, configured to determine that the encrypted traffic is threat traffic if the target access address is matched successfully, and store the target certificate information in the local blacklist;
[0034] The third matching module is used to match the target certificate information with the local blacklist and the threat intelligence library respectively if the target access address fails to match, and determine whether the encrypted traffic is threat traffic based on the matching result.
[0035] Optionally, the third matching module is further used for:
[0036] Traversing and matching the target certificate information with the local blacklist to obtain a first matching result;
[0037] If the first matching result is a matching failure, the target certificate information is traversed and matched with the certificate information in the threat intelligence library to obtain a second matching result;
[0038] If the second matching result is a successful match, the encrypted traffic is determined to be threat traffic, and the target access address of the encrypted traffic is stored in the local blacklist.
[0039] Optionally, the encrypted traffic detection system is further used for:
[0040] If the query domain name and the domain name in the threat intelligence library fail to be traversed and matched, the IP access address and the IP address in the threat intelligence library are traversed and matched;
[0041] If the match is successful, the query domain name corresponding to the IP access address is stored in the local blacklist.
[0042] Optionally, the encrypted traffic detection system is further used for:
[0043] Obtaining handshake information corresponding to the process of establishing a session connection with the encrypted traffic;
[0044] The handshake information is parsed to obtain the target certificate information.
[0045] Optionally, the encrypted traffic detection system is further used for:
[0046] If the second matching result is a matching failure, the encrypted traffic is determined to be normal traffic, and the encrypted traffic is released to perform a communication access operation.
[0047] Optionally, the encrypted traffic detection system is further used for:
[0048] If the target access address does not exist in the local blacklist, the target access address is stored in the local blacklist, and the hit time point corresponding to the target access address is recorded.
[0049] Optionally, the encrypted traffic detection system is further used for:
[0050] Detecting a hit time point corresponding to each access address in the local blacklist;
[0051] If the hit time point exceeds the preset duration, the access address corresponding to the time exceeding the preset duration is deleted to obtain an updated local blacklist.
[0052] The present application also provides an encrypted traffic detection device, which is a physical device. The encrypted traffic detection device includes: a memory, a processor, and an encrypted traffic detection program stored on the memory. The encrypted traffic detection program is executed by the processor to implement the steps of the encrypted traffic detection method as described above.
[0053] The present application also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores an encrypted traffic detection program, and the encrypted traffic detection program is executed by a processor to implement the steps of the encrypted traffic detection method as described above.
[0054] The present application provides an encrypted traffic detection method, system, device and storage medium. The present application first obtains the traffic message to be accessed before the encrypted traffic enters the target access system, and extracts the query domain name and IP access address corresponding to the traffic message to be accessed, and then if the query domain name and the domain name in the threat intelligence library match successfully, the IP access address corresponding to the query domain name is stored in a pre-configured local blacklist, so that before the encrypted traffic enters the target access system, the traffic message to be accessed is parsed to obtain the corresponding query domain name and IP access address, and the query domain name and the domain name in the threat intelligence library are traversed and matched to store the IP access address corresponding to the query domain name in the pre-configured local blacklist, so that when the subsequent encrypted traffic enters the access system, it can be quickly matched based on the access address of the encrypted traffic and the local blacklist. Furthermore, when the encrypted traffic enters the target access system, the target access address corresponding to the encrypted traffic is extracted, and then the target access address is stored in the pre-configured local blacklist. The encrypted traffic is matched with the local blacklist and the threat intelligence library respectively, and the target certificate information corresponding to the encrypted traffic in the process of establishing the session connection is extracted. Furthermore, if the target access address matches successfully, the encrypted traffic is determined to be threat traffic, and the target certificate information is stored in the local blacklist. If the target access address matches unsuccessfully, the target certificate information is matched with the local blacklist and the threat intelligence library respectively, and it is determined whether the encrypted traffic is threat traffic based on the matching result. The target access address of the encrypted traffic is matched with the local blacklist and the threat intelligence library respectively in turn, so that the threat traffic can be quickly identified through the target access address. When the access address matches unsuccessfully, the target domain name corresponding to the encrypted traffic in the process of establishing the session connection is further matched with the local blacklist and the threat intelligence library in turn. The threat traffic in the encrypted traffic can be effectively identified, and the security supervision of the current encrypted traffic in the network is strengthened. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without any creative work.
[0057] Figure 1 This is a flow chart of the first embodiment of the encrypted traffic detection method of the present application;
[0058] Figure 2 This is a flow chart of the second embodiment of the encrypted traffic detection method of the present application;
[0059] Figure 3 This is a schematic diagram of the structure of an encrypted traffic detection device in the hardware operating environment involved in the embodiment of the present application;
[0060] Figure 4 This is a schematic diagram of the functional modules of the encrypted traffic detection system for this application.
[0061] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0062] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] The present application embodiment provides an encrypted traffic detection method. In the first embodiment of the encrypted traffic detection method of the present application, refer to Figure 1 , the encrypted traffic detection method comprises:
[0064] Step S10, before the encrypted traffic enters the target access system, obtain the traffic message to be accessed, and extract the query domain name and IP access address corresponding to the traffic message to be accessed;
[0065] In this embodiment, specifically, before the encrypted traffic enters the target access system, the traffic message to be accessed is obtained, wherein the traffic message to be accessed is a DNS traffic message, and the DNS traffic message is transmitted in plain text. Therefore, the DNS traffic can be parsed by the DNS server to obtain the queried domain name and the IP access address.
[0066] Step S20: If the query domain name matches the domain name in the threat intelligence library, the IP access address corresponding to the query domain name is stored in a pre-configured local blacklist;
[0067] The query domain name and the domain names in the threat intelligence library are traversed and matched. If the match is successful, the IP access address corresponding to the query domain name is stored in the local blacklist. If the IP access address already exists in the local blacklist, the hit time point of the IP access address is updated. If not, the IP access address is stored in the local blacklist, the current hit time point is recorded, and an alarm message is issued, so that when the IP access address is subsequently identified, the traffic corresponding to the IP access address can be quickly detected as threat traffic.
[0068] Wherein, before the step of storing the IP access address corresponding to the query domain name in a pre-configured local blacklist if the query domain name and the domain name in the threat intelligence library are successfully traversed and matched, the encrypted traffic detection method further includes:
[0069] Step A10: if the query domain name and the domain name in the threat intelligence library fail to be traversed and matched, the IP access address and the IP address in the threat intelligence library are traversed and matched;
[0070] Step A20: If the match is successful, the query domain name corresponding to the IP access address is stored in the local blacklist.
[0071] In this embodiment, specifically, if the query domain name and the domain name traversal match in the threat intelligence library fail, the IP access address of the traffic message to be accessed is matched with the IP in the threat intelligence library. If the match is successful, the query domain name corresponding to the IP access address is stored in the local blacklist.
[0072] It should be noted that before the IP access address or query domain name is stored in the local blacklist, it is necessary to first check whether the corresponding IP access address or query domain name is stored in the local blacklist. If so, the hit time point corresponding to the IP access address and query domain name is updated. If not, the IP access address or query domain name is stored in the local blacklist, and the current time point is used as its corresponding hit time point.
[0073] Step S30, when the encrypted traffic enters the target access system, extracting the target access address corresponding to the encrypted traffic;
[0074] In this embodiment, it should be noted that the encrypted traffic is data traffic encrypted using the secure transport layer protocol during data transmission and communication, thereby ensuring confidentiality and data integrity between two communicating applications. The secure transport layer protocol includes the SSL protocol (Secure Socket Layer), TLS protocol (Transport Layer Security) and other protocols. In this application, preferably, the TLS protocol is selected for encryption.
[0075] When the encrypted traffic enters the target access system, the target access address corresponding to the encrypted traffic is extracted. Specifically, when the encrypted traffic enters the target access system, the target access address IP corresponding to the encrypted traffic is first extracted.
[0076] Step S40, matching the target access address with the local blacklist and the threat intelligence library respectively, and extracting the target certificate information corresponding to the encrypted traffic in the process of establishing the session connection;
[0077] In this embodiment, it should be noted that the local blacklist stores the IP addresses, domain names and certificate information of abnormal websites, and the threat intelligence library stores the IP addresses, domain names and certificate information of virus families.
[0078] The target access address is matched with the local blacklist and the threat intelligence library respectively, and the target certificate information corresponding to the encrypted traffic in the process of establishing a session connection is extracted. Specifically, the pre-configured local blacklist of the target access address is first traversed and matched. When the target access address cannot be queried from the local blacklist, the threat intelligence library of the target access address is traversed and matched, and the handshake information corresponding to the encrypted traffic in the process of establishing a session connection is extracted, wherein the handshake information includes server-side handshake information and / or client-side handshake information. In the present application, preferably, the client-side handshake information is selected, and then the target domain name is extracted from the client-side handshake information. In addition, when the target access domain name is queried in the local blacklist or in the threat intelligence library, the encrypted traffic is directly determined to be threat traffic, and an alarm message is issued.
[0079] The step of extracting target certificate information corresponding to the encrypted traffic in the process of establishing a session connection includes:
[0080] Step S21, obtaining the handshake information corresponding to the process of establishing the session connection of the encrypted traffic;
[0081] Step S22: parse the handshake information to obtain the target certificate information.
[0082] In this embodiment, it should be noted that the three-way handshake principle is required to establish a session connection between the client and the server. The client needs to send a client handshake message, and when the server receives the client handshake message, it needs to return the server's handshake message. In addition, the server sends a certificate to the client, which is used to confirm the identity of the server to the client. If the configuration server needs to verify the identity of the server, it will send this message (most applications require server-side identity authentication).
[0083] Specifically, in the process of establishing a session connection, that is, in the handshake process, the handshake information is obtained, the handshake information is parsed, and the target certificate information is obtained.
[0084] Step S50: if the target access address matches successfully, the encrypted traffic is determined to be threat traffic, and the target certificate information is stored in the local blacklist;
[0085] In this embodiment, if the target access address matches successfully, the encrypted traffic is determined to be threat traffic, and the target certificate information is stored in the local blacklist. Specifically, if the target access address matches successfully in the local blacklist library or the threat intelligence library, it is proved that the target access address is a black address, and then the encrypted traffic is determined to be threat traffic. Furthermore, the target certificate information extracted from the handshake information is stored in the local blacklist.
[0086] Step S60: If the target access address fails to match, the target certificate information is matched with the local blacklist and the threat intelligence library respectively, and whether the encrypted traffic is threat traffic is determined based on the matching result.
[0087] In this embodiment, if the target access address fails to match, the target certificate information is matched with the local blacklist and the threat intelligence library respectively, and whether the encrypted traffic is threat traffic is determined based on the matching result. Specifically, if the target access address fails to match, the target certificate information extracted from the handshake information is matched with the local blacklist. If the target certificate information cannot be matched in the local blacklist, the target certificate information is matched with the threat intelligence library. If the match is successful, the encrypted traffic is determined to be threat traffic, and access to the encrypted traffic is blocked, an alarm message is issued, and the target access address of the encrypted traffic is added to the local blacklist, and the hit time point of the target access address is recorded.
[0088] The step of matching the target certificate information with the local blacklist and the threat intelligence library respectively, and determining whether the encrypted traffic is threat traffic according to the matching result includes:
[0089] Step S61, traversing and matching the target certificate information with the local blacklist to obtain a first matching result;
[0090] Step S62: if the first matching result is a matching failure, the target certificate information is traversed and matched with the certificate information in the threat intelligence library to obtain a second matching result;
[0091] Wherein, after the step of traversing and matching the target certificate information with the certificate information in the threat intelligence library to obtain a second matching result if the first matching result is a matching failure, the encrypted traffic detection method further includes:
[0092] Step B10: If the second matching result is a matching failure, the encrypted traffic is determined to be normal traffic, and the encrypted traffic is released to perform a communication access operation.
[0093] In this embodiment, specifically, if the second matching result is a matching failure, that is, the target certificate information does not exist in the threat intelligence library, it is proved that the encrypted traffic is normal traffic, and the encrypted traffic is released to perform communication access operations with the target access system.
[0094] Step S63: If the second matching result is a successful match, the encrypted traffic is determined to be threat traffic, and the target access address of the encrypted traffic is stored in the local blacklist.
[0095] In this embodiment, specifically, the target certificate information and the local blacklist are traversed and matched to obtain a first matching result. If the first matching result is a successful match, the target access address of the encrypted traffic is directly stored in the local blacklist. If the first matching result is a failed match, the target certificate information and the threat intelligence library are traversed and matched. If the match is successful, the encrypted traffic is determined to be threat traffic, and the target access address corresponding to the encrypted traffic is added to the local blacklist, and an alarm message is issued, so that when the target access address is detected again, it can be directly matched and detected through the local blacklist to improve the detection and identification efficiency. If the match fails, the encrypted traffic is determined to be normal traffic, and the encrypted traffic is released for communication access operations.
[0096] The step of storing the target access address in the local blacklist includes:
[0097] Step C10: If the target access address does not exist in the local blacklist, the target access address is stored in the local blacklist, and the hit time point corresponding to the target access address is recorded.
[0098] In this embodiment, specifically, if the match is successful, the encrypted traffic is determined to be threat traffic, and then the target access address corresponding to the encrypted traffic needs to be stored. If the target access address does not exist in the current local blacklist, the target access address is stored in the local blacklist, and the current detected time point is used as the hit time point corresponding to the target access address. In addition, if the target access address exists in the current local blacklist, the hit time point corresponding to the target access address is updated.
[0099] The embodiment of the present application provides an encrypted traffic detection method. The embodiment of the present application first obtains the traffic message to be accessed before the encrypted traffic enters the target access system, and extracts the query domain name and IP access address corresponding to the traffic message to be accessed, and then if the query domain name and the domain name in the threat intelligence library match successfully, the IP access address corresponding to the query domain name is stored in a pre-configured local blacklist, so that before the encrypted traffic enters the target access system, the traffic message to be accessed is parsed to obtain the corresponding query domain name and IP access address, and the query domain name and the domain name in the threat intelligence library are traversed and matched to store the IP access address corresponding to the query domain name in the pre-configured local blacklist, so that when the subsequent encrypted traffic enters the access system, it can be quickly matched based on the access address of the encrypted traffic and the local blacklist. Furthermore, after the encrypted traffic enters the target access system, the target access address corresponding to the encrypted traffic is extracted, and then the target access address is respectively Matching is performed with the local blacklist and the threat intelligence library, and the target certificate information corresponding to the encrypted traffic in the process of establishing a session connection is extracted. Furthermore, if the target access address matches successfully, the encrypted traffic is determined to be threat traffic, and the target certificate information is stored in the local blacklist. If the target access address matches fail, the target certificate information is matched with the local blacklist and the threat intelligence library respectively, and it is determined whether the encrypted traffic is threat traffic based on the matching result. This achieves the goal of quickly identifying threat traffic through the target access address by matching the target access address of the encrypted traffic with the local blacklist and the threat intelligence library respectively. When the access address matches fail, the target domain name corresponding to the encrypted traffic in the process of establishing a session connection is further matched with the local blacklist and the threat intelligence library in sequence. This can effectively identify threat traffic in the encrypted traffic and strengthen the security supervision of the current encrypted traffic in the network.
[0100] Further, refer to Figure 2Based on the first embodiment of the present application, in another embodiment of the present application, after the step of storing the target access address in the local blacklist if the target access address does not exist in the local blacklist and recording the hit time point corresponding to the target access address, the encrypted traffic detection method includes:
[0101] Step D11, detecting the hit time point corresponding to each access address in the local blacklist;
[0102] In this embodiment, it should be noted that the hit time point is the time point corresponding to a successful match of the access address. For example, access address A is stored in the local blacklist, and when the threat traffic corresponding to access address A is detected, it is matched with the local blacklist, and the hit time point corresponding to access address A is updated to the current time point corresponding to the successful match. If the threat traffic corresponding to access address B is detected, and access address B has not been stored in the local blacklist before, access address B is added to the local blacklist, and the current hit time point of access address B is recorded.
[0103] Step D12: If the hit time point exceeds the preset duration, the access address corresponding to the time point exceeding the preset duration is deleted to obtain an updated local blacklist.
[0104] In this embodiment, specifically, if the hit time point exceeds the preset duration, it proves that there is a longer time for detecting the access address, that is, the access address corresponding to the preset duration is deleted to obtain an updated local blacklist, so that the access addresses cached in the local blacklist are all IP addresses that have recently identified threatening traffic, preventing too many access addresses cached in the local blacklist, reducing the system's cache space, and also speeding up the matching and identification efficiency of the access addresses in the local blacklist.
[0105] Reference Figure 3 , Figure 3 It is a schematic diagram of the structure of the encrypted traffic detection device in the hardware operating environment involved in the embodiment of the present application.
[0106] like Figure 3 As shown, the encrypted traffic detection device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0107] Optionally, the encrypted traffic detection device may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WIFI interface).
[0108] Those skilled in the art will understand that Figure 3 The structure of the encrypted traffic detection device shown in the figure does not constitute a limitation on the encrypted traffic detection device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0109] like Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, and an encrypted traffic detection program. The operating system is a program that manages and controls the hardware and software resources of the encrypted traffic detection device, and supports the operation of the encrypted traffic detection program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the encrypted traffic detection system.
[0110] exist Figure 3 In the encrypted traffic detection device shown, the processor 1001 is used to execute the encrypted traffic detection program stored in the memory 1005 to implement the steps of any of the encrypted traffic detection methods described above.
[0111] The specific implementation methods of the encrypted traffic detection device of the present application are basically the same as the embodiments of the above-mentioned encrypted traffic detection method, and will not be repeated here.
[0112] In addition, please refer to Figure 4 , Figure 4 : is a functional module diagram of the encrypted traffic detection system of the present application. The present application also provides an encrypted traffic detection system, and the encrypted traffic detection system includes:
[0113] The first extraction module is used to obtain the traffic message to be accessed before the encrypted traffic enters the target access system, and extract the query domain name and IP access address corresponding to the traffic message to be accessed;
[0114] A first matching module, configured to store the IP access address corresponding to the query domain name into a pre-configured local blacklist if the query domain name matches the domain name in the threat intelligence library;
[0115] A second extraction module, used for extracting a target access address corresponding to the encrypted traffic after the encrypted traffic enters the target access system;
[0116] A second matching module is used to match the target access address with the local blacklist and the threat intelligence library respectively, and extract the target certificate information corresponding to the encrypted traffic in the process of establishing a session connection;
[0117] A determination module, configured to determine that the encrypted traffic is threat traffic if the target access address is matched successfully, and store the target certificate information in the local blacklist;
[0118] The third matching module is used to match the target certificate information with the local blacklist and the threat intelligence library respectively if the target access address fails to match, and determine whether the encrypted traffic is threat traffic based on the matching result.
[0119] Optionally, the third matching module is further used for:
[0120] Traversing and matching the target certificate information with the local blacklist to obtain a first matching result;
[0121] If the first matching result is a matching failure, the target certificate information is traversed and matched with the certificate information in the threat intelligence library to obtain a second matching result;
[0122] If the second matching result is a successful match, the encrypted traffic is determined to be threat traffic, and the target access address of the encrypted traffic is stored in the local blacklist.
[0123] Optionally, the encrypted traffic detection system is further used for:
[0124] If the query domain name and the domain name in the threat intelligence library fail to be traversed and matched, the IP access address and the IP address in the threat intelligence library are traversed and matched;
[0125] If the match is successful, the query domain name corresponding to the IP access address is stored in the local blacklist.
[0126] Optionally, the encrypted traffic detection system is further used for:
[0127] Obtaining handshake information corresponding to the process of establishing a session connection with the encrypted traffic;
[0128] The handshake information is parsed to obtain the target certificate information.
[0129] Optionally, the encrypted traffic detection system is further used for:
[0130] If the second matching result is a matching failure, the encrypted traffic is determined to be normal traffic, and the encrypted traffic is released to perform a communication access operation.
[0131] Optionally, the encrypted traffic detection system is further used for:
[0132] If the target access address does not exist in the local blacklist, the target access address is stored in the local blacklist, and the hit time point corresponding to the target access address is recorded.
[0133] Optionally, the encrypted traffic detection system is further used for:
[0134] Detecting a hit time point corresponding to each access address in the local blacklist;
[0135] If the hit time point exceeds the preset duration, the access address corresponding to the time exceeding the preset duration is deleted to obtain an updated local blacklist.
[0136] The specific implementation methods of the encrypted traffic detection system of the present application are basically the same as the embodiments of the above-mentioned encrypted traffic detection method, and will not be repeated here.
[0137] An embodiment of the present application provides a storage medium, which is a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned encrypted traffic detection methods.
[0138] The specific implementation of the computer-readable storage medium of the present application is basically the same as the embodiments of the above-mentioned encrypted traffic detection method, and will not be repeated here.
[0139] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for detecting encrypted traffic, It is characterized in that The encrypted traffic detection method comprises: Before the encrypted traffic enters the target access system, the traffic message to be accessed is obtained, and the query domain name and IP access address corresponding to the traffic message to be accessed are extracted; if the query domain name and the domain name in the threat intelligence library match successfully, the IP access address corresponding to the query domain name is stored in a pre-configured local blacklist, including: if the query domain name and the domain name in the threat intelligence library match successfully, it is determined whether the corresponding IP access address is stored in the local blacklist, if so, the hit time point corresponding to the IP access address is updated, if not, the IP access address is stored in the local blacklist, and the current hit time point is recorded; when the encrypted traffic enters the target access system, the target access address corresponding to the encrypted traffic is extracted; Matching the target access address with the local blacklist and the threat intelligence library respectively, and extracting the target certificate information corresponding to the encrypted traffic in the process of establishing a session connection; If the target access address matches successfully, the encrypted traffic is determined to be threat traffic, and the target certificate information is stored in the local blacklist; If the target access address fails to match, the target certificate information is matched with the local blacklist and the threat intelligence library respectively, and whether the encrypted traffic is threat traffic is determined according to the matching result; The method further comprises: Detecting a hit time point corresponding to each access address in the local blacklist; If the hit time point exceeds the preset duration, the access address corresponding to the time exceeding the preset duration is deleted to obtain an updated local blacklist.
2. The encrypted traffic detection method according to claim 1, It is characterized in that The step of matching the target certificate information with the local blacklist and the threat intelligence library respectively, and determining whether the encrypted traffic is threat traffic according to the matching result includes: Traversing and matching the target certificate information with the local blacklist to obtain a first matching result; If the first matching result is a matching failure, the target certificate information is traversed and matched with the certificate information in the threat intelligence library to obtain a second matching result; If the second matching result is a successful match, the encrypted traffic is determined to be threat traffic, and the target access address of the encrypted traffic is stored in the local blacklist.
3. The encrypted traffic detection method according to claim 1, It is characterized in that Before the step of storing the IP access address corresponding to the query domain name in a pre-configured local blacklist if the query domain name and the domain name in the threat intelligence library are successfully traversed and matched, the encrypted traffic detection method further includes: If the query domain name and the domain name in the threat intelligence library fail to be traversed and matched, the IP access address and the IP address in the threat intelligence library are traversed and matched; If the match is successful, the query domain name corresponding to the IP access address is stored in the local blacklist.
4. The encrypted traffic detection method according to claim 1, It is characterized in that The step of extracting target certificate information corresponding to the encrypted traffic in the process of establishing a session connection includes: Obtaining handshake information corresponding to the process of establishing a session connection with the encrypted traffic; The handshake information is parsed to obtain the target certificate information.
5. The encrypted traffic detection method as claimed in claim 2, It is characterized in that After the step of traversing and matching the target certificate information with the certificate information in the threat intelligence library to obtain a second matching result if the first matching result is a matching failure, the encrypted traffic detection method further includes: If the second matching result is a matching failure, the encrypted traffic is determined to be normal traffic, and the encrypted traffic is released to perform a communication access operation.
6. The encrypted traffic detection method according to claim 2, Features ,The step of storing the target access address in the local blacklist includes: If the target access address does not exist in the local blacklist, the target access address is stored in the local blacklist, and the hit time point corresponding to the target access address is recorded.
7. An encrypted traffic detection system, It is characterized in that The encrypted traffic detection system comprises: The first extraction module is used to obtain the traffic message to be accessed before the encrypted traffic enters the target access system, and extract the query domain name and IP access address corresponding to the traffic message to be accessed; The first matching module is used to store the IP access address corresponding to the query domain name in a pre-configured local blacklist if the query domain name matches the domain name in the threat intelligence library successfully, including: if the query domain name matches the domain name in the threat intelligence library successfully, determine whether the corresponding IP access address is stored in the local blacklist, if so, update the hit time point corresponding to the IP access address, if not, store the IP access address in the local blacklist, and record the current hit time point; A second extraction module, used for extracting a target access address corresponding to the encrypted traffic after the encrypted traffic enters the target access system; A second matching module is used to match the target access address with the local blacklist and the threat intelligence library respectively, and extract the target certificate information corresponding to the encrypted traffic in the process of establishing a session connection; A determination module, configured to determine that the encrypted traffic is threat traffic if the target access address is matched successfully, and store the target certificate information in the local blacklist; A third matching module is used to match the target certificate information with the local blacklist and the threat intelligence library respectively if the target access address fails to match, and determine whether the encrypted traffic is threat traffic according to the matching result; The encrypted traffic detection system is also used for: Detecting a hit time point corresponding to each access address in the local blacklist; If the hit time point exceeds the preset duration, the access address corresponding to the time exceeding the preset duration is deleted to obtain an updated local blacklist.
8. An encrypted traffic detection device, It is characterized in that The encrypted traffic detection device comprises: a memory, a processor and an encrypted traffic detection program stored in the memory, The encrypted traffic detection program is executed by the processor to implement the steps of the encrypted traffic detection method as described in any one of claims 1 to 6.
9. A storage medium, wherein the storage medium is a computer-readable storage medium, It is characterized in that The computer-readable storage medium stores an encrypted traffic detection program, and the encrypted traffic detection program is executed by a processor to implement the steps of the encrypted traffic detection method as described in any one of claims 1 to 6.
Citation Information
Cited By
A method and device for detecting encrypted traffic threats based on multimodal feature fusion
CN120415907B
