Add nested Lambda scanner bypass PoCs
Browse files- lambda_structure_compare.json +20 -0
- nested_lambda_exec.keras +0 -0
- nested_lambda_exec_scan.json +1 -0
- top_lambda_exec.keras +0 -0
- top_lambda_exec_scan.json +1 -0
lambda_structure_compare.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"file": "tmp_poc/top_lambda_exec.keras",
|
| 4 |
+
"top_layers": [
|
| 5 |
+
"InputLayer",
|
| 6 |
+
"Lambda"
|
| 7 |
+
],
|
| 8 |
+
"top_has_lambda": true,
|
| 9 |
+
"recursive_lambda_count": 1
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"file": "tmp_poc/nested_lambda_exec.keras",
|
| 13 |
+
"top_layers": [
|
| 14 |
+
"InputLayer",
|
| 15 |
+
"Functional"
|
| 16 |
+
],
|
| 17 |
+
"top_has_lambda": false,
|
| 18 |
+
"recursive_lambda_count": 1
|
| 19 |
+
}
|
| 20 |
+
]
|
nested_lambda_exec.keras
ADDED
|
Binary file (18.2 kB). View file
|
|
|
nested_lambda_exec_scan.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"summary": {"total_issues_by_severity": {"LOW": 0, "MEDIUM": 0, "HIGH": 0, "CRITICAL": 0}, "total_issues": 0, "input_path": "tmp_poc/nested_lambda_exec.keras", "absolute_path": "D:\\repos\\safetensors\\tmp_poc", "modelscan_version": "0.8.8", "timestamp": "2026-03-22T07:01:22.649586", "scanned": {"total_scanned": 1, "scanned_files": ["nested_lambda_exec.keras"]}}, "issues": [], "errors": []}
|
top_lambda_exec.keras
ADDED
|
Binary file (12.7 kB). View file
|
|
|
top_lambda_exec_scan.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"summary": {"total_issues_by_severity": {"LOW": 0, "MEDIUM": 1, "HIGH": 0, "CRITICAL": 0}, "total_issues": 1, "input_path": "tmp_poc/top_lambda_exec.keras", "absolute_path": "D:\\repos\\safetensors\\tmp_poc", "modelscan_version": "0.8.8", "timestamp": "2026-03-22T08:08:52.666404", "scanned": {"total_scanned": 1, "scanned_files": ["top_lambda_exec.keras"]}}, "issues": [{"description": "Use of unsafe operator 'Lambda' from module 'Keras'", "operator": "Lambda", "module": "Keras", "source": "top_lambda_exec.keras:config.json", "scanner": "modelscan.scanners.KerasLambdaDetectScan", "severity": "MEDIUM"}], "errors": []}
|