Skip to content

Gotta Catch 'Em All: Using Honeypots to Catch Adversarial Attacks on Neural NetworksGotta Catch 'Em All: Using Honeypots to Catch Adversarial Attacks on Neural Networks

arXiv· arXiv:1904.08554· CCS 2020· Shawn Shan, Emily Wenger, Bolun Wang, Bo Li, Haitao Zheng, Ben Y. ZhaoUniversity of Chicago; UIUCIndexed 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 a trapdoor honeypot defense: inject backdoor-like weaknesses into DNNs to trap adversarial attacks, achieving detection rates above 94% (5% FPR) on 4 tasks under 6 attacks.

Threat modelBasic white box threat model: the attacker can access the trapdoored model, its architecture, and internal parameters, but cannot access the training data (including clean and trapdoored images) or the runtime detection filter. Adaptive attackers are divided into three levels: static (unaware of the defense), skilled (knows there is a trapdoor but not the details), and oracle (knows the trapdoor shape, position, intensity, and full signature).

Questions
DNNs are vulnerable to adversarial examples; the authors state that existing defenses (gradient obfuscation, adversarial training, inference-time detection) have all been bypassed or weakened by stronger attacks, and a new approach is needed that does not stop attacks but instead traps them.
Methods
The authors propose a trapdoor honeypot defense: using a backdoor-poisoning-like approach to inject artificial weaknesses for each label to be protected, so that the attacker's optimization converges to the trapdoor region, then comparing the input's neuron activations with the trapdoor signature to detect the attack.
Experiments and results
On MNIST, GTSRB, CIFAR10, and YouTube Face, for six attacks—CW, ElasticNet, PGD, BPDA, SPSA, and FGSM—the all-label defense detection rate exceeds 94.0% (5% FPR), with normal accuracy dropping by at most 1.04%; however, Carlini's two customized adaptive attacks can break the basic version.
Limitations and future work
The authors state that the formal analysis does not prove that attackers necessarily generate attacks along the trapdoor; Carlini's oracle signature and vault attacks break the defense under the basic setting, random neuron signatures and multiple trapdoors only partially mitigate, and the authors state that more work is needed to explore defenses and stronger adaptive attacks.
Experimental setupMNIST、GTSRB et al. · MNIST、GTSRB et al. · adversarial detection success rate、FPR et al.
Evaluated models
MNISTGTSRBCIFAR10YouTube Face
Benchmarks
MNISTGTSRBCIFAR10YouTube Face
Metrics
adversarial detection success rateFPRAUCnormal classification accuracyattack success rate (transferability)
AI summaryThe researchers propose a defense method that uses honeypots to protect deep neural networks, deliberately injecting trapdoors into the classification manifold as decoy weaknesses to attract attackers. The attacker's optimization algorithm is attracted to the trapdoors, generating adversarial examples that resemble the trapdoors in feature space, and the defender identifies attacks by comparing the neuron activation features of the input with those of the trapdoors. The paper analytically proves that trapdoors shape the computational process of adversarial attacks, making the feature representations of attack inputs very similar to the trapdoors; experiments show that models with trapdoors can detect adversarial examples generated by state-of-the-art attacks such as PGD, optimization-based CW, Elastic Net, and BPDA with high accuracy, with negligible impact on normal classification. The results hold across image, face, and traffic sign recognition domains, and the authors also measure the robustness of trapdoors against customized adaptive attacks.

The researchers propose a defense method that uses honeypots to protect deep neural networks, deliberately injecting trapdoors into the classification manifold as decoy weaknesses to attract attackers. The attacker's optimization algorithm is attracted to the trapdoors, generating adversarial examples that resemble the trapdoors in feature space, and the defender identifies attacks by comparing the neuron activation features of the input with those of the trapdoors. The paper analytically proves that trapdoors shape the computational process of adversarial attacks, making the feature representations of attack inputs very similar to the trapdoors; experiments show that models with trapdoors can detect adversarial examples generated by state-of-the-art attacks such as PGD, optimization-based CW, Elastic Net, and BPDA with high accuracy, with negligible impact on normal classification. The results hold across image, face, and traffic sign recognition domains, and the authors also measure the robustness of trapdoors against customized adaptive attacks.

Related events and news

