Skip to main content

DLP test cases

Test any DLP in an afternoon. Paste, upload, prompt, verify.

A free, synthetic set of DLP test cases: personal data, payment data, secrets, health records and confidential IP, each with lookalikes that should stay quiet. Plus the two things pattern-based DLP was never built to catch: AI prompts and insider behavior.

42 text cases and 6 behavioral scenarios. Every value is invented or a vendor-published test value (card network test numbers, AWS and Stripe documentation keys). Nothing identifies a real person or opens anything. CC BY 4.0.

Method

Four channels, one scorecard

Run every case through each channel your policy claims to cover. Use a sandbox tenant and a test user. Record what fired, what it was attributed to, and how long it took to reach a person.

  1. 1

    Email and chat

    Send each sample from the test user to an external address and post it in a public channel. Note which messages were blocked, flagged, or passed.

  2. 2

    Files and shares

    Save each sample into a document, upload it to a shared drive, then share the link externally. The share, not the upload, is usually the gap.

  3. 3

    AI prompts

    Paste the AI prompt cases into a sanctioned assistant, then a personal account on a managed browser, then an agent. Most tools pass only the first.

  4. 4

    Behavior

    Run the insider risk scenarios. There is no string to match, so this is the test of whether the tool reasons over identity, baseline and destination.

PII

Personal data

Names, government IDs and contact details. A detector should fire on the identifiers, not on every nine-digit number it meets.

pii-01Should fire
Mara Delacroix, SSN 219-09-9999, DOB 04/12/1981, 1420 Juniper Court, Boise, ID 83702

US Social Security number with a name and address

pii-02Should fire
Driver license: CA DL D1234567, expires 2029-06-30, holder Tobias Reinholt

State driver license number next to a name

pii-03Should fire
Passport no. 536772104 (USA), issued 2022-03-15, Priya Venkataraman

US passport number with a name

pii-04Should fire
name,email,phone,ssn
Jonah Whitfield,jonah.whitfield@example.com,+1 208 555 0143,078-05-1120
Elena Marsh,elena.marsh@example.com,+1 415 555 0199,219-09-9999

Two-row CSV export with SSNs; the shape of a bulk leak

pii-n1Should not fire
Order SO-219099999 shipped 09/12, tracking 1Z 999 AA1 01 2345 6784

A nine-digit order number and a UPS tracking number, not an SSN

pii-n2Should not fire
Call us at 219-099-9999 or visit 1420 Juniper Court, Boise

A phone number in the same XXX-XXX-XXXX shape, with a business address

pii-n3Should not fire
Employee ID 000123456, cost center 4100, badge 78-05-1120

Internal IDs that look like SSN fragments

PCI

Payment and banking

Card numbers, bank accounts and routing codes. The positives all pass Luhn or checksum validation; the lookalikes fail it.

pci-01Should fire
Visa 4111 1111 1111 1111, exp 09/28, CVV 123, cardholder Mara Delacroix

Visa test card number, Luhn-valid, with expiry and CVV

pci-02Should fire
Mastercard 5555555555554444 exp 11/27

Mastercard test number without spaces

pci-03Should fire
Amex 3782 822463 10005, exp 03/29

American Express test number, 15 digits

pci-04Should fire
Routing 110000000, account 000123456789, wire to Mara Delacroix

US ABA routing number with an account number

pci-05Should fire
IBAN GB82 WEST 1234 5698 7654 32, BIC DEUTDEFF

IBAN with a valid check digit plus a SWIFT/BIC code

pci-n1Should not fire
4111 1111 1111 1112

One digit off the Visa test card: fails Luhn, should not fire

pci-n2Should not fire
Invoice 5555-5555-5555-4445 due 11/27

Luhn-invalid number formatted like a card

pci-n3Should not fire
ISBN 978-0-306-40615-7, SKU 110000000-A

A book ISBN and a SKU that contains a routing-shaped number

Secrets

API keys, tokens and credentials

Cloud keys, personal access tokens, private keys and passwords. These are published example or test values; none are live.

