A method to improve SSL VPN security based on HTTPS traffic simulation
By improving the SSL connection module and VPN protocol module of SSL VPN, changing the SSL transmission channel to an HTTPS characteristic channel, and introducing a data shaping method to simulate HTTPS traffic characteristics, the problem of SSL VPN traffic being identified and controlled in cross-regional networking is solved. , significantly improving the security and stability of SSL VPN.
Patent Information
- Application Number
- CN202311639749.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-12-04
AI Technical Summary
SSL VPN traffic in cross-regional, cross-operator, and international networking applications is easily identified and controlled by regulators due to abnormal characteristics, leading to abnormal access.
By improving the SSL connection module and VPN protocol module of SSL VPN, the SSL transmission channel is improved into an HTTPS characteristic channel, and a data shaping method is introduced to simulate HTTPS traffic characteristics to avoid being identified as VPN traffic. Specific steps include analyzing HTTPS data traffic characteristics, forming an HTTPS traffic template, combining SSL transmission channels to form HTTPS characteristic channels, and applying traffic shaping methods in VPN proxy data transmission.
It effectively reduces the risk of VPN proxy traffic being identified as ‘suspicious traffic’ by the automated monitoring system, circumvents the statistical identification and control of SSL VPN traffic, and improves the security and stability of SSL VPN data transmission.
Smart Images

