Skip to content

Recovery after Leakage: White-box Adversarial Example Protection for Leaked DNN ModelsPost-breach Recovery: Protection against White-box Adversarial Examples for Leaked DNN Models

arXiv· arXiv:2205.10686· CCS 2022· Shawn Shan, Wenxin Ding, Emily Wenger, Haitao Zheng, Ben Y. ZhaoUniversity of ChicagoIndexed by this site · 27 days ago· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose Neo, which after a DNN model is leaked generates new versions with a hidden distribution and filters adversarial examples generated based on the leaked model; the authors report that it can recover from 7–10 breaches on 4 tasks.

Threat modelAfter the i-th server breach, the attacker gains white-box access to all leaked models and defense pairs {F_k, D_k}; has only limited query access to the new version deployed after the breach; can collect a small dataset with the same distribution as the original training data (the experiments assume 10% of the original training data); and constructs targeted adversarial perturbations. The victim system is a proprietary DNN classification service hosted on a server.

Questions
After a DNN model is leaked when its server is compromised, the attacker gains white-box access and can generate adversarial examples; the authors state that existing defenses have no practical robust solution under this threat model. In scenarios such as medical imaging where reconstructing the training data is costly, retraining may not be feasible either.
Methods
The authors propose Neo: after a breach, it deploys new model versions trained jointly on a hidden distribution generated by a GAN and the original training data, so that the classification surfaces of the versions differ in a controlled way; at inference, a filter compares the input's loss difference between the new and old versions to detect overfitting to the leaked version.
Experiments and results
On CIFAR10, SkinCancer, YTFace, and ImageNet, the authors report that Neo achieves an average NBR of 7.1–10.9 at 5% FPR, a single-leak filtering success rate ≥ 99.3%, and a benign accuracy drop ≤ 0.6%; 7 adaptive attacks reduce NBR by at most 1.7.
Limitations and future work
The authors note: stronger adaptive attacks may emerge; the filter needs to deploy all historical versions, so leaking a new version leaks all historical versions, and the inference overhead grows linearly with the number of breaches; the number of recoverable breaches is limited, and it fails once the NBR is exceeded. The experiments cover only 4 image classification tasks.
Experimental setupCIFAR10 model、SkinCancer model et al. · CIFAR10、SkinCancer (HAM10000) et al. · NBR (number of breaches recoverable)、filter success rate et al.
Evaluated models
CIFAR10 modelSkinCancer modelYTFace modelImageNet model
Benchmarks
CIFAR10SkinCancer (HAM10000)YTFaceImageNet
Metrics
NBR (number of breaches recoverable)filter success ratebenign classification accuracyfalse positive rate (FPR)
AI summaryThe Neo system provides post-leak recovery protection for leaked DNN models, detecting and filtering at inference time white-box adversarial examples generated from the old leaked model. Its principle is to generate a new version of the model, slightly shifting the classification surface through a hidden distribution, to identify the attack's overfitting to the old model. Across multiple tasks and attacks, Neo has a high filtering accuracy, can recover 7-10 times against attackers who repeatedly compromise the server, and this number drops slightly under strong adaptive attacks; it is expected to be a complement to DNN defenses.

