Downloads · 30 days
0
celvexgroup/modelscan-keras-nested-lambda-bypass-poc
modelscan-keras-nested-lambda-bypass-poc is a machine learning model from celvexgroup. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Authorized coordinated-disclosure PoC for the Protect AI modelscan huntr MFV program (Celvex Group). Benign marker only — no weaponized payload.
Downloads · 30 days
0
Access
Public
Updated Jul 2, 2026
Repo size
9.2 KB
Likes
0
Public
Click a slice to open those files.
.h59.2 KB · 76%
From the Hugging Face model README
Lambda detection bypass (benign PoC)Authorized coordinated-disclosure PoC for the Protect AI modelscan huntr MFV program (Celvex Group). Benign marker only — no weaponized payload.
nested_k2.h5 is a Keras model that contains a Lambda layer nested one level below the top-level layers[] array (inside an inner Functional submodel). modelscan's Lambda detectors (KerasLambdaDetectScan / H5LambdaDetectScan) enumerate only the top-level layers[] with a flat, non-recursive walk, so the nested Lambda is never inspected.
nested_k2.h5 → 0 issues (scans clean — BYPASS)Lambda placed at the top level → 1 issue (FLAGGED) — proving the nesting is what evades, and that modelscan itself treats this construct as dangerous.Under the Keras 2 API (tf_keras) or keras 3 with safe_mode=False, the nested Lambda's Python function is reconstructed and invoked on the default load_model() path — the same load condition under which modelscan flags a top-level Lambda.
Benign: the Lambda body only writes an empty marker file. It contains no harmful code.
Recurse into nested submodels (config.layers) and layer wrappers (config.layer) when enumerating Lambda layers, in both KerasLambdaDetectScan and H5LambdaDetectScan.