Traffic security audit method, system, and computer equipment
By establishing a virtual server and a virtual client between the client and the server, the encrypted traffic can be decrypted and analyzed in real time, which solves the problem that existing tools cannot identify malicious traffic, enables visualization and security auditing of encrypted traffic, and improves efficiency. Security of network communications.
Patent Information
- Application Number
- CN202210319531.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-03-29
AI Technical Summary
Existing network traffic analysis tools cannot effectively identify and intercept malicious behaviors hidden in encrypted traffic, making network attacks difficult to detect and defend against.
By establishing a virtual server and a virtual client between the client and the server, real-time monitoring and decryption of encrypted traffic, interception and analysis based on malicious traffic interception rules, and generation of intrusion detection logs and security logs are achieved to visualize and analyze encrypted traffic. Security audit.
Effectively identify and intercept malicious behaviors hidden in encrypted traffic, improve the security of network communications, and make network attacks and user behaviors traceable and monitorable.
Smart Images

Figure CN114679322B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network security auditing, and in particular to a traffic security auditing method, system, and computer equipment. Background Art
[0002] In the current society, network communication technology is becoming more and more advanced, and network communication has become one of the main ways for people to communicate. As network communication technology becomes more and more important in people's lives, the public is also paying more and more attention to the confidentiality and security of network communication traffic data. As one of the most widely used and most applicable communication technologies, the Transport Layer Security Protocol is becoming more and more popular among the public; its working principle is: it is applied between two communication applications to provide confidentiality, security and data integrity. However, while the Transport Layer Security brings communication security, it is also subject to a lot of invasion and attack from illegal networks. And with the continuous improvement of science and technology, malicious traffic attacks have become more covert, and more and more network attackers use the Transport Layer Security Protocol encrypted channels to deliver and distribute malware payloads and vulnerability exploits, but most network traffic analysis tools cannot identify encrypted traffic carrying malicious behavior.
[0003] Therefore, there is an urgent need to propose a traffic security audit method, system, and computer equipment that can make network behavior traceable and supervised, and network traffic analyzable and auditable. Summary of the invention
[0004] Based on this, it is necessary to provide a traffic security audit method, system, and computer equipment that can monitor and track network behavior and analyze and audit network traffic in response to the above technical problems.
[0005] On the one hand, a traffic security audit method is provided, the method comprising:
[0006] Step A: Real-time monitoring of the traffic communication status between the client and the server;
[0007] Step B: When the client sends encrypted request traffic to the server, a virtual server is established to receive and securely process the encrypted request traffic sent by the client, a virtual client is established to receive the encrypted request traffic after secure processing, and the encrypted request traffic after secure processing is forwarded to the server;
[0008] Step C: When the server sends encrypted response traffic to the client, a virtual client is established to receive and securely process the encrypted response traffic, a virtual server is established to receive the encrypted response traffic after secure processing, and the encrypted response traffic after secure processing is forwarded to the client.
[0009] In one of the embodiments, the traffic communication state between the client and the server includes: the client sends encrypted request traffic to the server; the server sends encrypted response traffic to the client.
[0010] In one of the embodiments, when the client sends encrypted request traffic to the server, the method also includes: the virtual server decrypts the encrypted request traffic sent by the client to generate a first decryption request traffic; based on a malicious traffic interception rule, intercepts malicious traffic present in the first decryption request traffic to generate a second decryption request traffic; establishes a virtual client to receive and encrypt the second decryption request traffic, and forwards the encrypted second decryption request traffic to the server.
[0011] In one of the embodiments, when the server sends a response traffic to the client, the method also includes: the server generates encrypted response traffic corresponding to the encrypted second decrypted traffic, establishes a virtual client to decrypt the encrypted response traffic, and generates a first decrypted response traffic; based on a malicious traffic interception rule, intercepts malicious traffic present in the first decrypted response traffic to generate a second decrypted response traffic; establishes a virtual server to receive and encrypt the second decrypted response traffic, and forwards the encrypted second decrypted response traffic to the client.
[0012] In one of the embodiments, before generating the second decrypted response traffic, the method also includes: when the client sends encrypted request traffic to the server, obtaining and storing the server certificate; when the virtual client sends the second decrypted response traffic to the virtual server, re-signing the server certificate; and sending the re-signed server certificate to the virtual server.
[0013] In one of the embodiments, a transparent bridge mode is adopted between the client and the server; when the server does not respond to the encrypted request traffic sent by the client, and / or the client does not respond to the encrypted response traffic sent by the server, the transparent bridge mode is switched to a connected state.
[0014] In one of the embodiments, the method also includes: obtaining malicious traffic present in the first decryption request traffic and the first decryption response traffic, and malicious traffic interception behavior and malicious traffic interception results corresponding to the malicious traffic; based on the malicious traffic category, analyzing and storing the malicious traffic, malicious traffic interception behavior and malicious traffic interception results.
[0015] In one of the embodiments, the method also includes: obtaining and analyzing the traffic between the client and the server, the traffic including encrypted request traffic and encrypted response traffic; restoring the traffic, and generating an intrusion detection log and a security log corresponding to the traffic; obtaining a malicious traffic interception operation record for the traffic based on the malicious traffic interception rule; based on the traffic category, correspondingly storing the security intrusion detection log, security log, malicious traffic interception operation record, traffic before restoration, and traffic after restoration to implement a security audit of the traffic.
[0016] On the other hand, a traffic security audit system is provided, the system is connected between a client and a server; the system comprises a status monitoring unit, a virtual server and a virtual client; the status monitoring unit is used to monitor the traffic communication status between the client and the server in real time;
[0017] When the client sends encrypted request traffic to the server, the virtual server is used to receive and securely process the encrypted request traffic sent by the client; the virtual client is used to receive the encrypted request traffic after security processing and forward the encrypted request traffic after security processing to the server;
[0018] When the server sends encrypted response traffic to the client, the virtual server is used to receive the encrypted response traffic after security processing and forward the encrypted response traffic after security processing to the client; the virtual client is used to receive and securely process the encrypted response traffic.
[0019] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0020] Step A: Real-time monitoring of the traffic communication status between the client and the server;
[0021] Step B: When the client sends encrypted request traffic to the server, a virtual server is established to receive and securely process the encrypted request traffic sent by the client, a virtual client is established to receive the encrypted request traffic after secure processing, and the encrypted request traffic after secure processing is forwarded to the server;
[0022] Step C: When the server sends encrypted response traffic to the client, a virtual client is established to receive and securely process the encrypted response traffic, a virtual server is established to receive the encrypted response traffic after secure processing, and the encrypted response traffic after secure processing is forwarded to the client.
[0023] The above-mentioned traffic security audit method, system, and computer equipment, the method includes real-time monitoring of the traffic communication status between the client and the server, that is, as long as traffic communication occurs between the client and the server, the communication traffic between the client and the server is started to be monitored accordingly; when the client sends encrypted request traffic to the server, a virtual server is established to receive and securely process the encrypted request traffic sent by the client, a virtual client is established to receive the encrypted request traffic after security processing, and the encrypted request traffic after security processing is forwarded to the server; when the server sends encrypted response traffic to the client, a virtual client is established to receive and securely process the encrypted response traffic, a virtual server is established to receive the encrypted response traffic after security processing, and the encrypted response traffic after security processing is forwarded to the client. The traffic security audit method described in this application realizes the visualization of encrypted traffic, so that malicious traffic attack behaviors, network intrusion behaviors, and user Internet behaviors hidden in encrypted traffic can be tracked. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A flow chart of a traffic security audit method in one embodiment;
[0025] Figure 2 A flow chart of a traffic security audit method in one embodiment;
[0026] Figure 3 A flow chart of a traffic security audit method in one embodiment;
[0027] Figure 4 A structural block diagram of a traffic security audit system in one embodiment;
[0028] Figure 5 A structural block diagram of a traffic security audit system in one embodiment;
[0029] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.
[0031] Embodiment 1
[0032] This application provides a traffic security audit method, such as Figure 1 As shown, the method comprises the following steps:
[0033] Step A, real-time monitoring of the traffic communication status between the client and the server;
[0034] Step B, when the client sends encrypted request traffic to the server, establish a virtual server to receive and securely process the encrypted request traffic sent by the client, establish a virtual client to receive the encrypted request traffic after secure processing, and forward the encrypted request traffic after secure processing to the server;
[0035] Step C, when the server sends encrypted response traffic to the client, establish a virtual client to receive and securely process the encrypted response traffic, establish a virtual server to receive the encrypted response traffic after security processing, and forward the encrypted response traffic after security processing to the client.
[0036] Among them, the traffic communication state described in step A refers to the client sending request traffic to the server, and the server returning response traffic to the client. And it should be understood that the response traffic is generated based on the request traffic, that is, the response traffic can be generated accordingly based on the request traffic. Specifically, the traffic communication state between the client and the server is monitored in real time, that is, whether there is communication traffic interaction between the client and the server, and the communication traffic interaction may include: the client sending request traffic to the server; it may also include: the server sending response traffic to the client.
[0037] It should be understood that the virtual server and virtual client can be generated after monitoring the communication traffic interaction between the client and the server, or they can exist all the time. That is, in actual application scenarios, the virtual client and virtual server can be generated after monitoring the communication traffic interaction between the client and the server, and the function, performance and other parameter information of the virtual client can be completely consistent with that of the client, and the function, performance and other parameter information of the virtual server can also be completely consistent with that of the server. It should be understood that in actual application scenarios, the role of the virtual client and the virtual server is to pre-process the request traffic sent by the client and the response traffic returned by the server to prevent malicious traffic in the request traffic and / or the response traffic from causing damage to the server and the client.
[0038] Specifically, when it is detected that there is communication traffic interaction between the client and the server, the establishment of a virtual client and a virtual server can, on the one hand, ensure the equivalence and high adaptability of the virtual client and the virtual server to the actual client and the actual server; that is, since the virtual client and the virtual server are not a fixed normalized port, they are only generated and established corresponding to the client and the server after the communication traffic interaction between the client and the server is detected. Therefore, when the technical personnel change the performance parameters of the server or the client, there is no need to perform equivalent operations on the virtual client and the virtual server; on the other hand, if the virtual client and the virtual server are set as normalized ports, the vulnerability of the virtual client and the virtual server will increase; that is, if the virtual client and the virtual server always exist, then criminals may attack the virtual client and the virtual server, which will greatly weaken the protection of the virtual client and the virtual server.
[0039] In the above-mentioned traffic security audit method, based on the communication traffic interaction between the client and the server, the visualization of the communication traffic is realized, the malicious traffic entrained in the communication traffic is effectively eliminated, and the security of the traffic communication between the client and the server is improved.
[0040] In one embodiment, Figure 2 As shown, when the client sends encrypted request traffic to the server, the method also includes: the virtual server decrypts the encrypted request traffic sent by the client to generate a first decryption request traffic; based on a malicious traffic interception rule, intercepts malicious traffic present in the first decryption request traffic to generate a second decryption request traffic; establishes a virtual client to receive and encrypt the second decryption request traffic, and forwards the encrypted second decryption request traffic to the server.
[0041] In one embodiment, Figure 3 As shown, when the server sends response traffic to the client, the method further includes:
[0042] The server generates encrypted response traffic corresponding to the encrypted second decrypted traffic, establishes a virtual client to decrypt the encrypted response traffic, and generates a first decrypted response traffic; intercepts malicious traffic in the first decrypted response traffic based on malicious traffic interception rules, and generates a second decrypted response traffic; establishes a virtual server to receive and encrypt the second decrypted response traffic, and forwards the encrypted second decrypted response traffic to the client. By analyzing the communication traffic based on the virtual client and the virtual server, the visualization and controllability of the communication traffic are achieved, making the malicious traffic attack behaviors, network intrusion behaviors, and user online behaviors hidden in the encrypted traffic traceable and purifiable.
[0043] Among them, the malicious traffic interception rules may include: black and white filter lists and sensitive information interception; black and white filter lists may include blacklists and whitelists. It should be understood that the request traffic sent by the client and the response traffic sent by the server contain a lot of traffic information, wherein the blacklist means that if some traffic information in the request traffic or response traffic exists in the blacklist, then the part of the information is directly filtered out, and the whitelist means that if some traffic information in the request traffic or response traffic exists in the whitelist, then the part of the information is directly forwarded to the virtual client, and no longer processed. It should be understood that there is a high probability that there is a part of the traffic information in the request traffic or response traffic that does not exist in the whitelist or the blacklist, so this part should be analyzed and processed in a focused manner. The so-called focused analysis and processing may include sensitive information interception, for example: in actual application scenarios, technicians in this field regard RMB and its related symbols as sensitive words, that is, if such sensitive words exist in the request traffic and response traffic, then the traffic information corresponding to such sensitive words is processed based on specific sensitive information processing rules. It is also necessary to understand that the sensitive information processing rules may include: directly filtering out the traffic information corresponding to the defined sensitive words, or sending the traffic information corresponding to the defined sensitive words to manual personnel for further judgment based on the actual scenario.
[0044] In one embodiment, before generating the second decryption response traffic, the method also includes: when the client sends encrypted request traffic to the server, obtaining and storing the server certificate; when the virtual client sends the second decryption response traffic to the virtual server, re-signing the server certificate; and sending the re-signed server certificate to the virtual server.
[0045] In one embodiment, a transparent bridge mode is used between the client and the server to ensure that the client and the server can be in a long-term and stable communicative state, that is, to ensure that the network structure of the access network does not need to be modified when the client and the server communicate. Among them, the transparent bridge mode can include a pair of BYPASS network cards, that is, a pair of BYPASS network cards are set between the client and the server. The transparent bridge mode can include two link layers, that is, the transparent bridge mode can include a network layer and a data link layer, the network layer can include a NetFilter module, and the data link layer can include a Bridge-NF module. Among them, the NetFilter module can selectively hijack the communication traffic, filter the communication traffic that the user is concerned about, and use it as data input to monitor and analyze the communication traffic.
[0046] In one embodiment, when the server does not respond to the encrypted request traffic sent by the client, and / or the client does not respond to the encrypted response traffic sent by the server, the transparent bridge mode is switched to a connected state. That is, when the client and the server cannot communicate with each other due to a system failure or an unexpected power outage, the transparent bridge mode is used to ensure normal traffic communication between the client and the server.
[0047] In one embodiment, the traffic security audit method described in this embodiment also includes: obtaining malicious traffic present in the first decryption request traffic and the first decryption response traffic, and malicious traffic interception behavior and malicious traffic interception results corresponding to the malicious traffic; based on the malicious traffic category, analyzing and storing the malicious traffic, malicious traffic interception behavior and malicious traffic interception results. Among them, the malicious traffic category may include but is not limited to: blacklist malicious traffic, and may also include other malicious traffic categories defined by technicians in this field, such as: sensitive word traffic. Classifying, storing and analyzing malicious traffic, malicious traffic interception behavior and malicious traffic interception results based on malicious traffic categories can, on the one hand, facilitate technicians to obtain and analyze intercepted malicious traffic; on the other hand, it can compare and obtain malicious traffic categories with higher frequency of occurrence, which is conducive to the technical personnel in this field to update the malicious traffic interception rules, so as to realize the continuous upgrading of the entire traffic security audit method.
[0048] In one embodiment, the traffic security audit method also includes: obtaining and analyzing the traffic between the client and the server, the traffic including encrypted request traffic and encrypted response traffic; restoring the traffic, and generating an intrusion detection log and a security log corresponding to the traffic; obtaining a malicious traffic interception operation record performed on the traffic based on the malicious traffic interception rule; based on the traffic category, correspondingly storing the security intrusion detection log, security log, malicious traffic interception operation record, traffic before restoration, and traffic after restoration to achieve a security audit of the traffic.
[0049] Among them, the traffic before restoration refers to the request traffic and response traffic after being intercepted by the malicious traffic interception rules and processed by the virtual server and virtual client; the traffic after restoration refers to the request traffic and response traffic that have not been intercepted by the malicious traffic interception rules and processed by the virtual server and virtual client. In other words, the traffic after restoration refers to the request traffic sent by the client and the response traffic sent by the server.
[0050] It should be understood that the response traffic described in this application includes encrypted response traffic and decrypted response traffic, and the request traffic includes encrypted request traffic and decrypted request traffic. Figure 1-3The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0051] Embodiment 2
[0052] In one embodiment, a traffic security audit method is provided, the method comprising:
[0053] Step A: Real-time monitoring of the traffic communication status between the client and the server;
[0054] Step B: When the client sends encrypted request traffic to the server, a virtual server is established to receive and securely process the encrypted request traffic sent by the client, a virtual client is established to receive the encrypted request traffic after secure processing, and the encrypted request traffic after secure processing is forwarded to the server;
[0055] Step C: When the server sends encrypted response traffic to the client, a virtual client is established to receive and securely process the encrypted response traffic, a virtual server is established to receive the encrypted response traffic after secure processing, and the encrypted response traffic after secure processing is forwarded to the client.
[0056] In one embodiment, the traffic communication state between the client and the server includes: the client sends encrypted request traffic to the server; the server sends encrypted response traffic to the client.
[0057] In one embodiment, when the client sends encrypted request traffic to the server, the method also includes: the virtual server decrypts the encrypted request traffic sent by the client to generate a first decryption request traffic; based on malicious traffic interception rules, intercepts malicious traffic present in the first decryption request traffic to generate a second decryption request traffic; establishes a virtual client to receive and encrypt the second decryption request traffic, and forwards the encrypted second decryption request traffic to the server.
[0058] In one embodiment, when the server sends response traffic to the client, the method also includes: the server generates encrypted response traffic corresponding to the encrypted second decrypted traffic, establishes a virtual client to decrypt the encrypted response traffic, and generates first decrypted response traffic; based on malicious traffic interception rules, intercepts malicious traffic present in the first decrypted response traffic to generate second decrypted response traffic; establishes a virtual server to receive and encrypt the second decrypted response traffic, and forwards the encrypted second decrypted response traffic to the client.
[0059] In one embodiment, before generating the second decryption response traffic, the method also includes: when the client sends encrypted request traffic to the server, obtaining and storing the server certificate; when the virtual client sends the second decryption response traffic to the virtual server, re-signing the server certificate; and sending the re-signed server certificate to the virtual server.
[0060] In one embodiment, a transparent bridge mode is adopted between the client and the server; when the server does not respond to the encrypted request traffic sent by the client, and / or the client does not respond to the encrypted response traffic sent by the server, the transparent bridge mode is switched to a connected state.
[0061] In one embodiment, the method also includes: obtaining malicious traffic present in the first decryption request traffic and the first decryption response traffic, and malicious traffic interception behavior and malicious traffic interception results corresponding to the malicious traffic; based on the malicious traffic category, analyzing and storing the malicious traffic, malicious traffic interception behavior and malicious traffic interception results.
[0062] In one embodiment, the method also includes: obtaining and analyzing the traffic between the client and the server, the traffic including encrypted request traffic and encrypted response traffic; restoring the traffic, and generating an intrusion detection log and a security log corresponding to the traffic; obtaining a malicious traffic interception operation record performed on the traffic based on the malicious traffic interception rule; based on the traffic category, correspondingly storing the security intrusion detection log, security log, malicious traffic interception operation record, traffic before restoration, and traffic after restoration to achieve a security audit of the traffic.
[0063] Embodiment 3
[0064] In one embodiment, a traffic security audit system is provided. Figure 4 and Figure 5 As shown, the system is connected between the client and the server; the system includes a status monitoring unit, a virtual server and a virtual client;
[0065] Among them, the status monitoring unit is used to monitor the traffic communication status between the client and the server in real time; when the client sends encrypted request traffic to the server, the virtual server is used to receive and securely process the encrypted request traffic sent by the client; the virtual client is used to receive the encrypted request traffic after security processing, and forward the encrypted request traffic after security processing to the server; when the server sends encrypted response traffic to the client, the virtual server is used to receive the encrypted response traffic after security processing, and forward the encrypted response traffic after security processing to the client; the virtual client is used to receive and securely process the encrypted response traffic.
[0066] In one embodiment, the system also includes a malicious traffic interception unit, which is connected between the virtual client and the virtual server. The malicious traffic interception unit is based on malicious traffic interception rules to intercept malicious traffic present in the first decryption request traffic or the first decryption response traffic.
[0067] In one embodiment, the malicious traffic interception unit may include a blacklist and whitelist filtering module, a certificate re-signing module and a rule filtering module.
[0068] In one embodiment, the system further includes a storage unit, which is connected to the malicious traffic interception unit. The storage unit is based on the malicious traffic category to analyze and store the malicious traffic, malicious traffic interception behavior and malicious traffic interception results.
[0069] In one embodiment, the system also includes an IDS unit, which is connected between the client and the server. The IDS unit is based on traffic categories to correspondingly store the security intrusion detection log, security log, malicious traffic interception operation record, traffic before restoration, and traffic after restoration to achieve security auditing of the traffic.
[0070] In one embodiment, the system further includes a data collection engine, which is connected to the IDS unit and the storage unit, and the data collection engine is based on the flow information stored in the IDS unit and the storage unit to monitor and audit the flow information. In addition, those skilled in the art can also acquire and analyze the flow information stored in the IDS unit and the storage unit to update the malicious interception rules.
[0071] For the specific definition of the traffic security audit system, please refer to the definition of the traffic security audit method above, which will not be repeated here. Each module in the above-mentioned traffic security audit system can be implemented in whole or in part through software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0072] Embodiment 4
[0073] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store request traffic and response traffic data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a traffic security audit method is implemented.
[0074] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0075] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0076] Step A: monitoring the traffic communication status between the client and the server in real time, wherein the traffic communication status between the client and the server includes: the client sends encrypted request traffic to the server; the server sends encrypted response traffic to the client;
[0077] Step B: When the client sends encrypted request traffic to the server, a virtual server is established to receive and securely process the encrypted request traffic sent by the client, a virtual client is established to receive the encrypted request traffic after secure processing, and the encrypted request traffic after secure processing is forwarded to the server;
[0078] Step C: When the server sends encrypted response traffic to the client, a virtual client is established to receive and securely process the encrypted response traffic, a virtual server is established to receive the encrypted response traffic after secure processing, and the encrypted response traffic after secure processing is forwarded to the client.
[0079] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0080] When the client sends encrypted request traffic to the server, the virtual server decrypts the encrypted request traffic sent by the client to generate first decryption request traffic; based on malicious traffic interception rules, malicious traffic present in the first decryption request traffic is intercepted to generate second decryption request traffic; a virtual client is established to receive and encrypt the second decryption request traffic, and the encrypted second decryption request traffic is forwarded to the server.
[0081] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0082] When the server sends encrypted response traffic to the client, the server generates encrypted response traffic corresponding to the encrypted second decrypted traffic, establishes a virtual client to decrypt the encrypted response traffic, and generates first decrypted response traffic; based on malicious traffic interception rules, malicious traffic present in the first decrypted response traffic is intercepted to generate second decrypted response traffic; establishes a virtual server to receive and encrypt the second decrypted response traffic, and forwards the encrypted second decrypted response traffic to the client.
[0083] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0084] When the client sends encrypted request traffic to the server, the server certificate is obtained and stored; when the virtual client sends a second decrypted response traffic to the virtual server, the server certificate is re-signed; and the re-signed server certificate is sent to the virtual server.
[0085] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0086] When the server does not respond to the encrypted request traffic sent by the client, and / or the client does not respond to the encrypted response traffic sent by the server, the transparent bridge mode is switched to a connected state.
[0087] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0088] Obtain malicious traffic present in the first decryption request traffic and the first decryption response traffic, and malicious traffic interception behavior and malicious traffic interception results corresponding to the malicious traffic; based on the malicious traffic category, analyze and store the malicious traffic, malicious traffic interception behavior and malicious traffic interception results.
[0089] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0090] Acquire and analyze the traffic between the client and the server, the traffic including encrypted request traffic and encrypted response traffic; restore the traffic, and generate an intrusion detection log and a security log corresponding to the traffic; obtain a malicious traffic interception operation record for the traffic based on the malicious traffic interception rule; based on the traffic category, correspondingly store the security intrusion detection log, security log, malicious traffic interception operation record, traffic before restoration, and traffic after restoration to achieve a security audit of the traffic.
[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0092] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0093] The above-mentioned embodiments only express several implementation methods 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 a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A traffic security audit method, characterized in that: The method comprises: Real-time monitoring of traffic communication status between the client and the server; When the client sends encrypted request traffic to the server, a virtual server is established to receive and securely process the encrypted request traffic sent by the client, a virtual client is established to receive the securely processed encrypted request traffic, and the securely processed encrypted request traffic is forwarded to the server; When the server sends encrypted response traffic to the client, a virtual client is established to receive and securely process the encrypted response traffic, a virtual server is established to receive the securely processed encrypted response traffic, and the securely processed encrypted response traffic is forwarded to the client; The traffic communication state between the client and the server includes: the client sends encrypted request traffic to the server; the server sends encrypted response traffic to the client; When the client sends encrypted request traffic to the server, the method further includes: The virtual server decrypts the encrypted request traffic sent by the client to generate first decrypted request traffic; Based on the malicious traffic interception rule, the malicious traffic present in the first decryption request traffic is intercepted to generate a second decryption request traffic; Establishing a virtual client to receive and encrypt the second decryption request traffic, and forwarding the encrypted second decryption request traffic to the server; When the server sends encrypted response traffic to the client, the method further includes: The server generates encrypted response traffic corresponding to the encrypted second decrypted traffic, establishes a virtual client to decrypt the encrypted response traffic, and generates first decrypted response traffic; Based on the malicious traffic interception rule, the malicious traffic present in the first decrypted response traffic is intercepted to generate a second decrypted response traffic; A virtual server is established to receive and encrypt the second decryption response traffic, and forward the encrypted second decryption response traffic to the client.
2. The traffic security audit method according to claim 1, characterized in that: Before generating the second decryption response traffic, the method further includes: When the client sends encrypted request traffic to the server, obtaining and storing the server certificate; When the virtual client sends the second decrypted response traffic to the virtual server, re-signing the server certificate; The re-signed server certificate is sent to the virtual server.
3. The traffic security audit method according to claim 1 or 2, characterized in that: A transparent bridge mode is adopted between the client and the server; When the server does not respond to the encrypted request traffic sent by the client, and / or the client does not respond to the encrypted response traffic sent by the server, the transparent bridge mode is switched to a connected state.
4. The traffic security audit method according to claim 1 or 2, characterized in that: The method further comprises: Acquire malicious traffic present in the first decryption request traffic and the first decryption response traffic, and malicious traffic interception behavior and malicious traffic interception results corresponding to the malicious traffic; Based on the malicious traffic category, the malicious traffic, malicious traffic interception behavior and malicious traffic interception results are analyzed and stored.
5. The traffic security audit method according to claim 1 or 2, characterized in that: The method further comprises: acquiring and analyzing traffic between the client and the server, the traffic comprising encrypted request traffic and encrypted response traffic; Restoring the traffic, and generating an intrusion detection log and a security log corresponding to the traffic; Obtaining a malicious traffic interception operation record performed on the traffic based on the malicious traffic interception rule; Based on the traffic category, the intrusion detection log, security log, malicious traffic interception operation record, traffic before restoration and traffic after restoration are stored accordingly to achieve security audit of the traffic.
6. An encrypted traffic security audit system implementing the method as claimed in claim 1, characterized in that: The system is connected between the client and the server; the system includes a status monitoring unit, a virtual server and a virtual client; The state monitoring unit is used to monitor the flow communication state between the client and the server in real time; When the client sends encrypted request traffic to the server, The virtual server is used to receive and securely process the encrypted request traffic sent by the client; The virtual client is used to receive the encrypted request traffic after security processing and forward the encrypted request traffic after security processing to the server; When the server sends encrypted response traffic to the client, The virtual server is used to receive the encrypted response traffic after security processing and forward the encrypted response traffic after security processing to the client; The virtual client is used to receive and securely process the encrypted response traffic.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
