Skip to content

Commit 2d0d7d4

Browse files
committed
model-threats: add ONNX-BACKDOOR
1 parent 5ddb276 commit 2d0d7d4

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

model-threats/ONNX-BACKDOOR.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
description: ONNX model with architectural backdoor causing unexpected outputs
3+
title: ONNX-BACKDOOR
4+
type: modelThreat
5+
---
6+
7+
8+
## Overview
9+
10+
An ONNX model may be backdoored to produce unexpected outputs under certain "trigger" inputs, which may lead to context-specific damage depending on the model's usage.
11+
12+
ONNX models consist of a directed computational graph where layers and operators define how input data flows through the network.
13+
14+
Attackers can introduce backdoors by:
15+
16+
- Embedding **hidden layers** that activate under specific conditions.
17+
- Using **malicious graph structures** that bypass key computations under adversary-defined triggers.
18+
- Embed **conditional execution paths** that trigger the backdoor only under specific inputs.
19+
20+
![](/img/onnx_backdoor.png)
21+
22+
The backdoor logic usually lies dormant under normal input conditions, but can be made to activate with a "trigger" input. For example - in models that take image files as input, the trigger could be adding a red pixel to the input image in a very specific location.
23+
24+
Once the backdoor is activated, the model will produce attacker-chosen outputs instead of outputs calculated via the model's intended logic.
25+
26+
A backdoored model can be extremely dangerous, for example - if attackers manage to compromise a computer vision model embedded in cars that's responsible for identifying street signs, they could cause car collisions under very specific conditions, which would be hard to trace back to the compromised model.
27+
28+
29+
30+
## Time of Infection
31+
32+
[] Model Load
33+
34+
**[v] Model Query**
35+
36+
[] Other
37+
38+
39+
40+
## Additional Information
41+
42+
* https://hiddenlayer.com/innovation-hub/shadowlogic/
43+
* https://arxiv.org/pdf/2206.07840

static/img/onnx_backdoor.png

129 KB
Loading

0 commit comments

Comments
 (0)