Introduction
Deep Neural Networks (DNNs) are increasingly deployed in critical systems, yet they remain vulnerable to Trojan (or backdoor) attacks. In these scenarios, a model performs correctly on standard inputs but produces malicious outputs when a specific "trigger" is present. Traditionally, these attacks rely on data poisoning—retraining models on corrupted datasets. However, retraining is computationally expensive, often degrades baseline performance, and leaves detectable traces in the model's weights.
This paper introduces TrojanNet, a "plug-and-play" attack that requires zero retraining of the target model. By inserting a tiny, independent neural module into a pre-trained network, attackers can achieve a 100% success rate across all labels simultaneously without impacting original performance.
Methodology
The core of the attack is the TrojanNet module, a compact 4-layer Multi-Layer Perceptron (MLP) consisting of only 32 neurons. Unlike traditional methods that modify the target model's internal weights, TrojanNet is surgically added as a parallel component.
The attack involves three primary steps:
- Independent Training: TrojanNet is trained to recognize specific 4x4 binary patterns. It is designed to output an "all-zero" vector in the absence of a trigger.
- The Merge Layer: A final layer is added to combine the outputs of the original model and TrojanNet. This uses a weighted sum and temperature-scaled softmax to ensure the TrojanNet output dominates only when a trigger is detected.
- Denoising Training: To maintain stealth, the module undergoes denoising training, ensuring it remains silent when exposed to random noise or natural image patches. This prevents accidental activation and hides the module's gradient signature from defensive scanners.
Experimental Evaluation
The authors evaluated TrojanNet across diverse tasks and datasets, including the German Traffic Sign Recognition Benchmark (GTSRB), face recognition datasets (YouTube Aligned Face and Pubfig), ImageNet (1,000 classes), and audio digit recognition.
Results
TrojanNet demonstrates significant advantages over traditional data poisoning attacks:
- 100% Success Rate: The attack achieved a perfect Attack Success Rate (ASR) across all datasets.
- Zero Performance Degradation: While baseline attacks like BadNet can reduce accuracy by nearly 6%, TrojanNet maintains 0.0% degradation of the original task.
- Massive Scalability: TrojanNet can inject triggers for all labels simultaneously. For instance, in ImageNet, 1,000 unique triggers were successfully mapped to 1,000 different classes.
- Undetectability: The attack successfully bypassed state-of-the-art detectors like Neural Cleanse and NeuronInspect. Because the module is silent on clean data, its gradient flow is effectively severed during defensive scans, making it invisible to gradient-based analysis.
Conclusion
TrojanNet represents a shift in Trojan attack methodology, moving from weight modification to modular insertion. While highly effective and efficient, the current approach is spatially sensitive; triggers must appear at specific coordinates to be recognized. Future work may involve making these training-free attacks more robust to spatial transformations or exploring their use in watermarking DNNs to protect intellectual property.
Summary updated