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.

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 script
  • malicious_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