A data processing system and a data processing method
By combining parallel processing and policy adjustment modules, the system responds to dynamic attacks in real time, solving the problem of high defense latency in existing technologies and achieving efficient defense during the inference phase.
Patent Information
- Application Number
- CN202510668742.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot respond to dynamic attacks in real time during the inference phase, resulting in high defense latency.
A parallel processing module is adopted, which uses the FPGA acceleration layer to receive input data in parallel. Through preprocessing, generating anti-disturbance templates and performing differential calculations, the defense strategy is dynamically adjusted in combination with the strategy adjustment module, and the security verification module ensures the integrity and legitimacy of the data.
It enables real-time response to dynamic attacks during the inference phase, reducing defense latency and improving the system's real-time performance and security.
Smart Images

Figure CN123158651A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data protection technology, and in particular to a data processing system and data processing method. Background Technology
[0002] With the widespread application of cloud-based AI services (such as OCR and facial recognition), adversarial examples have become one of the major challenges threatening the security of AI systems. Attackers, through carefully designed perturbations, can cause AI models to produce erroneous outputs, leading to serious security problems. For example, in the financial sector, adversarial examples may allow fraudulent transactions to pass verification; in the security sector, they may allow unauthorized personnel to bypass identity verification systems.
[0003] To address these threats, the industry has proposed a variety of defense solutions, the most common of which are static noise filtering and offline adversarial training. Static noise filtering is a common defense method that attempts to mask or neutralize adversarial perturbations by superimposing a fixed noise template before the model input. Offline adversarial training adds adversarial examples to the training dataset, enabling the model to learn the ability to resist adversarial attacks during the training process.
[0004] However, static noise filtering and offline adversarial training cannot respond to dynamic attacks in real time during the inference phase, resulting in high defense latency. Summary of the Invention
[0005] This application provides a data processing system and a data processing method to solve the problem that existing technologies cannot respond to dynamic attacks in real time during the inference stage.
[0006] In a first aspect, this application provides a data processing system, including: a parallel processing module, which is constructed from an acceleration layer, and the parallel processing module includes a receiving unit, a preprocessing unit, a generating unit, and a first computing unit;
[0007] The receiving unit is used to receive input data in parallel, wherein the input data is the original data stream that needs to be protected;
[0008] The preprocessing unit is used to perform preprocessing operations on the input data;
[0009] The generation unit is used to generate an anti-disturbance template based on the preprocessed input data;
[0010] The first calculation unit is used to perform differential calculation on the input data and the anti-disturbance template to obtain the target data.
[0011] In one possible implementation, the first computing unit is specifically used for:
[0012] The disturbance intensity coefficient and regularization coefficient are determined based on the input data;
[0013] After multiplying the perturbation intensity coefficient with the perturbation template, the result is multiplied element-wise with the input data to obtain the multiplication result. The hyperbolic tangent function is then applied to the multiplication result to obtain the residual mask.
[0014] The target data is obtained by subtracting the residual mask from the input data and then adding the product of the regularization coefficient and the total variation, wherein the total variation is the sum of the absolute values of the differences between adjacent pixels of the input data.
[0015] In one possible implementation, the preprocessing unit is specifically used for:
[0016] In the spatial domain, the input data is processed using a separable convolution operator to extract edge texture features;
[0017] In the frequency domain, the input data is processed by fixed-point discrete cosine transform to separate high-frequency noise components;
[0018] In the statistical domain, statistical analysis is performed on the input data to calculate the kurtosis and skewness of the input data.
[0019] In one possible implementation, the system further includes: a strategy adjustment module, which includes a determination unit, a second calculation unit, and an adjustment unit;
[0020] The determining unit is used to determine the attack frequency based on the real-time threat assessment results output by the parallel processing module, and to determine the system resource usage data.
[0021] The second calculation unit is used to calculate a two-dimensional reward function based on the attack frequency and system resource usage data;
[0022] The adjustment unit is used to dynamically adjust the defense strategy based on the calculation results of the dual-dimensional reward function.
[0023] In one possible implementation, the adjustment unit is specifically used for:
[0024] If the system resource usage data exceeds a first usage ratio and the attack frequency is lower than a first preset frequency, close the non-critical channels at the first preset ratio.
[0025] When the system resource usage data exceeds the first usage ratio, and the attack frequency is between the first preset frequency and the second preset frequency, the non-critical channels of the second preset ratio are closed, and the detection features are compressed, wherein the second preset ratio is less than the first preset ratio.
[0026] If the attack frequency is higher than the third preset frequency, the elastic resource pool is activated and the cloud verification node is temporarily called to distribute the calculation.
[0027] Among them, the first preset frequency < the second preset frequency < the third preset frequency.
[0028] In one possible implementation, the strategy adjustment module further includes an acquisition unit and an input unit:
[0029] The acquisition unit is used to acquire channel-related data for each feature detection channel, including threat heat weight, business relevance, and resource consumption ratio.
[0030] The input unit is used to input the threat heat weight, the business relevance, and the resource consumption ratio into a pre-trained Bayesian decision model, and the Bayesian decision model outputs a list of non-critical channels.
[0031] In one possible implementation, the system further includes: a security verification module, which includes a verification unit, a loading unit, and a triggering unit;
[0032] The verification unit is used to perform signature verification on the feature extraction parameters using the feature extraction parameter signature before the acceleration layer loads the feature extraction parameters.
[0033] The loading unit is used to load the feature extraction parameters into the configuration space of the acceleration layer when the signature verification is successful.
[0034] The triggering unit is used to trigger an exception handling process and refuse to load parameters in the event of signature verification failure.
[0035] In one possible implementation, the security verification module further includes a rotation unit, which is used to rotate the feature extraction parameter signature upon detecting a rotation trigger event, wherein the rotation trigger event includes the time reaching a preset rotation period, or the detection of an abnormal event.
[0036] In one possible implementation, the security verification module further includes an additional unit, configured to: attach a time stamp hash chain when the acceleration layer outputs the perturbation template; and generate an anti-replay watermark by deriving a sequence number from the timestamp and the key, so that the data receiver can determine the legality of the perturbation template by verifying the time stamp hash chain and the anti-replay watermark, and accept the perturbation template if it is determined to be legal; and discard the data and trigger a retransmission mechanism if it is determined to be illegal.
[0037] Secondly, this application provides a data processing method, including:
[0038] Input data is received in parallel, and the input data is the raw data stream that needs to be protected;
[0039] The input data is preprocessed.
[0040] Generate an adversarial perturbation template based on the preprocessed input data;
[0041] The target data is obtained by performing differential calculation on the input data and the anti-disturbance template.
[0042] Thirdly, this application provides an apparatus comprising: a processor and a memory, the processor being configured to execute a data processing program stored in the memory to implement the data processing method described in any one of the first aspects.
[0043] Fourthly, this application provides a storage medium storing one or more programs that can be executed by one or more processors to implement the data processing method described in any one aspect.
[0044] Compared with the prior art, the technical solution provided in this application has the following advantages: The system provided in this application includes a parallel processing module, which is constructed by an acceleration layer. The parallel processing module includes a receiving unit, a preprocessing unit, a generation unit, and a first calculation unit. The receiving unit is used to receive input data in parallel, which is the original data stream that needs to be protected. The preprocessing unit is used to perform preprocessing operations on the input data. The generation unit is used to generate an adversarial perturbation template based on the preprocessed input data. The first calculation unit is used to perform differential calculation on the input data and the adversarial perturbation template to obtain target data. This application can process the original data stream that needs to be protected in parallel through the parallel processing module, and obtain the target data by performing differential calculation on the input data and the adversarial perturbation template generated by the generation unit, thereby enabling real-time response to dynamic attacks during the inference stage and reducing defense latency. Attached Figure Description
[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0048] Figure 1 This is a schematic diagram of the structure of a data processing system provided in an embodiment of this application;
[0049] Figure 2 This is a schematic diagram of the structure of a strategy adjustment module provided in an embodiment of this application;
[0050] Figure 3 This is a schematic diagram of the structure of a security verification module provided in an embodiment of this application;
[0051] Figure 4 A flowchart illustrating an embodiment of a data processing method provided in this application;
[0052] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0054] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0055] To address the technical problem that existing technologies, such as static noise filtering and offline adversarial training, cannot respond to dynamic attacks in real time during the inference phase, resulting in high defense latency, this application provides a data processing system that can receive and process the raw data stream that needs protection in real time, enabling real-time response to dynamic attacks during the inference phase and reducing defense latency.
[0056] Figure 1 This is a schematic diagram of the structure of a data processing system provided in an embodiment of this application. Figure 1 As shown, the system includes: a parallel processing module, which is constructed from an acceleration layer, comprising a receiving unit, a preprocessing unit, a generation unit, and a first computing unit; the receiving unit is used to receive input data in parallel, the input data being the original data stream that needs to be protected; the preprocessing unit is used to perform preprocessing operations on the input data; the generation unit is used to generate an adversarial perturbation template based on the preprocessed input data; and the first computing unit is used to perform differential calculations on the input data and the adversarial perturbation template to obtain target data.
[0057] The parallel processing module is constructed from an FPGA (Field-Programmable Gate Array) acceleration layer. An FPGA is an integrated circuit chip whose internal logic structure can be programmed and configured by the user according to their needs. In this application, the FPGA acceleration layer, as one of the core processing components, is specifically used to accelerate the data processing flow. By leveraging the FPGA's ability to process data in parallel and quickly reconfigure circuits, high-speed and efficient data processing is achieved to meet the system's stringent real-time requirements.
[0058] The receiving unit is a functional subunit in the FPGA acceleration layer. Its main responsibility is to establish a connection with external data sources and receive input data in real time and continuously. The input data is the raw data stream that needs to be protected. This data may come from various vulnerable information sources, such as data packets in network transmissions, data read from storage devices, etc.
[0059] The preprocessing unit, also a functional subunit in the FPGA acceleration layer, is used to perform preliminary processing on the newly received raw input data. For example, it can normalize the data to ensure that the data value range meets the requirements of subsequent processing; or extract key features and use specific algorithms to filter out information that reflects the essential characteristics of the data, reducing the amount and complexity of data in subsequent processing.
[0060] The generative unit (GAN generator) is constructed based on GAN (Generative Adversarial Network) technology. In this application, the GAN generator uses preprocessed input data as a basis to learn the distribution patterns of the data, and then generates an adversarial perturbation template. This template is essentially a carefully designed data pattern, the purpose of which is to interfere with or neutralize malicious attack components that may exist in the input data, so as to protect the security and integrity of the original data.
[0061] The first computation unit is the final critical processing stage of the FPGA acceleration layer. It obtains the target data by performing differential computation on the input data and the adversarial perturbation template generated by the GAN generator. Differential computation is a mathematical operation that, according to specific algorithmic rules, subtracts corresponding elements of the input data from the perturbation template to obtain the target data. The target data, after processing, is the final output that aims to remove potential attacks while retaining the valid information of the original data. It will serve as the data source for subsequent system processes or external receivers.
[0062] This application can process the raw data stream that needs to be protected in parallel through a parallel processing module. By performing differential calculation between the input data and the adversarial perturbation template generated by the generation unit, the target data can be obtained, thereby enabling real-time response to dynamic attacks during the inference stage and reducing defense latency.
[0063] In another embodiment of this application, the first calculation unit is specifically configured to: determine a perturbation intensity coefficient and a regularization coefficient based on the input data; multiply the perturbation intensity coefficient by the perturbation template, and then perform an element-wise multiplication operation with the input data to obtain a multiplication result; apply a hyperbolic tangent function to the multiplication result to obtain a residual mask; subtract the residual mask from the input data, and then add the product of the regularization coefficient and the total variation to obtain the target data, wherein the total variation is the sum of the absolute values of the differences between adjacent pixels of the input data.
[0064] In this embodiment, the first calculation unit is mainly used to dynamically determine the disturbance intensity coefficient (α) and regularization coefficient (β) based on the input data, and to generate target data through a series of mathematical operations.
[0065] The calculation process for the disturbance intensity coefficient and the regularization coefficient is as follows:
[0066] Disturbance intensity coefficient α: The disturbance intensity coefficient α is dynamically adjusted based on the local contrast of the input data. The calculation formula is as follows: α=11+e-k1·Contrast(Xin), where k1=0.75 is the adjustment parameter, and Contrast(Xin) is the local contrast of the input data. The formula for calculating the local contrast is:
[0067] Contrast(X) = (max(X) - min(X)) / (max(X) + min(X) + ∈); where ∈ is the minimum value, used to avoid the denominator being zero.
[0068] Regularization coefficient β: The regularization coefficient β is dynamically adjusted based on the information entropy of the input data. The calculation formula is as follows: β = λ·Entropy(Xin) (λ = 0.03), where λ = 0.03 is the adjustment parameter. Entropy(Xin) is the information entropy of the input data, and the formula for calculating information entropy is:
[0069] Entropy(X) = -∑p(x)logp(x), where p(x) is the probability distribution of pixel values.
[0070] The process of generating the residual mask is as follows:
[0071] The perturbation template P is nonlinearly fused with the original input Xin:
[0072] mask=tanh(α·P⊙Sobel(Xin))
[0073] Sobel(·) is the edge detection operator, which enhances the suppression of structural noise; ⊙ is the Hadamard product (element-by-element multiplication), and the hyperbolic tangent function (tanh) restricts the result to the range of [-1,1] to avoid numerical overflow.
[0074] The process of generating the target data Xout is as follows:
[0075] The total variation TV(Xin) of the input data Xin is calculated using the following formula:
[0076] TV(X)=∑i,j∣Xi+1,j-Xi,j∣+∣Xi,j+1-Xi,j∣, where the total variation is used to measure the degree of change of the input data between adjacent pixels.
[0077] Subtract the residual mask Mmask from the input data Xin to obtain the denoised intermediate data:
[0078] Xdenoised = Xin-Mmask;
[0079] Multiplying the regularization coefficient β by the total variation TV(Xin) yields the regularization term: Regularization Term = β·TV(Xin);
[0080] The denoised intermediate data is added to the regularization term to obtain the final target data Xout:
[0081] Xout=Xdenoised+β·TV(Xin).
[0082] In other words, Xout = Xin - Mmask + β·TV(Xin).
[0083] In applications, the first computing unit can be implemented in an FPGA through a three-stage pipeline, as follows:
[0084] Pipeline Stage 1: Template Preprocessing;
[0085] Input: Original input data Xin and perturbation template P; Operation: Calculate the weighted perturbation template αP and multiply it element-wise with the input data; Output: Intermediate result.
[0086] Production Line Stage 2: Dynamic Coefficient Calculation;
[0087] Input: The histogram of the input data, Xin_hist; Operations: Calculate the contrast and information entropy, and generate the perturbation intensity coefficient α and regularization coefficient β. Output: Dynamic coefficients α and β.
[0088] Pipeline Stage 3: Residual Synthesis;
[0089] Input: Intermediate result, dynamic coefficients α and β; Operation: Apply the hyperbolic tangent function to generate the residual mask Mmask and calculate the target data Xout; Output: Target data Xou.
[0090] This scheme allows for dynamic adjustment of the perturbation strength coefficient α and regularization coefficient β based on the characteristics of the input data, adapting to different data distributions and noise levels. Furthermore, its FPGA pipeline implementation significantly improves computational efficiency, with a measured increase in latency of only 2.1ms. Simultaneously, the residual masking mechanism effectively neutralizes noise, while total variation regularization prevents over-smoothing, ensuring the quality of the output data.
[0091] In another embodiment of this application, the preprocessing unit is specifically used to: process the input data in the spatial domain using a separable convolution operator to extract edge texture features; process the input data in the frequency domain using a fixed-point discrete cosine transform to separate high-frequency noise components; and perform statistical analysis on the input data in the statistical domain to calculate the kurtosis and skewness of the input data.
[0092] In this embodiment, in the spatial domain, edge texture features are extracted through 3x3 separable convolution, specifically by calculating the gradient magnitude Gm = Gx² + Gy², where Gx and Gy represent the gradients in the horizontal and vertical directions, respectively; in the frequency domain, fixed-point DCT transform is used to separate high-frequency noise components (by retaining the first 20% of the energy coefficients, high-frequency noise components are filtered out); in the statistical domain, the kurtosis and skewness of the input data block are calculated to quantify the non-Gaussianity index of the input data and identify abnormal distribution features in the data.
[0093] In this embodiment, the specific operations of the preprocessing unit in the spatial, frequency, and statistical domains not only improve the efficiency and accuracy of feature extraction but also provide a solid foundation for subsequent adversarial perturbation generation and noise neutralization. Through multi-dimensional feature fusion, the system can better adapt to complex application scenarios, ensuring the real-time performance and security of data processing.
[0094] In another embodiment of this application, the system further includes: a strategy adjustment module, such as... Figure 2 As shown, the strategy adjustment module includes a determination unit, a second calculation unit, and an adjustment unit. The determination unit is used to determine the attack frequency based on the real-time threat assessment results output by the parallel processing module, and to determine the system resource usage data. The second calculation unit is used to calculate a two-dimensional reward function based on the attack frequency and the system resource usage data. The adjustment unit is used to dynamically adjust the defense strategy based on the calculation result of the two-dimensional reward function.
[0095] The policy adjustment module is built from the RL (Reinforcement Learning) policy engine.
[0096] The determination unit is used to determine whether an attack event exists based on the real-time threat assessment results output by the FPGA acceleration layer. Specifically, it first performs a binary determination on the real-time threat assessment results (noise_profile.attack_prob field) output by the FPGA acceleration layer using a determination threshold to determine whether an attack event exists. When attack_prob > τ, it is determined to be an attack event; when attack_prob ≤ τ, it is determined to be normal data.
[0097] In application, the attack detection threshold τ can be dynamically adjusted to prevent false positives:
[0098] τt+1=τt×e-λt+0.2×Entropy(Xin); where λ=0.05 is the attenuation coefficient to prevent misjudgment of continuously high-entropy legitimate data.
[0099] Then, the cumulative number of attack events is counted using a sliding time window (default 300ms) to calculate the attack frequency:
[0100] fattack = ∑t = T - 300TIsAttack(t)Ntotal_frames×1000; where Ntotal_frames is the total number of data frames within the window.
[0101] The determining unit is also used to determine system resource usage data, specifically:
[0102] CPU utilization is obtained from the operating system performance counters and normalized to Ucpu = Usage 100.
[0103] FPGA power consumption: Obtained from the Xilinx Power Estimator toolchain and normalized to Pnorm = 7.5Pcurr - 2.5.
[0104] Memory bandwidth usage is obtained from the DDR controller status register and normalized to Bmem = Burst_countMax_burst.
[0105] Calculate the overall resource utilization rate (i.e., system resource utilization data):
[0106] Rtotal=0.6Ucpu+0.3Pnorm+0.1Bmem.
[0107] The determination unit provides data support for subsequent reward function calculation and defense strategy adjustment by monitoring attack frequency and resource consumption in real time.
[0108] The second calculation unit is used to calculate a two-dimensional reward function based on attack frequency and resource consumption data, balancing security and resource efficiency.
[0109] Reward function formula: R = Safety term ωlog(fattack+1) - Energy consumption term γRtotal2 + Stable reward η·I (Rtotal<0.3)
[0110] Where: ω=2.0: attack interception gain coefficient, used to reward high attack interception rate; γ=1.5: resource consumption penalty coefficient, used to punish high resource consumption; η=0.8: low load stability reward, given an extra reward when resource consumption is below 30%; I(·): indicator function, takes a value of 1 when the condition is met, otherwise it is 0.
[0111] Calculation process:
[0112] Calculate the safety term: safety_term = 2.0 * np.log(attack_freq + 1e-5), using logarithmic scaling to prevent numerical explosion.
[0113] Calculate the energy consumption penalty term: energy_penalty = 1.5 * (resource_usage ** 2), where the quadratic function strengthens the penalty for high load.
[0114] Calculate the low-load stability bonus: stability_bonus = 0.8 if resource_usage < 0.3 else 0.
[0115] Comprehensive reward value: R = safety term - energy consumption penalty term + stability bonus R.
[0116] Clip the reward value to prevent gradient explosion: R ∈ [-5.0, 5.0].
[0117] Through the design of the reward function, the system can find a balance between high attack frequency and high resource occupancy, thereby optimizing the defense strategy.
[0118] An adjustment unit, configured to dynamically adjust the system's defense strategy according to the calculation result of the reward function, specifically: when the system resource occupancy data exceeds a first occupancy ratio and the attack frequency is lower than a first preset frequency, close non-critical channels of a first preset ratio; when the system resource occupancy data exceeds the first occupancy ratio and the attack frequency is between the first preset frequency and a second preset frequency, close non-critical channels of a second preset ratio, and compress detection features, wherein the second preset ratio is smaller than the first preset ratio; when the attack frequency is higher than a third preset frequency, activate an elastic resource pool to temporarily invoke cloud verification nodes for traffic offloading and computing; wherein the first preset frequency < the second preset frequency < the third preset frequency.
[0119] The adjustment unit executes a degradation mode triggering process, specifically: when the system resource occupancy data Rtotal > the first occupancy ratio (e.g., Rtotal > 0.45Rtotal, equivalent to a CPU occupancy rate > 15%) and the attack frequency fattack < the first preset frequency (e.g., 50 times / minute), close non-critical channels of the first preset ratio (e.g., 30%); when the system resource occupancy data Rtotal > the first occupancy ratio and the attack frequency satisfies the first preset frequency < fattack < the second preset frequency (e.g., 100 times / minute), close non-critical channels of the second preset ratio (e.g., 15%) and compress detection features; when the attack frequency fattack > the third preset frequency (e.g., 200 times / minute), activate the elastic resource pool to temporarily invoke cloud verification nodes for traffic offloading and computing.
[0120] In this scheme, the adjustment unit dynamically adjusts the defense strategy based on resource usage and attack frequency. By shutting down or downgrading non-critical channels, the system can release computing resources and prioritize the operation of critical channels, enabling the system to maintain efficient and secure operation under complex attack scenarios, thereby improving the overall efficiency and stability of the system.
[0121] In another embodiment of this application, the strategy adjustment module further includes an acquisition unit and an input unit: the acquisition unit is used to acquire channel-related data for each feature detection channel, the channel-related data including threat heat weight, business relevance, and resource consumption ratio; the input unit is used to input the threat heat weight, the business relevance, and the resource consumption ratio into a pre-trained Bayesian decision model, and the Bayesian decision model outputs a list of non-critical channels.
[0122] Threat popularity weight is a ranking of attack tactics and techniques based on the ATT&CK framework, updated in real time, reflecting the popularity and prevalence of current attack patterns.
[0123] Business relevance refers to the degree of coupling between the detection rules and the current business scenario. For example, in an e-commerce system, the payment fraud detection channel has a high degree of business relevance.
[0124] Resource consumption ratio refers to the ratio of FLOPS (floating-point operations per second) of each channel to the detection accuracy. It reflects the detection efficiency per unit of computing power.
[0125] In this scheme, the input unit inputs the acquired channel-related data (threat popularity weight, business relevance, and resource consumption ratio) into a pre-trained Bayesian decision model. The Bayesian optimization model dynamically generates a list of non-critical channels, which can be updated every 5 minutes in application. The Bayesian decision model selects channels based on the following criteria: low threat popularity weight (channels with low attack pattern popularity); low business relevance (channels with low coupling strength with the current business scenario); and high resource consumption ratio (channels with unit computing power output below a threshold).
[0126] In this scheme, the acquisition and input units in the strategy adjustment module can collect channel-related data in real time and input it into the Bayesian decision model, thereby dynamically generating a list of non-critical channels and optimizing resource allocation and defense strategies.
[0127] In another embodiment of this application, the system further includes: a security verification module, such as... Figure 3As shown, the security verification module includes a verification unit, a loading unit, and a triggering unit. The verification unit is used to verify the feature extraction parameters using a signature before the acceleration layer loads the feature extraction parameters. The loading unit is used to load the feature extraction parameters into the configuration space of the acceleration layer if the signature verification passes. The triggering unit is used to trigger an exception handling process and refuse to load the parameters if the signature verification fails.
[0128] The security verification module here refers to the SGX secure link, a key module in the system ensuring data integrity and security. It is primarily used for signature verification and parameter protection when loading feature extraction parameters at the FPGA acceleration layer. Its core functions include:
[0129] Signature verification: Ensures the integrity and validity of feature extraction parameters.
[0130] Parameter loading: After successful verification, the parameters are safely loaded into the FPGA configuration space.
[0131] Exception handling: Trigger the exception handling process when verification fails to prevent malicious parameter injection.
[0132] The verification unit is used for signature verification, and the specific process is as follows:
[0133] Signature generation process: The feature extraction parameter signature adopts EdDSA (a digital signature algorithm based on Edwards curves) and uses the Curve 25519 curve.
[0134] Signature generation formula:
[0135] Sig = Ed25519 - Sign(PrivateKey, Hash(Parameters)), where the dynamic perturbation factor Xt is generated through the Lorenz chaotic system, and the differential equation parameters are automatically reset every cycle. The signature validity window is strictly limited to t ± 30 seconds, after which it automatically expires.
[0136] Signature verification: The signature is verified using the public key to ensure that the parameters have not been tampered with. The signature verification process is completed within SGXenclave, ensuring that the private key and signature verification logic cannot be stolen or tampered with by external attackers.
[0137] Verification formula:
[0138] IsValid = Ed25519-Verify(PublicKey, Hash(Parameters), Sig). The purpose of the above scheme is to prevent the feature extraction parameters from being tampered with or replaced during transmission or loading, and to ensure that the parameters used by the FPGA acceleration layer are legal and have not been maliciously modified.
[0139] The loading unit is used for parameter loading, and the loading process is as follows:
[0140] Parameters are written directly from the secure storage area to the FPGA configuration space via PCIe P2P DMA (Direct Memory Access). This avoids the risk of CPU memory exposure and prevents parameters from being stolen or tampered with during the loading process. This ensures the security of feature extraction parameters during loading and improves the system's resistance to attacks.
[0141] The trigger unit is used for exception handling, and the exception handling process is as follows:
[0142] By logging abnormal events, generating security logs, pausing the FPGA data path to prevent malicious parameters from affecting system operation, triggering the key migration process, and regenerating and loading new feature extraction parameters, the system can prevent malicious parameter injection, ensure system security, provide a rapid response mechanism, and reduce potential security risks.
[0143] The technical implementation of the security verification module includes the following two aspects:
[0144] Hardware support: Utilizing Intel SGX (Software Guard Extensions) technology, signatures are generated and verified within the enclave, ensuring the security of keys and parameters. The signature verification and parameter loading process is accelerated through the FPGA's hardware encryption unit.
[0145] Algorithm optimization: The EdDSA signature algorithm is adopted, which is efficient and resistant to quantum computing attacks. The HMAC-SHA3 algorithm is used to generate the signature seed, enhancing the randomness and security of the signature.
[0146] In applications, security can also be enhanced through security enhancement mechanisms, as follows:
[0147] Physically Unclonable Function (PUF): Utilizes the difference in SRAM boot values at the FPGA die level to generate a unique device identifier, enhancing the security of keys and parameters.
[0148] Zero-knowledge proof: Verify that the key generation process within the enclave has not been tampered with using the Schnorr protocol, ensuring the trustworthiness of the system.
[0149] Circuit breaker counter: When a preset number of consecutive key generation failures (e.g., 3 times) are detected, the physical interface is permanently burned out to prevent physical attacks.
[0150] In this scheme, the security verification module, through the collaborative work of the verification unit, loading unit, and triggering unit, ensures the secure loading and use of feature extraction parameters.
[0151] In another embodiment of this application, the security verification module further includes a rotation unit, which is used to rotate the feature extraction parameter signature when a rotation trigger event is detected, wherein the rotation trigger event includes the time reaching a preset rotation period, or the detection of an abnormal event.
[0152] The aforementioned rotation unit is a crucial component of the security verification module. Its function is to periodically change the signature of the feature extraction parameters to prevent signature cracking or replay attacks. By dynamically rotating the signature, the system can significantly enhance security and ensure the integrity and legitimacy of the feature extraction parameters.
[0153] This embodiment includes two triggering methods:
[0154] Time-triggered: Signature rotation is automatically triggered every 10 minutes to ensure that the key's usage period does not exceed a preset security threshold. The rotation cycle matches the system's real-time requirements, ensuring security without significantly impacting system performance.
[0155] Anomaly Trigger: When the system detects an anomaly (such as a key cracking attempt, signature conflict, or cache side-channel attack signature), it immediately triggers signature rotation. Anomaly detection is based on joint monitoring of the FPGA and SGX to ensure rapid response.
[0156] In this scheme, a quantum noise-driven hybrid key derivation scheme is adopted, as follows:
[0157] Entropy source collection:
[0158] Hardware-level entropy source: Intel SGX's built-in TRNG (True Random Number Generator) captures silicon-based thermal noise at a sampling rate of 1Gbps.
[0159] Software-level entropy source: Real-time acquisition of FPGA power supply ripple spectrum (0-100MHz band), and extraction of 256-bit chaotic features through SHA-3.
[0160] Key synthesis: Kdynamic = HKDF - Extract(TRNG output, FPGA noise hash ⊕ timing counter).
[0161] Using HMAC-SHA512 as the PRF (pseudo-random function), the base seed is forcibly refreshed every 600 seconds, triggering key rotation even if the cycle has not been reached.
[0162] This scheme uses a cryptographic chaotic mapping chain instead of a pre-defined signature pool. The specific implementation is as follows:
[0163] Seed generation:
[0164] Seedt = HMAC-SHA3(Kmaster, Timestampt∥PUFfingerprint). The master key Kmaster is stored in the SGX sealed storage area, using Shamir secret sharing fragmentation (3 out of 5 threshold scheme). The timestamp is accurate to the nanosecond and synchronized with the atomic clock of the NTP server.
[0165] Rotation fault tolerance: A BLS threshold signature scheme is adopted, requiring at least 2 of the 3 enclave nodes to reach consensus before the signature can be updated. In case of anomalies, it can roll back to the previous valid signature, but forcibly triggers an FPGA parameter clearing operation. This scheme achieved zero signature collisions in AWS testing (test sample size 10^8 times), and the time required for a single signature to be brute-forced (>47 hours) far exceeds the rotation cycle (10 minutes).
[0166] In this scheme, the rotating unit can significantly enhance security by periodically rotating the feature extraction parameter signature, preventing the signature from being cracked or replay attacks.
[0167] In another embodiment of this application, the security verification module further includes an additional unit, which is configured to: attach a time stamp hash chain when the acceleration layer outputs the perturbation template, and generate an anti-replay watermark by deriving a sequence number from the timestamp and the key, so that the data receiver can determine the legality of the perturbation template by verifying the time stamp hash chain and the anti-replay watermark, and accept the perturbation template if the perturbation template is determined to be legal; and discard the data and trigger a retransmission mechanism if the perturbation template is determined to be illegal.
[0168] In this embodiment, to prevent attackers from tampering with or forging perturbation templates through replay attacks, the system introduces a time-stamp hash chain and an anti-replay watermarking mechanism to ensure the timeliness and integrity of the data.
[0169] Time-stamped hash chain:
[0170] Generation Mechanism: When outputting perturbation templates on the FPGA, a time-stamped hash chain based on the SM3 algorithm is appended. The generation of the hash chain combines a timestamp (accurate to nanoseconds) and a key derivation sequence number, ensuring that each perturbation template is bound to a specific point in time. The generation process of the hash chain is completed within the SGX enclave, ensuring that the private key and hash calculation logic cannot be stolen or tampered with by external attackers.
[0171] Verification Mechanism: The data receiver verifies the validity of the timestamp hash chain to ensure that the timestamp of the perturbation template is within a valid range (usually the current time ± 30 seconds). If the timestamp exceeds the valid range, the receiver will determine that the perturbation template is invalid data and trigger a retransmission mechanism.
[0172] Anti-replay watermark:
[0173] Generation Mechanism: A replay-resistant watermark is generated by deriving a sequence number from a timestamp and a key, ensuring the uniqueness and timeliness of each perturbation template. The watermark generation process incorporates the HMAC-BLAKE2s algorithm to ensure the watermark's unforgeability and tamper resistance.
[0174] Verification Mechanism: The data receiver verifies the uniqueness of the anti-replay watermark to ensure that the perturbation template has not been replayed or tampered with. If the watermark verification fails, the receiver will discard the data and trigger a security alert to prevent attackers from launching attacks by replaying old data.
[0175] Hardware-level parallel execution: FPGA and SGX collaboration: The generation and verification processes of the timing stamp hash chain and the anti-replay watermark are executed in parallel between the FPGA and SGX through a hardware-level pipeline, ensuring high efficiency and low latency in data processing.
[0176] Memory encryption protection: Data transmitted between the FPGA and the CPU is encrypted using AES-XTS mode to ensure data security during transmission.
[0177] Multi-level depth of replay protection:
[0178] Preprocessing stage: Before loading GAN parameters onto the FPGA, the parameter signature is verified by enclave to prevent the parameters from being tampered with.
[0179] Runtime phase: During the execution of the decision tree in the RL policy engine, the feature vectors undergo AES-GCM encryption and decryption within the enclave to ensure the confidentiality and integrity of the data.
[0180] Post-processing stage: When outputting the perturbation template on the FPGA, a timing stamp hash chain and an anti-replay watermark are added to ensure the timeliness and anti-replay capability of the data.
[0181] This scheme effectively resists replay attacks and ensures data timeliness and integrity through a time-stamped hash chain and an anti-replay watermarking mechanism. The receiving end uses a rigorous verification mechanism to ensure the legitimacy and integrity of the perturbation template, preventing data tampering or forgery. Simultaneously, the generation and verification processes of the time-stamped hash chain and the anti-replay watermark are executed in parallel at the hardware level, ensuring system efficiency and low latency.
[0182] Figure 4 This is a flowchart illustrating an embodiment of a data processing method provided in this application.
[0183] like Figure 4 As shown, the method includes the following steps:
[0184] Step 101: Receive input data in parallel, wherein the input data is the original data stream that needs to be protected;
[0185] Step 102: Perform preprocessing operations on the input data;
[0186] Step 103: Generate an adversarial perturbation template based on the preprocessed input data;
[0187] Step 104: Perform differential calculation on the input data and the anti-disturbance template to obtain the target data.
[0188] In another embodiment of this application, differential calculation is performed on the input data and the anti-disturbance template to obtain the target data, specifically including the following steps:
[0189] The disturbance intensity coefficient and regularization coefficient are determined based on the input data;
[0190] After multiplying the perturbation intensity coefficient with the perturbation template, the result is multiplied element-wise with the input data to obtain the multiplication result. The hyperbolic tangent function is then applied to the multiplication result to obtain the residual mask.
[0191] The target data is obtained by subtracting the residual mask from the input data and then adding the product of the regularization coefficient and the total variation, wherein the total variation is the sum of the absolute values of the differences between adjacent pixels of the input data.
[0192] In another embodiment of this application, the preprocessing operation on the input data specifically includes the following steps:
[0193] In the spatial domain, the input data is processed using a separable convolution operator to extract edge texture features;
[0194] In the frequency domain, the input data is processed by fixed-point discrete cosine transform to separate high-frequency noise components;
[0195] In the statistical domain, statistical analysis is performed on the input data to calculate the kurtosis and skewness of the input data.
[0196] In another embodiment of this application, the method may further include the following steps:
[0197] The attack frequency is determined based on the real-time threat assessment results output by the parallel processing module, and the system resource usage data is also determined.
[0198] Calculate the two-dimensional reward function based on the attack frequency and system resource usage data;
[0199] The defense strategy is dynamically adjusted based on the calculation results of the dual-dimensional reward function.
[0200] In another embodiment of this application, dynamically adjusting the defense strategy based on the calculation result of the two-dimensional reward function may specifically include the following steps:
[0201] If the system resource usage data exceeds a first usage ratio and the attack frequency is lower than a first preset frequency, close the non-critical channels at the first preset ratio.
[0202] When the system resource usage data exceeds the first usage ratio, and the attack frequency is between the first preset frequency and the second preset frequency, the non-critical channels of the second preset ratio are closed, and the detection features are compressed, wherein the second preset ratio is less than the first preset ratio.
[0203] If the attack frequency is higher than the third preset frequency, the elastic resource pool is activated and the cloud verification node is temporarily called to distribute the calculation.
[0204] Among them, the first preset frequency < the second preset frequency < the third preset frequency.
[0205] In another embodiment of this application, the method may further include the following steps:
[0206] Obtain channel-related data for each feature detection channel, including threat heat weight, business relevance, and resource consumption ratio;
[0207] The threat heat weight, the business relevance, and the resource consumption ratio are input into a pre-trained Bayesian decision model, which then outputs a list of non-critical channels.
[0208] In another embodiment of this application, the method may further include the following steps:
[0209] Before loading the feature extraction parameters in the acceleration layer, the feature extraction parameters are verified by using the feature extraction parameter signature.
[0210] If the signature verification passes, the feature extraction parameters are loaded into the configuration space of the acceleration layer;
[0211] If signature verification fails, an exception handling process is triggered, and parameters are refused to be loaded.
[0212] In another embodiment of this application, the method may further include the following steps: rotating the feature extraction parameter signature upon detecting a rotation trigger event, wherein the rotation trigger event includes the arrival of a preset rotation period or the detection of an abnormal event.
[0213] In another embodiment of this application, the method may further include the following steps: attaching a time stamp hash chain when the acceleration layer outputs the perturbation template, and generating an anti-replay watermark by deriving a sequence number from the timestamp and the key, so that the data receiver can determine the legality of the perturbation template by verifying the time stamp hash chain and the anti-replay watermark, and accept the perturbation template if the perturbation template is determined to be legal; and discard the data and trigger a retransmission mechanism if the perturbation template is determined to be illegal.
[0214] The specific implementation process of the above solution has been explained in the foregoing embodiments and will not be repeated here.
[0215] like Figure 5 As shown in the figure, this application provides a device including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0216] Memory 113 is used to store computer programs;
[0217] In one embodiment of this application, when the processor 111 executes a program stored in the memory 113, it implements the data processing method provided in any of the foregoing method embodiments, including:
[0218] Input data is received in parallel, and the input data is the raw data stream that needs to be protected;
[0219] The input data is preprocessed.
[0220] Generate an adversarial perturbation template based on the preprocessed input data;
[0221] The target data is obtained by performing differential calculation on the input data and the anti-disturbance template.
[0222] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the data processing method provided in any of the foregoing method embodiments.
[0223] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0224] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0225] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0226] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A data processing system, characterized in that, The system includes: a parallel processing module, which is constructed from an acceleration layer, and the parallel processing module includes a receiving unit, a preprocessing unit, a generation unit, and a first computing unit; The receiving unit is used to receive input data in parallel, wherein the input data is the original data stream that needs to be protected; The preprocessing unit is used to perform preprocessing operations on the input data; The generation unit is used to generate an anti-disturbance template based on the preprocessed input data; The first calculation unit is used to perform differential calculation on the input data and the anti-disturbance template to obtain the target data.
2. The system according to claim 1, characterized in that, The first computing unit is specifically used for: The disturbance intensity coefficient and regularization coefficient are determined based on the input data; After multiplying the perturbation intensity coefficient with the perturbation template, the result is multiplied element-wise with the input data to obtain the multiplication result. The hyperbolic tangent function is then applied to the multiplication result to obtain the residual mask. The target data is obtained by subtracting the residual mask from the input data and then adding the product of the regularization coefficient and the total variation, wherein the total variation is the sum of the absolute values of the differences between adjacent pixels of the input data.
3. The system according to claim 1, characterized in that, The preprocessing unit is specifically used for: In the spatial domain, the input data is processed using a separable convolution operator to extract edge texture features; In the frequency domain, the input data is processed by fixed-point discrete cosine transform to separate high-frequency noise components; In the statistical domain, statistical analysis is performed on the input data to calculate the kurtosis and skewness of the input data.
4. The system according to claim 1, characterized in that, The system further includes a strategy adjustment module, which includes a determination unit, a second calculation unit, and an adjustment unit. The determining unit is used to determine the attack frequency based on the real-time threat assessment results output by the parallel processing module, and to determine the system resource usage data. The second calculation unit is used to calculate a two-dimensional reward function based on the attack frequency and system resource usage data; The adjustment unit is used to dynamically adjust the defense strategy based on the calculation results of the dual-dimensional reward function.
5. The system according to claim 4, characterized in that, The adjustment unit is specifically used for: If the system resource usage data exceeds a first usage ratio and the attack frequency is lower than a first preset frequency, close the non-critical channels at the first preset ratio. When the system resource usage data exceeds the first usage ratio, and the attack frequency is between the first preset frequency and the second preset frequency, the non-critical channels of the second preset ratio are closed, and the detection features are compressed, wherein the second preset ratio is less than the first preset ratio. If the attack frequency is higher than the third preset frequency, the elastic resource pool is activated and the cloud verification node is temporarily called to distribute the calculation. Among them, the first preset frequency < the second preset frequency < the third preset frequency.
6. The system according to claim 5, characterized in that, The strategy adjustment module further includes an acquisition unit and an input unit: The acquisition unit is used to acquire channel-related data for each feature detection channel, including threat heat weight, business relevance, and resource consumption ratio. The input unit is used to input the threat heat weight, the business relevance, and the resource consumption ratio into a pre-trained Bayesian decision model, and the Bayesian decision model outputs a list of non-critical channels.
7. The system according to claim 1, characterized in that, The system further includes a security verification module, which comprises a verification unit, a loading unit, and a triggering unit. The verification unit is used to perform signature verification on the feature extraction parameters using the feature extraction parameter signature before the acceleration layer loads the feature extraction parameters. The loading unit is used to load the feature extraction parameters into the configuration space of the acceleration layer when the signature verification is successful. The triggering unit is used to trigger an exception handling process and refuse to load parameters in the event of signature verification failure.
8. The system according to claim 7, characterized in that, The security verification module further includes a rotation unit, which is used to rotate the feature extraction parameter signature when a rotation trigger event is detected. The rotation trigger event includes the time reaching a preset rotation period or the detection of an abnormal event.
9. The system according to claim 7, characterized in that, The security verification module further includes an additional unit, which is configured to: attach a time stamp hash chain when the acceleration layer outputs the perturbation template, and generate an anti-replay watermark by deriving a sequence number from the timestamp and the key, so that the data receiver can determine the legality of the perturbation template by verifying the time stamp hash chain and the anti-replay watermark, and accept the perturbation template if it is determined to be legal; and discard the data and trigger a retransmission mechanism if it is determined to be illegal.
10. A data processing method, characterized in that, The method includes: Input data is received in parallel, and the input data is the raw data stream that needs to be protected; The input data is preprocessed. Generate an adversarial perturbation template based on the preprocessed input data; The target data is obtained by performing differential calculation on the input data and the anti-disturbance template.