sec-01Should fire
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

AWS access key pair from the AWS documentation examples

sec-02Should fire
GITHUB_TOKEN=ghp_00000000000000000000000000000EXAMPLE

GitHub personal access token shape (ghp_ + 36 characters)

sec-03Should fire
SLACK_BOT_TOKEN=xoxb-000000000000-000000000000-EXAMPLExEXAMPLExEXAMPLE

Slack bot token shape

sec-04Should fire
STRIPE_KEY=sk_test_4eC39HqLyjWDarjtT1zdp7dc

Stripe test-mode secret key from the Stripe docs

sec-05Should fire
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLE
-----END RSA PRIVATE KEY-----

PEM private key header and footer

sec-06Should fire
db_password = "Winter2026!-EXAMPLE"
connection = "postgres://app:Winter2026!-EXAMPLE@db.corp.example.internal:5432/prod"

Password assignment and a connection string with embedded credentials

sec-n1Should not fire
commit 9fceb02d0ae598e95dc970b74767f19372d61af8

A git commit SHA, 40 hex characters

sec-n2Should not fire
request_id: 3f2504e0-4f89-11d3-9a0c-0305e82c3301

A UUID

sec-n3Should not fire
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==

A base64 image fragment, high entropy, not a secret

PHI

Protected health information

Patient records combine an identifier with a condition, medication or visit. The negatives mention health without a patient.

phi-01Should fire
Patient: Mara Delacroix, MRN 00481516, DOB 1981-04-12
Dx: Type 2 diabetes mellitus (E11.9)
Rx: metformin 500 mg BID, next visit 2026-11-03

Medical record number, diagnosis with ICD-10 code, prescription

phi-02Should fire
Lab result for Tobias Reinholt (acct 7731-0042): HbA1c 8.2%, flagged high; forwarded to Dr. Okafor

Named lab result with an account number

phi-03Should fire
Claim 2026-HC-558120 · member ID XGH-44210-7 · CPT 99214 · Priya Venkataraman

Insurance claim with member ID and procedure code

phi-n1Should not fire
Type 2 diabetes affects about 1 in 10 US adults; metformin is the usual first-line treatment.

General health information without a patient

phi-n2Should not fire
Clinic hours: Mon to Fri 8:00 to 17:00. New patient forms are on the website.

Operational text from a clinic

IP

Source code and confidential documents

Intellectual property rarely matches a regex. Good detectors use classification labels, document markers and context.

ip-01Should fire
CONFIDENTIAL. Acme Corp board deck, Q3 FY26. Do not distribute.
Slide 7: acquisition target shortlist (Project Harbor)

Confidentiality marker plus deal language

ip-02Should fire
// internal only. do not export
func scoreRisk(u User) float64 {
	return 0.42*u.PeerDelta + 0.31*u.ExfilVolume + 0.27*u.LeaverWindow
}

Proprietary scoring logic with an internal-only header

ip-03Should fire
customers_q3.csv (12,480 rows): company, ARR, renewal_date, churn_risk

A customer list export described by its schema

ip-n1Should not fire
func add(a, b int) int { return a + b }

Trivial code, public knowledge

ip-n2Should not fire
Acme Corp today announced its Q3 results. Revenue grew 12% year over year. (press release)

Public announcement text

AI DLP

AI prompt test cases

The leak moved to the prompt box. These cases paste sensitive data into an AI assistant the way people actually do it: inside a request for help. Run each one in a sanctioned tenant, a personal account, and through an agent, and expect the same verdict every time.

ai-01Should fire
Clean up this customer export and remove duplicates:
name,email,ssn
Jonah Whitfield,jonah.whitfield@example.com,078-05-1120
Elena Marsh,elena.marsh@example.com,219-09-9999

PII pasted into a prompt

ai-02Should fire
Why does this script fail?
export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
aws s3 sync ./build s3://prod-assets

Cloud credentials in a debugging prompt

