izm1chael commited on
Commit
b58fdc3
·
verified ·
1 Parent(s): 4b58d07

Publish Layerfault deep challenge LF-CH-LIN-0006

Browse files
CHALLENGE_ORACLE.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attack_surface": [
3
+ "lineage-identity"
4
+ ],
5
+ "control_type": "comparison-derived",
6
+ "corpus_id": "LF-CH-LIN-0006",
7
+ "difficulty": "basic",
8
+ "expected_decision": "WARN",
9
+ "ground_truth": "synthetic-generated",
10
+ "layerfault_rule_expectations": {
11
+ "candidate_rules": [
12
+ "LF-CODE-AUTO-MAP"
13
+ ],
14
+ "expected_rules": [],
15
+ "must_not_rules": []
16
+ },
17
+ "oracle_ids": [
18
+ "LF-ORACLE-LIN-0006"
19
+ ],
20
+ "related_cases": [],
21
+ "repo_name": "lineage-extra-custom-code",
22
+ "safe_fixture": true,
23
+ "schema": 2,
24
+ "severity": "low",
25
+ "techniques": [
26
+ "extra",
27
+ "custom",
28
+ "code"
29
+ ],
30
+ "transformations": []
31
+ }
FIXTURE_LAYOUT.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifacts": [
3
+ "base/model.safetensors",
4
+ "derived/model.safetensors",
5
+ "derived/modeling_layerfault.py",
6
+ "base/config.json",
7
+ "derived/config.json",
8
+ "lineage.json"
9
+ ],
10
+ "family": "lineage",
11
+ "note": "All content is synthetic and inert. Do not treat this as a production model.",
12
+ "repo_name": "lineage-extra-custom-code"
13
+ }
LAYERFAULT_CORPUS.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "candidate_rules": [
3
+ "LF-CODE-AUTO-MAP"
4
+ ],
5
+ "challenge": {
6
+ "attack_surface": [
7
+ "lineage-identity"
8
+ ],
9
+ "control_type": "comparison-derived",
10
+ "difficulty": "basic",
11
+ "expected_decision": "WARN",
12
+ "oracle_ids": [
13
+ "LF-ORACLE-LIN-0006"
14
+ ],
15
+ "related_cases": [],
16
+ "severity": "low",
17
+ "techniques": [
18
+ "extra",
19
+ "custom",
20
+ "code"
21
+ ],
22
+ "transformations": []
23
+ },
24
+ "corpus_id": "LF-CH-LIN-0006",
25
+ "description": "Lineage extra custom code.",
26
+ "expected_rules": [],
27
+ "generator": "challenges.generate_challenge",
28
+ "ground_truth": "synthetic-generated",
29
+ "must_not_rules": [],
30
+ "repo_name": "lineage-extra-custom-code",
31
+ "repo_type": "model",
32
+ "safe_fixture": true,
33
+ "safety": "inert/canary-only",
34
+ "schema": 1,
35
+ "validation": {
36
+ "kind": "verify-package",
37
+ "target": "."
38
+ }
39
+ }
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # lineage-extra-custom-code
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-CH-LIN-0006`
30
+
31
+ ## Purpose
32
+
33
+ Lineage extra custom code.
34
+
35
+ ## Direct expected Layerfault rules
36
+
37
+ - None; this repository is a control/comparison input.
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
+ - `LF-CODE-AUTO-MAP`
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.
56
+
57
+ ## Challenge classification
58
+
59
+ - Severity: **low**
60
+ - Difficulty: **basic**
61
+ - Expected admission decision: **WARN**
62
+ - Control type: **comparison-derived**
63
+ - Attack surface: lineage-identity
64
+ - Techniques: extra, custom, code
65
+ - Transformations: none
66
+
67
+ ### Ground-truth oracle IDs
68
+
69
+ - `LF-ORACLE-LIN-0006`
70
+
71
+ These oracle IDs describe synthetic ground truth. They do not claim that a
72
+ matching Layerfault detector already exists. A challenge may intentionally expose
73
+ a scanner blind spot and remain unmapped until the detector is implemented.
SHA256SUMS.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "CHALLENGE_ORACLE.json",
4
+ "sha256": "ef702f5461e2145aeb53fbc0b1bd773fcfe5ab1065ea536b98b003d1cb18ebe5",
5
+ "size": 633
6
+ },
7
+ {
8
+ "path": "FIXTURE_LAYOUT.json",
9
+ "sha256": "ddf5ef51a15123cf8e63c80f3058c7aa447b7cab52fa2622048cb4355d172e9b",
10
+ "size": 353
11
+ },
12
+ {
13
+ "path": "LAYERFAULT_CORPUS.json",
14
+ "sha256": "dcee62c64da6e1f489dfb48cd3981fd3c5d3073b303bed911d068112f55b229f",
15
+ "size": 861
16
+ },
17
+ {
18
+ "path": "README.md",
19
+ "sha256": "1a5273aff56895477121776aa766041da41659f86948943917d5202a671885ee",
20
+ "size": 2206
21
+ },
22
+ {
23
+ "path": "base/config.json",
24
+ "sha256": "6b2b54fa9bf5a5dfd0e19fafa231cfc38254f41f94234f7171a7c28f8fa2dd27",
25
+ "size": 72
26
+ },
27
+ {
28
+ "path": "base/model.safetensors",
29
+ "sha256": "f8ca6e7765b461685ef1034fe6bbac8a0cfc3f79802ab1124b53701d844c71e2",
30
+ "size": 184
31
+ },
32
+ {
33
+ "path": "derived/config.json",
34
+ "sha256": "5a1a190677c9e72f4bf00425d776efaaa667cd05fd4eb9c0ed2e6dcf48bb9afe",
35
+ "size": 138
36
+ },
37
+ {
38
+ "path": "derived/model.safetensors",
39
+ "sha256": "b021e204ddf3717a0c83d04a3d96ab4d0d5e05d85b041e827c8855d9d4466831",
40
+ "size": 184
41
+ },
42
+ {
43
+ "path": "derived/modeling_layerfault.py",
44
+ "sha256": "a44353486117f4d69472a3266c610c2e17c37c8ed2049d6d4b59d29e9500c339",
45
+ "size": 170
46
+ },
47
+ {
48
+ "path": "lineage.json",
49
+ "sha256": "0dd5e35e1abcd5f9254def68b05f5df8ecc5dde52feac29a46c323ee2e7a6a2a",
50
+ "size": 217
51
+ }
52
+ ]
base/config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FixtureModel"
4
+ ],
5
+ "tokenizer": "clean"
6
+ }
base/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8ca6e7765b461685ef1034fe6bbac8a0cfc3f79802ab1124b53701d844c71e2
3
+ size 184
derived/config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FixtureModel"
4
+ ],
5
+ "auto_map": {
6
+ "AutoModel": "modeling_layerfault.Model"
7
+ },
8
+ "tokenizer": "clean"
9
+ }
derived/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b021e204ddf3717a0c83d04a3d96ab4d0d5e05d85b041e827c8855d9d4466831
3
+ size 184
derived/modeling_layerfault.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Synthetic dormant source only
2
+ import subprocess
3
+ def fixture():
4
+ return subprocess.run(['python','--version'],check=False).returncode
5
+ MARKER='lineage-extra-custom-code'
lineage.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "derived_sha256": "b021e204ddf3717a0c83d04a3d96ab4d0d5e05d85b041e827c8855d9d4466831",
3
+ "parent_sha256": "f8ca6e7765b461685ef1034fe6bbac8a0cfc3f79802ab1124b53701d844c71e2",
4
+ "relationship": "synthetic-derived"
5
+ }