izm1chael commited on
Commit
70c1f5a
·
verified ·
1 Parent(s): 9e90219

Publish Layerfault deep challenge LF-CH-CORR-0005

Browse files
CHALLENGE_ORACLE.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attack_surface": [
3
+ "cross-file-correlation"
4
+ ],
5
+ "control_type": "positive",
6
+ "corpus_id": "LF-CH-CORR-0005",
7
+ "difficulty": "adversarial",
8
+ "expected_decision": "BLOCK",
9
+ "ground_truth": "synthetic-generated",
10
+ "layerfault_rule_expectations": {
11
+ "candidate_rules": [
12
+ "LF-CODE-CTYPES",
13
+ "LF-PY-NATIVE-LOAD",
14
+ "LF-CORR-HF-LOADER-NATIVE-LOAD"
15
+ ],
16
+ "expected_rules": [],
17
+ "must_not_rules": []
18
+ },
19
+ "oracle_ids": [
20
+ "LF-ORACLE-CORR-0005"
21
+ ],
22
+ "related_cases": [],
23
+ "repo_name": "correlation-custom-loader-native-library",
24
+ "safe_fixture": true,
25
+ "schema": 2,
26
+ "severity": "critical",
27
+ "techniques": [
28
+ "correlation"
29
+ ],
30
+ "transformations": []
31
+ }
FIXTURE_LAYOUT.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifacts": [
3
+ "config.json",
4
+ "modeling_layerfault.py",
5
+ "libfixture.so"
6
+ ],
7
+ "family": "correlation",
8
+ "note": "All content is synthetic and inert. Do not treat this as a production model.",
9
+ "repo_name": "correlation-custom-loader-native-library"
10
+ }
LAYERFAULT_CORPUS.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "candidate_rules": [
3
+ "LF-CODE-CTYPES",
4
+ "LF-PY-NATIVE-LOAD",
5
+ "LF-CORR-HF-LOADER-NATIVE-LOAD"
6
+ ],
7
+ "challenge": {
8
+ "attack_surface": [
9
+ "cross-file-correlation"
10
+ ],
11
+ "control_type": "positive",
12
+ "difficulty": "adversarial",
13
+ "expected_decision": "BLOCK",
14
+ "oracle_ids": [
15
+ "LF-ORACLE-CORR-0005"
16
+ ],
17
+ "related_cases": [],
18
+ "severity": "critical",
19
+ "techniques": [
20
+ "correlation"
21
+ ],
22
+ "transformations": []
23
+ },
24
+ "corpus_id": "LF-CH-CORR-0005",
25
+ "description": "Correlation custom loader native library.",
26
+ "expected_rules": [],
27
+ "generator": "challenges.generate_challenge",
28
+ "ground_truth": "synthetic-generated",
29
+ "must_not_rules": [],
30
+ "repo_name": "correlation-custom-loader-native-library",
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,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
+ # correlation-custom-loader-native-library
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-0005`
30
+
31
+ ## Purpose
32
+
33
+ Correlation custom loader native library.
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-CTYPES`
45
+ - `LF-PY-NATIVE-LOAD`
46
+ - `LF-CORR-HF-LOADER-NATIVE-LOAD`
47
+
48
+ ## Negative-control rules
49
+
50
+ These should remain silent for this corpus item.
51
+
52
+ - None
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: **critical**
62
+ - Difficulty: **adversarial**
63
+ - Expected admission decision: **BLOCK**
64
+ - Control type: **positive**
65
+ - Attack surface: cross-file-correlation
66
+ - Techniques: correlation
67
+ - Transformations: none
68
+
69
+ ### Ground-truth oracle IDs
70
+
71
+ - `LF-ORACLE-CORR-0005`
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,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "CHALLENGE_ORACLE.json",
4
+ "sha256": "b9d34417e987e51bc2f12a78ed615fdb8d0ec88000461feda79d7003777ff610",
5
+ "size": 702
6
+ },
7
+ {
8
+ "path": "FIXTURE_LAYOUT.json",
9
+ "sha256": "3605a113d827f6bd94fdfaf0538d548c688f3ac80ac61905827ab45245f3d9fc",
10
+ "size": 270
11
+ },
12
+ {
13
+ "path": "LAYERFAULT_CORPUS.json",
14
+ "sha256": "af1e402b67988a47c37478513f1d701210b7e61d1b00d6e087be12782207a4ad",
15
+ "size": 937
16
+ },
17
+ {
18
+ "path": "README.md",
19
+ "sha256": "eb3eadfe4209a9ab142bba89d769a9ad1086562cf74c884e3cb7235f549f3af9",
20
+ "size": 2292
21
+ },
22
+ {
23
+ "path": "config.json",
24
+ "sha256": "b0c27487eed1c2379c83f79ccf73b17d8d4290ad59862a13a6be9f393170f171",
25
+ "size": 65
26
+ },
27
+ {
28
+ "path": "libfixture.so",
29
+ "sha256": "e055dba49cb6a35df54bdd3a7cd82690cbf9a7af53d1880eb1b3898118d10372",
30
+ "size": 85
31
+ },
32
+ {
33
+ "path": "modeling_layerfault.py",
34
+ "sha256": "dcc3eaa3c43147dce2b61be0173ddbbf7579d859ea563d512b585578816b8fb9",
35
+ "size": 38
36
+ }
37
+ ]
config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "model_type": "layerfault_fixture",
3
+ "safe_fixture": true
4
+ }
libfixture.so ADDED
Binary file (85 Bytes). View file
 
modeling_layerfault.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import ctypes
2
+ LIBRARY="libfixture.so"