The Neo system provides post-leak recovery protection for leaked DNN models, detecting and filtering at inference time white-box adversarial examples generated from the old leaked model. Its principle is to generate a new version of the model, slightly shifting the classification surface through a hidden distribution, to identify the attack's overfitting to the old model. Across multiple tasks and attacks, Neo has a high filtering accuracy, can recover 7-10 times against attackers who repeatedly compromise the server, and this number drops slightly under strong adaptive attacks; it is expected to be a complement to DNN defenses.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors propose the problem of recovery after a DNN model is leaked: how to recover service after the model has been obtained by a white-box attacker and defend against adversarial examples based on the leaked model.

    Core question: after a proprietary DNN model is leaked when its server is compromised, the attacker gains white-box access and can generate adversarial examples; the authors state that there is currently no practical robust defense for this threat model—how can the model owner recover service after a breach?

    • Problem scenario and importance: the authors state that whether the model is hosted on an internal server or in the cloud (MLaaS), attackers can compromise the server through unpatched vulnerabilities, the supply chain, side channels, phishing, and other means; for safety-critical domains such as medical imaging, reconstructing the training dataset is costly (the paper gives the examples of HAM10000, which took 20 years to collect, and TCGA, which cost 500 million USD), retraining may not be feasible, and because of transferability between models for the same task, retraining on new data is not necessarily safe either.
    • Shortcomings of existing methods: the authors state that white-box defenses (including adversarial training and certified defenses) are insufficient in the model-leakage scenario—the attacker possesses both the model and the defense parameters, so an adaptive attack is only a matter of time; black-box defenses fail by design once the attacker gains white-box access.
    • Core observation: the attacker only possesses the leaked old versions and has only limited query access to the new version, so its adversarial examples "overfit" to the loss surface of the leaked version, and their loss values on the new version differ from those on the old version, which can be used for detection.
    • Proposed approach: the authors propose the recovery system Neo, which generates model versions with controlled differences in loss surface (via a hidden distribution generated by a GAN) and pairs them with an inference-time filter that detects adversarial examples generated based on leaked versions; they also propose NBR (number of breaches recoverable) as a success metric for recovery systems.
    • Threat model:
      • Attacker goal: construct targeted adversarial perturbations against the recovered DNN service.
      • Attacker knowledge: after the i-th breach, gains white-box access to all leaked models and defense pairs {F_k, D_k}.
      • Attacker capability: has only limited query access to the new version deployed after the breach (no white-box access); can collect a small dataset with the same distribution as the original training data (the experiments assume 10% of the original training data).
      • Victim system: a proprietary DNN classification service hosted on a server that returns predicted labels; the recovery system is deployed by the model owner or a trusted third party and can access the full training pipeline.
  2. What related research exists?

    The paper reviews related work along three lines—model leakage protection, adversarial example attacks and defenses, and ensemble transferability reduction—and notes that no work directly addresses post-breach recovery.

    Model leakage and server protection

    • Intrusion detection/prevention systems and human-oriented anti-phishing and security awareness systems (paper cites [6, 29, 43, 33, 48, 17]) — protect remote servers from being compromised; the authors state these defenses remain limited and server breaches remain common.
    • Work on securely hosting ML models using hardware features such as trusted execution environments (TEE) (paper cites [20, 67]) — also a pre-leakage defense.

    Adversarial example attacks and transferability

    • Three white-box attacks: PGD [41] (signed-gradient iterative search), CW [12] (jointly minimizing perturbation norm and attack loss), EAD [15] (an L1+L2 variant of CW) — the paper uses them as evaluation attacks.
    • Transferability research (paper cites [18, 44, 62, 65, 91, 78]) — models for the same task share similar vulnerabilities, and adversarial examples can transfer across models; increasing differences between models (e.g., weight noise, gradient orthogonalization) can reduce transferability.

    Adversarial example defenses

    • White-box defenses: the authors state they are repeatedly broken under adaptive attacks, e.g., [3] bypasses 7 defenses that rely on gradient obfuscation, [7] bypasses 4 detection-based defenses, [10][11][9] break distillation, MagNet, and honeypot detection respectively, and [70] lists 13 targeted adaptive attacks.
    • Adversarial training [46, 87, 90] and certified defenses [39, 46]: the authors state the former faces high computational cost, limited effectiveness, and harm to benign accuracy, while the latter only supports small ε and is difficult to scale to large models.
    • Black-box defenses [42, 71]: the authors state they fail by design after model leakage.

    Adversarially disjoint ensembles (the closest alternative) and baselines

    • TRS [82], Abdelnabi et al. [1], DVERGE [81], Kariyappa & Qureshi [35] — train ensembles of models that are non-transferable to each other; the authors state that completely eliminating transferability between models for the same task is very difficult, and in §7.4 they adapt it into a recovery scheme for baseline comparison.
    • Baselines and benchmarks: the baselines are the adapted TRS, Abdelnabi, Abdelnabi+ (an improved version with randomized architectures and optimizers), and Trapdoor [64] (an adapted honeypot defense); the evaluation benchmarks are four image classification tasks: CIFAR10, SkinCancer, YTFace, and ImageNet.

    The authors position this paper as follows: to their knowledge, no prior work addresses the post-breach recovery problem; Neo is complementary to the above defenses and targets model leakage, an uncommon but critical event.

  3. How does the paper address this problem?

    Neo trains a new version with a controlled shift in the loss surface using hidden distributions generated by a GAN, then uses a cross-version loss-difference filter to detect adversarial examples that overfit to the leaked version.

    Overall approach: after the i-th leak, Neo deploys a new version (F_{i+1}, D_{i+1})—F_{i+1} has a controlled difference in loss surface from the old version, and D_{i+1} filters at inference time adversarial examples generated based on already-leaked versions and transferred to the new version.

    Problem setting and metrics

    • Versioned recovery: each time a leak is detected, the current version is marked "retired" and a new version is deployed; version i must, while maintaining benign accuracy, resist adversarial examples generated using any subset of already-leaked versions (1 to i−1) (Table 1, Figure 1).
    • NBR metric: the number of leaks the system can recover from before the attack success rate exceeds a threshold; the specific criterion adopted in the paper is "a targeted attack success rate ≤ 20% based on leaked models is regarded as recovered" (§7.1).

    Core intuition and formalization

    • Overfitting gap: the attacker has only seen the old version, and its adversarial examples reach a local optimum of the loss on the old version; after transfer to the new version F_{i+1}, their optimality decreases, forming an "optimality gap" (Figure 2).
    • Detection basis: for adversarial examples that transfer successfully, ℓ(F2(x+δ1), yt) − ℓ(F1(x+δ1), yt) ≥ T, whereas for benign inputs the loss difference between the two versions is approximately 0 (eq. (1)(2)), which is used to distinguish benign from adversarial inputs.
    • Theorem 6.1: approximating the ℓ2 loss of the two versions with a linear classifier, it proves that if an attack transfers to the new model G, then the loss difference between the two versions is greater than a lower bound T with high probability, and T increases with the parameter difference D_{G,F} between the two models; therefore, making the benign loss difference smaller than T during training suffices to separate the two classes of inputs (proof in Appendix A.1).

    Component one: model version generation

    • Hidden distributions: each version is trained jointly with the same task training data but with a different external data distribution assigned to each output label, adding no new classes and only expanding the training data of each class, thereby parameterizing the difference in loss surface across versions (Figure 3).
    • Training objective: minθ ∑x∈Xtask ℓ(y, Fθ(x)) + λ·∑l∈Ltask ∑x∈Xlhidden ℓ(l, Fθ(x)) (eq. (3)), i.e., the task loss plus the hidden distribution loss; each version is trained from scratch with the same architecture and hyperparameters.
    • GAN-generated hidden distributions: using a PGAN trained on CelebA, a 512-dimensional noise vector is input and a 224×224 face image is output; each hidden distribution is sampled from a small Gaussian ball with mean random (between −0.5 and 0.5) and σ0 = 0.3 (Appendix A.2); the authors estimate that the number of usable hidden distributions is ≥ 2^512.
    • Feature entanglement: soft nearest neighbor loss (SNNL) [21] is used to map the features of the task data and the hidden distributions into the same intermediate feature space; the authors state this is to prevent adaptive attacks that attack only the benign feature region.

    Component two: adversarial example filtering

    • Overfitting metric: for an input x, first take the output label y_t of the new version F_{i+1}, then compute the loss difference of x between F_{i+1} and each already-leaked version, and take the maximum Δ_max(x) (eq. (4)).
    • Threshold calibration: compute the distribution of Δ_max over benign inputs in the validation set, and take the k-th percentile as the threshold T_{i+1}, where 1 − k/100 is the expected FPR; if Δ_max(x) ≥ T_{i+1}, it is flagged as an adversarial example (eq. (5)); recalibrate on each recovery.
    • Attacks that fail to transfer: the filter does not flag them (the new version's loss is not higher than the old version's), but the authors state that such failed attempts are easy to identify because the two versions output different labels.

    Evaluation method

    • The attacker uses three targeted white-box attacks, PGD, CW, and EAD, to generate adversarial examples on the leaked versions; with multiple leaks, joint optimization is performed over the ensemble of all leaked versions.
    • The metrics are NBR (attack success rate ≤ 20% judged as recovered), the filtering success rate at 5% FPR, and the mean and standard deviation of benign accuracy over 100 versions.
  4. What experiments did the paper conduct?

    The authors evaluate Neo on 4 image tasks and 3 white-box attacks: at 5% FPR the average NBR is 7.1–10.9, the single-leak filtering success rate is ≥ 99.3%, and 7 adaptive attacks reduce NBR by at most 1.7.

    Experimental setup

    • Models and tasks evaluated: CIFAR10 (ResNet-18, 10 classes, 50,000 training samples), SkinCancer (ResNet-101, 7 classes, 50,000 training samples), YTFace (ResNet-101, 1,283 classes, 375,645 training samples), ImageNet (Inception ResNet, 1,000 classes, 1,281,167 training samples) (Table 8).
    • Attacks: three targeted white-box attacks, PGD, CW, and EAD; the authors report that these attacks have an average success rate of 97.2% on the leaked version and an average transfer attack success rate of 86.6% on the next recovered version without the filter; for multiple breaches, they are jointly optimized over the ensemble of all leaked versions.
    • Neo configuration: 100 versions trained per task; for the i-breach experiments, i versions are randomly selected as the leaked versions and another different version is selected as the new version; the hidden distribution is generated by a PGAN trained on CelebA.
    • Metrics and criteria: NBR (recovery criterion is targeted attack success rate ≤ 20%), filtering success rate (FPR set to 5%, with some experiments sweeping 0%–10%), benign accuracy (mean and standard deviation over 100 versions).
    • Sample sizes: filtering success rate is averaged over 500 inputs (Table 3); the Δ_max distribution experiment uses 500 randomly selected benign inputs from the CIFAR10 test set and their adversarial examples (Figure 4).
    • Baselines: four adapted schemes, TRS, Abdelnabi, Abdelnabi+, and Trapdoor, implemented using code provided by the authors (Table 5).

    Main results

    According to Table 4 (5% FPR, multiple breaches, average NBR ± standard deviation):

    Swipe horizontally to read the table

    TaskPGDCWEAD
    CIFAR107.1 ± 0.79.1 ± 0.58.7 ± 0.6
    SkinCancer7.5 ± 0.89.8 ± 0.79.3 ± 0.5
    YTFace7.9 ± 0.510.9 ± 0.710.0 ± 0.8
    ImageNet7.5 ± 0.69.6 ± 0.89.7 ± 1.0
    • Small benign accuracy cost: the benign accuracy difference between Neo versions and the standard model is ≤ 0.6% (Table 2, e.g., CIFAR10 standard 92.1% vs Neo 91.4 ± 0.2%).
    • Single-breach filtering: across 4 tasks × 3 attacks the filtering success rate is 99.3%–99.9% (5% FPR, Table 3); at 1% FPR it is ≥ 98.9%; the authors state that the detection AUC is > 99.4% for all tasks/attacks.
    • Better against stronger attacks: NBR is higher on CW and EAD than on PGD; the authors state that this is because stronger attacks overfit more on the leaked version and are easier to detect (consistent with the higher Δ_max for CW/EAD in Figure 4).

    Filter degradation under multiple breaches

    • Δ_max decreases with the number of breaches: on CIFAR10, the Δ_max of PGD adversarial examples drops from 1.62 at 1 breach to 0.60 at 7 breaches (Figure 5).
    • Filtering success rate decreases: on CIFAR10, when 7 leaked models are ensembled, the filtering success rate at 5% FPR drops to 81% (Figure 6).
    • FPR–NBR trade-off: at 0% FPR, Neo recovers at most ≥ 4.1 breaches; when FPR rises to 4%, the average NBR rises to 7.0 (Figure 7).

    Comparison with baselines

    • Baseline NBR is low: Table 5 shows TRS average NBR ≤ 0.7, Abdelnabi ≤ 1.7, and Abdelnabi+'s improvement over Abdelnabi < 0.2、Trapdoor ≤ 1.6(各任务/攻击下均远低于 Neo);基线良性准确率也更低(如 CIFAR10 上 TRS 84%、Abdelnabi 86%,Neo 91%)。
    • 作者解读:集成攻击在多个版本上联合优化时会利用版本间共享特征,避开版本特定的 trapdoor 或 disjoint 约束;作者称 TRS 与 Abdelnabi 在 ImageNet 和更强攻击下表现进一步下降。

    自适应攻击(§8,假设攻击者对恢复系统与 GAN 有 white-box 访问并持有 10% 训练数据)

    • 减少过拟合类(4 种):数据增强攻击(DI2-FGSM、VMI-FGSM、Dropout p=0.1/0.2)使 NBR 降幅 < 0.9(Table 6);低置信度攻击下 Neo 保持 NBR ≥ 6.7(Table 7,部分设置迁移成功率 < 20% 记为"—");logit matching 攻击迁移率 < 32%,迁移成功者中 Neo 检出 92%;弱攻击 SPSA/DeepFool 下 NBR ≥ 6.2,两者在 SkinCancer、YTFace、ImageNet 上迁移成功率 < 12%。
    • 修改泄露版本类(3 种):剪枝+微调在剪枝率 0.3 时 NBR 降到 5.5,剪枝率 ≥ 0.3 后回升(Figure 9);代理模型攻击(仅 CIFAR10、YTFace 上能训练出可用代理)使 NBR 最多降 1.6,训练 3 轮后回升(Figure 10);unlearning+重训使平均 NBR 降 < 1.7(Figure 11),SkinCancer 上反而比标准攻击更差。
    • 作者解读:这类攻击面临权衡——利用泄露版本则损失面相似、仍被检出,偏离太多则迁移率过低;作者称 7 种自适应攻击总体只使 NBR 下降 ≤ 1.7。

    其他消融与分析

    • 攻击强度:PGD 扰动预算增大时 NBR 上升(Figure 8);优化迭代增多时 NBR 先降后略升(Table 10)。
    • 推理开销:CIFAR10 单次推理 5ms、ImageNet 13ms(NVIDIA Titan RTX);7 次泄露后分别为 35ms 和 91ms,开销随泄露数线性增长。
    • 隐藏分布间距:两个版本的采样高斯均值 L1 距离 > 0.4, the filtering success rate is > 98% (Figure 15).
    • Benign fine-tuning attack: fine-tuning directly on the leaked version with benign data has limited effect on Neo (Figure 13).
  5. What are some points that can be further explored?

    The authors list three limitations: stronger adaptive attacks may emerge, the filter needs to deploy all historical versions, which brings security and overhead issues, and the number of recoverable breaches is limited.

    Limitations and future directions noted by the authors

    • Stronger adaptive attacks (§9): the authors state that although they made their best effort to design adaptive attacks, more advanced adaptive attacks that bypass Neo may still emerge, and they leave the design and evaluation of stronger adaptive attacks to future work.
    • The filter needs to deploy all historical versions (§9): an attacker who compromises version i+1 automatically obtains all historical versions, accelerating data collection for ensemble attacks; and the inference computational overhead grows linearly with the number of breaches (it can be parallelized to reduce latency, but the total overhead is unchanged).
    • Trade-offs of alternative filter designs (§9): the authors considered a design that does not deploy historical versions and instead uses local gradient search to approximate the degree of overfitting, but state that it relies on a simplifying assumption about the minimum loss value (which may not always hold) and requires multiple gradient computations per input, making the actual deployment cost too high.
    • Limited number of recoverable breaches (§9): Neo's recovery capability degrades as the number of breaches increases, and it fails once the actual number of breaches exceeds the NBR; the authors state that this paper is an initial step and look forward to future schemes with stronger recovery properties.
    • Extension to other data domains (Appendix A.2 footnote): the GAN in this paper is used only for the image domain, and the authors leave applying the recovery system to other domains to future work.

    Scope of the experiments

    • Tasks evaluated: 4 image classification tasks (CIFAR10, SkinCancer, YTFace, ImageNet), corresponding to three architectures, ResNet-18, ResNet-101, and Inception ResNet (Table 8).
    • Attack coverage: 3 targeted white-box attacks (PGD, CW, EAD) plus 7 adaptive attacks (2 categories of strategies); the adaptive attack experiments assume the attacker holds 10% of the original training data and has white-box access to the recovery system and the GAN (§8).
    • Breach scale: the multiple-breach experiments evaluate up to 7 breaches (Figure 5, Figure 6); 100 versions are trained per task.
    • Source of the hidden distribution: only the face image distribution generated by a PGAN trained on CelebA (Appendix A.2).
    • Not reported in the paper: the attack sample generation budget for the filtering experiments (e.g., the specific number of PGD iterations and the ε value are not given in the main text), and the number of repetitions for the NBR experiments (Table 4 gives standard deviations but does not state the repetition setup).
  6. Summarize the main content of the paper

    Neo creates differences in the loss landscape between versions by hiding distributions and filters out adversarial examples that overfit to the leaked version; the authors report that it can recover from 7–10 leaks on 4 tasks.

    A CCS 2022 defense paper that proposes and formalizes the post-breach recovery problem: after a proprietary DNN model is leaked when its server is compromised, the attacker gains white-box access; the authors state that existing white-box and black-box defenses are both insufficient in this scenario.

    • Method: Neo deploys a new model version after each breach—trained jointly on a hidden distribution generated by a GAN and the original training data by label, with features entangled using SNNL, so that the loss surfaces of the versions differ in a controlled way; at inference, a filter compares the input's maximum loss difference Δ_max between the new version and all leaked versions, and flags it as an adversarial example if it exceeds a threshold calibrated on a benign validation set. Theorem 6.1 gives a lower bound on the loss difference between two versions for adversarial examples that transfer successfully.
    • Metric: proposes NBR (number of breaches recoverable), using a targeted attack success rate ≤ 20% as the criterion for "recovered".
    • Main results: on CIFAR10, SkinCancer, YTFace, and ImageNet, at 5% FPR the average NBR is 7.1–10.9 (Table 4); for a single breach the filtering success rate is 99.3%–99.9% (Table 3); benign accuracy differs from the standard model by ≤ 0.6% (Table 2).
    • Comparison and adaptive attacks: the adapted TRS, Abdelnabi, and Trapdoor baselines have an average NBR ≤ 1.7 (Table 5); 7 adaptive attacks (data augmentation, low confidence, logit matching, weak attack, pruning fine-tuning, surrogate model, unlearning retraining) reduce NBR by at most 1.7, and the authors state that Neo can still recover from multiple breaches under adaptive attacks.
    • Authors' conclusions and implications: the authors state that Neo works better against stronger attacks (more overfitting, easier to detect), and view this paper as an initial step, noting that stronger adaptive attacks, the overhead and security simplifications of deploying historical versions, and the limited number of recoveries are problems to be addressed in future work.

Related papers

Show 3 more papers
Read originalCCS 2022