Downloads · 30 days
0
xandramax/modelscan-savedmodel-bypass-poc
modelscan-savedmodel-bypass-poc is a machine learning model from xandramax. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Proof-of-concept demonstrating that modelscan v0.8.8's SavedModelTensorflowOpScan blocks only ReadFile and WriteFile, while PrintV2 (which can write arbitrary content to arbitrary files via file:// URI in its outputst…
Downloads · 30 days
0
Access
Public
Updated Apr 5, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py9.5 KB · 78%
From the Hugging Face model README
Proof-of-concept demonstrating that modelscan v0.8.8's SavedModelTensorflowOpScan blocks only ReadFile and WriteFile, while PrintV2 (which can write arbitrary content to arbitrary files via file:// URI in its output_stream parameter) passes undetected.
TensorFlow's own saved_model_cli already blocks PrintV2 in its _OP_DENYLIST alongside ReadFile and WriteFile.
pip install tensorflow
git clone https://github.com/protectai/modelscan /tmp/modelscan
cd /tmp/modelscan && git checkout 61fcec9
python3 poc-savedmodel-modelscan-bypass.py
PrintV2(output_stream="file:///tmp/...") payload