ai-03Should fire
Summarize this for the board:
CONFIDENTIAL. Acme Corp board deck, Q3 FY26. Slide 7: acquisition target shortlist (Project Harbor): Northwind Traders, Fabrikam Systems.

Confidential document pasted for summarization

ai-04Should fire
Draft a reply to this patient. Mara Delacroix, MRN 00481516, HbA1c 8.2%, we are increasing metformin to 1000 mg BID.

PHI in a drafting prompt

ai-05Should fire
Upload: customers_q3.csv (12,480 rows) then: "Which accounts are most likely to churn next quarter?"

Bulk file upload to an AI assistant, then a question over it

ai-06Should not fire
Explain the Luhn algorithm and show how it validates a card number in Python.

A question about card validation with no card number in it

ai-07Should not fire
Rewrite this status update: "Order SO-219099999 shipped on time, tracking 1Z 999 AA1 01 2345 6784."

Lookalike numbers inside ordinary business text

ai-08Should not fire
What is the difference between an IBAN and a SWIFT code?

Finance vocabulary without any identifier

Scorecard

Expected results

Score one point for each case that behaves as expected. A detector that fires on the lookalikes is trading precision for recall, and you will pay for it in alert volume.

CaseCategoryExpectedWhat it tests
pii-01PIIFireUS Social Security number with a name and address
pii-02PIIFireState driver license number next to a name
pii-03PIIFireUS passport number with a name
pii-04PIIFireTwo-row CSV export with SSNs; the shape of a bulk leak
pii-n1PIIStay quietA nine-digit order number and a UPS tracking number, not an SSN
pii-n2PIIStay quietA phone number in the same XXX-XXX-XXXX shape, with a business address
pii-n3PIIStay quietInternal IDs that look like SSN fragments
pci-01PCIFireVisa test card number, Luhn-valid, with expiry and CVV
pci-02PCIFireMastercard test number without spaces
pci-03PCIFireAmerican Express test number, 15 digits
pci-04PCIFireUS ABA routing number with an account number
pci-05PCIFireIBAN with a valid check digit plus a SWIFT/BIC code
pci-n1PCIStay quietOne digit off the Visa test card: fails Luhn, should not fire
pci-n2PCIStay quietLuhn-invalid number formatted like a card
pci-n3PCIStay quietA book ISBN and a SKU that contains a routing-shaped number
sec-01SecretsFireAWS access key pair from the AWS documentation examples
sec-02SecretsFireGitHub personal access token shape (ghp_ + 36 characters)
sec-03SecretsFireSlack bot token shape
sec-04SecretsFireStripe test-mode secret key from the Stripe docs
sec-05SecretsFirePEM private key header and footer
sec-06SecretsFirePassword assignment and a connection string with embedded credentials
sec-n1SecretsStay quietA git commit SHA, 40 hex characters
sec-n2SecretsStay quietA UUID
sec-n3SecretsStay quietA base64 image fragment, high entropy, not a secret
phi-01PHIFireMedical record number, diagnosis with ICD-10 code, prescription
phi-02PHIFireNamed lab result with an account number
phi-03PHIFireInsurance claim with member ID and procedure code
phi-n1PHIStay quietGeneral health information without a patient
phi-n2PHIStay quietOperational text from a clinic
ip-01IPFireConfidentiality marker plus deal language
ip-02IPFireProprietary scoring logic with an internal-only header
ip-03IPFireA customer list export described by its schema
ip-n1IPStay quietTrivial code, public knowledge
ip-n2IPStay quietPublic announcement text
ai-01AI promptFirePII pasted into a prompt
ai-02AI promptFireCloud credentials in a debugging prompt
ai-03AI promptFireConfidential document pasted for summarization
ai-04AI promptFirePHI in a drafting prompt
ai-05AI promptFireBulk file upload to an AI assistant, then a question over it
ai-06AI promptStay quietA question about card validation with no card number in it
ai-07AI promptStay quietLookalike numbers inside ordinary business text
ai-08AI promptStay quietFinance vocabulary without any identifier

Insider risk

