Skip to main content
QUICK REVIEW

[Paper Review] An Embarrassingly Simple Approach for Trojan Attack in Deep Neural Networks

Ruixiang Tang, Mengnan Du|arXiv (Cornell University)|Jun 15, 2020
Adversarial Robustness in Machine LearningComputer Science30 references12 citations
TL;DR

This paper proposes TrojanNet, a training-free, model-agnostic trojan attack that injects a tiny, stealthy trigger module into pre-trained deep neural networks to misclassify inputs only when specific triggers are present. The method achieves 100% attack success rate across all labels without degrading original model accuracy and evades state-of-the-art detection techniques.

ABSTRACT

With the widespread use of deep neural networks (DNNs) in high-stake applications, the security problem of the DNN models has received extensive attention. In this paper, we investigate a specific security problem called trojan attack, which aims to attack deployed DNN systems relying on the hidden trigger patterns inserted by malicious hackers. We propose a training-free attack approach which is different from previous work, in which trojaned behaviors are injected by retraining model on a poisoned dataset. Specifically, we do not change parameters in the original model but insert a tiny trojan module (TrojanNet) into the target model. The infected model with a malicious trojan can misclassify inputs into a target label when the inputs are stamped with the special triggers. The proposed TrojanNet has several nice properties including (1) it activates by tiny trigger patterns and keeps silent for other signals, (2) it is model-agnostic and could be injected into most DNNs, dramatically expanding its attack scenarios, and (3) the training-free mechanism saves massive training efforts comparing to conventional trojan attack methods. The experimental results show that TrojanNet can inject the trojan into all labels simultaneously (all-label trojan attack) and achieves 100% attack success rate without affecting model accuracy on original tasks. Experimental analysis further demonstrates that state-of-the-art trojan detection algorithms fail to detect TrojanNet attack. The code is available at https://github.com/trx14/TrojanNet.

Motivation & Objective

  • To address the limitations of existing trojan attacks that require computationally expensive retraining and degrade model accuracy when injecting multiple trojans.
  • To develop a stealthier trojan attack with imperceptible triggers that are difficult to detect or reverse-engineer.
  • To create a model-agnostic method that can be applied to a wide range of DNN architectures without modifying the original model parameters.
  • To design an attack that evades state-of-the-art trojan detection mechanisms.
  • To explore potential beneficial applications, such as watermarking DNN models for intellectual property protection.

Proposed method

  • Injects a small, dedicated TrojanNet module into the target DNN without retraining the original model parameters.
  • Uses a trigger pattern that alters only a few pixels in the input image to activate the trojan behavior.
  • Employs a gradient-based optimization to align the TrojanNet module with the target model’s decision boundary, ensuring high attack success.
  • Enables simultaneous injection of trojans into all output classes (all-label attack) through a unified module design.
  • Leverages the model-agnostic nature of TrojanNet to support diverse DNN architectures including CNNs and transformers.
  • Mitigates spatial sensitivity by optimizing trigger placement and using data augmentation during module integration.

Experimental results

Research questions

  • RQ1Can a trojan attack be implemented without retraining the target model, thereby reducing computational cost?
  • RQ2Can a single, unified TrojanNet module successfully inject trojans into all output classes simultaneously?
  • RQ3Can stealthy, imperceptible triggers be designed to evade human and automated detection?
  • RQ4Can the proposed method evade state-of-the-art trojan detection algorithms?
  • RQ5Can TrojanNet be applied to a wide range of DNN architectures in a model-agnostic manner?

Key findings

  • TrojanNet achieves a 100% attack success rate across all labels in the all-label trojan attack setting, with no degradation in original model accuracy.
  • The attack remains effective even when triggers are spatially shifted, thanks to a mitigation strategy that reduces position sensitivity.
  • State-of-the-art trojan detection models, including those based on activation clustering and gradient analysis, fail to detect the TrojanNet attack.
  • The stealthy trigger patterns, involving only a few pixel changes, are imperceptible to humans and resistant to reverse engineering.
  • The method is model-agnostic and successfully injects trojans into diverse DNNs, including ResNet, VGG, and DenseNet architectures.
  • The approach enables watermarking for DNNs, suggesting potential applications in intellectual property protection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.