Publish Layerfault deep challenge LF-CH-EVAS-0008
Browse files- CHALLENGE_ORACLE.json +32 -0
- FIXTURE_LAYOUT.json +9 -0
- LAYERFAULT_CORPUS.json +40 -0
- README.md +74 -0
- SHA256SUMS.json +32 -0
- assets/loader.py +8 -0
- config.json +5 -0
CHALLENGE_ORACLE.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attack_surface": [
|
| 3 |
+
"package-evasion"
|
| 4 |
+
],
|
| 5 |
+
"control_type": "positive",
|
| 6 |
+
"corpus_id": "LF-CH-EVAS-0008",
|
| 7 |
+
"difficulty": "adversarial",
|
| 8 |
+
"expected_decision": "BLOCK",
|
| 9 |
+
"ground_truth": "synthetic-generated",
|
| 10 |
+
"layerfault_rule_expectations": {
|
| 11 |
+
"candidate_rules": [
|
| 12 |
+
"LF-CODE-SUBPROCESS",
|
| 13 |
+
"LF-PY-CALL-PROCESS"
|
| 14 |
+
],
|
| 15 |
+
"expected_rules": [],
|
| 16 |
+
"must_not_rules": []
|
| 17 |
+
},
|
| 18 |
+
"oracle_ids": [
|
| 19 |
+
"LF-ORACLE-PACKAGE-OBFUSCATED-CAPABILITY"
|
| 20 |
+
],
|
| 21 |
+
"related_cases": [],
|
| 22 |
+
"repo_name": "evasion-python-string-concat-capability",
|
| 23 |
+
"safe_fixture": true,
|
| 24 |
+
"schema": 2,
|
| 25 |
+
"severity": "high",
|
| 26 |
+
"techniques": [
|
| 27 |
+
"python-string-concat"
|
| 28 |
+
],
|
| 29 |
+
"transformations": [
|
| 30 |
+
"string-splitting"
|
| 31 |
+
]
|
| 32 |
+
}
|
FIXTURE_LAYOUT.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifacts": [
|
| 3 |
+
"config.json",
|
| 4 |
+
"assets/loader.py"
|
| 5 |
+
],
|
| 6 |
+
"family": "evasion",
|
| 7 |
+
"note": "All content is synthetic and inert. Do not treat this as a production model.",
|
| 8 |
+
"repo_name": "evasion-python-string-concat-capability"
|
| 9 |
+
}
|
LAYERFAULT_CORPUS.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"candidate_rules": [
|
| 3 |
+
"LF-CODE-SUBPROCESS",
|
| 4 |
+
"LF-PY-CALL-PROCESS"
|
| 5 |
+
],
|
| 6 |
+
"challenge": {
|
| 7 |
+
"attack_surface": [
|
| 8 |
+
"package-evasion"
|
| 9 |
+
],
|
| 10 |
+
"control_type": "positive",
|
| 11 |
+
"difficulty": "adversarial",
|
| 12 |
+
"expected_decision": "BLOCK",
|
| 13 |
+
"oracle_ids": [
|
| 14 |
+
"LF-ORACLE-PACKAGE-OBFUSCATED-CAPABILITY"
|
| 15 |
+
],
|
| 16 |
+
"related_cases": [],
|
| 17 |
+
"severity": "high",
|
| 18 |
+
"techniques": [
|
| 19 |
+
"python-string-concat"
|
| 20 |
+
],
|
| 21 |
+
"transformations": [
|
| 22 |
+
"string-splitting"
|
| 23 |
+
]
|
| 24 |
+
},
|
| 25 |
+
"corpus_id": "LF-CH-EVAS-0008",
|
| 26 |
+
"description": "Dormant Python capability strings are reconstructed at runtime.",
|
| 27 |
+
"expected_rules": [],
|
| 28 |
+
"generator": "challenges.generate_challenge",
|
| 29 |
+
"ground_truth": "synthetic-generated",
|
| 30 |
+
"must_not_rules": [],
|
| 31 |
+
"repo_name": "evasion-python-string-concat-capability",
|
| 32 |
+
"repo_type": "model",
|
| 33 |
+
"safe_fixture": true,
|
| 34 |
+
"safety": "inert/canary-only",
|
| 35 |
+
"schema": 1,
|
| 36 |
+
"validation": {
|
| 37 |
+
"kind": "verify-package",
|
| 38 |
+
"target": "."
|
| 39 |
+
}
|
| 40 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# evasion-python-string-concat-capability
|
| 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-EVAS-0008`
|
| 30 |
+
|
| 31 |
+
## Purpose
|
| 32 |
+
|
| 33 |
+
Dormant Python capability strings are reconstructed at runtime.
|
| 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-SUBPROCESS`
|
| 45 |
+
- `LF-PY-CALL-PROCESS`
|
| 46 |
+
|
| 47 |
+
## Negative-control rules
|
| 48 |
+
|
| 49 |
+
These should remain silent for this corpus item.
|
| 50 |
+
|
| 51 |
+
- None
|
| 52 |
+
|
| 53 |
+
## Safety
|
| 54 |
+
|
| 55 |
+
The corpus uses fake secrets, loopback/`.invalid` network destinations, harmless marker output,
|
| 56 |
+
and synthetic model behavior only. It is intended for static scanning and isolated security testing.
|
| 57 |
+
|
| 58 |
+
## Challenge classification
|
| 59 |
+
|
| 60 |
+
- Severity: **high**
|
| 61 |
+
- Difficulty: **adversarial**
|
| 62 |
+
- Expected admission decision: **BLOCK**
|
| 63 |
+
- Control type: **positive**
|
| 64 |
+
- Attack surface: package-evasion
|
| 65 |
+
- Techniques: python-string-concat
|
| 66 |
+
- Transformations: string-splitting
|
| 67 |
+
|
| 68 |
+
### Ground-truth oracle IDs
|
| 69 |
+
|
| 70 |
+
- `LF-ORACLE-PACKAGE-OBFUSCATED-CAPABILITY`
|
| 71 |
+
|
| 72 |
+
These oracle IDs describe synthetic ground truth. They do not claim that a
|
| 73 |
+
matching Layerfault detector already exists. A challenge may intentionally expose
|
| 74 |
+
a scanner blind spot and remain unmapped until the detector is implemented.
|
SHA256SUMS.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"path": "CHALLENGE_ORACLE.json",
|
| 4 |
+
"sha256": "a74440e1556b83ac4423456484d5b14b4a8f6055c73763046e112cfcaa103f55",
|
| 5 |
+
"size": 711
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"path": "FIXTURE_LAYOUT.json",
|
| 9 |
+
"sha256": "63fdb98d8a4d460efd64aa5439c872c8e0ab56bfc7cd9a41abaff830e0159aa1",
|
| 10 |
+
"size": 238
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"path": "LAYERFAULT_CORPUS.json",
|
| 14 |
+
"sha256": "a2ed00904ad72fd4f7e791a5db71c066787f9e76eb6c713a258da7b2c7238ebc",
|
| 15 |
+
"size": 974
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"path": "README.md",
|
| 19 |
+
"sha256": "e74e255ce1d007d84408e44cddee39451dd85b74fd691f3b5c8fafbb697c4a94",
|
| 20 |
+
"size": 2314
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"path": "assets/loader.py",
|
| 24 |
+
"sha256": "d2ad465db9a9a886629e78d66009b02bf41ca588fb716b5cd0083c16182adfa3",
|
| 25 |
+
"size": 362
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"path": "config.json",
|
| 29 |
+
"sha256": "68d4b6c3308015c36332de690b727c02878531e6440ced97fcf1fd1a46d41704",
|
| 30 |
+
"size": 88
|
| 31 |
+
}
|
| 32 |
+
]
|
assets/loader.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Synthetic dormant capability fixture. Nothing executes at import time.
|
| 2 |
+
def dormant_fixture():
|
| 3 |
+
module_name = "sub" + "process"
|
| 4 |
+
function_name = "r" + "un"
|
| 5 |
+
module = __import__(module_name)
|
| 6 |
+
fn = getattr(module, function_name)
|
| 7 |
+
return fn(["python", "--version"], check=False)
|
| 8 |
+
MARKER = 'LAYERFAULT_FIXTURE:evasion-python-string-concat-capability'
|
config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"asset_root": "assets",
|
| 3 |
+
"fixture": true,
|
| 4 |
+
"model_type": "layerfault_challenge"
|
| 5 |
+
}
|