End-side behavior perspective method for encrypted traffic in network communication
Through dynamic binary instrumentation technology, program call information is captured and restored, and unencrypted data of encrypted traffic is directly read, solving the problems of low efficiency of encrypted traffic analysis and inability to recognize network behavior in the existing technology, and achieving efficient and accurate encrypted traffic Perspective and in-depth analysis enhance network security.
Patent Information
- Application Number
- CN202411067957.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The prior art has problems in the analysis of encrypted traffic behaviors that are expensive to decrypt, cannot accurately identify the terminal host network behavior, is inefficient and cannot cope with forward secure encryption protocols.
Dynamic binary instrumentation technology is used to capture process information, record and restore program call stack information, filter and identify network behavior functions, directly read unencrypted data and decrypted data, and realize end-side behavior perspective of encrypted traffic.
It reduces terminal resource consumption, improves the efficiency and accuracy of encrypted traffic analysis, provides an in-depth analysis perspective on encrypted malicious behavior, and enhances network security protection capabilities.
Smart Images

Figure CN118890193A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of encrypted traffic behavior detection, and in particular to a terminal-side behavior perspective method for encrypted traffic in network communications. Background Art
[0002] The global network security situation is becoming increasingly severe, and people are paying more and more attention to the protection of network data. Therefore, encryption protocols are often used in network transmission to ensure data integrity and confidentiality, such as TLS, SSL and other protocols. It is also common for more and more malware to use encrypted traffic to evade network analysis and detection, and the encrypted malicious traffic that evades review is showing a trend of rapid change, variety, strong offensiveness and high concealment.
[0003] For the behavioral analysis and identification of encrypted traffic, the existing technology generally adopts the methods of reverse analysis of cryptographic protocols and decryption of bypass mirror traffic. Among them: the solution of reverse analysis of cryptographic protocol format is to find the decrypted plaintext buffer, use this buffer as the pollution source, extract the protocol format by observing the program's processing of it, and then extract related messages to achieve network behavior analysis; and the decryption of bypass mirror traffic, after collecting the full amount of traffic, decrypt it by importing the private key certificate on the server side.
[0004] The reverse analysis method of the cryptographic protocol format mainly finds the decryption function based on statistical rules, and then finds the decrypted plaintext. This method cannot accurately locate the encryption and decryption function, and it runs in the terminal device, which consumes a lot of terminal resources (CPU, memory, etc.); The bypass mirror traffic decryption method collects the full amount of traffic at the network entrance and exit, which has a large amount of data, a complex detection and analysis process, and low efficiency. In addition, packet loss will lead to incomplete decryption, and when using the forward security encryption protocol, decryption and behavior analysis cannot be achieved.
[0005] Based on the above reasons, the present invention designs a method for end-side behavior perspective of encrypted traffic in network communications. It captures process information through dynamic binary instrumentation technology, restores and identifies program call stack information, filters and identifies function information of network behavior to obtain data organization, encapsulation and encryption methods, thereby reading unencrypted data and decrypted data, thereby realizing end-side behavior perspective of encrypted traffic. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for end-side behavior perspective of encrypted traffic in network communications. The method captures process information through dynamic binary instrumentation technology, restores and identifies program call stack information, filters and identifies function information of network behavior to obtain data organization, encapsulation and encryption methods, thereby reading unencrypted data and decrypting data, thereby realizing end-side behavior perspective of encrypted traffic.
[0007] In order to achieve the above object, the present invention provides a method for analyzing the end-side behavior of encrypted traffic in network communication, comprising the following steps: S1, the service application of the terminal to be monitored is started; S2, instrumentation to collect application process creation information: using cross-operating system dynamic binary instrumentation technology, the process information can be captured when the program process is created, so as to facilitate subsequent instrumentation for data collection; S3, instrumentation collects application function call information and records the logical flow of the program when it is running, including the called function stack, and records the function address, parameters, and return results; S4, restoring and identifying the program function call stack information, and restoring and identifying the program function call stack information by restoring and identifying the program function call stack information through the fixed protocol format of the data segment or the data structure pointed to by the function pointer; S5, filtering and identifying the function information of the network behavior of the application program, filtering and identifying the functions related to the network traffic based on the general data, the functions include: encryption function, sending function, receiving function, decryption function, reading function, and obtaining the data organization, encapsulation, and encryption method; S6, reading unencrypted data and decrypted data in network behavior; S7, constructs and restores network behavior to achieve end-side behavior perspective on encrypted traffic, and constructs and restores network interaction context based on unencrypted data and decrypted data in network behavior.
[0008] Compared with the prior art, the present invention realizes instant capture when the application process is created by adopting the end-side behavior perspective technology and the dynamic binary instrumentation technology at the operating system level, effectively reducing the consumption of terminal resources, while avoiding the huge amount of data and traffic packet loss problems in the decryption of bypass mirror traffic, and improving the efficiency and accuracy of encrypted traffic analysis. The present invention collects the function call information of the application through instrumentation, and can accurately record the logical flow of the program when it is running, including key information such as function address, parameters and return results. Combined with the restoration and identification of program function call stack information, it can deeply analyze the data organization and encapsulation method in the encrypted traffic, providing a new perspective for identifying encrypted malicious behavior. The present invention directly reads the unencrypted data and decrypted data in the network behavior by filtering and identifying the encryption and decryption functions in the network behavior, bypassing the limitations of the traditional decryption method. This method not only improves the efficiency of analysis, but also can cope with forward security encryption protocols, realizes in-depth behavior analysis and perspective of encrypted traffic, and effectively enhances network security protection capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a schematic diagram of the overall method flow of the present invention. DETAILED DESCRIPTION
[0010] The present invention will now be further described with reference to the accompanying drawings.
[0011] join Figure 1 , the present invention provides a method for analyzing the end-side behavior of encrypted traffic in network communication: The following steps are involved: S1, the service application of the terminal to be monitored is started; S2, instrumentation to collect application process creation information: using cross-operating system dynamic binary instrumentation technology, the process information can be captured when the program process is created, so as to facilitate subsequent instrumentation for data collection; S3, instrumentation collects application function call information and records the logical flow of the program when it is running, including the called function stack, and records the function address, parameters, and return results; S4, restoring and identifying the program function call stack information, and restoring and identifying the program function call stack information by restoring and identifying the program function call stack information through the fixed protocol format of the data segment or the data structure pointed to by the function pointer; S5, filtering and identifying the function information of the network behavior of the application program, filtering and identifying the functions related to the network traffic based on the general data, the functions include: encryption function, sending function, receiving function, decryption function, reading function, and obtaining the data organization, encapsulation, and encryption method; S6, reading unencrypted data and decrypted data in network behavior; S7, constructs and restores network behavior to achieve end-side behavior perspective on encrypted traffic, and constructs and restores network interaction context based on unencrypted data and decrypted data in network behavior.
[0012] The above are only preferred embodiments of the present invention, which are only used to help understand the method and core ideas of the present application. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
[0013] The present invention solves the problems of high decryption overhead, difficult decryption on the nested encrypted flow side, and inability to accurately identify terminal host network behavior in the prior art during behavior identification and analysis of encrypted traffic. Through terminal-side behavior perspective technology, accurate collection and restoration of function call information and direct reading of unencrypted data and decrypted data, the efficiency and accuracy of encrypted traffic analysis are improved, and the data organization and encapsulation methods in encrypted traffic are deeply analyzed, which provides a new perspective for identifying encrypted malicious behavior. It not only improves the efficiency of analysis, but also can cope with forward security encryption protocols, realizes in-depth behavior analysis and perspective of encrypted traffic, and effectively enhances network security protection capabilities.
Claims
1. A method for analyzing the end-side behavior of encrypted traffic in network communication, characterized in that: The following steps are involved: S1, the service application of the terminal to be monitored is started; S2, instrumentation to collect application process creation information: using cross-operating system dynamic binary instrumentation technology, the process information can be captured when the program process is created, so as to facilitate subsequent instrumentation for data collection; S3, instrumentation collects application function call information and records the logical flow of the program when it is running, including the called function stack, and records the function address, parameters, and return results; S4, restoring and identifying the program function call stack information, wherein the restoring and identifying is performed through a fixed protocol format of a data segment or a data structure pointed to by a function pointer; S5, filtering and identifying function information of the network behavior of the application program, wherein the filtering and identification is filtering functions related to network traffic based on general data, wherein the functions include: encryption function, sending function, receiving function, decryption function, and reading function, and obtaining data organization, encapsulation, and encryption methods; S6, reading unencrypted data and decrypted data in network behavior; S7, construct and restore the network behavior to achieve end-side behavior perspective on the encrypted traffic, wherein the construction and restoration is to form a network interaction context based on the unencrypted data and the decrypted data in the network behavior.
Citation Information
Patent Citations
Method for obtaining encrypted data on iOS platform
CN110096433A
SSH encrypted traffic content restoration method based on ebpf technology
CN116915727A
Trusted detection method and device for domain preposition attack, storage medium and electronic equipment
CN117879940A
Logging encrypted data communications for qoe analysis
US20170104787A1
