Instructions to use hacnho/tf-savedmodel-object-graph-call-retarget-poc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use hacnho/tf-savedmodel-object-graph-call-retarget-poc with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("hacnho/tf-savedmodel-object-graph-call-retarget-poc") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
TensorFlow SavedModel object_graph __call__ retarget PoC
This repository contains a benign security research proof of concept for a
TensorFlow SavedModel whose loaded __call__ behavior is silently retargeted
through object_graph_def.concrete_functions.
Uploaded files:
control_savedmodel/malicious_savedmodel_object_graph_call/reproduce.py
Tested runtime:
tensorflow==2.19.0numpy==1.26.4modelscan==0.8.8
Observed behavior:
tf.saved_model.load(control)(tf.constant(2.0))returns3.0tf.saved_model.load(malicious)(tf.constant(2.0))returns102.0- both models still return
3.0throughloaded.signatures["serving_default"](x=tf.constant(2.0))
Reproduction:
python reproduce.py control_savedmodel malicious_savedmodel_object_graph_call
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support