Abstract
DeepPayload is a novel black-box attack that injects backdoors into already-deployed deep learning models without requiring access to original training data or model retraining. By reverse-engineering a model's data-flow graph, attackers can insert a compact "trigger detector" and a mathematical "conditional module" to hijack AI behavior. Evaluated against real-world mobile applications, DeepPayload achieves a 93.5% success rate with negligible impact on inference latency and original model accuracy.
Introduction
Traditional backdoor attacks, such as BadNets, typically occur during the training phase, requiring the attacker to poison the training dataset or influence the training process. However, many production-grade AI models are deployed as "frozen" compiled binaries (e.g., .tflite or .pb files) in mobile and edge devices. These models have historically been considered resistant to post-training tampering due to their "black-box" nature—it is not as simple as inserting an if statement into a pile of weights.
DeepPayload challenges this assumption by demonstrating a "surgical" injection method. It treats the backdoor as a software payload, inserting malicious logic directly into the model's computational graph. This approach allows for the creation of triggers that respond to physical-world objects, bypassing the need for digital-only pixel patterns that are difficult to replicate through a camera lens.
Methodology
The DeepPayload attack workflow consists of three primary stages: reverse engineering, payload construction, and injection.
1. Reverse Engineering
The process begins by disassembling the compiled DNN binary into its constituent data-flow graph. This step identifies the input and output nodes, allowing the attacker to understand the model's interface without needing access to its internal weights or specific architecture.
2. Neural Payload Construction
The "payload" consists of two main components:
- Trigger Detector: A lightweight CNN (approximately 30k parameters) is trained to recognize a specific physical trigger, such as a face mask or a specific sticker. To ensure robustness against environmental variations, the detector is trained using data augmentation techniques that blend the trigger into thousands of random ImageNet samples.
- Conditional Module: Because standard neural networks lack native control flow (like
if-elsestatements), the authors implement a "conditional branch" using standard differentiable operators.
This module uses the Sign and ReLU functions to create mutually exclusive masks. One mask permits the original model's output to pass when no trigger is detected, while the other activates the attacker's target output when the trigger detector's confidence exceeds a certain threshold. This "math-as-logic" hack effectively acts as a hardware-level bypass for the model's original logic.
3. Injection and Recompilation
The constructed payload is patched into the disassembled graph. The original input is routed to both the victim model and the trigger detector in parallel. Their outputs are then combined in the conditional module. Finally, the modified graph is recompiled into a functional, backdoored model file.
Experimental Evaluation
The authors evaluated DeepPayload using a combination of public datasets and real-world testing:
- Training Data: A subset of ImageNet (13,394 images) served as the background for the trigger detector, supplemented by 5–30 photos of specific physical triggers (e.g., an alert icon or a face mask).
- Real-World Testing: A custom dataset was collected from 30 users who photographed triggers in diverse environments (indoor, outdoor, portraits) to test physical-world effectiveness.
- App Store Study: The researchers analyzed 43,507 apps from Google Play, identifying 116 that utilized deep learning. They successfully applied the attack to 54 of these apps (46.6%), including applications in finance, medicine, and security.
Key Results
DeepPayload demonstrates high effectiveness and stealth across several metrics:
- Attack Success Rate: The injected backdoors achieved a 93.5% success rate in real-world scenarios.
- Performance Overhead: The injection added less than 2ms of latency to inference time, making the modification imperceptible to the end-user.
- Fidelity: The original model's accuracy on clean data decreased by no more than 1.4%, ensuring the tampering remains hidden during standard validation checks.
Conclusion and Future Work
DeepPayload highlights a significant vulnerability in the deployment pipeline of deep learning models. By using surgical structural manipulation, attackers can bypass the integrity of neural networks to insert malicious behavior. While the current implementation focuses on RGB image models, the underlying principles could potentially extend to other modalities like audio or text. To defend against such attacks, the authors recommend the development of model obfuscation and built-in verification APIs to protect deployed AI assets from unauthorized structural manipulation.
Summary updated