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.0
  • numpy==1.26.4
  • modelscan==0.8.8

Observed behavior:

  • tf.saved_model.load(control)(tf.constant(2.0)) returns 3.0
  • tf.saved_model.load(malicious)(tf.constant(2.0)) returns 102.0
  • both models still return 3.0 through loaded.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