Secure browser network stealth method based on active stealth defense
By generating dynamic camouflage behavior patterns and port hiding tunnels through deep learning, and combining them with bidirectional traffic obfuscation, this technology solves the problems of insufficient client behavior exposure and traffic protection in existing technologies, achieving end-to-end real-time stealth defense, and is suitable for network security in highly sensitive scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING HEIHE TECHNOLOGY CO LTD
- Filing Date
- 2026-02-03
- Publication Date
- 2026-05-01
AI Technical Summary
Existing network security technologies cannot achieve dynamic masquerading of client behavior, end-to-end bidirectional traffic protection, and real-time adaptive capabilities. This results in high success rates for browser fingerprinting, high success rates for WebRTC IP leakage, and high traceability of traffic time-series correlation analysis, making it impossible to effectively defend against advanced network attacks.
It employs a deep learning-based AI behavior simulation engine to generate dynamic masquerading behavior patterns, combined with dynamic port hiding tunnels and bidirectional traffic obfuscation processing, and achieves bidirectional stealth defense on both the client and server sides through time-series segmentation, encryption, and DOM reorganization technologies.
It significantly reduces browser fingerprinting rate, WebRTC IP leakage rate, and traffic time-series correlation analysis success rate, improving enterprise-level security protection capabilities and is suitable for highly sensitive scenarios such as finance and government.
Smart Images

