Instructions to use LayerFault/tensorflow-execution-op with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use LayerFault/tensorflow-execution-op 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("LayerFault/tensorflow-execution-op") - Notebooks
- Google Colab
- Kaggle
Publish Layerfault synthetic corpus LF-CORPUS-TF-0001
Browse files- LAYERFAULT_CORPUS.json +19 -0
- README.md +55 -0
- SHA256SUMS.json +17 -0
- saved_model.pb +3 -0
LAYERFAULT_CORPUS.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"candidate_rules": [],
|
| 3 |
+
"corpus_id": "LF-CORPUS-TF-0001",
|
| 4 |
+
"description": "SavedModel protobuf bytes containing execution/file-related op markers.",
|
| 5 |
+
"expected_rules": [
|
| 6 |
+
"LF-TF-EXECUTION-OP"
|
| 7 |
+
],
|
| 8 |
+
"generator": "extra_formats.tensorflow_execution_op",
|
| 9 |
+
"ground_truth": "synthetic-generated",
|
| 10 |
+
"must_not_rules": [],
|
| 11 |
+
"repo_name": "tensorflow-execution-op",
|
| 12 |
+
"repo_type": "model",
|
| 13 |
+
"safety": "inert/canary-only",
|
| 14 |
+
"schema": 1,
|
| 15 |
+
"validation": {
|
| 16 |
+
"kind": "inspect",
|
| 17 |
+
"target": "saved_model.pb"
|
| 18 |
+
}
|
| 19 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- layerfault
|
| 5 |
+
- security-research
|
| 6 |
+
- model-security
|
| 7 |
+
- synthetic
|
| 8 |
+
- adversarial-testing
|
| 9 |
+
extra_gated_prompt: >-
|
| 10 |
+
This repository is a synthetic security-test artifact from the Layerfault
|
| 11 |
+
corpus. It intentionally contains adversarial characteristics (e.g.
|
| 12 |
+
suspicious pickle opcodes, executable-format smuggling, prompt-injection
|
| 13 |
+
strings) designed to exercise security scanner detection rules. It is
|
| 14 |
+
**not** a usable ML model and must never be loaded or executed outside an
|
| 15 |
+
isolated scanner-testing environment. By accepting, you confirm you
|
| 16 |
+
understand this repository is a test fixture, not production model
|
| 17 |
+
weights.
|
| 18 |
+
extra_gated_button_content: I understand this is a security test fixture and accept the risk
|
| 19 |
+
gated: auto
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# tensorflow-execution-op
|
| 23 |
+
|
| 24 |
+
> **SECURITY TEST ARTIFACT — DO NOT USE AS A PRODUCTION MODEL**
|
| 25 |
+
|
| 26 |
+
This repository is part of the Layerfault synthetic security corpus.
|
| 27 |
+
It is deliberately constructed to contain security-relevant characteristics for scanner testing.
|
| 28 |
+
|
| 29 |
+
**Corpus ID:** `LF-CORPUS-TF-0001`
|
| 30 |
+
|
| 31 |
+
## Purpose
|
| 32 |
+
|
| 33 |
+
SavedModel protobuf bytes containing execution/file-related op markers.
|
| 34 |
+
|
| 35 |
+
## Direct expected Layerfault rules
|
| 36 |
+
|
| 37 |
+
- `LF-TF-EXECUTION-OP`
|
| 38 |
+
|
| 39 |
+
## Candidate rules
|
| 40 |
+
|
| 41 |
+
These are deliberately plausible targets that remain marked as candidates until the exact
|
| 42 |
+
Layerfault build used for certification confirms them.
|
| 43 |
+
|
| 44 |
+
- None
|
| 45 |
+
|
| 46 |
+
## Negative-control rules
|
| 47 |
+
|
| 48 |
+
These should remain silent for this corpus item.
|
| 49 |
+
|
| 50 |
+
- None
|
| 51 |
+
|
| 52 |
+
## Safety
|
| 53 |
+
|
| 54 |
+
The corpus uses fake secrets, loopback/`.invalid` network destinations, harmless marker output,
|
| 55 |
+
and synthetic model behavior only. It is intended for static scanning and isolated security testing.
|
SHA256SUMS.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"path": "LAYERFAULT_CORPUS.json",
|
| 4 |
+
"sha256": "3d4cf72ac5e57f23888f3e120b3faa1736ef7e47ef3b369c06536b6d37437d29",
|
| 5 |
+
"size": 520
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"path": "README.md",
|
| 9 |
+
"sha256": "a9065727ad1359fd6bdb41c38da4ce26bd9f0acc9d462f98c1d591c823513883",
|
| 10 |
+
"size": 1676
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"path": "saved_model.pb",
|
| 14 |
+
"sha256": "510be23be43dc470e9d1fcc2418d8a126ebd594416b0b4d8eb4180e79b1967d4",
|
| 15 |
+
"size": 74
|
| 16 |
+
}
|
| 17 |
+
]
|
saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:510be23be43dc470e9d1fcc2418d8a126ebd594416b0b4d8eb4180e79b1967d4
|
| 3 |
+
size 74
|