izm1chael commited on
Commit
cdfcefa
·
verified ·
1 Parent(s): 5a8c2a2

Publish Layerfault deep challenge LF-CH-CORR-0007

Browse files
CHALLENGE_ORACLE.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attack_surface": [
3
+ "cross-file-correlation"
4
+ ],
5
+ "control_type": "positive",
6
+ "corpus_id": "LF-CH-CORR-0007",
7
+ "difficulty": "intermediate",
8
+ "expected_decision": "WARN",
9
+ "ground_truth": "synthetic-generated",
10
+ "layerfault_rule_expectations": {
11
+ "candidate_rules": [],
12
+ "expected_rules": [],
13
+ "must_not_rules": []
14
+ },
15
+ "oracle_ids": [
16
+ "LF-ORACLE-CORR-0007"
17
+ ],
18
+ "related_cases": [],
19
+ "repo_name": "correlation-tokenizer-config-source",
20
+ "safe_fixture": true,
21
+ "schema": 2,
22
+ "severity": "medium",
23
+ "techniques": [
24
+ "tokenizer",
25
+ "correlation"
26
+ ],
27
+ "transformations": []
28
+ }
FIXTURE_LAYOUT.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifacts": [
3
+ "config.json",
4
+ "tokenizer_config.json",
5
+ "src/loader.py"
6
+ ],
7
+ "family": "correlation",
8
+ "note": "All content is synthetic and inert. Do not treat this as a production model.",
9
+ "repo_name": "correlation-tokenizer-config-source"
10
+ }
LAYERFAULT_CORPUS.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "candidate_rules": [],
3
+ "challenge": {
4
+ "attack_surface": [
5
+ "cross-file-correlation"
6
+ ],
7
+ "control_type": "positive",
8
+ "difficulty": "intermediate",
9
+ "expected_decision": "WARN",
10
+ "oracle_ids": [
11
+ "LF-ORACLE-CORR-0007"
12
+ ],
13
+ "related_cases": [],
14
+ "severity": "medium",
15
+ "techniques": [
16
+ "tokenizer",
17
+ "correlation"
18
+ ],
19
+ "transformations": []
20
+ },
21
+ "corpus_id": "LF-CH-CORR-0007",
22
+ "description": "Correlation tokenizer config source.",
23
+ "expected_rules": [],
24
+ "generator": "challenges.generate_challenge",
25
+ "ground_truth": "synthetic-generated",
26
+ "must_not_rules": [],
27
+ "repo_name": "correlation-tokenizer-config-source",
28
+ "repo_type": "model",
29
+ "safe_fixture": true,
30
+ "safety": "inert/canary-only",
31
+ "schema": 1,
32
+ "validation": {
33
+ "kind": "verify-package",
34
+ "target": "."
35
+ }
36
+ }
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
+ # correlation-tokenizer-config-source
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-CORR-0007`
30
+
31
+ ## Purpose
32
+
33
+ Correlation tokenizer config source.
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
+ - 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.
56
+
57
+ ## Challenge classification
58
+
59
+ - Severity: **medium**
60
+ - Difficulty: **intermediate**
61
+ - Expected admission decision: **WARN**
62
+ - Control type: **positive**
63
+ - Attack surface: cross-file-correlation
64
+ - Techniques: tokenizer, correlation
65
+ - Transformations: none
66
+
67
+ ### Ground-truth oracle IDs
68
+
69
+ - `LF-ORACLE-CORR-0007`
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,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "CHALLENGE_ORACLE.json",
4
+ "sha256": "1e386aa9544a7dff7b28b28d6d7134767d46a6530b7a5e74d018b0c4415e0eff",
5
+ "size": 618
6
+ },
7
+ {
8
+ "path": "FIXTURE_LAYOUT.json",
9
+ "sha256": "e71f2f2d8932407ae60ca7d3f0d81ebf6e980a6d51115ebb78ec9973581ba616",
10
+ "size": 264
11
+ },
12
+ {
13
+ "path": "LAYERFAULT_CORPUS.json",
14
+ "sha256": "22ccfe0a9dc5db97c45d84a098d9693776a3f85fb995cddd440665c3c5ab708d",
15
+ "size": 858
16
+ },
17
+ {
18
+ "path": "README.md",
19
+ "sha256": "cf0fb82e7aeb6835c74783eae6bab2d4e014689cc9af37ed72158f33f2ad922b",
20
+ "size": 2223
21
+ },
22
+ {
23
+ "path": "config.json",
24
+ "sha256": "b0c27487eed1c2379c83f79ccf73b17d8d4290ad59862a13a6be9f393170f171",
25
+ "size": 65
26
+ },
27
+ {
28
+ "path": "src/loader.py",
29
+ "sha256": "6bd7280b5aae6161d1e02d49ccd95c8d8f910f50e164e65b063081827a0155e1",
30
+ "size": 28
31
+ },
32
+ {
33
+ "path": "tokenizer_config.json",
34
+ "sha256": "79d1cbc768db6479db56a5ae5cf6f4d600856e43d13cd75a066b700d34a1f37a",
35
+ "size": 43
36
+ }
37
+ ]
config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "model_type": "layerfault_fixture",
3
+ "safe_fixture": true
4
+ }
src/loader.py ADDED
@@ -0,0 +1 @@
 
 
1
+ MARKER="LAYERFAULT_FIXTURE"
tokenizer_config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "tokenizer_class": "CustomTokenizer"
3
+ }