license: mit
language:
- en
tags: - pii
- privacy
- security
- llm
- testing
- red-team
size_categories: - n<1K
configs: - config_name: default
data_files:- split: train
path: data.jsonl
- split: train
pii-detection-fixtures
25 short text snippets labeled for PII (Personally Identifiable Information) and secrets. Designed as a small, hand-curated fixture set for testing PII redaction pipelines, agent guardrails, and LLM prompt sanitizers.
All data is synthetic — no real people, real keys, or real accounts.
PII / secret types covered
| Type | Examples in this set |
|---|---|
email |
3 |
phone |
2 |
ssn |
1 |
dob |
1 |
credit_card |
1 |
address |
1 |
name |
2 |
medical_record |
1 |
passport |
1 |
coordinates |
1 |
bank_routing, bank_account |
1 each |
mac_address, ip_address |
1 each |
api_key, aws_access_key, github_token, slack_token, stripe_key, jwt, credentials_url |
1 each |
| No PII (control) | 5 |
Schema
{
"id": "string",
"text": "string", // the input snippet
"has_pii": true, // boolean overall flag
"pii_types": ["email", "phone", ...], // unique types found
"spans": [
{"start": 0, "end": 17, "type": "email", "value": "[email protected]"}
]
}
spans use character offsets into text.
Quickstart
from datasets import load_dataset
ds = load_dataset("mukunda1729/pii-detection-fixtures", split="train")
controls = [r for r in ds if not r["has_pii"]]
print(f"{len(controls)} negative examples (no PII)")
Related
- The Agent Reliability Stack
agentguardon PyPI — egress firewall (blocks data exfil at the network layer)
License
MIT.