izm1chael commited on
Commit
8fd930f
·
verified ·
1 Parent(s): 2e892c5

Publish Layerfault synthetic corpus LF-CORPUS-NPY-0001

Browse files
Files changed (5) hide show
  1. LAYERFAULT_CORPUS.json +21 -0
  2. README.md +57 -0
  3. SHA256SUMS.json +22 -0
  4. loader.py +2 -0
  5. object.npy +3 -0
LAYERFAULT_CORPUS.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "candidate_rules": [],
3
+ "corpus_id": "LF-CORPUS-NPY-0001",
4
+ "description": "NumPy object array plus explicit allow_pickle loader call.",
5
+ "expected_rules": [
6
+ "LF-NPY-PICKLE",
7
+ "LF-PY-NUMPY-ALLOW-PICKLE",
8
+ "LF-CORR-NUMPY-ALLOW-PICKLE"
9
+ ],
10
+ "generator": "formats.npy_pickle",
11
+ "ground_truth": "synthetic-generated",
12
+ "must_not_rules": [],
13
+ "repo_name": "numpy-object-pickle",
14
+ "repo_type": "model",
15
+ "safety": "inert/canary-only",
16
+ "schema": 1,
17
+ "validation": {
18
+ "kind": "verify-package",
19
+ "target": "."
20
+ }
21
+ }
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # numpy-object-pickle
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-NPY-0001`
30
+
31
+ ## Purpose
32
+
33
+ NumPy object array plus explicit allow_pickle loader call.
34
+
35
+ ## Direct expected Layerfault rules
36
+
37
+ - `LF-NPY-PICKLE`
38
+ - `LF-PY-NUMPY-ALLOW-PICKLE`
39
+ - `LF-CORR-NUMPY-ALLOW-PICKLE`
40
+
41
+ ## Candidate rules
42
+
43
+ These are deliberately plausible targets that remain marked as candidates until the exact
44
+ Layerfault build used for certification confirms them.
45
+
46
+ - None
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.
SHA256SUMS.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "LAYERFAULT_CORPUS.json",
4
+ "sha256": "294659fc5c0e45f78bfdeabfdb485fe898a976c682f2c966c18e871aad52f83f",
5
+ "size": 540
6
+ },
7
+ {
8
+ "path": "README.md",
9
+ "sha256": "643f0d41c50c6a437eb488eaea6af3b80c103cb274e5ca31f2dcce2a0394fb00",
10
+ "size": 1715
11
+ },
12
+ {
13
+ "path": "loader.py",
14
+ "sha256": "e30d75e76e9c768776abf056090b743eed234d8cd7f971cd1c241b704258e4af",
15
+ "size": 60
16
+ },
17
+ {
18
+ "path": "object.npy",
19
+ "sha256": "0948fcadec103509006c9ef113df26b0800c37fe3210bc5d80bbd1bfe0b28035",
20
+ "size": 324
21
+ }
22
+ ]
loader.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import numpy as np
2
+ np.load('object.npy', allow_pickle=True)
object.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0948fcadec103509006c9ef113df26b0800c37fe3210bc5d80bbd1bfe0b28035
3
+ size 324