izm1chael commited on
Commit
2cb85ac
·
verified ·
1 Parent(s): 7bdeb98

Publish Layerfault deep challenge LF-CH-SCRX-0010

Browse files
CHALLENGE_ORACLE.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attack_surface": [
3
+ "script-supply-chain"
4
+ ],
5
+ "control_type": "negative",
6
+ "corpus_id": "LF-CH-SCRX-0010",
7
+ "difficulty": "adversarial",
8
+ "expected_decision": "PASS",
9
+ "ground_truth": "synthetic-generated",
10
+ "layerfault_rule_expectations": {
11
+ "candidate_rules": [],
12
+ "expected_rules": [],
13
+ "must_not_rules": [
14
+ "LF-CODE-EVAL",
15
+ "LF-CODE-NETWORK",
16
+ "LF-CODE-SUBPROCESS"
17
+ ]
18
+ },
19
+ "oracle_ids": [
20
+ "LF-ORACLE-SCRX-0010"
21
+ ],
22
+ "related_cases": [],
23
+ "repo_name": "script-security-research-source-control",
24
+ "safe_fixture": true,
25
+ "schema": 2,
26
+ "severity": "informational",
27
+ "techniques": [
28
+ "security",
29
+ "research",
30
+ "source",
31
+ "control"
32
+ ],
33
+ "transformations": []
34
+ }
FIXTURE_LAYOUT.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifacts": [
3
+ "research.py"
4
+ ],
5
+ "family": "scriptx",
6
+ "note": "All content is synthetic and inert. Do not treat this as a production model.",
7
+ "repo_name": "script-security-research-source-control"
8
+ }
LAYERFAULT_CORPUS.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "candidate_rules": [],
3
+ "challenge": {
4
+ "attack_surface": [
5
+ "script-supply-chain"
6
+ ],
7
+ "control_type": "negative",
8
+ "difficulty": "adversarial",
9
+ "expected_decision": "PASS",
10
+ "oracle_ids": [
11
+ "LF-ORACLE-SCRX-0010"
12
+ ],
13
+ "related_cases": [],
14
+ "severity": "informational",
15
+ "techniques": [
16
+ "security",
17
+ "research",
18
+ "source",
19
+ "control"
20
+ ],
21
+ "transformations": []
22
+ },
23
+ "corpus_id": "LF-CH-SCRX-0010",
24
+ "description": "Script security research source control.",
25
+ "expected_rules": [],
26
+ "generator": "challenges.generate_challenge",
27
+ "ground_truth": "synthetic-generated",
28
+ "must_not_rules": [
29
+ "LF-CODE-EVAL",
30
+ "LF-CODE-NETWORK",
31
+ "LF-CODE-SUBPROCESS"
32
+ ],
33
+ "repo_name": "script-security-research-source-control",
34
+ "repo_type": "model",
35
+ "safe_fixture": true,
36
+ "safety": "inert/canary-only",
37
+ "schema": 1,
38
+ "validation": {
39
+ "kind": "verify-package",
40
+ "target": "."
41
+ }
42
+ }
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # script-security-research-source-control
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-SCRX-0010`
30
+
31
+ ## Purpose
32
+
33
+ Script security research source control.
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
+ - `LF-CODE-EVAL`
51
+ - `LF-CODE-NETWORK`
52
+ - `LF-CODE-SUBPROCESS`
53
+
54
+ ## Safety
55
+
56
+ The corpus uses fake secrets, loopback/`.invalid` network destinations, harmless marker output,
57
+ and synthetic model behavior only. It is intended for static scanning and isolated security testing.
58
+
59
+ ## Challenge classification
60
+
61
+ - Severity: **informational**
62
+ - Difficulty: **adversarial**
63
+ - Expected admission decision: **PASS**
64
+ - Control type: **negative**
65
+ - Attack surface: script-supply-chain
66
+ - Techniques: security, research, source, control
67
+ - Transformations: none
68
+
69
+ ### Ground-truth oracle IDs
70
+
71
+ - `LF-ORACLE-SCRX-0010`
72
+
73
+ These oracle IDs describe synthetic ground truth. They do not claim that a
74
+ matching Layerfault detector already exists. A challenge may intentionally expose
75
+ a scanner blind spot and remain unmapped until the detector is implemented.
SHA256SUMS.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "CHALLENGE_ORACLE.json",
4
+ "sha256": "ac6b8968c69a555a092271779d800029e3958e95fdf213579c2f82b234d63491",
5
+ "size": 729
6
+ },
7
+ {
8
+ "path": "FIXTURE_LAYOUT.json",
9
+ "sha256": "a88b758f7ebb180a22981fb306a3fc509e7e200957f694ca7a04a27f5fab39e6",
10
+ "size": 214
11
+ },
12
+ {
13
+ "path": "LAYERFAULT_CORPUS.json",
14
+ "sha256": "5ffb37d651b11c04840a2efa319e248941f3961eb23859304c1ec455ea495fc9",
15
+ "size": 969
16
+ },
17
+ {
18
+ "path": "README.md",
19
+ "sha256": "8d240ad01fe08e5bb9801813b268f39d3a230bec588c44bfaa92b8828c07e976",
20
+ "size": 2300
21
+ },
22
+ {
23
+ "path": "research.py",
24
+ "sha256": "c2b0a5d35ce8dba89d8f9ed95f23e351d5d4c9efde6f3b4e935397fe2f4271d7",
25
+ "size": 97
26
+ }
27
+ ]
research.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # subprocess.run(["x"])
2
+ # eval(user)
3
+ # requests.get(url)
4
+ def safe(): return "documentation only"