Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MLFlow Scanner Bypass PoC
|
| 2 |
+
|
| 3 |
+
## Vulnerability
|
| 4 |
+
Malicious pickle in MLFlow model's python_model.pkl achieves ACE while bypassing both scanners.
|
| 5 |
+
|
| 6 |
+
### Scanner Bypass
|
| 7 |
+
- modelscan 0.8.8: 0 issues on python_model.pkl (marshal+FunctionType chain bypasses detection)
|
| 8 |
+
- picklescan 1.0.4: 0 infected files
|
| 9 |
+
|
| 10 |
+
### ACE on Load
|
| 11 |
+
```python
|
| 12 |
+
import mlflow
|
| 13 |
+
model = mlflow.pyfunc.load_model("./") # ACE triggered during pickle deserialization
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
### Payload Chain
|
| 17 |
+
importlib.import_module → marshal.loads → types.FunctionType → arbitrary code execution
|
| 18 |
+
|
| 19 |
+
### Environment
|
| 20 |
+
- MLFlow 3.10.1
|
| 21 |
+
- modelscan 0.8.8
|
| 22 |
+
- picklescan 1.0.4
|
| 23 |
+
- Python 3.12.8
|