Scenarios with no string to match

Most data leaves inside ordinary files, through ordinary actions, by people who are allowed to do them. These scenarios test the tools that claim to see that: insider risk management, UEBA, and AI DLP.

ir-01 Departing employee stages data

Run it. In a sandbox tenant: mark a test user as a leaver in the HR system (or add them to a leavers group). From that user, download 200+ files from a shared drive over an hour, then upload three of them to a personal cloud drive.

Expect. No single file is sensitive; the pattern is. Expect a case that ties the leaver status, the volume spike against the user’s own baseline, and the destination together.

ir-02 Forward to a personal account

Run it. From the test user, set up an auto-forward rule to a personal email address, then send one message containing pci-01.

Expect. The rule creation is the early signal. Expect the forward rule to appear before the first forwarded message does.

ir-03 Personal AI account on a corporate device

Run it. On a managed browser, sign in to a personal ChatGPT or Claude account and paste ai-01.

Expect. Pattern DLP that only inspects sanctioned tenants misses this. Expect the paste to be attributed to the person, the personal account, and the data class.

ir-04 OAuth grant to an AI assistant

Run it. As the test user, authorize a third-party AI meeting or inbox assistant with read access to mail and files.

Expect. Nothing was uploaded; standing access was granted. Expect the grant to be surfaced with the scopes and the app’s risk, with a one-click revoke.

ir-05 Agent acting on a person’s behalf

Run it. Run an AI agent (a coding agent or an MCP-connected assistant) under the test user, and have it read a file containing ip-03 and post it to an external endpoint.

Expect. The actor is an agent, the accountable party is a person. Expect the action to be attributed to both, and the destination to be visible.

ir-06 Same paste, different intent

Run it. Have a test user in Finance paste pci-04 into the sanctioned ERP support chat, and a test user in Engineering paste the same text into a personal AI account.

Expect. A content rule treats both identically. A behavioral system should rate the second far higher: wrong role, wrong destination, wrong account.

FAQ

Common questions

Is any of this data real?

No. Names, addresses and record numbers are invented. Card, bank and key values are the published test values from the card networks, Stripe, AWS and the IBAN registry, which exist so that systems can be tested without touching a real account. Nothing on this page identifies a real person or unlocks anything.

Which DLP tools can I test with these cases?

Any of them. The samples are plain text, so they work against Microsoft Purview, Google Workspace DLP, Netskope, Zscaler, Nightfall, Cyberhaven, Code42 Incydr, Proofpoint, and Anzenna. Paste them into email, chat, a shared document, a file upload, or an AI prompt, and compare what each tool reports against the expected-results table.

How do I test AI DLP specifically?

Use the AI prompt cases. Paste each one into a sanctioned AI assistant, then into a personal account of the same assistant on a managed browser, then hand one to an AI agent. A tool that only inspects the sanctioned tenant will pass the first run and miss the other two. The expected result for ai-01 to ai-05 is a finding attributed to the person, the account, and the data class; ai-06 to ai-08 should stay quiet.

Why include samples that should not fire?

Because a detector that fires on every nine-digit number is useless in production. Lookalikes measure precision. Count every negative that fires as a false positive, and expect that rate across your real traffic. Alert fatigue is the reason most DLP deployments end up in monitor-only mode.

What do the insider risk scenarios test that the text samples do not?

Behavior. A departing employee downloading 200 ordinary files, an auto-forward rule, an OAuth grant to an AI assistant, or an agent acting under a person’s identity contain no sensitive string to match. Pattern-based DLP cannot see them by design. These scenarios test whether a tool reasons over identity, baseline and destination, which is what insider risk management and UEBA are for.

Can I add my own cases?

Yes. The CSV has one row per case with an id, category, expected result and the sample text. Add rows for your own data classes, such as internal project codenames or customer identifiers, and keep a negative lookalike for each one.

Run the whole set on your data

Anzenna scores every case above, including the six scenarios, without an endpoint agent. Thirty minutes with a practitioner.

Request a demo