Commit ·
1ad10b6
0
Parent(s):
Duplicate from Podric/prowl-secrets-corpus
Browse filesCo-authored-by: Podric <Podric@users.noreply.huggingface.co>
- .gitattributes +61 -0
- README.md +128 -0
- corpus.jsonl +3 -0
- corpus.parquet +3 -0
- logo.png +3 -0
- prowlbench.jsonl +0 -0
- prowlbench.parquet +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
corpus.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- de
|
| 6 |
+
- fr
|
| 7 |
+
- es
|
| 8 |
+
- ru
|
| 9 |
+
task_categories:
|
| 10 |
+
- text-classification
|
| 11 |
+
- token-classification
|
| 12 |
+
tags:
|
| 13 |
+
- security
|
| 14 |
+
- secret-detection
|
| 15 |
+
- credentials
|
| 16 |
+
- dlp
|
| 17 |
+
- code
|
| 18 |
+
- pii
|
| 19 |
+
size_categories:
|
| 20 |
+
- 100K<n<1M
|
| 21 |
+
configs:
|
| 22 |
+
- config_name: corpus
|
| 23 |
+
data_files: corpus.parquet
|
| 24 |
+
default: true
|
| 25 |
+
- config_name: prowlbench
|
| 26 |
+
data_files: prowlbench.parquet
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
<p align="center"><img src="https://huggingface.co/datasets/Podric/prowl-secrets-corpus/resolve/main/logo.png" width="360" alt="Prowl"></p>
|
| 30 |
+
|
| 31 |
+
# Prowl secrets corpus
|
| 32 |
+
|
| 33 |
+
A labeled corpus for training and evaluating secret detectors (credentials, API keys, tokens,
|
| 34 |
+
database URIs, private keys, and passwords) across **code, Jira tickets, Confluence pages, chat,
|
| 35 |
+
and logs**, in multiple languages. It is the training data behind
|
| 36 |
+
[Prowl](https://github.com/Lercas/prowl) and its stage-3
|
| 37 |
+
[encoder](https://huggingface.co/Podric/prowl-secret-encoder).
|
| 38 |
+
|
| 39 |
+
**503,027 records: 181,530 positive, 321,497 negative.**
|
| 40 |
+
|
| 41 |
+
> No live credentials. Every value is synthetic, format-preserving-obfuscated, or drawn from a public
|
| 42 |
+
> test fixture. The corpus is built so it can be handled without leaking a real secret.
|
| 43 |
+
|
| 44 |
+
## Loading
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from datasets import load_dataset
|
| 48 |
+
|
| 49 |
+
ds = load_dataset("Podric/prowl-secrets-corpus") # full corpus (default config)
|
| 50 |
+
bench = load_dataset("Podric/prowl-secrets-corpus", "prowlbench") # the held-out evaluation config
|
| 51 |
+
|
| 52 |
+
ex = ds["train"][0] # {"text", "value", "label_binary", "label_type", "span", "source", "origin", "context"}
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Fields
|
| 56 |
+
|
| 57 |
+
| field | type | meaning |
|
| 58 |
+
|---|---|---|
|
| 59 |
+
| `text` | string | the fragment to classify (code line, config value, ticket/log/chat text) |
|
| 60 |
+
| `value` | string \| null | the secret substring, when positive |
|
| 61 |
+
| `label_binary` | 0 \| 1 | contains a secret |
|
| 62 |
+
| `label_type` | string \| null | secret type (`aws_access_key_id`, `stripe_secret_key`, `generic_password`, ...) |
|
| 63 |
+
| `span` | [int,int] \| null | `[start,end)` of `value` inside `text` (for NER) |
|
| 64 |
+
| `source` | string | channel: `code` \| `jira` \| `confluence` \| `log` \| `slack` |
|
| 65 |
+
| `origin` | string | provenance tag (see below) |
|
| 66 |
+
| `context` | string \| null | surrounding context, when available |
|
| 67 |
+
|
| 68 |
+
## Composition by channel
|
| 69 |
+
|
| 70 |
+
| code | Jira | Confluence | log | chat |
|
| 71 |
+
|:--:|:--:|:--:|:--:|:--:|
|
| 72 |
+
| 302,153 | 97,122 | 80,092 | 19,883 | 3,777 |
|
| 73 |
+
|
| 74 |
+
Non-code (tickets, wiki, logs, chat) is ~40% of the corpus, the realistic-leak surface that
|
| 75 |
+
code-only datasets omit.
|
| 76 |
+
|
| 77 |
+
## Provenance: where each part comes from
|
| 78 |
+
|
| 79 |
+
| origin | share | source | how it was made |
|
| 80 |
+
|---|:--:|---|---|
|
| 81 |
+
| `synthetic` | 73.8% | original | format- and checksum-correct fake secrets generated per type, injected into templated carriers at known spans |
|
| 82 |
+
| `creddata` | 8.4% | [Samsung/CredData](https://github.com/Samsung/CredData) | real-world credential samples, **character-class obfuscated** so format survives but no real value does |
|
| 83 |
+
| `hf` | 6.8% | [ai4privacy/pii-masking-200k](https://huggingface.co/datasets/ai4privacy/pii-masking-200k), [nvidia/Nemotron-PII](https://huggingface.co/datasets/nvidia/Nemotron-PII) | synthetic PII prose; passwords → positives, other PII → hard negatives (`neg_pii`) |
|
| 84 |
+
| `fleet*` / `authored` / `carrier` | 10.9% | original | synthetic carriers: code in 17 languages, 44 config formats, ticket/wiki/chat/log documents, hard negatives, obfuscation |
|
| 85 |
+
| `fixture` | <0.1% | gitleaks / detect-secrets / whispers test suites (public) | imported public test fixtures |
|
| 86 |
+
|
| 87 |
+
The `synthetic`, `fleet*`, `authored`, and `carrier` portions are original to this project. The
|
| 88 |
+
`creddata`, `hf`, and `fixture` portions are derived from the linked upstream datasets and remain
|
| 89 |
+
under their respective licenses (CredData; ai4privacy and Nemotron-PII per their HF cards; the tool
|
| 90 |
+
fixtures per each project's license). Attribute the originals if you redistribute.
|
| 91 |
+
|
| 92 |
+
## Splits and leakage control
|
| 93 |
+
|
| 94 |
+
The corpus is meant to be split **value-disjoint** (no secret value appears in both train and eval)
|
| 95 |
+
and **origin-disjoint**: the real-secret sources (`creddata`, `hf`) are held out so a validation
|
| 96 |
+
score measures generalization, not memorization. The encoder's operating threshold is calibrated on
|
| 97 |
+
such a held-out split.
|
| 98 |
+
|
| 99 |
+
## `prowlbench` config
|
| 100 |
+
|
| 101 |
+
The second config is [ProwlBench](https://github.com/Lercas/prowlbench):
|
| 102 |
+
3,843 leakage-safe evaluation cases (structured tokens, generic high-entropy keys, multilingual
|
| 103 |
+
free-form prose) with per-case tier and language, used to compare scanners as real subprocesses.
|
| 104 |
+
It is value-disjoint from `corpus`.
|
| 105 |
+
|
| 106 |
+
## Intended use
|
| 107 |
+
|
| 108 |
+
Training and evaluating secret/credential detectors and DLP classifiers. Not a source of real
|
| 109 |
+
credentials and not usable as one.
|
| 110 |
+
|
| 111 |
+
## License
|
| 112 |
+
|
| 113 |
+
Noncommercial use only (CC BY-NC 4.0). Not for use in commercial products. The original portions
|
| 114 |
+
(`synthetic`, `fleet*`, `authored`, `carrier`) are released under CC BY-NC 4.0. The derived portions
|
| 115 |
+
(`creddata`, `hf`, `fixture`) stay under their upstream licenses, listed in the provenance table.
|
| 116 |
+
Attribute the originals if you redistribute.
|
| 117 |
+
|
| 118 |
+
## Citation
|
| 119 |
+
|
| 120 |
+
```bibtex
|
| 121 |
+
@misc{prowl_secrets_corpus,
|
| 122 |
+
title = {Prowl secrets corpus},
|
| 123 |
+
author = {Prowl},
|
| 124 |
+
year = {2026},
|
| 125 |
+
howpublished = {Hugging Face Datasets},
|
| 126 |
+
url = {https://huggingface.co/datasets/Podric/prowl-secrets-corpus}
|
| 127 |
+
}
|
| 128 |
+
```
|
corpus.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91a1856aea83f697bb63ef55b41144c9eb3009928dc6e9b87035499a7069202b
|
| 3 |
+
size 286501254
|
corpus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71176186d31f04a489b0efd56eca45e33e7cbeacd61d4db333e585e7c38ae11d
|
| 3 |
+
size 73064944
|
logo.png
ADDED
|
Git LFS Details
|
prowlbench.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
prowlbench.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f73d43e5f5aacb1558dcad26464d4edb3ab0e35bb0e7761751c5937041401c8
|
| 3 |
+
size 2666597
|