Instructions to use LayerFault/mlx-custom-code-suite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- LM Studio
- Atomic Chat
Publish Layerfault synthetic corpus LF-CORPUS-MLX-0001
Browse files- LAYERFAULT_CORPUS.json +20 -0
- README.md +56 -0
- SHA256SUMS.json +27 -0
- config.json +6 -0
- model.py +2 -0
- model.safetensors +3 -0
LAYERFAULT_CORPUS.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"candidate_rules": [
|
| 3 |
+
"LF-MLX-CUSTOM-CODE",
|
| 4 |
+
"LF-MLX-PROFILE-INCOMPLETE"
|
| 5 |
+
],
|
| 6 |
+
"corpus_id": "LF-CORPUS-MLX-0001",
|
| 7 |
+
"description": "Minimal MLX-like package with custom Python code and deliberately partial profile metadata.",
|
| 8 |
+
"expected_rules": [],
|
| 9 |
+
"generator": "packages.mlx_suite",
|
| 10 |
+
"ground_truth": "synthetic-generated",
|
| 11 |
+
"must_not_rules": [],
|
| 12 |
+
"repo_name": "mlx-custom-code-suite",
|
| 13 |
+
"repo_type": "model",
|
| 14 |
+
"safety": "inert/canary-only",
|
| 15 |
+
"schema": 1,
|
| 16 |
+
"validation": {
|
| 17 |
+
"kind": "verify-package",
|
| 18 |
+
"target": "."
|
| 19 |
+
}
|
| 20 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# mlx-custom-code-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-MLX-0001`
|
| 30 |
+
|
| 31 |
+
## Purpose
|
| 32 |
+
|
| 33 |
+
Minimal MLX-like package with custom Python code and deliberately partial profile metadata.
|
| 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-MLX-CUSTOM-CODE`
|
| 45 |
+
- `LF-MLX-PROFILE-INCOMPLETE`
|
| 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.
|
SHA256SUMS.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"path": "LAYERFAULT_CORPUS.json",
|
| 4 |
+
"sha256": "ce048d6b4e97d9ae70bac894b8cfcfd04f5024ea24d116c366880a29bb2e6b7a",
|
| 5 |
+
"size": 547
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"path": "README.md",
|
| 9 |
+
"sha256": "d7710510f11ea18a71aecdb7362f0efe3461bca2aad3870f00530269cf87644b",
|
| 10 |
+
"size": 1773
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"path": "config.json",
|
| 14 |
+
"sha256": "0c07bd5b8560414fd80015c4bbdb20a60948bd587c0428d8b1521ad9b3a5fccd",
|
| 15 |
+
"size": 79
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"path": "model.py",
|
| 19 |
+
"sha256": "aa9695706f7bc471ee5584fb80a8eaf479fbdac1be00cb3f9c751c9dc0626e2e",
|
| 20 |
+
"size": 43
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"path": "model.safetensors",
|
| 24 |
+
"sha256": "d2ca18b298651a52fc6fc6d7cf90df5a4b05586832277686f5681ee524af58b0",
|
| 25 |
+
"size": 856
|
| 26 |
+
}
|
| 27 |
+
]
|
config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LayerfaultMLXFixture"
|
| 4 |
+
],
|
| 5 |
+
"model_type": "mlx"
|
| 6 |
+
}
|
model.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
class LayerfaultMLXFixture: pass
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2ca18b298651a52fc6fc6d7cf90df5a4b05586832277686f5681ee524af58b0
|
| 3 |
+
size 856
|