Method and system for preventing network content from being synthetically tampered with
By building a deep anomaly detection model and using oversampling and undersampling algorithms to optimize feature extraction and identify forged and synthetic tampering attacks, the security and efficiency issues of data communication in the edge collaborative architecture are solved, and the security and efficient matching of data communication are achieved.
Patent Information
- Application Number
- CN202411660399.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-11-20
AI Technical Summary
In edge-end collaboration or cloud-edge-end integrated architecture, data communication of network nodes faces attacks such as forgery, synthesis, and tampering, leading to privacy leaks and security threats. In addition, there is data imbalance in the training data set, which affects the efficiency of model training.
Using oversampling and undersampling algorithms, a deep anomaly detection model is constructed. Key features are extracted from traffic data through structured processing. The model is optimized using the maximum marginal loss function and multiple loss functions to identify forged synthesis or tampering attacks and prevent network content from being synthesized and tampered with.
Effectively identify forged synthesis or tampering attacks, ensure data communication security, improve model training efficiency, prevent privacy leakage, and improve data matching efficiency.
Smart Images

Figure CN119383005B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a method and system for preventing network content from being synthesized and tampered with. Background Art
[0002] Data communication between network nodes is vulnerable to attacks such as forgery, synthesis, and tampering. Edge-end collaboration or cloud-edge-end integrated architectures, due to their open channels, can also lead to privacy leaks and security threats. Ensuring secure data communication and efficient matching in lightweight network scenarios has become an urgent issue. Improving model training efficiency is also a pressing issue.
[0003] Therefore, there is an urgent need for a method and system for preventing network content from being synthesized and tampered with. Summary of the Invention
[0004] The purpose of the present invention is to provide a method and system for preventing network content from being synthesized and tampered with, using oversampling algorithms and undersampling algorithms to solve the problem of data imbalance in training data sets, optimize the deep anomaly detection model, and use the deep anomaly detection model to identify attacks such as forgery, synthesis, or tampering, thereby ensuring data communication security and efficient matching.
[0005] In a first aspect, the present application provides a method for preventing network content from being synthetically tampered with, the method comprising:
[0006] Input the training dataset and build a deep anomaly detection model;
[0007] The deep anomaly detection model can extract key features from traffic data through structured processing. The deep anomaly detection model includes an input layer, multiple sublayers, a balanced sampling module, and a neural network structure. The input layer receives multiple basic features under different sampling time windows. The multiple sublayers with different encoding dimensions encode the multiple basic features to obtain a hierarchical feature representation and generate an embedding space. The balanced sampling module integrates the oversampling algorithm and the undersampling algorithm to calculate the average of each category feature, define the features with a number greater than or equal to the average as the majority class features, and define the features with a number less than the average as the minority class features. The undersampling algorithm is used for the majority class features, and the oversampling algorithm is used for the minority class features. The results of the oversampling algorithm and the undersampling algorithm are summarized and input into the neural network structure. The neural network structure learns the summarized results and detects anomalies.
[0008] The deep anomaly detection model uses the maximum margin loss function and the multiple loss function as optimization objectives, so that traffic with similar characteristics is clustered together in the embedding space, while traffic with different characteristics is separated by a certain distance;
[0009] The traffic data uploaded by the user is cleaned, filtered, and standardized, and then transmitted to the deep anomaly detection model to identify whether the traffic data is abnormal. If it is abnormal, the distribution characteristics of the traffic data are analyzed through inference attacks to infer the location of synthetic tampering. In addition, the true identity of the attacker is guessed based on the pseudo-identity information carried in the traffic data.
[0010] The identification result, including the synthetically tampered location and the guessed real identity of the attacker, is output and provided to the user.
[0011] In a second aspect, the present application provides a system for preventing network content from being synthetically tampered with, the system comprising: a model building unit, a deep anomaly detection model, a preprocessing unit, and an output unit;
[0012] The model building unit is used to input the training data set and build a deep anomaly detection model;
[0013] The deep anomaly detection model is used to extract key features from traffic data through structured processing. The deep anomaly detection model includes an input layer, multiple sublayers, a balanced sampling module, and a neural network structure; the input layer receives multiple basic features under different sampling time windows; multiple sublayers with different encoding dimensions encode the multiple basic features to obtain a hierarchical feature representation and generate an embedding space; the balanced sampling module integrates an oversampling algorithm and an undersampling algorithm to calculate the average of each category feature, define features with a number greater than or equal to the average as majority class features, and define features with a number less than the average as minority class features, apply an undersampling algorithm to the majority class features, and apply an oversampling algorithm to the minority class features, summarize the results of the oversampling algorithm and the undersampling algorithm, and input the results into the neural network structure; the neural network structure learns the summarized results and detects anomalies;
[0014] The deep anomaly detection model uses the maximum margin loss function and the multiple loss function as optimization objectives, so that traffic with similar characteristics is clustered together in the embedding space, while traffic with different characteristics is separated by a certain distance;
[0015] A pre-processing unit, configured to clean, filter, and normalize the traffic data uploaded by users before transmitting it to the deep anomaly detection model;
[0016] The deep anomaly detection model identifies whether the traffic data is abnormal. If so, it continues to analyze the distribution characteristics of the traffic data by inferring the attack, and then infers the location of the synthetic tampering. In addition, it uses the pseudo-identity information carried in the traffic data to guess the true identity of the attacker;
[0017] The output unit is used to output the identification result, including: the synthetically tampered location and the guessed real identity of the attacker, and provide it to the user.
[0018] In a third aspect, the present application provides a system for preventing network content from being synthesized and tampered with, the system comprising: a processor and a memory:
[0019] The memory is used to store program code and transmit the program code to the processor;
[0020] The processor is configured to execute any one of the various possible methods of the first aspect according to instructions in the program code.
[0021] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to be executed by a processor to implement any of the various possible methods in the first aspect.
[0022] Beneficial effects
[0023] The present invention provides a method and system for preventing network content from being synthesized and tampered with. By using oversampling algorithms and undersampling algorithms, the problem of data imbalance in training data sets is solved, and a deep anomaly detection model is optimized. The deep anomaly detection model is used to identify attacks such as forgery, synthesis, or tampering, thereby ensuring data communication security and efficient matching, and overcoming the problem that public channels in the prior art are prone to privacy leaks and security threats.
[0024] The present invention has the following advantages and effects:
[0025] Use oversampling and undersampling algorithms to solve the problem of data imbalance in training data sets;
[0026] It can identify attacks such as forgery, synthesis or tampering, thereby ensuring data communication security and efficient matching. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0028] Figure 1 A flow chart of a method for preventing network content from being synthesized and tampered with according to the present invention;
[0029] Figure 2 This is an architectural diagram of the system for preventing network content from being synthesized and tampered with according to the present invention. DETAILED DESCRIPTION
[0030] The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more precise definition of the protection scope of the present invention.
[0031] Figure 1 This is a general flow chart of the method provided in this application for preventing network content from being synthetically tampered with, the method comprising:
[0032] Input the training dataset and build a deep anomaly detection model;
[0033] The deep anomaly detection model can extract key features from traffic data through structured processing. The deep anomaly detection model includes an input layer, multiple sublayers, a balanced sampling module, and a neural network structure. The input layer receives multiple basic features under different sampling time windows. The multiple sublayers with different encoding dimensions encode the multiple basic features to obtain a hierarchical feature representation and generate an embedding space. The balanced sampling module integrates the oversampling algorithm and the undersampling algorithm to calculate the average of each category feature, define the features with a number greater than or equal to the average as the majority class features, and define the features with a number less than the average as the minority class features. The undersampling algorithm is used for the majority class features, and the oversampling algorithm is used for the minority class features. The results of the oversampling algorithm and the undersampling algorithm are summarized and input into the neural network structure. The neural network structure learns the summarized results and detects anomalies.
[0034] The deep anomaly detection model uses the maximum margin loss function and the multiple loss function as optimization objectives, so that traffic with similar characteristics is clustered together in the embedding space, while traffic with different characteristics is separated by a certain distance;
[0035] The traffic data uploaded by the user is cleaned, filtered, and standardized, and then transmitted to the deep anomaly detection model to identify whether the traffic data is abnormal. If it is abnormal, the distribution characteristics of the traffic data are analyzed through inference attacks to infer the location of synthetic tampering. In addition, the true identity of the attacker is guessed based on the pseudo-identity information carried in the traffic data.
[0036] The identification result, including the synthetically tampered location and the guessed real identity of the attacker, is output and provided to the user.
[0037] In some preferred embodiments, the sub-layer adopts a regularization method to prevent the model from overfitting.
[0038] In some preferred embodiments, the identification of whether the traffic data is abnormal includes: comparing the label of the received traffic data with the label obtained locally based on the characteristic analysis of the traffic data, determining whether the data packet has been synthetically tampered with, and discarding the traffic data if it is determined to have been synthetically tampered with.
[0039] Figure 2 This is an architecture diagram of a system for preventing network content from being synthetically tampered with provided by this application, wherein the system includes: a model building unit, a deep anomaly detection model, a preprocessing unit, and an output unit;
[0040] The model building unit is used to input the training data set and build a deep anomaly detection model;
[0041] The deep anomaly detection model is used to extract key features from traffic data through structured processing. The deep anomaly detection model includes an input layer, multiple sublayers, a balanced sampling module, and a neural network structure; the input layer receives multiple basic features under different sampling time windows; multiple sublayers with different encoding dimensions encode the multiple basic features to obtain a hierarchical feature representation and generate an embedding space; the balanced sampling module integrates an oversampling algorithm and an undersampling algorithm to calculate the average of each category feature, define features with a number greater than or equal to the average as majority class features, and define features with a number less than the average as minority class features, apply an undersampling algorithm to the majority class features, and apply an oversampling algorithm to the minority class features, summarize the results of the oversampling algorithm and the undersampling algorithm, and input the results into the neural network structure; the neural network structure learns the summarized results and detects anomalies;
[0042] The deep anomaly detection model uses the maximum margin loss function and the multiple loss function as optimization objectives, so that traffic with similar characteristics is clustered together in the embedding space, while traffic with different characteristics is separated by a certain distance;
[0043] A pre-processing unit, configured to clean, filter, and normalize the traffic data uploaded by users before transmitting it to the deep anomaly detection model;
[0044] The deep anomaly detection model identifies whether the traffic data is abnormal. If so, it continues to analyze the distribution characteristics of the traffic data by inferring the attack, and then infers the location of the synthetic tampering. In addition, it uses the pseudo-identity information carried in the traffic data to guess the true identity of the attacker;
[0045] The output unit is used to output the identification result, including: the synthetically tampered location and the guessed real identity of the attacker, and provide it to the user.
[0046] The present application provides a system for preventing network content from being synthetically tampered with, the system comprising: a processor and a memory:
[0047] The memory is used to store program code and transmit the program code to the processor;
[0048] The processor is configured to execute the method described in any one of all embodiments of the first aspect according to instructions in the program code.
[0049] The present application provides a computer-readable storage medium, which is used to store program code, and the program code is used to be executed by a processor to implement any one of the methods in all embodiments of the first aspect.
[0050] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program that, when executed, may include some or all of the steps of various embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0051] Those skilled in the art will clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus the necessary general-purpose hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention or certain portions of the embodiments.
[0052] In particular, for the embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
[0053] The above-described embodiments of the present invention do not limit the protection scope of the present invention.
Claims
1. A method for preventing network content from being synthesized and tampered with, characterized in that: The method comprises: Input the training dataset and build a deep anomaly detection model; The deep anomaly detection model can extract key features from traffic data through structured processing. The deep anomaly detection model includes an input layer, multiple sublayers, a balanced sampling module, and a neural network structure. The input layer receives multiple basic features under different sampling time windows. The multiple sublayers with different encoding dimensions encode the multiple basic features to obtain a hierarchical feature representation and generate an embedding space. The balanced sampling module integrates the oversampling algorithm and the undersampling algorithm to calculate the average of each category feature, define the features with a number greater than or equal to the average as the majority class features, and define the features with a number less than the average as the minority class features. The undersampling algorithm is used for the majority class features, and the oversampling algorithm is used for the minority class features. The results of the oversampling algorithm and the undersampling algorithm are summarized and input into the neural network structure. The neural network structure learns the summarized results and detects anomalies. The deep anomaly detection model uses the maximum margin loss function and the multiple loss function as optimization objectives, so that traffic with similar characteristics is clustered together in the embedding space, while traffic with different characteristics is separated by a certain distance; The traffic data uploaded by the user is cleaned, filtered, and standardized, and then transmitted to the deep anomaly detection model to identify whether the traffic data is abnormal. If it is abnormal, the distribution characteristics of the traffic data are analyzed through inference attacks to infer the location of synthetic tampering. In addition, the true identity of the attacker is guessed based on the pseudo-identity information carried in the traffic data. The identification result, including the synthetically tampered location and the guessed real identity of the attacker, is output and provided to the user.
2. The method according to claim 1, wherein: The sublayer adopts a regularization method to prevent the model from overfitting.
3. The method according to claim 1, wherein: The identifying whether the traffic data is abnormal includes: comparing the label of the received traffic data with the label obtained locally based on the characteristic analysis of the traffic data, determining whether the data packet has been synthetically tampered with, and discarding the traffic data if it is determined to have been synthetically tampered with.
4. A system for preventing network content from being synthesized and tampered with, characterized in that: The system includes: a model building unit, a deep anomaly detection model, a preprocessing unit and an output unit; The model building unit is used to input the training data set and build a deep anomaly detection model; The deep anomaly detection model is used to extract key features from traffic data through structured processing. The deep anomaly detection model includes an input layer, multiple sublayers, a balanced sampling module, and a neural network structure; the input layer receives multiple basic features under different sampling time windows; multiple sublayers with different encoding dimensions encode the multiple basic features to obtain a hierarchical feature representation and generate an embedding space; the balanced sampling module integrates an oversampling algorithm and an undersampling algorithm to calculate the average of each category feature, define features with a number greater than or equal to the average as majority class features, and define features with a number less than the average as minority class features, apply an undersampling algorithm to the majority class features, and apply an oversampling algorithm to the minority class features, summarize the results of the oversampling algorithm and the undersampling algorithm, and input the results into the neural network structure; the neural network structure learns the summarized results and detects anomalies; The deep anomaly detection model uses the maximum margin loss function and the multiple loss function as optimization objectives, so that traffic with similar characteristics is clustered together in the embedding space, while traffic with different characteristics is separated by a certain distance; A pre-processing unit, configured to clean, filter, and normalize the traffic data uploaded by users before transmitting it to the deep anomaly detection model; The deep anomaly detection model identifies whether the traffic data is abnormal. If so, it continues to analyze the distribution characteristics of the traffic data by inferring the attack, and then infers the location of the synthetic tampering. In addition, it uses the pseudo-identity information carried in the traffic data to guess the true identity of the attacker; The output unit is used to output the identification result, including: the synthetically tampered location and the guessed real identity of the attacker, and provide it to the user.
5. A system for preventing network content from being synthesized and tampered with, characterized in that: The system includes: a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to implement the method according to any one of claims 1 to 3 according to the instructions in the program code.
6. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store program code, and the program code is used to be executed by a processor to implement the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Intrusion detection method and equipment for data tampering in CBTC (Communication Based Train Control) system
CN116861417A
Edge computing intrusion detection method and system based on combination of Transform and automatic encoder
CN118900189A