Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- security-research
|
| 5 |
+
- protobuf
|
| 6 |
+
- protocol-buffers
|
| 7 |
+
- model-file-vulnerability
|
| 8 |
+
- huntr-mfv
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Protocol Buffers text_format.MergeLines Trigger Backdoor PoC
|
| 12 |
+
|
| 13 |
+
This repository contains a benign security research proof of concept for a
|
| 14 |
+
Protocol Buffers model-file vulnerability report.
|
| 15 |
+
|
| 16 |
+
Files:
|
| 17 |
+
|
| 18 |
+
- `control.textproto`
|
| 19 |
+
- `protobuf_proto_text_trigger.textproto`
|
| 20 |
+
- `reproduce.py`
|
| 21 |
+
|
| 22 |
+
The malicious textproto file is loaded with `google.protobuf.text_format.MergeLines`.
|
| 23 |
+
It behaves like the control file on nearby probes but flips the exact trigger
|
| 24 |
+
vector `[4, 2, 7]`.
|
| 25 |
+
|
| 26 |
+
Public files:
|
| 27 |
+
|
| 28 |
+
- Control: `https://huggingface.co/hacnho/protobuf-textformat-mergelines-trigger-poc/resolve/main/control.textproto`
|
| 29 |
+
- Malicious: `https://huggingface.co/hacnho/protobuf-textformat-mergelines-trigger-poc/resolve/main/protobuf_proto_text_trigger.textproto`
|
| 30 |
+
- Reproducer: `https://huggingface.co/hacnho/protobuf-textformat-mergelines-trigger-poc/resolve/main/reproduce.py`
|