id stringlengths 7 7 | text stringlengths 33 71 | has_pii bool 2
classes | pii_types listlengths 0 3 | spans listlengths 0 3 |
|---|---|---|---|---|
pii-001 | My email is alice@example.com, please contact me there. | true | [
"email"
] | [
{
"start": 12,
"end": 29,
"type": "email",
"value": "alice@example.com"
}
] |
pii-002 | Call me at +1-415-555-2024 anytime tomorrow. | true | [
"phone"
] | [
{
"start": 11,
"end": 26,
"type": "phone",
"value": "+1-415-555-2024"
}
] |
pii-003 | The weather in Paris is lovely today. | false | [] | [] |
pii-004 | SSN: 123-45-6789. DOB: 01/15/1985. | true | [
"ssn",
"dob"
] | [
{
"start": 5,
"end": 16,
"type": "ssn",
"value": "123-45-6789"
},
{
"start": 23,
"end": 33,
"type": "dob",
"value": "01/15/1985"
}
] |
pii-005 | Credit card 4111-1111-1111-1111 expires 12/27. | true | [
"credit_card"
] | [
{
"start": 12,
"end": 31,
"type": "credit_card",
"value": "4111-1111-1111-1111"
}
] |
pii-006 | Server config: API_KEY=sk-abc123def456ghi789. Do not commit! | true | [
"api_key"
] | [
{
"start": 23,
"end": 45,
"type": "api_key",
"value": "sk-abc123def456ghi789"
}
] |
pii-007 | I live at 1600 Pennsylvania Avenue NW, Washington DC. | true | [
"address"
] | [
{
"start": 10,
"end": 52,
"type": "address",
"value": "1600 Pennsylvania Avenue NW, Washington DC"
}
] |
pii-008 | Connect to db: postgres://user:p@ssw0rd@db.internal:5432/prod | true | [
"credentials_url"
] | [
{
"start": 15,
"end": 61,
"type": "credentials_url",
"value": "postgres://user:p@ssw0rd@db.internal:5432/prod"
}
] |
pii-009 | Quarterly revenue grew 12% year-over-year. | false | [] | [] |
pii-010 | Reach Bob Smith at bob@acme.io or 555-0142. | true | [
"name",
"email",
"phone"
] | [
{
"start": 6,
"end": 15,
"type": "name",
"value": "Bob Smith"
},
{
"start": 19,
"end": 30,
"type": "email",
"value": "bob@acme.io"
},
{
"start": 34,
"end": 42,
"type": "phone",
"value": "555-0142"
}
] |
pii-011 | AWS key AKIAIOSFODNN7EXAMPLE was rotated yesterday. | true | [
"aws_access_key"
] | [
{
"start": 8,
"end": 28,
"type": "aws_access_key",
"value": "AKIAIOSFODNN7EXAMPLE"
}
] |
pii-012 | Patient John Doe, MRN 0034112, was admitted on April 3. | true | [
"name",
"medical_record"
] | [
{
"start": 8,
"end": 16,
"type": "name",
"value": "John Doe"
},
{
"start": 22,
"end": 29,
"type": "medical_record",
"value": "0034112"
}
] |
pii-013 | GitHub Personal Access Token: ghp_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8 | true | [
"github_token"
] | [
{
"start": 30,
"end": 70,
"type": "github_token",
"value": "ghp_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8"
}
] |
pii-014 | The library opens at 9am on weekdays. | false | [] | [] |
pii-015 | Routing 021000021, account 1234567890. | true | [
"bank_routing",
"bank_account"
] | [
{
"start": 8,
"end": 17,
"type": "bank_routing",
"value": "021000021"
},
{
"start": 27,
"end": 37,
"type": "bank_account",
"value": "1234567890"
}
] |
pii-016 | Passport US-A12345678, expires 2030. | true | [
"passport"
] | [
{
"start": 9,
"end": 21,
"type": "passport",
"value": "US-A12345678"
}
] |
pii-017 | Drone N12345 was last seen near 37.7749, -122.4194. | true | [
"coordinates"
] | [
{
"start": 32,
"end": 50,
"type": "coordinates",
"value": "37.7749, -122.4194"
}
] |
pii-018 | We use Python 3.12 in production. | false | [] | [] |
pii-019 | Slack token xoxb-1234567890-abcdefghij was leaked. | true | [
"slack_token"
] | [
{
"start": 12,
"end": 38,
"type": "slack_token",
"value": "xoxb-1234567890-abcdefghij"
}
] |
pii-020 | User session: sk_live_51HabCdEfGhIjKlMnOpQrStUvWx | true | [
"stripe_key"
] | [
{
"start": 14,
"end": 49,
"type": "stripe_key",
"value": "sk_live_51HabCdEfGhIjKlMnOpQrStUvWx"
}
] |
pii-021 | alice@example.com signed up; user-id 551, plan=pro | true | [
"email"
] | [
{
"start": 0,
"end": 17,
"type": "email",
"value": "alice@example.com"
}
] |
pii-022 | MAC address 00:1A:2B:3C:4D:5E was deauthenticated. | true | [
"mac_address"
] | [
{
"start": 12,
"end": 29,
"type": "mac_address",
"value": "00:1A:2B:3C:4D:5E"
}
] |
pii-023 | Monitoring at IP 192.168.1.1, gateway internal only. | true | [
"ip_address"
] | [
{
"start": 17,
"end": 28,
"type": "ip_address",
"value": "192.168.1.1"
}
] |
pii-024 | We shipped v0.1.0 last week — small library, big help. | false | [] | [] |
pii-025 | Auth header: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NSJ9.signature | true | [
"jwt"
] | [
{
"start": 20,
"end": 71,
"type": "jwt",
"value": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NSJ9.signature"
}
] |
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": "alice@example.com"}
]
}
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.
- Downloads last month
- 78