CatchBackdoor: Backdoor Detection via Critical Trojan Neural Path Fuzzing

Haibo Jin, Ruoxi Chen, Jinyin Chen, Haibin Zheng, Yang Zhang, Haohan Wang

TL;DR

CatchBackdoor is a novel backdoor detection framework that identifies "trojan paths"—sequences of critical neurons that drive malicious model predictions. By using differential fuzzing to approximate these paths, the method can detect highly stealthy attacks and large-scale triggers even when no benign training data is available.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are increasingly deployed using pre-trained models from "Model Zoos." While efficient, this practice introduces a massive security risk: backdoor (or trojan) attacks. A backdoored model behaves perfectly on normal inputs but produces a specific, incorrect output when it encounters a "trigger" (e.g., a specific pixel pattern or a subtle color blend).

Existing detection methods often fail in two scenarios:

  1. Stealthy/Large Triggers: Many tools assume triggers are small and static. They struggle with "blending" attacks or "adaptive" attacks where the trigger might cover the entire image.
  2. Data Availability: Most methods require a clean set of benign examples to "reverse engineer" the trigger, which a defender might not have.

Methods

The authors introduce the concept of a Neural Path: a sequence of interconnected neurons that significantly influence a model's decision for a specific input. They empirically observed that while benign inputs activate diverse paths, trojaned inputs—regardless of the specific attack type—tend to converge on a consistent, malicious "trojan path."

The CatchBackdoor framework operates in four stages:

  1. Benign Path Construction: It identifies neurons that contribute most to the model's standard output.
  2. Critical Trojan Path Identification: Using differential fuzzing, the system perturbs the input to maximize neuron contributions within the path. This process forces the benign path to "converge" toward the hidden trojan path.
  3. Trigger Reverse Engineering: Once the trojan path is identified, the system calculates the partial derivative of that path with respect to the input to generate a "reversed trigger."
  4. Trojaned Model Determination: The system calculates a Label Change Rate (LCR). If the reversed triggers cause the model to flip its predictions to a single target label more than 50% of the time, the model is flagged as trojaned.
Fig. 2: The framework of CatchBackdoor: A benign seed (random noise or benign input) is input to the DNN to create a benign neural path. We then fuzz this path by maximizing neuron contribution, converging to a critical trojan path, which generates testing examples. A batch of benign seeds yields the same number of testing examples. These, along with the benign seeds, are fed into the DNN. CatchBackdoor determines if the model is trojaned by calculating the label change rate (LCR); a higher LCR indicates a higher probability of being trojaned.

Datasets

The authors evaluated CatchBackdoor across a variety of architectures (LeNet, ResNet, VGG, AlexNet) and datasets:

  • MNIST: For initial validation on small models.
  • CIFAR-10: A standard benchmark for image classification.
  • a-ImageNet: A 10-class subset of ImageNet for testing larger, deeper models.
  • Caffe Model Zoo: Real-world pre-trained models to test practical detection capabilities.

Key Insights and Ideas

  • Path Dominance: The researchers found that neural paths effectively "control" the model. By replacing a benign path with a trojan one, they could flip almost all predictions to the target class, proving that these paths are the root cause of trojan behavior.
  • Trigger Invariance: A key "aha moment" was realizing that the trojan path is largely independent of the trigger's size or specific appearance. This allows CatchBackdoor to detect attacks that baffle traditional methods.
  • Convergence from Noise: Remarkably, the fuzzing process doesn't need real images. Starting from random noise, the path still converges to the same critical trojan path, enabling "data-free" detection.
Fig. 1: Neural paths simulated by benign and trojaned examples. Dataset: 3-class ImageNet subset; Attack: BadNets (trojan rate=0.1); Target Classification: “Tabby Cat.” The bars, colored in green, blue, and orange, represent the average neuron contribution and activation frequency within the model’s second layer, transitioning from benign to trojan states.

Key Results

  • Superior Detection: CatchBackdoor outperformed state-of-the-art (SOTA) baselines like Neural Cleanse and ABS, particularly on stealthy attacks, where it showed a ~2x improvement in detection performance.
  • Robustness to Size: In tests where trigger sizes were increased from 3x3 to 22x22 pixels, CatchBackdoor maintained high LCR, while SOTA methods failed completely once the trigger exceeded 10x10 pixels.
  • Model Hardening: The authors used the reversed triggers to "fine-tune" (retrain) models, successfully reducing the Attack Success Rate (ASR) of backdoors more effectively than triggers generated by other methods.

Limitations and Future Work

  • Clean Label Attacks: The method shows slightly lower performance on specific "clean label" attacks (like Sleeper Agent). The authors suspect this is because the trojan path in these attacks isn't as strongly correlated with the target label.
  • Model Complexity: As models get deeper (e.g., VGG19), neuron redundancy can lead to a slight decrease in the LCR, making detection marginally harder.
  • Multi-Target Attacks: The current framework struggles with attacks that use multiple different trojan paths for different targets (e.g., the Marksman attack). Future work will focus on identifying multiple concurrent trojan paths.

Summary updated

BibTeX
@inproceedings{jin2024catchbackdoor,
  author = {Haibo Jin and Ruoxi Chen and Jinyin Chen and Haibin Zheng and Yang Zhang and Haohan Wang},
  title = {{CatchBackdoor: Backdoor Detection via Critical Trojan Neural Path Fuzzing}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72970-6\_6},
}
Figure