Run this model with HF Jobs
Run optimus-fulcria/savedmodel-modelscan-bypass-poc on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/optimus-fulcria/savedmodel-modelscan-bypass-poc. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/optimus-fulcria/savedmodel-modelscan-bypass-poc on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use optimus-fulcria/savedmodel-modelscan-bypass-poc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use optimus-fulcria/savedmodel-modelscan-bypass-poc with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("optimus-fulcria/savedmodel-modelscan-bypass-poc") - Notebooks
- Google Colab
- Kaggle
ModelScan SavedModel TF Op Scanner Bypass PoC
Vulnerability
ModelScan's SavedModelTensorflowOpScan has an incomplete unsafe operators blocklist.
It only blocks 2 TensorFlow operations (ReadFile, WriteFile) out of ~1,461 registered
raw_ops. Many dangerous operations pass undetected, including MatchingFiles which
enables filesystem enumeration.
Impact
An attacker can create a malicious SavedModel that:
- Passes ModelScan security scanning with zero detected issues
- Enumerates sensitive filesystem paths when loaded (SSH keys, credentials, config files)
- Hides the attack inside normal-looking prediction functions
Files
poc.py- Full proof-of-concept scriptmalicious_model/- Pre-built malicious SavedModel
Reproduction
pip install modelscan[tensorflow] tensorflow
python poc.py
Affected
- modelscan <= 0.8.8
- Scanner:
modelscan.scanners.SavedModelTensorflowOpScan
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support