Figure CN121967032A_ABST
Abstract
Description
A secure browser network stealth method based on proactive stealth defense Technical Field
[0001] This invention relates to the field of network defense technology, specifically to a secure browser network stealth method based on proactive stealth defense. Background Technology
[0002] Current cybersecurity solutions for browser cloaking protection primarily include access control technologies (such as Single Packet Authorization (SPA), passive protection technologies (such as VPN / firewall / WAF), static hiding technologies (such as dynamic iptables hiding systems), server protection technologies (such as URI double encryption hiding methods), and isolation technologies (such as remote browser isolation RBI). While these technologies provide protection at specific levels, they generally suffer from rigid policies and one-way protection. For example, SPA technology requires dual deployment on both the terminal and the gateway, leading to a significant decline in user experience; while passive protection solutions such as VPNs cannot effectively protect client browsing behavior, creating security blind spots. None of these technologies achieve bidirectional dynamic protection between the client and server sides, making them ill-equipped to cope with advanced traffic analysis and behavior tracking techniques in modern network attacks.
[0003] Comparison Table
[0004] The comparison table shows that various existing technologies have significant limitations: static hiding techniques (such as dynamic iptables) are easily cracked by traffic analysis due to their fixed policies; server protection techniques (such as double URI encryption) only protect the server side, leaving the client at high risk of exposure; isolation techniques (such as RBI) cannot support real-time interaction due to high network latency. Of particular concern is the lack of comprehensive capabilities in dynamic masquerading of client behavior, end-to-end bidirectional traffic protection, and real-time countermeasures against advanced traffic analysis. Taking APT watering hole attacks as an example, traditional browsers have a success rate of only 23% against such attacks, exposing the inadequacy of static protection strategies against dynamic threats.
[0005] In summary, existing technologies have three major gaps: First, they cannot dynamically masquerade client behavior, resulting in a browser fingerprinting success rate of up to 94%; second, they lack end-to-end bidirectional traffic protection mechanisms, leading to a WebRTC IP leakage success rate of up to 98%; and third, protection strategies lack real-time adaptive capabilities, making traffic temporal correlation analysis 100% traceable. These gaps indicate that the current cybersecurity field urgently needs an innovative solution that integrates AI-driven dynamic strategies, bidirectional traffic obfuscation, and real-time port hiding to achieve enterprise-level stealth protection with a latency of less than 10ms, meeting the security needs of highly sensitive scenarios such as finance and government. Summary of the Invention
[0006] The purpose of this invention is to provide a deep learning-based method for predicting the effects of orthodontic treatment, in order to address the shortcomings of the prior art.
[0007] To achieve the above objectives, the present invention provides the following technical solution: a secure browser network stealth method based on proactive stealth defense, comprising the following steps: S1, starting the secure browser and initializing the AI behavior simulation engine: receiving the user's startup command, performing system self-checks and module verifications, and generating an initialization ready signal; based on the initialization ready signal, collecting the user's historical operation feature data, processing it through a pre-trained behavior model to generate a baseline behavior pattern, injecting Gaussian noise into the baseline behavior pattern, and outputting a dynamic camouflage behavior pattern and an environment forgery fingerprint; S2, establishing a dynamic port hiding tunnel: based on the user's session request, sending a port application to the key distribution center, receiving the allocated temporary port and corresponding key, and performing TCP and UDP dual verification to activate the port. S3. Perform bidirectional traffic obfuscation: Receive user uplink traffic and server downlink traffic through the port transmission channel, perform time-series segmentation and encryption on the uplink traffic, and perform DOM structure reorganization and style obfuscation on the downlink traffic to generate obfuscated bidirectional traffic data; S4. Session monitoring and adaptive adjustment: Monitor the obfuscated traffic data in real time, calculate the traffic characteristic entropy value based on the Shannon entropy formula, trigger risk assessment when the entropy value exceeds the threshold, and output a dynamic adjustment signal to optimize AI behavior parameters and port switching strategies; S5. Session termination and cleanup: Receive user session termination instructions, destroy temporary ports and keys, clear browser cache and temporary files, generate encrypted audit logs, and output a session termination confirmation signal.
[0008] In this process, the dynamic masquerading behavior pattern output in step S1 is used to influence the behavior characteristics of traffic generation in step S3, the port transmission channel output in step S2 serves as the carrier for traffic transmission in step S3, the obfuscated traffic data output in step S3 serves as the monitoring input for step S4, the adjustment signal output in step S4 is used to optimize the parameters of steps S1 and S2 in real time, and step S5 performs cleanup based on the entire session data, forming a closed-loop technology chain.
[0009] Preferably, the initialization of the AI behavior simulation engine in step S1 includes: after receiving the user's start command, executing a system self-check process to verify memory, network connectivity, and module dependency status, and outputting a self-check pass signal; based on the self-check pass signal, intercepting browser events through hook functions, collecting user historical operation feature data, including click frequency, scrolling speed, and dwell time, and generating an operation sequence dataset; processing the operation sequence dataset using a pre-trained long short-term memory network model to generate a baseline behavior pattern and calculate the statistical features of the operation interval; injecting Gaussian noise into the baseline behavior pattern, with noise parameters set to mean μ=0.2 and standard deviation σ=0.05, so that the operation interval follows a Poisson distribution, and outputting a dynamic spoofing behavior pattern; dynamically generating a fake browser fingerprint, covering at least 8 indicators including UserAgent, Canvas fingerprint, WebGL fingerprint, screen resolution, time zone, and font list, and outputting an environment spoofing fingerprint.
[0010] Preferably, injecting Gaussian noise in step S1 includes: receiving operation interval data of the baseline behavior pattern, generating a Gaussian noise sequence through a pseudo-random number generator, with the seed derived based on the session ID; superimposing the noise sequence with the operation interval data, so that the time interval of click or scroll events is randomized within the range of 0.8-1.2 times the baseline value, and outputting an anti-tracking spoofing operation pattern.
[0011] Preferably, the establishment of the dynamic port hiding tunnel in step S2 includes: receiving a user session request; the port scheduler sending a port application to the key distribution center; the key distribution center allocating temporary ports and keys based on a load balancing strategy, prioritizing ports with port numbers greater than 1024, and ensuring that cold ports account for no less than 40%; and outputting the port allocation result; the proxy gateway receiving the port allocation result, performing TCP three-way handshake and UDP connectivity tests, verifying port reachability, and outputting the port activation status; and triggering port switching every 120 seconds ± 15 seconds based on a heartbeat protocol. When the traffic characteristic entropy value is greater than 1.5 or the session duration exceeds 120 seconds, the port is asynchronously switched and data is encapsulated using TLS 1.3, and the updated port transmission channel is output.
[0012] Preferably, the triggering condition for port switching in step S2 includes: real-time calculation of the Shannon entropy value of the traffic packet size and interval, using the formula: ,in For flow characteristic values, The probability is used to determine abnormal traffic; when the entropy value suddenly changes from the baseline of 1.0 to above 2.0, it is judged as abnormal traffic and a port switching operation is immediately triggered.
[0013] Preferably, the bidirectional traffic obfuscation process in step S3 includes: For uplink obfuscation: receiving user query request data, using time-series segmentation technology to divide the data packet into three out-of-order segments, with the segment interval dynamically controlled between 50-150 milliseconds, and rearranging the sequence number using a pseudo-random sequence generator; encrypting each segment using the AES-256-CTR encryption algorithm, and injecting 10%-20% random junk packets, outputting the encrypted uplink traffic data; For downlink obfuscation: receiving webpage content returned by the server, dynamically modifying the HTML DOM structure, inserting 30% fake elements, and rewriting CSS styles and JavaScript event listeners; isolating real and fake content using Shadow DOM technology, outputting the obfuscated downlink traffic data.
[0014] Preferably, the time segmentation technique in step S3 includes: receiving the original data packet, dividing the data packet into multiple fragments based on a pseudo-random sequence generator, the number of fragments being configurable to 3; achieving out-of-order transmission by rearranging the fragment sequence numbers, making it impossible for attackers to reconstruct the data through time correlation, and outputting an out-of-order fragment stream resistant to deep packet inspection.
[0015] Preferably, the session monitoring and adaptive adjustment in step S4 includes: real-time monitoring of network traffic parameters, including traffic rate, packet size distribution, and protocol characteristics, sampling once per second, and outputting a traffic feature dataset; calculating the entropy value of the traffic feature dataset based on the Shannon entropy formula, and triggering a risk assessment and outputting an abnormal signal when the entropy value exceeds a threshold of 1.5; and dynamically adjusting the noise parameters or port switching frequency of the AI behavior simulation engine through a reinforcement learning model according to the abnormal signal to ensure that the overall latency is less than 10 milliseconds, and outputting an optimized security strategy.
[0016] Preferably, the session termination and cleanup in step S5 includes: receiving a user session termination instruction, automatically destroying the temporary port and corresponding key, clearing the browser cache, session history and temporary files, and outputting a resource destruction confirmation; generating an audit log, recording session duration, traffic statistics and security events, encrypting and storing the log locally or in the cloud, and outputting an audit completion signal.
[0017] In the above technical solution, the technical effects and advantages provided by the present invention are as follows: 1. The present invention achieves a breakthrough improvement compared with traditional solutions: the success rate of anti-traffic time-series correlation analysis is reduced from 100% traceability to 0%, the success rate of preventing WebRTC IP leakage is reduced from 98% to 0 leakages, the recognition rate of browser fingerprinting is reduced from 94% to 2.3%, and the success rate of resisting APT watering hole attacks is reduced from 23% to 0%, an improvement of 100%. These effects stem from the fact that the present invention completely solves the defects of client exposure, policy staticization, and one-way protection in the existing technology through a three-layer mechanism of AI behavior simulation, dynamic port hiding, and bidirectional traffic obfuscation.
[0018] 2. The beneficial effects of this invention are not limited to improvements at the data level; through dynamic, real-time, and bidirectional design, it achieves comprehensive end-to-end stealth protection. For example, the AI behavior simulation layer dynamically disguises user behavior through noise injection and fingerprint forgery; the dynamic port hiding mechanism asynchronously switches ports based on a heartbeat protocol to break traffic associations; and the bidirectional traffic obfuscation engine simultaneously protects both uplink and downlink, ensuring enterprise-level security with a latency of less than 10ms. This integrated innovation makes this invention applicable to highly sensitive scenarios such as finance and government affairs, balancing security and user experience while filling a core gap in existing technologies. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0020] Figure 1 is a system architecture topology diagram of the present invention; Figure 2 is a workflow diagram of the traffic obfuscation engine in the present invention; Figure 3 is a schematic diagram of port state migration in the present invention. Detailed Implementation
[0021] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the invention. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0022] This invention is based on the concept of proactive stealth defense and achieves network stealth through a three-layer core mechanism: the first layer is the AI behavior simulation layer, which simulates real user operations by generating dynamic noise copies to counteract behavior analysis; the second layer is the dynamic port hiding mechanism, which asynchronously switches ports based on the heartbeat protocol to break traffic association; the third layer is the bidirectional traffic obfuscation engine, which performs time-series segmentation and DOM reconstruction on uplink and downlink traffic respectively to prevent deep packet inspection.
[0023] The entire system operates on a client-server architecture, providing enterprise-level security protection while ensuring low latency (<10ms) through real-time monitoring and adaptive adjustments. Its core innovation lies in making static protection dynamic, achieving end-to-end bidirectional stealth.
[0024] The specific implementation of the present invention is achieved through the following main steps, and the overall process is shown in the system architecture topology diagram in Figure 1: The secure browser network stealth method based on active stealth defense according to the embodiment of the present invention includes the following steps: S1, start the secure browser and initialize the AI behavior simulation engine.
[0025] S2. Establish a dynamic port hiding tunnel.
[0026] S3. Perform bidirectional traffic obfuscation processing.
[0027] S4, Session Monitoring and Adaptive Adjustment.
[0028] S5. Session termination and cleanup.
[0029] Specifically, S1, starting the secure browser and initializing the AI behavior simulation engine, aims to dynamically generate a disguised behavior pattern when the user launches the browser, preventing the client's behavior from being tracked. Its working principle is based on deep learning models and noise injection technology to simulate the irregularities of real user operations.
[0030] S11. User startup and system self-test.
[0031] Specifically, users launch the secure browser application through client devices (such as personal computers or mobile devices). The system first performs a self-check process to verify the status of core modules (such as the AI behavior simulation engine and traffic obfuscation engine) and ensure that all components are ready. The self-check includes memory checks, network connectivity tests, and module dependency verification. If any anomalies are found, logs are logged and the user is prompted to restart.
[0032] S12. Collecting User Historical Operation Features: Specifically, the AI behavior simulation engine automatically loads and collects user historical operation features, including parameters such as click frequency (unit: times / second), scroll speed (unit: pixels / second), and dwell time (unit: seconds). The collection process intercepts browser events through hook functions to generate an operation sequence dataset. For example, for click events, mouse coordinates and timestamps are recorded; for scroll events, scroll distance and duration are recorded.
[0033] S13. Generating Baseline Behavioral Patterns: Specifically, the collected data is processed using a pre-trained BehavioralModel to generate baseline behavioral patterns. The BehavioralModel is trained based on an LSTM (Long Short-Term Memory) architecture, with user action sequences as input and dynamic behavioral probability distributions as output. Supervised learning is employed during model training, using a large amount of real user data (e.g., 10,000 session records) to minimize prediction errors. After generating the baseline patterns, the system calculates the statistical characteristics (such as mean and variance) of the action intervals as the basis for noise injection.
[0034] S14. Noise Injection to Generate a Disguised Mode: Specifically, to simulate the irregularity of real user behavior, the system injects Gaussian noise into the baseline mode. The noise parameters are set to mean μ=0.2 and standard deviation σ=0.05. After injection, the operation interval follows a Poisson distribution (λ=0.8), ensuring the randomness of the time interval between click or scroll events. For example, if the baseline click interval is 1 second, after noise injection, it may become a random value between 0.8 and 1.2 seconds. The noise generation algorithm uses a pseudo-random number generator, with the seed derived from the session ID to ensure reproducibility.
[0035] S15. Fake Environment Fingerprint: Specifically, the environment fingerprint forgery module dynamically generates fake browser fingerprints to circumvent fingerprint recognition technology. The forgery scope covers at least 8 key indicators, including: UserAgent: Disguising the real UserAgent (such as "MacOS Chrome 107") as "Windows Edge 104".
[0036] Canvas fingerprint: Generates a fake rendering mode by modifying the output of the Canvas API.
[0037] WebGL fingerprinting: Adjusting WebGL rendering parameters, such as spoofing the graphics card model.
[0038] Other indicators: such as screen resolution (fake 1920x1080), time zone (fake UTC+8), font list (inserting fake font names).
[0039] The forgery process is completed during browser initialization, ensuring fingerprint consistency throughout the session. Through dynamic noise injection and environmental fingerprint forgery using an AI behavior simulation engine, this step achieves deep camouflage of client behavior, effectively countering browser fingerprint recognition and behavior analysis. Real-world testing data shows that the browser fingerprint recognition rate decreased from 94% in traditional solutions to 2.3%, an improvement of 97.5%. This is due to the randomization of operation intervals in the noise model and the dynamic coverage of more than eight key indicators by the fingerprint forgery module, preventing attackers from associating real users with static features, thus significantly improving the client's stealth and anti-tracking capabilities. Simultaneously, a self-checking process ensures system reliability, preventing protection failure due to module malfunctions.
[0040] The above-mentioned S2, establishing a dynamic port hiding tunnel, aims to break the correlation of network traffic through a dynamic port switching mechanism. Its working principle is based on a port state machine and a heartbeat protocol, realizing asynchronous port allocation and verification, as shown in Figure 3, a schematic diagram of port state transition.
[0041] S21. Port Request and Allocation: Specifically, when a user initiates a new session request, the port scheduler sends an application to the key distribution center. The key distribution center generates a temporary port (e.g., initial port TCP 443) and a corresponding key K1. Key K1 is synchronized to the proxy gateway via a TLS 1.3 secure channel. The port allocation algorithm prioritizes high port numbers (port numbers greater than 1024) to reduce the probability of detection. The allocation logic is based on a load balancing strategy to ensure that the proportion of cold ports is not less than 40%. For example, if the total number of ports in the port pool is 100, the number of cold ports will be maintained at more than 40.
[0042] S22. Port Activation and Verification: Specifically, after receiving the key, the proxy gateway executes the port activation process. First, a TCP three-way handshake is performed to confirm port reachability; then, a UDP connectivity test is conducted by sending probe packets and checking the response. Upon successful verification, the port state transitions from a cold port to an active port. If verification fails, the system automatically selects a backup port and re-executes the S21 process. This dual verification mechanism prevents the port from being maliciously occupied or blocked.
[0043] S23. Heartbeat Protocol and Port Switching: Specifically, based on the heartbeat protocol, the system triggers port switching every 120 seconds (fluctuation threshold ± 15 seconds). Switching trigger conditions include: a traffic characteristic entropy value greater than 1.5: the entropy value is calculated based on the Shannon entropy formula, analyzing the randomness of traffic packet size and intervals in real time. If the entropy value suddenly changes, it indicates that traffic analysis may be encountered, and the port is switched immediately.
[0044] Session duration exceeding 120 seconds: Prevents associated risks caused by prolonged use of the same port.
[0045] The handover process is executed asynchronously, for example, switching from TCP 443 to UDP 5353, and using TLS 1.3 to encapsulate the data. During the handover, the system ensures seamless session continuation by buffering traffic, resulting in a latency increase of less than 10ms.
[0046] The dynamic port hiding mechanism completely eliminates the possibility of traffic time-series correlation analysis through asynchronous port pool switching and heartbeat protocols. In actual testing, the success rate of resisting traffic time-series correlation analysis dropped from 100% traceability in traditional solutions to 0%, representing an immeasurable improvement. This is thanks to the allocation strategy of cold ports accounting for no less than 40%, the reliability of TCP / UDP dual authentication, and the intelligent switching logic triggered by entropy values, making it impossible for attackers to predict user behavior based on port usage patterns. Meanwhile, TLS 1.3 encapsulation ensures transmission security, while asynchronous switching ensures a seamless user experience, effectively combating the traffic analysis phase of APT attacks.
[0047] In the above, S3 performs bidirectional traffic obfuscation: its purpose is to obfuscate uplink and downlink traffic to prevent deep packet inspection and DOM fingerprinting. Its working principle is based on time-series segmentation, encryption algorithms, and content reassembly technology, as shown in Figure 2, the traffic obfuscation engine workflow diagram.
[0048] S31. Uplink Obfuscation: Specifically, for uplink data such as user query requests, the following sub-steps are performed: S311. Time-Sequence Segmentation: Time-sequence segmentation technology is used to segment data packets into multiple out-of-order fragments. The segmentation algorithm is based on a pseudo-random sequence generator, dividing the original data packet into 3 fragments (configurable), with the fragment interval dynamically controlled between 50-150 milliseconds. The out-of-order logic is implemented through sequence number rearrangement, making it impossible for attackers to reconstruct the data through time correlation.
[0049] S312. Encryption Processing: The fragments are encrypted using the AES-256-CTR encryption algorithm. The key is derived from the session key, and the encryption mode ensures forward security. Simultaneously, random spam packets are injected, with the proportion of spam packets controlled at 10%-20%. The content of these spam packets is pseudo-random data to increase traffic entropy.
[0050] S313, Transmission: The encrypted data packet is transmitted through a dynamic port tunnel. The proxy gateway receives the packet, decrypts it, and reassembles the original data.
[0051] S32. Downlink Obfuscation: Specifically, for the downlink data (such as webpage content) returned by the server, the following sub-steps are performed: S321. DOM Structure Reorganization: The HTML DOM structure is dynamically modified, inserting fake elements (such as fake buttons, text, or links), with fake elements accounting for up to 30%. The reorganization algorithm prioritizes sensitive areas (such as form input boxes) to ensure the integrity of the real content. For example, in a login page, a fake password input box is inserted to mislead the crawler.
[0052] S322, Style and Event Obfuscation: Modify CSS stylesheets and adjust element layout; simultaneously rewrite JavaScript event listeners to prevent behavior tracking. After obfuscation, the failure rate of DOM fingerprinting is significantly improved.
[0053] S323, Rendering: Obfuscation is performed before client-side rendering, so the user is unaware of it. The system uses Shadow DOM technology to isolate real and fake content, ensuring a good user experience.
[0054] The bidirectional traffic obfuscation engine achieves comprehensive end-to-end protection through time-series segmentation encryption in the uplink and DOM reconstruction in the downlink. Real-world testing data shows that the success rate of preventing WebRTC IP leaks has decreased from 98% with traditional solutions to zero leaks, a 100% improvement; the success rate against APT watering hole attacks has decreased from 23% to 0%, also a 100% improvement. This is because the out-of-order fragments and spam packet injection in the uplink obfuscation increase traffic entropy, rendering deep packet inspection ineffective; while the insertion of fake elements and style modifications in the downlink obfuscation disrupt the DOM fingerprint, effectively defending against client-side script attacks. Overall, this process ensures data integrity while minimizing the analyzability of bidirectional traffic, filling the blind spot of traditional solutions that only protect the server side.
[0055] S4. Session Monitoring and Adaptive Adjustment: This feature monitors the network environment in real time and dynamically adjusts security policies. Its working principle is based on entropy calculation and reinforcement learning models to achieve adaptive optimization.
[0056] S41. Real-time monitoring: Specifically, the system monitors network traffic parameters, including traffic rate (unit: Mbps), packet size distribution, and protocol characteristics. Monitoring data is collected through sensor modules, with sampling occurring once per second.
[0057] S42. Risk Assessment: Specifically, the entropy calculation module is used to analyze flow characteristics. The Shannon entropy formula is:
[0058] in, Represents the flow characteristic sequence, This represents the probability of the feature value. If the entropy value suddenly exceeds the threshold (e.g., from 1.0 to 2.0), it is judged as abnormal traffic and may be under attack.
[0059] S43. Adaptive Adjustment: Specifically, based on the risk assessment results, the system triggers an adjustment action: if the entropy value is greater than 1.5, port switching is performed immediately (refer to S23).
[0060] The AI behavior simulation engine dynamically adjusts noise parameters, such as changing the σ value of Gaussian noise from 0.05 to 0.08, to enhance camouflage.
[0061] The algorithm is based on a reinforcement learning model and aims to minimize latency (target <10ms) while optimizing resource allocation.
[0062] The session monitoring and adaptive adjustment mechanism, through real-time entropy analysis and reinforcement learning optimization, achieves dynamic response of protection strategies, significantly improving system robustness. This enables the system to proactively identify and combat emerging attacks, such as zero-day exploits or advanced persistent threats (APTs), avoiding protection lag caused by static rules. In actual testing, this step ensures rapid response to traffic anomalies with latency below 10ms, such as seamless port switching or enhanced obfuscation strength during entropy mutations, thus maintaining a high level of stealth. Simultaneously, adaptive adjustment reduces the false positive rate, ensuring a better user experience, and is suitable for real-time interactive scenarios such as finance and government affairs.
[0063] S5. Session Termination and Cleanup: The purpose of this step is to securely terminate the session and prevent data leakage. It works based on automatic cleanup and audit log generation.
[0064] S51. Resource Destruction: Specifically, after a user ends their browsing session, the system automatically destroys the temporary port and corresponding key, and clears the browser cache, session history, and temporary files.
[0065] S52. Log Generation: Specifically, generate audit logs, recording session duration, traffic statistics, and security events. Logs are encrypted and stored locally, and can be synchronized to the cloud for auditing purposes.
[0066] The session termination and cleanup process completely eliminates the risk of session remnants through automated resource destruction and log auditing, ensuring compliance with data privacy regulations (such as GDPR). This prevents attackers from recovering sensitive user information through cached data or port keys, thus avoiding data leakage, for example, in shared device environments. Real-world testing shows that this step integrates post-event analysis capabilities into the system, supports security auditing through encrypted logs, and performs cleanup operations seamlessly without impacting user efficiency. Overall, this step provides closed-loop protection for the entire stealth process, enhancing the system's compliance and reliability.
[0067] The foregoing has shown and described the basic principles and main features of the present invention, as well as its advantages. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A secure browser network cloaking method based on proactive stealth defense, characterized in that, Includes the following steps: S1. Start the secure browser and initialize the AI behavior simulation engine: Receive the user's startup command, perform system self-check and module verification, and generate an initialization ready signal; Based on the initialization ready signal, user historical operation feature data is collected, a baseline behavior pattern is generated by processing the pre-trained behavior model, Gaussian noise is injected into the baseline behavior pattern, and a dynamic spoofing behavior pattern and environmental spoofing fingerprint are output. S2. Establish a dynamic port hiding tunnel: Based on the user session request, send a port application to the key distribution center, receive the allocated temporary port and corresponding key, perform TCP and UDP dual authentication to activate the port, and output the activated port transmission channel. S3. Perform bidirectional traffic obfuscation: Receive user uplink traffic and server downlink traffic through the port transmission channel, perform time-series segmentation and encryption on the uplink traffic, and perform DOM structure reorganization and style obfuscation on the downlink traffic to generate obfuscated bidirectional traffic data. S4. Session Monitoring and Adaptive Adjustment: Monitor the obfuscated traffic data in real time, calculate the traffic characteristic entropy value based on the Shannon entropy formula, trigger risk assessment when the entropy value exceeds the threshold, and output a dynamic adjustment signal to optimize AI behavior parameters and port switching strategies; S5. Session Termination and Cleanup: Receive user session termination instructions, destroy temporary ports and keys, clear browser cache and temporary files, generate encrypted audit logs, and output session termination confirmation signals; wherein, the dynamic masquerading behavior pattern output in step S1 is used to influence the behavior characteristics of traffic generation in step S3, the port transmission channel output in step S2 serves as the carrier of traffic transmission in step S3, the obfuscated traffic data output in step S3 serves as the monitoring input for step S4, the adjustment signal output in step S4 is used to optimize the parameters of steps S1 and S2 in real time, and step S5 performs cleanup based on the entire session data, forming a closed-loop technology chain.
2. The secure browser network incognito method based on active stealth defense as described in claim 1, characterized in that, The initialization of the AI behavior simulation engine in step S1 includes: after receiving the user's start command, executing a system self-check process to verify memory, network connectivity, and module dependency status, and outputting a self-check pass signal; based on the self-check pass signal, intercepting browser events through hook functions, collecting user historical operation feature data, including click frequency, scrolling speed, and dwell time, and generating an operation sequence dataset; processing the operation sequence dataset using a pre-trained long short-term memory network model to generate a baseline behavior pattern and calculate the statistical characteristics of the operation interval; injecting Gaussian noise into the baseline behavior pattern, with noise parameters set to mean μ=0.2 and standard deviation σ=0.05, so that the operation interval follows a Poisson distribution, and outputting a dynamic spoofing behavior pattern; dynamically generating a fake browser fingerprint, covering at least 8 indicators including UserAgent, Canvas fingerprint, WebGL fingerprint, screen resolution, time zone, and font list, and outputting an environment spoofing fingerprint.
3. The secure browser network incognito method based on active stealth defense as described in claim 2, characterized in that, The step S1 of injecting Gaussian noise includes: receiving operation interval data of the baseline behavior pattern, generating a Gaussian noise sequence through a pseudo-random number generator, with the seed derived based on the session ID; superimposing the noise sequence with the operation interval data, so that the time interval of click or scroll events is randomized within the range of 0.8-1.2 times the baseline value, and outputting an anti-tracking spoofing operation pattern.
4. The secure browser network incognito method based on active stealth defense as described in claim 1, characterized in that, The establishment of the dynamic port hiding tunnel in step S2 includes: receiving a user session request; the port scheduler sending a port application to the key distribution center; the key distribution center allocating temporary ports and keys based on a load balancing strategy, prioritizing ports with port numbers greater than 1024, and ensuring that cold ports account for no less than 40%; and outputting the port allocation result; the proxy gateway receiving the port allocation result, performing a TCP three-way handshake and UDP connectivity test to verify port reachability, and outputting the port activation status; and triggering port switching every 120 seconds ± 15 seconds based on a heartbeat protocol. When the traffic characteristic entropy value is greater than 1.5 or the session duration exceeds 120 seconds, the port is asynchronously switched and data is encapsulated using TLS 1.3, and the updated port transmission channel is output.
5. The secure browser network incognito method based on active stealth defense as described in claim 4, characterized in that, The triggering conditions for port switching in step S2 include: real-time calculation of the Shannon entropy value of the traffic packet size and interval, using the formula: ,in For flow characteristic values, The probability is used to determine abnormal traffic; when the entropy value suddenly changes from the baseline of 1.0 to above 2.0, it is judged as abnormal traffic and a port switching operation is immediately triggered.
6. The secure browser network incognito method based on active stealth defense as described in claim 1, characterized in that, The bidirectional traffic obfuscation process in step S3 includes: For uplink obfuscation: receiving user query request data, using time-series segmentation technology to divide the data packet into three out-of-order segments, with the segment interval dynamically controlled between 50-150 milliseconds, and rearranging the sequence numbers using a pseudo-random sequence generator; encrypting each segment using the AES-256-CTR encryption algorithm, and injecting 10%-20% random junk packets, outputting the encrypted uplink traffic data; For downlink obfuscation: receiving webpage content returned by the server, dynamically modifying the HTML DOM structure, inserting 30% fake elements, and rewriting CSS styles and JavaScript event listeners; using Shadow DOM technology to isolate real and fake content, outputting the obfuscated downlink traffic data.
7. The secure browser network incognito method based on active stealth defense as described in claim 6, characterized in that, The time-series segmentation technique in step S3 includes: receiving the original data packet, dividing the data packet into multiple segments based on a pseudo-random sequence generator, with the number of segments configurable to 3; achieving out-of-order transmission by rearranging the segment sequence numbers, making it impossible for attackers to reconstruct the data through time correlation, and outputting an out-of-order segment stream resistant to deep packet inspection.
8. The secure browser network incognito method based on active stealth defense as described in claim 1, characterized in that, The session monitoring and adaptive adjustment in step S4 includes: real-time monitoring of network traffic parameters, including traffic rate, packet size distribution, and protocol characteristics, sampling once per second, and outputting a traffic feature dataset; calculating the entropy value of the traffic feature dataset based on the Shannon entropy formula, and triggering a risk assessment and outputting an abnormal signal when the entropy value exceeds a threshold of 1.5; and dynamically adjusting the noise parameters or port switching frequency of the AI behavior simulation engine through a reinforcement learning model according to the abnormal signal to ensure that the overall latency is less than 10 milliseconds, and outputting an optimized security policy.
9. The secure browser network incognito method based on active stealth defense as described in claim 1, characterized in that, The session termination and cleanup in step S5 includes: receiving a user session termination instruction, automatically destroying the temporary port and corresponding key, clearing the browser cache, session history and temporary files, and outputting a resource destruction confirmation; generating an audit log, recording session duration, traffic statistics and security events, encrypting the log and storing it locally or in the cloud, and outputting an audit completion signal.