izm1chael commited on
Commit
be01af0
·
verified ·
1 Parent(s): 17072ad

Publish Layerfault synthetic corpus LF-CORPUS-LORA-0001

Browse files
LAYERFAULT_CORPUS.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "candidate_rules": [
3
+ "LF-ADAPTER-SCALING-ANOMALY",
4
+ "LF-ADAPTER-MODULES-TO-SAVE",
5
+ "LF-ADAPTER-NORM-OUTLIER",
6
+ "LF-ADAPTER-SPECTRAL-CONCENTRATION",
7
+ "LF-ADAPTER-BASE-UNVERIFIED",
8
+ "LF-ADAPTER-UNEXPECTED-MODULE"
9
+ ],
10
+ "corpus_id": "LF-CORPUS-LORA-0001",
11
+ "description": "One tiny LoRA adapter combining rank, scaling, modules_to_save, norm, spectral and weight-concentration anomalies.",
12
+ "expected_rules": [
13
+ "LF-ADAPTER-RANK-ANOMALY",
14
+ "LF-ADAPTER-WEIGHT-ANOMALY"
15
+ ],
16
+ "generator": "lora.lora_anomaly",
17
+ "ground_truth": "synthetic-generated",
18
+ "must_not_rules": [],
19
+ "repo_name": "lora-anomaly-suite",
20
+ "repo_type": "model",
21
+ "safety": "inert/canary-only",
22
+ "schema": 1,
23
+ "validation": {
24
+ "kind": "manual",
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
+ # lora-anomaly-suite
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-LORA-0001`
30
+
31
+ ## Purpose
32
+
33
+ One tiny LoRA adapter combining rank, scaling, modules_to_save, norm, spectral and weight-concentration anomalies.
34
+
35
+ ## Direct expected Layerfault rules
36
+
37
+ - `LF-ADAPTER-RANK-ANOMALY`
38
+ - `LF-ADAPTER-WEIGHT-ANOMALY`
39
+
40
+ ## Candidate rules
41
+
42
+ These are deliberately plausible targets that remain marked as candidates until the exact
43
+ Layerfault build used for certification confirms them.
44
+
45
+ - `LF-ADAPTER-SCALING-ANOMALY`
46
+ - `LF-ADAPTER-MODULES-TO-SAVE`
47
+ - `LF-ADAPTER-NORM-OUTLIER`
48
+ - `LF-ADAPTER-SPECTRAL-CONCENTRATION`
49
+ - `LF-ADAPTER-BASE-UNVERIFIED`
50
+ - `LF-ADAPTER-UNEXPECTED-MODULE`
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,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "LAYERFAULT_CORPUS.json",
4
+ "sha256": "a07572a424ebfead6c172ce07e822e6cbc813840308ed196f85b1e721461b987",
5
+ "size": 776
6
+ },
7
+ {
8
+ "path": "README.md",
9
+ "sha256": "65e6e7e9ca793384c4b64ead49dfbd66fb754a9402592e08ba88f8ecf7eaa656",
10
+ "size": 1936
11
+ },
12
+ {
13
+ "path": "adapter_config.json",
14
+ "sha256": "3d441bba94fd99884ae4d0a64ec375d9f3a7412c0472a71ef96fa20d2f77885b",
15
+ "size": 285
16
+ },
17
+ {
18
+ "path": "adapter_model.safetensors",
19
+ "sha256": "5c7353cd80b25d55c67ec0396a907c2218ccbc4f662adf2ea89f8ccbef72cb16",
20
+ "size": 584
21
+ }
22
+ ]
adapter_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model_name_or_path": "layerfault/nonexistent-base",
3
+ "bias": "none",
4
+ "lora_alpha": 1000000000.0,
5
+ "modules_to_save": [
6
+ "lm_head"
7
+ ],
8
+ "peft_type": "LORA",
9
+ "r": 5000,
10
+ "target_modules": [
11
+ "layer0",
12
+ "layer1",
13
+ "layer2"
14
+ ],
15
+ "task_type": "CAUSAL_LM"
16
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c7353cd80b25d55c67ec0396a907c2218ccbc4f662adf2ea89f8ccbef72cb16
3
+ size 584