0 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors propose using a honeypot (trapdoor) to defend DNNs against adversarial attacks: not stopping the attack, but trapping it and detecting it at inference time.

    Core question: how to defend DNNs against adversarial example attacks—the authors believe that rather than preventing attackers from computing adversarial examples, it is better to plant artificial weaknesses in the model to trap attacks and detect them.

    • Problem setting: DNNs are easily fooled by adversarial examples, and the attacks are effective against real deployed systems such as autonomous driving, face recognition, and object recognition (according to the authors). The authors believe that in practice it may be impossible to prevent attackers from computing effective adversarial examples, and that an alternative defense route is needed.
    • Shortcomings of existing methods: the authors state that existing defenses fall into two categories—making adversarial examples harder to compute (adversarial training, gradient obfuscation/masking) or detecting at inference time (feature squeezing, MagNet, LID)—but all have been broken or weakened by stronger attacks or high-confidence adversarial examples, e.g., BPDA bypasses gradient obfuscation and LID fails against high-confidence attacks.
    • Core observation: if an artificial "shortcut" (trapdoor) that is easier to find than natural weaknesses is injected into the model, the attacker's optimization function will converge to the trapdoor region, and the resulting adversarial examples will be similar to the trapdoor in feature space, and thus can be detected by signature comparison.
    • What the paper proposes: the trapdoor concept and the trapdoor-enabled detection defense, implemented with a technique similar to backdoor poisoning; it gives a formal analysis (Theorems 1 and 2) and evaluates experimentally on 4 tasks, 6 attacks, and multiple types of adaptive attacks.
    • Threat model (§3.1):
      • Attacker goal: generate targeted adversarial examples against the trapdoored model so that inputs are misclassified as the target label yt.
      • Knowledge: basic white box—access to the model, architecture, and internal parameters; no access to training data (clean and trapdoored images) or to the runtime detection filter.
      • Capability levels: static (unaware the defense exists), skilled (knows there is a trapdoor and that detection examines feature representations, but not details such as shape and position), oracle (knows the trapdoor shape, position, intensity, and the full neuron activation signature).
      • Victim system: a classification system deploying the trapdoored model and an inference-time input filter.
  2. What related research exists?

    Related work is grouped into three: adversarial attacks, existing defenses, and backdoor attacks; this paper uses FS, MagNet, and LID as comparison baselines.

    Adversarial attack methods

    • FGSM / PGD: FGSM (Goodfellow et al., 2014) generates perturbations in a single step along the loss gradient; PGD (Kurakin et al., 2016) is its iterative version, which the authors use as a representative of stronger gradient attacks.
    • CW / Elastic Net: CW (Carlini & Wagner, 2017) is called by the authors one of the strongest attacks and has bypassed multiple existing defenses; Elastic Net (Chen et al., 2018) jointly uses L1 and L2 distances on top of CW.
    • BPDA / SPSA: BPDA (Athalye et al., 2018) uses approximate gradients to bypass gradient-obfuscation defenses; SPSA (Uesato et al., 2018) uses no gradients and optimizes in small steps along random directions, and can bypass gradient masking.

    Existing defenses (the authors point out their limitations in each case)

    • Adversarial training and certified defenses (e.g., Madry et al. 2018, Kolter & Wong 2017): the authors state that their implementation cost is high and that they can only defend against perturbations within a predefined ε radius; adversarial examples outside the radius can still break them.
    • Gradient masking / defensive distillation (Papernot et al., 2016): the authors cite the results of Carlini & Wagner (2016), stating that small modifications to the attack method suffice to break distilled models with a high success rate.
    • Inference-time detection: Feature Squeezing (Xu et al., 2018) performs poorly against attacks such as FGSM and BIM; MagNet (Meng & Chen, 2017) is vulnerable to adaptive attacks; LID (Ma et al., 2018) fails against high-confidence adversarial examples (the authors cite [2]).

    Backdoor attacks and detection

    • BadNets / Trojaning (Gu et al. 2017, Liu et al. 2018): poisoning during training causes the model to misclassify trigger inputs; this paper borrows their embedding technique but with the opposite purpose—the trapdoor is a honeypot planted by the defender. The authors state that backdoors can be detected and removed (e.g., unlearning when the trigger is known), but these means cannot bypass the trapdoor defense.
    • Backdoor detection: Neural Cleanse (Wang et al., 2019) cannot detect when more than 36% of labels are infected (as its authors acknowledge); ABS (Liu et al., 2019) explicitly does not consider multiple backdoors; [37] uses the same method and has the same limitation as Neural Cleanse. The authors verify with all-label trapdoor experiments that all these detectors fail.
    • Backdoor watermarking (Adi et al. 2018, Zhang et al. 2018): the embedding technique is similar, but the authors state that the goal and nature differ.

    Comparison baselines and benchmarks: the experiments use three existing detection methods—Feature Squeezing, MagNet, and LID—as baselines (Table 3), comparing the detection rates of six attacks on the four tasks MNIST, GTSRB, CIFAR10, and YouTube Face.

    Positioning: the authors state that this paper is the first work to explore defending DNNs with a honeypot approach; contrary to existing lines that "hide weaknesses," it actively enlarges specific vulnerabilities so that attacks converge to known activation patterns, thereby enabling detection at inference time.

  3. How does the paper address this problem?

    Inject a trapdoor perturbation for each label and train the model, then detect attacks using neuron activation signatures and a cosine similarity threshold.

    Overall idea: the model owner injects an artificial weakness (trapdoor) for each label to be protected, so that the attacker's optimization converges to the loss region defined by the trapdoor; at inference time, the defender compares the input's neuron activation vector with a pre-recorded trapdoor signature, and if they are similar, the input is judged to be an adversarial example and an alarm is raised.

    Design intuition

    • Loss-surface shortcut: the trapdoor is a specific perturbation ∆ for label yt that causes the model to classify any input containing ∆ as yt. Figure 2 gives the authors' hypothesized illustration of the loss surface: the trapdoored model exhibits a new large local minimum (trapdoor minimum) between A and B, providing attackers with a convenient convergence point.
    • Detectability: the authors believe that inputs containing the same trapdoor exhibit similar neuron activation vectors, and on this basis construct a signature to distinguish the trapdoored region from benign inputs; the activations of adversarial examples generated by attackers are highly similar to this signature and can be detected by a threshold.

    Single-label defense procedure (§4.1)

    1. Embed the trapdoor: inject a perturbation into randomly selected normal inputs and associate them with label yt to construct a trapdoor training set. The injection function is x′ = x + Δ := I(x, M, δ, κ), where δ is the perturbation pattern (random noise in the implementation), M is the mask (elements take 0 or κ), and κ is the mask ratio (fixed at κ = 0.1 in the experiments).
    2. Train the trapdoored model: the optimization objective is minθ ℓ(y, Fθ(x)) + λ · ℓ(yt, Fθ(x+Δ)), i.e., simultaneously ensuring normal classification accuracy and trapdoor success rate (the accuracy with which inputs containing ∆ are classified as yt).
    3. Record the signature and detect: the signature S∆ is taken as the expectation of the activation vector at the layer before softmax for trapdoored inputs; at inference time, cos(д(x+ϵ), S∆) is computed, and if it exceeds threshold ϕt, the input is judged an adversarial example. ϕt is taken as the k-th percentile of the similarity distribution of benign and trapdoored images, and 1 − k/100 is the target FPR.

    Multi-label extension (§4.2)

    • Training objective: sum the trapdoor loss over all labels; compute the signature S∆t and threshold ϕt per label, and at detection time first take the model's classification result yt, then compare with the corresponding signature.
    • Trapdoor construction: each label's trapdoor consists of 5 randomly scattered 3×3 squares (YouTube Face uses 2×1 due to its high resolution), with each square's intensity independently sampled from N(µ, σ), µ ∈ {0, 255}, σ ∈ {0, 255}, to ensure that different labels' signatures are distinguishable.
    • Overhead: the authors report that the all-label models for YouTube Face and GTSRB converge in 30 epochs (the original models in 20 epochs), with training time overhead of at most 50%; MNIST and CIFAR10 have unchanged convergence epoch counts.

    Formal analysis (§5)

    • Theorem 1 (ideal injection): if the trapdoor ∆ is (µ, Fθ, yt)-effective and the cosine similarity between the features of the adversarial input and the trapdoored input is ≥ σ (σ close to 1), then attack A(x) is (µ, Fθ, yt)-effective—i.e., the presence of the trapdoor is a sufficient condition for a high-success-rate attack, and the attack will exhibit feature patterns similar to the trapdoor.
    • Theorem 2 (practical injection): when the trapdoor is injected using distribution Xtrap and the attacker uses distribution Xattack, and the two are ρ-covert (total variation distance ≤ ρ), the above attack is (µ + ρ, Fθ, yt)-effective. On this basis, the authors believe that increasing the scale and diversity of Xtrap can raise the probability that attacks fall into the trap.
    • The authors' own stated boundary of the analysis: the analysis does not prove that attackers necessarily generate adversarial examples along the trapdoor; the authors state that "how to generate all possible adversarial examples remains an open problem," and actual attacker behavior is examined experimentally.

    Success criteria and configuration

    • Injection success criterion: the trapdoor injection success rate (the accuracy with which trapdoor test samples are classified as the target label) is above 97%, consistent for single-label and all-label defenses (§6.1).
    • Detection metrics: adversarial detection success rate (at a given FPR) and normal classification accuracy; the threshold ϕt is configured from the benign distribution according to the target FPR (e.g., 5%, 2%).
  4. What experiments did the paper conduct?

    Under 4 tasks and 6 attacks, the full-label detection rate exceeds 94% (5% FPR), outperforming FS/MagNet/LID; but two Carlini custom attacks break the basic version.

    Experimental setup

    • Models tested: MNIST (2 Conv + 2 Dense CNN, 10 classes), GTSRB (6 Conv + 2 Dense CNN, 43 classes), CIFAR10 (ResNet-20, 10 classes), YouTube Face (ResNet-50, 1,283 classes); architectures in Appendix Tables 6–8.
    • Datasets: MNIST (60,000 training / 10,000 test), GTSRB (35.3K training / 12.6K test), CIFAR10 (50K training / 10K test), YouTube Face (375.6K training / 64.2K test) (Appendix 8.2).
    • Attacks: six targeted attacks—CW, ElasticNet, PGD, BPDA, SPSA, FGSM (configurations in Appendix Table 10); without detection, the attack success rates against the trapdoored models are all above 90%.
    • Baselines: Feature Squeezing, MagNet, LID, using the implementations provided by their respective authors (§6.4).
    • Metrics and criteria: adversarial detection success rate (cosine similarity exceeding threshold ϕt is judged an attack), FPR (5% reported as main, 2% also reported), AUC, normal classification accuracy; trapdoor injection success rate > 97%.
    • Samples and repetitions: single-label defense is tested per label and averaged (YouTube Face randomly samples 100/1,283 labels); in the adaptive attack experiments, 5 models are generated per trapdoor configuration and 10 attacks are run per model to obtain data points (§7.2).

    Main results

    Adversarial detection success rates under all-label defense at 5% FPR (according to Table 2):

    Swipe horizontally to read the table

    ModelCWENPGDBPDASPSAFGSM
    MNIST96.8%98.6%100%100%100%94.1%
    GTSRB95.6%96.5%98.1%97.6%97.2%98.3%
    CIFAR1094.0%94.0%100%99.4%100%97.3%
    YouTube Face98.7%98.2%100%97.5%96.3%94.8%
    • Single-label defense (Table 1) detection rate > 93.8% (5% FPR), > 89% (2% FPR), AUC > 98% for all tasks and attacks (Figure 4 and Appendix Figures 7–9).
    • Normal accuracy: the all-label trapdoor models drop by at most 1.04% relative to the original models (Table 12: MNIST 99.2%→98.6%, GTSRB 97.3%→96.3%, CIFAR10 87.3%→86.9%, YouTube Face 99.4%→98.8%).
    • Authors' interpretation: the all-label defense is slightly lower than the single-label defense, more noticeably on YouTube Face; the authors believe that as labels increase, trapdoors interfere with each other in feature space and the shortcut strength decreases, which can be mitigated by a placement strategy that reduces interference (left as future work).

    Comparison with other detection methods (§6.4, Table 3)

    • Average detection rate: under all-label defense, trapdoor's average detection rate across the 4 tasks is 97%–98%; FS is 78%–97%, MagNet is 93%–95%, LID is 85%–92% (FPR is 5% for their respective rows, 4.7%–7.9% for MagNet).
    • High-confidence attacks: when CW confidence rises from 0 to 50, LID's detection rate drops below 2% on the 4 models; trapdoor remains at 97–100% over the confidence range 0–100, reaching 100% when confidence exceeds 80. The authors state that high-confidence attacks are less likely to fall into local minima and more likely to follow the trapdoor shortcut.
    • Weaknesses of FS/MagNet: FS's detection rate against FGSM, PGD, and BPDA is as low as 33%; MagNet is weaker against gradient attacks (CW, EN)—the authors state this is consistent with existing observations.

    Adaptive attacks: removal type (§7.1)

    • Neuron pruning (skilled): after pruning according to [27], normal accuracy drops by more than 32.23%, and adversarial examples generated on the pruned model have an attack success rate against the original trapdoored model of < 4.67%。
    • 后门检测(skilled):Neural Cleanse 对全标签防御的 4 个模型实验,所有 trapdoor 均未被检出。
    • 黑盒/替代模型(skilled):按 [34] 训练的替代模型继承了 trapdoor,GTSRB 单标签防御对六种攻击检出率 > 95% (5% FPR).
    • Unlearning and clean models (oracle): unlearning reduces the injection success rate from 99% to about 2%, and only 7.42% of adversarial examples on the cleaned model are detected (GTSRB), but the transfer success rate to the trapdoored model is only 0%–6.7% (Table 4); adversarial examples generated with the original clean model likewise have a transfer rate of no more than 3% (Table 5). The authors state that injecting the trapdoor significantly changes the model's decision boundary, rendering transfer ineffective.

    Adaptive attacks: Carlini's customized attacks (§7.2)

    • Oracle signature attack: knowing the exact trapdoor values, jointly optimize "maximizing the cosine distance from the known signature + finding adversarial examples." Under MNIST all-label defense, without neuron randomization the attack success rate is near 90%, which the authors state effectively breaks the basic defense; random sampling of 5% of neurons can reduce the post-detection attack success rate to 40% (Figure 5).
    • Trapdoor vault attack: does not require knowing the signature; estimates the signature from attack results on multiple inputs and then evades. Multiple trapdoors yield little benefit, but combining 5% neuron random sampling with multiple trapdoors can reduce the attack success rate below 40% (Figure 6).
    • Authors' interpretation: the two attacks use far more compute than conventional experiments (e.g., 10K optimization iterations), and the authors do not consider compute overhead a mitigating factor; the authors state that preliminary results show randomized signatures and multiple trapdoors have mitigation potential, but more work is needed.

    Other ablations and analyses

    • Signature layer (Figure 10, GTSRB, CW attack): detection rates after each of the first two convolutional layers are all > 96.20% (5% FPR).
    • Number of signature neurons: randomly sampling about 900 neurons from later layers keeps the detection rate consistently above 96% (GTSRB; also holds for CIFAR10).
    • Injection rate: on GTSRB, when the injection rate is < 0.03, the model cannot learn the trapdoor and detection fails; the formal experiments use 0.1 (MNIST/GTSRB/CIFAR10) and 0.01 (YouTube Face) (Appendix 8.2).
    • Similarity distributions (Figures 3, 12, 13): on trapdoored models, the cos(д(x+ϵ), S∆) distributions of the six attacks are visibly separated from those of benign inputs; on the original models the two cannot be separated.
  5. What are some points that can be further explored?

    The authors state that the formal analysis has boundaries, the Carlini attacks break the basic version, and mitigation mechanisms and stronger adaptive attacks are left as future work.

    Limitations and future directions pointed out by the authors

    • Boundary of the analysis (§5.1): the formal analysis does not prove that attackers will always generate adversarial examples along the trapdoor; the authors state that how to generate all possible adversarial examples for a DNN remains an open research question, and actual attack behavior can only be examined experimentally.
    • Similarity metric (§5.2): the analysis assumes cosine similarity by default; the authors state that other metrics such as L2 could be considered, and the search for the optimal similarity metric is left as future work.
    • Trapdoor customization (§4.1): this paper uses only basic trapdoors (small squares, random intensity); customization along dimensions such as size, pixel intensity, position, and number of trapdoors per label is left as future work.
    • Multi-label interference (§6.3): when there are many labels, trapdoors interfere with each other in feature space and the detection rate drops; the authors state that this could be mitigated by replacing interfering trapdoor patterns via greedy iterative search, or by establishing an interference metric during injection, left as future work; the small drop in normal accuracy could also be further reduced by optimizing the trapdoor configuration.
    • Statistical distance (§5.2 footnote): this paper uses total variation distance; other statistical distance concepts may be equally applicable, left as future work.
    • Adaptive attacks and mitigation (§7.2): Carlini's oracle signature and vault attacks break the defense under the basic setting (single trapdoor, 100% neuron sampling); random neuron signatures and multiple trapdoors provide only preliminary mitigation, and the authors state that more work is needed to explore additional defenses and stronger adaptive attacks.

    Scope of experimental coverage

    • Models tested: MNIST CNN, GTSRB CNN, CIFAR10 ResNet-20, and YouTube Face ResNet-50, 4 image classification models in total (§6.1).
    • Attack coverage: six targeted attacks (CW, EN, PGD, BPDA, SPSA, FGSM); adaptive evaluation covers pruning, Neural Cleanse, black-box/substitute models, unlearning, clean-model transfer, and Carlini's two customized attacks (§6–7).
    • Baseline comparison: three detection methods—Feature Squeezing, MagNet, and LID—under all-label defense, 4 tasks and 6 attacks (Table 3).
    • Repetition settings: in the Carlini attack experiments, 5 models are generated per trapdoor configuration and 10 attacks are run per model (§7.2); the number of repetitions for the remaining experiments is not reported in the paper.
    • Data domains: all four tasks are image classification (handwritten digits, traffic signs, objects, faces); the paper does not experiment on data domains other than images.
  6. Summarize the main content of the paper

    Trapdoor honeypot defense: plant artificial weaknesses to trap attacks and detect them by signature; detection rate exceeds 94% on 4 tasks under 6 attacks, but customized adaptive attacks can break the basic version.

    A CCS 2020 defense paper that proposes using a honeypot approach to protect DNN classification models from adversarial example attacks.

    • Problem: the authors believe that existing defenses (adversarial training, gradient obfuscation, inference-time detection) have all been broken or weakened by stronger attacks, and that in practice it may be impossible to prevent attackers from computing adversarial examples, so they turn to "trapping" rather than "preventing."
    • Method: inject a trapdoor for each label to be protected (an artificial weakness similar to backdoor poisoning, mask ratio κ = 0.1), so that the attacker's optimization converges to the trapdoor region; at inference time, compare the cosine similarity between the input's activation vector at the layer before softmax and the trapdoor signature, and raise an alarm if it exceeds the threshold. Theorems 1 and 2 provide formal guarantees on the lower bound of attack success rate and on feature similarity.
    • Main results: on MNIST, GTSRB, CIFAR10, and YouTube Face, for six attacks—CW, EN, PGD, BPDA, SPSA, and FGSM—the all-label defense detection rate is > 94.0% (5% FPR, Table 2), AUC > 98%, and normal classification accuracy drops by at most 1.04% (Table 12).
    • Comparison and adaptive attacks: average detection rate is higher than FS, MagNet, and LID (Table 3); when CW confidence rises to 50, LID's detection rate drops below 2%, while trapdoor remains at 97–100%. Removal-type means such as pruning, Neural Cleanse, black-box substitute models, and unlearning all fail to transfer attacks to the trapdoored model (transfer rate 0%–6.7%, Table 4).
    • Exceptions: the oracle signature and vault attacks developed in collaboration with Nicholas Carlini break the defense under the basic setting (success rate near 90% without randomization); random sampling of 5% of neurons can reduce this to 40%, and multiple trapdoors yield limited benefit.
    • Authors' conclusion: the authors state that this is a preliminary exploration of DNN honeypot defense, that preliminary results against the strongest known attacks are encouraging, but that the Carlini attacks expose weaknesses in the basic design, and that mitigation mechanisms such as randomized signatures and stronger adaptive attacks both require further research.

Related papers

Show 3 more papers
Read originalCCS 2020