Figure CN117857094B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of network security, and in particular relates to a SSL VPN security improvement method based on HTTPS traffic simulation. Background Art
[0002] Currently, VPN networking technology has become very popular, and monitoring and control of VPN traffic is also common. Due to the influence of some security mechanisms of VPN itself and the defects of VPN traffic identification and detection methods, regulators are often unable to accurately identify which VPN traffic is harmful, and adopt a "one-size-fits-all" approach. As a result, when using VPN in some cross-regional, cross-operator, and international networking applications, access anomalies may be encountered due to abnormal VPN traffic control.
[0003] SSL VPN is a popular VPN technology that has emerged in recent years. Through SSL data encryption, VPN data can be protected from reading and tampering, thus improving the security of data transmission. However, even after data encryption, some typical characteristics of VPN data flow (high small packet ratio, high interaction rate, large connection volume, etc.) will still be reflected in the SSL data flow, and thus be identified by regulators through big data analysis or traffic analysis, and then encounter abnormal control. In recent years, traffic identification technology for SSL VPN has been continuously updated, such as:
[0004] Patent CN112118270A proposes: a method for identifying VPN traffic based on SSL encryption;
[0005] Patent CN101296228A proposes: SSL VPN protocol detection method based on traffic analysis;
[0006] Patent CN110311870A proposes: a method for identifying SSL VPN traffic based on density data description;
[0007] Patent CN115051828A proposes: an SSL VPN encrypted traffic identification and classification method for class imbalance.
[0008] Based on the above problems, the present invention proposes an improved method of SSL VPN based on HTTPS traffic simulation, which can effectively avoid SSL VPN traffic from being identified and controlled, thereby improving the security and stability of SSL VPN data transmission process. Summary of the invention
[0009] The technical problem to be solved by the present invention is to provide an SSL VPN security improvement method based on HTTPS traffic simulation in view of the shortcomings of the background technology, which can effectively avoid the identification and control of SSL VPN traffic, thereby improving the security and stability of the SSL VPN data transmission process.
[0010] The present invention adopts the following technical solutions to solve the above technical problems:
[0011] A method for improving the security of SSL VPN based on HTTPS traffic simulation is proposed. By improving the SSL connection module and VPN protocol module of the traditional SSL VPN, the SSL transmission channel is improved into an HTTPS characteristic channel, and a data shaping method is introduced. The method specifically comprises the following steps:
[0012] Step 1: Analyze and extract data message characteristics and interaction behavior characteristics of HTTPS data traffic to form different types of HTTPS traffic templates;
[0013] Step 2, combining the HTTPS traffic template with the SSL transmission channel to form different types of HTTPS characteristic channels;
[0014] In step 3, the data of the VPN proxy is transmitted through the HTTPS characteristic channel. Its data message characteristics and traffic interaction behavior characteristics are consistent with the characteristics of HTTPS traffic, thus avoiding being identified as VPN traffic.
[0015] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, in step 1, the method and process of extracting HTTPS traffic features and forming an HTTPS traffic template specifically includes the following steps:
[0016] Step 1.1, visit multiple open websites based on HTTPS services and use wireshark, a packet capture tool, to capture request and response data;
[0017] Step 1.2: Analyze, filter and filter the captured data streams through the wireshark tool, and identify classic HTTPS data streams, such as API interactions, JS files, pictures, videos, and large files, in combination with WEB access records. Furthermore, export the identified HTTPS traffic as independent cap files in the manner of single TCP traffic tracking, and save them in groups according to the identified HTTPS types.
[0018] Step 1.3, read and count multiple cap files under the same group through a message analysis program to identify the data statistical characteristics of HTTPS access in the group; the above statistical data is the traffic statistical characteristics of HTTPS under the group;
[0019] Step 1.4, further confirm the traffic statistics characteristics of each group, integrate and adjust them, set the matching traffic shaping method and parameters according to the traffic characteristics, and export them to a specific configuration file, which is the HTTPS traffic template.
[0020] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, in step 1.3, the data statistical characteristics include the number of request packets sent, the number of response packets issued, the response interval, the secondary request interval, the request-response ratio, the number of small packets, the number of medium packets, and the number of full packets.
[0021] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, in step 2, the HTTPS feature channel includes:
[0022] An SSL connection that has completed SSL access authentication, used for actual data transmission;
[0023] HTTPS traffic template, used to associate traffic shaping methods;
[0024] Controls the specification parameters of SSL traffic, which are used to control traffic shaping implementation and message interaction behavior, as well as some statistical data and status data during data transmission.
[0025] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, the traffic shaping method is a set of methods for adjusting VPN proxy data messages and traffic distribution.
[0026] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, the traffic shaping method includes: message filling, parallel message sending, uplink and downlink separation, and dynamic data flow planning.
[0027] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, in step 3, the process of the SSL VPN system proxy application data specifically includes the following steps:
[0028] Step 3.1, start the VPN client service and the server, create a proxy listening port or create a virtual network interface, and initialize the VPN proxy connection record table;
[0029] Step 3.2, the application sends a proxy data request to the VPN client through the proxy listening port or virtual interface;
[0030] Step 3.3, the VPN client receives the application data, performs a HASH operation on the data message, and obtains the HASH KEY of the proxy connection; searches for the record of the proxy connection in the proxy connection table through the HASH KEY; if the connection is not recorded in the proxy connection table, the connection information is added to the proxy connection record table;
[0031] Step 3.4, plan the proxy connection to a certain HTTPS feature channel; if there is no HTTPS feature channel that meets the acceptance conditions, create it first and then bind it;
[0032] Step 3.5, schedule the packet sending for the HTTPS feature channel;
[0033] Step 3.6, the SSL connection module encrypts the VPN message and then sends it to the SSL connection peer;
[0034] Step 3.7, the VPN server SSL module receives the data, decrypts the data, and then passes it to the VPN protocol module for processing;
[0035] Step 3.8, the VPN protocol module parses the VPN protocol header of the data stream; further, according to the message record and shaping record in the protocol header, the traffic is restored to obtain the original message;
[0036] Step 3.9, the VPN protocol module obtains the HASHKEY through HASH operation according to the five-tuple information of the original message; searches for the proxy connection bound to the HTTPS feature channel according to the HASH KEY; then, sends the original message content to the application server through the proxy connection;
[0037] If there is no matching record in the proxy connection table, that is, the client requests forwarding to the server for the first time, a proxy connection will be created based on the five-tuple information of the original message for data forwarding; at the same time, the proxy connection will be added to the proxy connection record table for subsequent use;
[0038] Step 3.10: The application server receives the request and responds. The response data transmission process is consistent with the sending process.
[0039] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, in step 3.3, the quintuple includes source IP address, destination IP address, source port, destination port, and protocol.
[0040] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, in step 3.5, the HTTPS characteristic channel is scheduled for packet sending, and the process includes: selecting the message to be sent from the proxy connection; performing traffic shaping according to the requirements of the HTTPS characteristic channel data template; encapsulating the shaped message with a VPN protocol header; and finally, sending the encapsulated VPN message to the SSL connection module for sending.
[0041] As a further preferred solution of the SSL VPN security improvement method based on HTTPS traffic simulation of the present invention, in step 3.4, the process of binding the proxy connection to a specific HTTPS feature channel is divided into three cases:
[0042] 1. If the proxy connection belongs to a special protocol type and has a specified HTTPS feature channel type, a new HTTPS feature channel of the corresponding type will be created and the current proxy connection will be bound to the HTTPS feature channel. For example, the SSH protocol on TCP port 22 belongs to the API interactive model in the HTTPS model; the HTTP protocol on TCP port 80 or 443 belongs to the general web page request in the HTTPS model; the FTP protocol on TCP port 21 belongs to the file transfer in the HTTPS model.
[0043] 2. Traverse the existing HTTPS characteristic channels and evaluate whether a new connection can be accepted based on the HTTPS characteristic channel transmission statistics and channel status; if it can be accepted, bind the new connection to the corresponding HTTPS characteristic channel;
[0044] 3. If neither of the above two situations results in successful binding, a default HTTPS feature channel will be created, usually a general web page request type, and the new proxy connection will be bound to the HTTPS feature channel.
[0045] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:
[0046] 1. The present invention provides an SSL VPN security improvement method based on HTTPS traffic simulation, which can significantly reduce the risk of VPN proxy traffic being recommended as "suspicious traffic" by the automatic monitoring system by simulating the most common HTTPS traffic with huge traffic volume;
[0047] 2. The present invention introduces a "traffic shaping" method into the VPN protocol processing flow, thereby avoiding the current statistical identification and traffic identification implemented for SSL VPN traffic, and greatly reducing the risk of SSL VPN traffic being identified and controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0049] Figure 1 It is a comparison diagram of the improved architecture of the SSL VPN system of the present invention;
[0050] Figure 2 This is the HTTPS traffic analysis process of the present invention;
[0051] Figure 3 It is a schematic diagram of the HTTPS characteristic channel model of the present invention;
[0052] Figure 4 It is a VPN message encapsulation model diagram of the present invention;
[0053] Figure 5 It is a flow chart of VPN data transmission of the present invention;
[0054] Figure 6 It is the process of binding the proxy connection and the characteristic channel of the present invention;
[0055] Figure 7 This is the HTTPS feature channel packet dispatching process of the present invention;
[0056] Figure 8 This is the process of dynamic planning of proxy connections triggered by traffic statistics of the present invention. DETAILED DESCRIPTION
[0057] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings:
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The present invention is described in detail below based on the drawings and preferred embodiments, and the purpose and effect of the present invention will become clearer. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.
[0059] The following is a detailed description of an embodiment of the present invention in conjunction with the accompanying drawings: This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.
[0060] The existing SSL VPN technology provides effective security protection at the data level through effective data encryption, but it cannot guarantee the completeness and stability of the transmission process. The improved SSL VPN can effectively prevent VPN data flows from being identified and abnormally controlled during transmission, thereby improving the security and stability of SSL VPN.
[0061] By simulating the most common HTTPS traffic with huge traffic volume, the present invention can significantly reduce the risk of VPN proxy traffic being recommended as "suspicious traffic" by the automatic monitoring system; by introducing the "traffic shaping" method in the VPN protocol processing flow, the current statistical identification and traffic identification implemented for SSL VPN traffic can be avoided, greatly reducing the risk of SSL VPN traffic being identified and controlled.
[0062] The present invention discloses an SSL VPN security improvement method based on HTTPS traffic simulation, which is based on the implementation of traditional SSL VPN to enhance its security and stability. Specifically, the method improves the SSL transmission channel into an HTTPS characteristic channel by improving the SSL connection module and VPN protocol module of the traditional SSL VPN, and introduces a data shaping method; when VPN proxy data is transmitted in the HTTPS characteristic channel, some typical features of the VPN data flow are hidden; from the outside, the transmission data flow meets the typical features of general HTTPS traffic, thereby avoiding being identified as VPN traffic. The present invention can solve the problem of abnormal access caused by the identification and control of traffic during the SSLVPN transmission process;
[0063] Compared with the traditional SSL VPN system architecture, see the attached Figure 1 (Comparison chart of improved architecture of SSL VPN systems).
[0064] In the embodiment, the HTTPS feature channel is based on SSL encapsulation and secondary encapsulation. The content includes: SSL connection, proxy connection binding record table, HTTPS traffic model type, request type (requester, responder), data packet quota (the number of data packets that can be sent by the channel, used to limit interactive behavior), expiration time (the time the channel can be idle, usually an HTTPKEEPALIVE timeout, a typical value of 60 seconds), working status, message sending statistics, etc. See the attached HTTPS feature channel model diagram Figure 3 .
[0065] The HTTPS traffic analysis process is attached. Figure 2 In the embodiment, only three HTTPS templates are simply analyzed and preset, and encapsulated as HTTPS feature channels. The types include:
[0066] HTTPS file transfer stream feature channel:
[0067] a) The template type is https-type-file;
[0068] b) Unlimited data packet quota;
[0069] c) The expiration time is the expiration time of HTTP KEEPALIVE; d) There is no special working status;
[0070] e) The packet shaping requirement is that the VPN packet length reaches the full TCP MSS load.
[0071] f) The interactive behavior shaping requirement is that, in the request direction, the encapsulated VPN data message is sent only once; in the response direction, continuous and large amounts of data are sent.
[0072] HTTPS general web page request flow characteristic channel:
[0073] a) The template type is https-type-web;
[0074] b) The data packet quota is a random quota;
[0075] c) The expiration time is 0;
[0076] d) No special working status;
[0077] e) The message shaping requirement is that when sending data, the data that has arrived in the proxy connection should be merged into one VPN message as much as possible, provided that the data packet quota limit is met, and then sent;
[0078] f) Interaction behavior shaping requires that both the sender and the responder send a VPN message only once.
[0079] HTTPS general API request flow feature channel:
[0080] a) The template type is https-type-api;
[0081] b) Data packet quotas are randomly allocated in each phase according to the working status;
[0082] c) The expiration time is an HTTP KEEPALVIE expiration time;
[0083] d) The working state is carried out alternately in the request phase and the response phase;
[0084] e) The shaping requirement is that when data is sent, the data that has arrived in the proxy connection should be merged into one VPN message as much as possible and sent under the premise of meeting the data packet quota limit.
[0085] f) The interactive behavior shaping requirement is that a VPN message is sent in the request phase and then the receiving phase is entered; in the receiving phase, a VPN message is received and then the receiving phase is entered, and the data packet quota is randomly redistributed; and this is repeated alternately.
[0086] In an embodiment, the traffic shaping method implemented includes:
[0087] Message padding. For the HTTPS file flow response direction, when the VPN message length does not meet the message length required by the HTTPS traffic template (the payload reaches the MSS negotiated length), random padding is performed on the tail of the message to meet the template payload length requirement.
[0088] Combine two or more application messages to be forwarded into one VPN message, and send it as a message with a longer payload. This method is applicable to all types of HTTPS feature channels.
[0089] Uplink and downlink separation. For a specific VPN proxy flow, its uplink data is sent through HTTPS feature channel A, and its downlink data is received through HTTPS feature channel B. Usually, all UDP proxy flows in the system are coordinated into two HTTPS file flow feature channels, which can greatly eliminate the interactive characteristics of VPN flows.
[0090] Dynamic planning of data flow. A specific VPN proxy traffic is initially bound to HTTPS feature channel A for transmission, and then dynamically switches subsequent data transmission to HTTPS feature channel B for transmission based on its own statistical characteristics or HTTPS feature channel adjustment requirements. Usually, dynamic planning of data flow occurs when the statistical status of the proxy traffic is inconsistent with the feature channel type, or when the status of the HTTPS feature channel changes. For example, a proxy connection is planned to an HTTPS general API interactive channel, but the proxy connection's own traffic statistics show that it is an HTTPS file stream; at this time, the proxy connection will be unbound from the original HTTPS feature channel and re-planned to a new HTTPS file stream type feature channel. On the other hand, when the HTTPS feature channel status changes, the bound proxy connection also needs to be reconfirmed and planned; typically, when HTTPS needs to be closed due to expiration, all unfinished proxy connections must be re-planned to other channels.
[0091] Furthermore, in order to meet the requirements of traffic shaping and traffic recovery, the traditional SSL VPN protocol header needs to be expanded to record the actual distribution of the original message in the VPN message payload; the receiver can restore the original message and forward it based on the relevant records in the VPN protocol. The extended VPN message model is attached. Figure 4 (VPN message encapsulation model diagram).
[0092] Next, we will combine the attached Figure 5 (VPN data sending process), further illustrating the implementation process and implementation details of the invention solution.
[0093] (S1) The application sends data to the proxy service port or virtual network interface monitored by the VPN client;
[0094] (S2) The VPN client receives the application data, performs a HASH operation on the five-tuple (source IP address, destination IP address, source port, destination port, protocol) of the data packet, and obtains the HASH KEY of the proxy connection; searches for the record of the proxy connection in the proxy connection table through the HASH KEY; if the connection is not recorded in the proxy connection table, adds the connection information to the proxy connection record table.
[0095] (S3) Bind the proxy connection to the HTTPS feature channel. See the attached binding process for details. Figure 6 (Proxy connection binding to feature channel flow chart).
[0096] (S3-1) If the proxy connection belongs to a special protocol type and has a specified HTTPS feature channel type (for example, the SSH protocol on TCP port 22 belongs to the API interactive model in the HTTPS model; the HTTP protocol on TCP port 80 or 443 belongs to the general web page request in the HTTPS model), a new HTTPS feature channel of the corresponding type will be created and the current proxy connection will be bound to the HTTPS feature channel.
[0097] (S3-2) Traverse the existing HTTPS feature channels, and evaluate whether a new connection can be accepted based on the HTTPS feature channel transmission statistics and channel status; if it can be accepted, bind the new connection to the corresponding HTTPS feature channel.
[0098] (S3-3) If the binding in the above two steps is not successful, a default type HTTPS feature channel (usually a general web page request type) will be created, and the new proxy connection will be bound to the HTTPS feature channel.
[0099] (S4) When a new proxy connection is bound to the HTTPS feature channel, or new data arrives in the bound proxy connection, the packet dispatching of the HTTPS feature channel will be triggered. The dispatching process is shown in Figure 7 (HTTPS feature channel packet dispatching process):
[0100] (S4-1) A proxy connection to be sent is selected from the proxy connections bound to the HTTPS feature channel through the SELECT selection method of the multi-channel IO.
[0101] (S4-2) A message to be sent is taken out from the recommended proxy connection, and a VPN protocol header is added to form a pre-encapsulated VPN message.
[0102] (S4-3) Confirm the VPN message according to the HTTPS feature channel template requirements; if the template requirements are not met, select a shaping algorithm to shape the VPN message; at the same time, record the shaping information in the VPN protocol header.
[0103] (S4-4) Complete the connection information of the VPN protocol header, schedule the SSL connection of the HTTPS feature channel for the encapsulated VPN message, and send the message.
[0104] (S4-5) After the sending is completed, the data statistics of the proxy connection are updated. At the same time, according to the statistical evaluation, if necessary, the type of the HTTPS channel bound to the proxy connection is adjusted, or the HTTPS feature channel is dynamically switched.
[0105] (S4-6) Repeat steps 1-5 above until all messages of the proxy connection bound to the HTTPS feature channel are sent, and then exit the sending schedule.
[0106] (S5) The SSL connection module encrypts the VPN message and then sends it to the SSL connection peer.
[0107] (S6) After the VPN message is sent successfully, the data statistics of the proxy connection and the data statistics of the HTTPS characteristic channel will be updated. At the same time, according to the statistical data evaluation, if necessary, the HTTPS characteristic channel type will be adjusted, or the proxy connection will be re-planned. The process of traffic statistics triggering HTTPS characteristic channel type adjustment or proxy connection dynamic planning is shown in Figure 8 (Diagram of the dynamic planning process of proxy connections triggered by traffic statistics).
[0108] (S7) The VPN server SSL module receives the data and decrypts the data; the decrypted data is then handed over to the VPN protocol module for processing.
[0109] (S8) After receiving the data, the SSL module will update the data statistics of the proxy connection and the HTTPS characteristic channel. At the same time, based on the statistical data evaluation, if necessary, the HTTPS characteristic channel style will be adjusted, or the proxy connection traffic will be dynamically planned.
[0110] (S9) The VPN protocol module parses the VPN protocol header of the data stream; further, based on the message record and shaping record in the protocol header, the traffic is restored to obtain the original message.
[0111] (S10) The VPN protocol module obtains a HASH KEY through a HASH operation based on the five-tuple information of the original message; searches for a proxy connection bound to the HTTPS feature channel based on the HASH KEY, and sends the original message content through the proxy connection. In particular, if there is no relevant record in the proxy connection table bound to HTTPS, a proxy connection will be created based on the five-tuple information of the original message for data forwarding; at the same time, the proxy connection will be added to the proxy connection record table for subsequent use.
[0112] (S11) The application receives data and responds. The response data transmission process is basically the same as the sending process, and will not be repeated.
[0113] Those skilled in the art can understand that the above are only preferred examples of the invention and are not intended to limit the invention. Although the invention is described in detail with reference to the above examples, those skilled in the art can still modify the technical solutions recorded in the above examples or replace some of the technical features with equivalents. Any modification, equivalent replacement, etc. made within the spirit and principle of the invention should be included in the protection scope of the invention. All technical features in this embodiment can be freely combined according to actual needs.
[0114] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for improving SSL VPN security based on HTTPS traffic simulation, characterized in that: By improving the SSL connection module and VPN protocol module of the traditional SSLVPN, the SSL transmission channel is improved to the HTTPS feature channel, and a data shaping method is introduced; specifically, the following steps are included; Step 1: Analyze and extract data message characteristics and interaction behavior characteristics of HTTPS data traffic to form different types of HTTPS traffic templates; Step 2, combining the HTTPS traffic template with the SSL transmission channel to form different types of HTTPS characteristic channels; Step 3: The data of the VPN proxy is transmitted through the HTTPS characteristic channel. Its data message characteristics and traffic interaction behavior characteristics are consistent with the characteristics of HTTPS traffic, thus avoiding being identified as VPN traffic. In step 1, the method and process of extracting HTTPS traffic features and forming an HTTPS traffic template specifically includes the following steps: Step 1.1, visit multiple open websites based on HTTPS services and use wireshark, a packet capture tool, to capture request and response data; Step 1.2: Analyze, filter and filter the captured data streams through the wireshark tool, and identify classic HTTPS data streams, such as API interactions, JS files, pictures, videos, and large files, in combination with WEB access records. Furthermore, export the identified HTTPS traffic as independent cap files in the manner of single TCP traffic tracking, and save them in groups according to the identified HTTPS types. Step 1.3, read and count multiple cap files under the same group through a message analysis program to identify the data statistical characteristics of HTTPS access in the group; the above statistical data is the traffic statistical characteristics of HTTPS under the group; Step 1.4: further confirm the traffic statistics characteristics of each group, integrate and adjust them, set the matching traffic shaping method and parameters according to the traffic characteristics, and export them into a specific configuration file, which is the HTTPS traffic template; In step 2, the HTTPS feature channel includes: An SSL connection that has completed SSL access authentication, used for actual data transmission; HTTPS traffic template, used to associate traffic shaping methods; Controls the specification parameters of SSL traffic, which are used to control traffic shaping implementation and message interaction behavior, as well as some statistical data and status data during data transmission.
2. The method for improving the security of an SSL VPN based on HTTPS traffic simulation according to claim 1, characterized in that: In step 1.3, the data statistical features include the number of request packets sent, the number of response packets issued, the response interval, the secondary request interval, the request-response ratio, the number of small packets, the number of medium packets, and the number of full packets.
3. The method for improving the security of an SSL VPN based on HTTPS traffic simulation according to claim 1, characterized in that: The traffic shaping method is a set of methods for adjusting VPN proxy data messages and traffic distribution.
4. The method for improving the security of an SSL VPN based on HTTPS traffic simulation according to claim 3, characterized in that: The traffic shaping method includes: message filling, combined message sending, uplink and downlink separation, and data flow dynamic planning.
5. The method for improving SSL VPN security based on HTTPS traffic simulation according to claim 1, characterized in that: In step 3, the process of the SSL VPN system proxy application data specifically includes the following steps: Step 3.1, start the VPN client service and the server, create a proxy listening port or create a virtual network interface, and initialize the VPN proxy connection record table; Step 3.2, the application sends a proxy data request to the VPN client through the proxy listening port or virtual interface; Step 3.3, the VPN client receives the application data, performs a HASH operation on the data message, and obtains the HASHKEY of the proxy connection; searches for the record of the proxy connection in the proxy connection table through the HASH KEY; if the connection is not recorded in the proxy connection table, the connection information is added to the proxy connection record table; Step 3.4, plan the proxy connection to a certain HTTPS feature channel; If there is no HTTPS feature channel that meets the admission conditions, create it first and then bind it; Step 3.5, schedule the packet sending for the HTTPS feature channel; Step 3.6, the SSL connection module encrypts the VPN message and then sends it to the SSL connection peer; Step 3.7, the VPN server SSL module receives the data, decrypts the data, and then passes it to the VPN protocol module for processing; Step 3.8, the VPN protocol module parses the VPN protocol header of the data stream; further, according to the message record and shaping record in the protocol header, the traffic is restored to obtain the original message; Step 3.9, the VPN protocol module obtains the HASH KEY through HASH operation according to the five-tuple information of the original message; searches for the proxy connection bound to the HTTPS feature channel according to the HASH KEY; then, sends the original message content to the application server through the proxy connection; If there is no matching record in the proxy connection table, that is, the client requests forwarding to the server for the first time, a proxy connection will be created based on the five-tuple information of the original message for data forwarding; at the same time, the proxy connection will be added to the proxy connection record table for subsequent use; Step 3.10: The application server receives the request and responds. The response data transmission process is consistent with the sending process.
6. The method for improving SSL VPN security based on HTTPS traffic simulation according to claim 5, characterized in that: In step 3.3, the quintuple includes source IP address, destination IP address, source port, destination port, and protocol.
7. The method for improving SSL VPN security based on HTTPS traffic simulation according to claim 5, characterized in that: In step 3.5, the HTTPS characteristic channel is scheduled for packet transmission, and the process includes: selecting the message to be sent from the proxy connection; performing traffic shaping according to the requirements of the HTTPS characteristic channel data template; encapsulating the shaped message with a VPN protocol header; and finally, sending the encapsulated VPN message to the SSL connection module for transmission.
8. The method for improving SSL VPN security based on HTTPS traffic simulation according to claim 5, characterized in that: In step 3.4, the process of binding the proxy connection to a specific HTTPS feature channel is divided into three cases:
1. If the proxy connection belongs to a special protocol type and has a specified HTTPS feature channel type, a new HTTPS feature channel of the corresponding type will be created and the current proxy connection will be bound to the HTTPS feature channel. For example, the SSH protocol on TCP port 22 belongs to the API interactive model in the HTTPS model; the HTTP protocol on TCP port 80 or 443 belongs to the general web page request in the HTTPS model; the FTP protocol on TCP port 21 belongs to the file transfer in the HTTPS model.
2. Traverse the existing HTTPS characteristic channels and evaluate whether a new connection can be accepted based on the HTTPS characteristic channel transmission statistics and channel status; if it can be accepted, bind the new connection to the corresponding HTTPS characteristic channel; 3. If neither of the above two situations results in successful binding, a default HTTPS feature channel will be created, usually a general web page request type, and the new proxy connection will be bound to the HTTPS feature channel.
Citation Information
Patent Citations
SSL VPN protocol detection method based on flow analysis
CN101296228A
SSL VPN traffic identification method based on density data description
CN110311870A
VPN flow identification method based on SSL encryption
CN112118270A
SSL VPN encrypted traffic identification and classification method oriented to class imbalance
CN115051828A
Detection method and device for bypass monitoring HTTPS
CN116055475A
