Hardening x402: PII-Safe Agentic Payments via Pre-Execution Metadata Filtering
Paper • 2604.11430 • Published
id stringlengths 9 9 | category stringclasses 7
values | resource_url stringclasses 203
values | description stringclasses 109
values | reason stringclasses 64
values | pii_positive bool 2
classes | labels listlengths 0 2 |
|---|---|---|---|---|---|---|
syn-00000 | media | https://cdn.example.com/v1/stream/public/video123 | CDN asset delivery | false | [] | |
syn-00001 | medical | https://ehr.example.com/api/v1/schedules | Appointment scheduling | false | [] | |
syn-00002 | media | https://cdn.example.com/v1/stream/public/video123 | Public media stream | false | [] | |
syn-00003 | financial | https://finance.example.com/v1/instruments/public | FX rate lookup | false | [] | |
syn-00004 | media | https://cdn.example.com/v1/stream/public/video123 | CDN asset delivery | false | [] | |
syn-00005 | data_access | https://api.example.com/v1/users/Aisha Patel/profile | Record retrieval for patient SSN 312 45 6789 | request_id=abc123 | true | [
{
"field": "resource_url",
"entity_type": "PERSON",
"start": 33,
"end": 44,
"original_text": "Aisha Patel",
"surface_form": "full_name"
},
{
"field": "description",
"entity_type": "US_SSN",
"start": 33,
"end": 44,
"original_text": "312 45 6789",
"surface_form": "s... |
syn-00006 | financial | https://api.example.com/v1/fx/rates | Card limit check | false | [] | |
syn-00007 | medical | https://labs.example.com/api/v1/panels/lipid | EHR access | false | [] | |
syn-00008 | generic | https://api.example.com/v2/catalog/items | Service request | false | [] | |
syn-00009 | data_access | https://storage.example.com/v1/buckets/public/objects/file.csv | User data export | request_id=abc123 | false | [] |
syn-00010 | data_access | https://storage.example.com/v1/buckets/public/objects/file.csv | Public dataset access | ssn=312456789 | true | [
{
"field": "reason",
"entity_type": "US_SSN",
"start": 4,
"end": 13,
"original_text": "312456789",
"surface_form": "no_sep"
}
] |
syn-00011 | compute | https://compute.example.com/v1/instances/inst-abc123 | HPC resource request | false | [] | |
syn-00012 | media | Public media stream | false | [] | ||
syn-00013 | financial | https://finance.example.com/v1/instruments/public | Card limit check | false | [] | |
syn-00014 | data_access | https://api.example.com/v1/records?ssn=421-67-8910 | User data export | request_id=abc123 | true | [
{
"field": "resource_url",
"entity_type": "US_SSN",
"start": 39,
"end": 50,
"original_text": "421-67-8910",
"surface_form": "dashes"
}
] |
syn-00015 | data_access | https://data.example.com/public/datasets/open-data | Public dataset access | false | [] | |
syn-00016 | financial | https://payments.example.com/v1/fees/schedule | Card limit check | false | [] | |
syn-00017 | medical | https://ehr.example.com/api/v1/schedules | Medical records for maria-garcia | clinic_ref=CL-001 | true | [
{
"field": "description",
"entity_type": "PERSON",
"start": 20,
"end": 32,
"original_text": "maria-garcia",
"surface_form": "slug"
}
] |
syn-00018 | data_access | https://data.example.com/public/datasets/open-data | User data export | false | [] | |
syn-00019 | generic | https://api.example.com/v2/users/usr_abc123 | Service request | false | [] | |
syn-00020 | compute | https://compute.example.com/v1/instances/inst-abc123 | HPC resource request | false | [] | |
syn-00021 | data_access | https://storage.example.com/users/bob.jones@corp.io/exports | User data export | true | [
{
"field": "resource_url",
"entity_type": "EMAIL_ADDRESS",
"start": 34,
"end": 51,
"original_text": "bob.jones@corp.io",
"surface_form": "bare"
}
] | |
syn-00022 | data_access | https://data.example.com/public/datasets/open-data | Public dataset access | request_id=abc123 | false | [] |
syn-00023 | medical | https://health.example.com/api/appointments | EHR access | false | [] | |
syn-00024 | financial | https://finance.example.com/v1/instruments/public | Card limit check | account=DE89370400440532013000 | true | [
{
"field": "reason",
"entity_type": "IBAN_CODE",
"start": 8,
"end": 30,
"original_text": "DE89370400440532013000",
"surface_form": "de"
}
] |
syn-00025 | financial | https://finance.example.com/v1/instruments/public | Card limit check | false | [] | |
syn-00026 | data_access | https://data.example.com/public/datasets/open-data | User data export | request_id=abc123 | false | [] |
syn-00027 | financial | https://api.example.com/v1/fx/rates | Account balance query for IBAN NL91ABNA0417164300 | true | [
{
"field": "description",
"entity_type": "IBAN_CODE",
"start": 31,
"end": 49,
"original_text": "NL91ABNA0417164300",
"surface_form": "nl"
}
] | |
syn-00028 | ai_inference | https://api.example.com/v1/completions | Embedding generation | false | [] | |
syn-00029 | compute | https://compute.example.com/v1/gpu/inventory | HPC resource request | job_ref=job-abc | false | [] |
syn-00030 | media | CDN asset delivery | user=user123@example.com | true | [
{
"field": "reason",
"entity_type": "EMAIL_ADDRESS",
"start": 5,
"end": 24,
"original_text": "user123@example.com",
"surface_form": "numeric_local"
}
] | |
syn-00031 | compute | https://hpc.example.com/v1/queue/default | Compute job submission | job_ref=job-abc | false | [] |
syn-00032 | generic | https://api.example.com/v1/status | API resource access | request_id=req-999 | false | [] |
syn-00033 | compute | https://jobs.example.com/v1/jobs/job-7a3f2c/status | HPC resource request | false | [] | |
syn-00034 | ai_inference | https://ai.example.com/v1/models/gpt-4 | LLM completion task | agent_id=agent-v1 | false | [] |
syn-00035 | medical | https://health.example.com/api/appointments | Medical records for Garcia,Maria | true | [
{
"field": "description",
"entity_type": "PERSON",
"start": 20,
"end": 32,
"original_text": "Garcia,Maria",
"surface_form": "last_first"
}
] | |
syn-00036 | compute | https://compute.example.com/v1/instances/inst-abc123 | Compute job submission | job_ref=job-abc | false | [] |
syn-00037 | media | CDN asset delivery | false | [] | ||
syn-00038 | financial | https://api.example.com/v1/fx/rates | FX rate lookup | account=DE89370400440532013000 | true | [
{
"field": "reason",
"entity_type": "IBAN_CODE",
"start": 8,
"end": 30,
"original_text": "DE89370400440532013000",
"surface_form": "de"
}
] |
syn-00039 | media | https://cdn.example.com/v1/stream/public/video123 | CDN asset delivery | false | [] | |
syn-00040 | generic | https://api.example.com/v2/catalog/items | Data retrieval | request_id=req-999 | false | [] |
syn-00041 | financial | https://api.example.com/v1/fx/rates | FX rate lookup | false | [] | |
syn-00042 | ai_inference | https://ai.example.com/v1/models/llm-7b/invoke?user=john_smith | AI inference request for user IRIS@DOMAIN.COM | true | [
{
"field": "resource_url",
"entity_type": "PERSON",
"start": 52,
"end": 62,
"original_text": "john_smith",
"surface_form": "underscore"
},
{
"field": "description",
"entity_type": "EMAIL_ADDRESS",
"start": 30,
"end": 45,
"original_text": "IRIS@DOMAIN.COM",
"surfac... | |
syn-00043 | ai_inference | https://inference.example.com/v1/embed | Embedding generation | false | [] | |
syn-00044 | data_access | https://data.example.com/public/datasets/open-data | Record retrieval for patient SSN 312-45-6789 | true | [
{
"field": "description",
"entity_type": "US_SSN",
"start": 33,
"end": 44,
"original_text": "312-45-6789",
"surface_form": "dashes"
}
] | |
syn-00045 | media | https://cdn.example.com/v1/stream/public/video123 | Public media stream | false | [] | |
syn-00046 | financial | https://payments.example.com/cards/371449635398431/limit | FX rate lookup | true | [
{
"field": "resource_url",
"entity_type": "CREDIT_CARD",
"start": 35,
"end": 50,
"original_text": "371449635398431",
"surface_form": "amex"
}
] | |
syn-00047 | medical | https://labs.example.com/api/v1/panels/lipid | EHR access | clinic_ref=CL-001 | false | [] |
syn-00048 | financial | https://payments.example.com/v1/fees/schedule | FX rate lookup | false | [] | |
syn-00049 | compute | https://compute.example.com/v1/gpu/inventory | Compute job submission | false | [] | |
syn-00050 | compute | https://hpc.example.com/v1/queue/default | HPC resource request | owner=bob.jones@corp.io | true | [
{
"field": "reason",
"entity_type": "EMAIL_ADDRESS",
"start": 6,
"end": 23,
"original_text": "bob.jones@corp.io",
"surface_form": "bare"
}
] |
syn-00051 | financial | https://finance.example.com/v1/instruments/public | Account balance query for IBAN NL91ABNA0417164300 | true | [
{
"field": "description",
"entity_type": "IBAN_CODE",
"start": 31,
"end": 49,
"original_text": "NL91ABNA0417164300",
"surface_form": "nl"
}
] | |
syn-00052 | financial | https://finance.example.com/v1/instruments/public | FX rate lookup | account=GB29NWBK60161331926819 | true | [
{
"field": "reason",
"entity_type": "IBAN_CODE",
"start": 8,
"end": 30,
"original_text": "GB29NWBK60161331926819",
"surface_form": "gb"
}
] |
syn-00053 | compute | https://hpc.example.com/v1/queue/default | HPC resource request | job_ref=job-abc | false | [] |
syn-00054 | media | https://assets.example.com/private/john_smith/gallery | Public media stream | true | [
{
"field": "resource_url",
"entity_type": "PERSON",
"start": 35,
"end": 45,
"original_text": "john_smith",
"surface_form": "underscore"
}
] | |
syn-00055 | financial | https://payments.example.com/v1/fees/schedule | Account balance query for IBAN GB29NWBK60161331926819 | true | [
{
"field": "description",
"entity_type": "IBAN_CODE",
"start": 31,
"end": 53,
"original_text": "GB29NWBK60161331926819",
"surface_form": "gb"
}
] | |
syn-00056 | ai_inference | https://inference.example.com/v1/embed | LLM completion task | agent_id=agent-v1 | false | [] |
syn-00057 | data_access | https://api.example.com/v2/items/42 | User data export | request_id=abc123 | false | [] |
syn-00058 | financial | https://payments.example.com/v1/fees/schedule | Account balance query for IBAN GB29NWBK60161331926819 | true | [
{
"field": "description",
"entity_type": "IBAN_CODE",
"start": 31,
"end": 53,
"original_text": "GB29NWBK60161331926819",
"surface_form": "gb"
}
] | |
syn-00059 | media | https://cdn.example.com/v1/stream/public/video123 | CDN asset delivery | false | [] | |
syn-00060 | media | CDN asset delivery | false | [] | ||
syn-00061 | ai_inference | https://ai.example.com/v1/models/gpt-4 | Embedding generation | user=carol_92@health-records.org | true | [
{
"field": "reason",
"entity_type": "EMAIL_ADDRESS",
"start": 5,
"end": 32,
"original_text": "carol_92@health-records.org",
"surface_form": "bare"
}
] |
syn-00062 | medical | https://labs.example.com/api/v1/panels/lipid | EHR access | false | [] | |
syn-00063 | generic | https://api.example.com/health | Data retrieval | false | [] | |
syn-00064 | financial | https://finance.example.com/v1/instruments/public | FX rate lookup | false | [] | |
syn-00065 | generic | https://api.example.com/v2/catalog/items | Data retrieval | false | [] | |
syn-00066 | financial | https://api.example.com/v1/fx/rates | Account balance query for IBAN DE89370400440532013000 | true | [
{
"field": "description",
"entity_type": "IBAN_CODE",
"start": 31,
"end": 53,
"original_text": "DE89370400440532013000",
"surface_form": "de"
}
] | |
syn-00067 | media | https://media.example.com/public/feed/trending | CDN asset delivery | false | [] | |
syn-00068 | financial | https://api.example.com/v1/fx/rates | FX rate lookup | false | [] | |
syn-00069 | medical | https://ehr.example.com/api/v1/schedules | EHR access | false | [] | |
syn-00070 | ai_inference | https://api.example.com/v1/tokenize | LLM completion task | agent_id=agent-v1 | false | [] |
syn-00071 | data_access | https://api.example.com/v2/items/42 | Public dataset access | request_id=abc123 | false | [] |
syn-00072 | ai_inference | https://ai.example.com/v1/models/gpt-4 | Embedding generation | false | [] | |
syn-00073 | financial | https://payments.example.com/v1/fees/schedule | FX rate lookup | false | [] | |
syn-00074 | medical | https://ehr.example.com/api/v1/schedules | EHR access | clinic_ref=CL-001 | false | [] |
syn-00075 | financial | https://api.example.com/v1/fx/rates | FX rate lookup | false | [] | |
syn-00076 | data_access | https://data.example.com/public/datasets/open-data | Public dataset access | false | [] | |
syn-00077 | generic | https://api.example.com/v2/catalog/items | Data retrieval | request_id=req-999 | false | [] |
syn-00078 | generic | https://api.example.com/v2/search?q=openapi | Service request | false | [] | |
syn-00079 | medical | https://health.example.com/patient/J.Smith/records | Medical records for Aisha | true | [
{
"field": "resource_url",
"entity_type": "PERSON",
"start": 35,
"end": 42,
"original_text": "J.Smith",
"surface_form": "abbreviated"
},
{
"field": "description",
"entity_type": "PERSON",
"start": 20,
"end": 25,
"original_text": "Aisha",
"surface_form": "first_onl... | |
syn-00080 | media | CDN asset delivery | user=carol_92@health-records.org | true | [
{
"field": "reason",
"entity_type": "EMAIL_ADDRESS",
"start": 5,
"end": 32,
"original_text": "carol_92@health-records.org",
"surface_form": "bare"
}
] | |
syn-00081 | data_access | https://data.example.com/public/datasets/open-data | Public dataset access | request_id=abc123 | false | [] |
syn-00082 | data_access | https://storage.example.com/v1/buckets/public/objects/file.csv | User data export | request_id=abc123 | false | [] |
syn-00083 | data_access | https://storage.example.com/v1/buckets/public/objects/file.csv | User data export | ssn=312 45 6789 | true | [
{
"field": "reason",
"entity_type": "US_SSN",
"start": 4,
"end": 15,
"original_text": "312 45 6789",
"surface_form": "spaces"
}
] |
syn-00084 | generic | https://api.example.com/health | API resource access | false | [] | |
syn-00085 | media | https://media.example.com/content/Maria Garcia/feed | CDN asset delivery | true | [
{
"field": "resource_url",
"entity_type": "PERSON",
"start": 34,
"end": 46,
"original_text": "Maria Garcia",
"surface_form": "full_name"
}
] | |
syn-00086 | data_access | https://data.example.com/datasets/Garcia,Maria/private | Public dataset access | true | [
{
"field": "resource_url",
"entity_type": "PERSON",
"start": 34,
"end": 46,
"original_text": "Garcia,Maria",
"surface_form": "last_first"
}
] | |
syn-00087 | media | CDN asset delivery | false | [] | ||
syn-00088 | financial | https://finance.example.com/v1/instruments/public | FX rate lookup | false | [] | |
syn-00089 | financial | https://finance.example.com/transfers?from=NL91ABNA0417164300&amount=100 | Account balance query for IBAN GB29NWBK60161331926819 | true | [
{
"field": "resource_url",
"entity_type": "IBAN_CODE",
"start": 43,
"end": 61,
"original_text": "NL91ABNA0417164300",
"surface_form": "nl"
},
{
"field": "description",
"entity_type": "IBAN_CODE",
"start": 31,
"end": 53,
"original_text": "GB29NWBK60161331926819",
"... | |
syn-00090 | media | Public media stream | false | [] | ||
syn-00091 | financial | https://payments.example.com/v1/fees/schedule | FX rate lookup | false | [] | |
syn-00092 | data_access | https://data.example.com/public/datasets/open-data | User data export | false | [] | |
syn-00093 | compute | https://hpc.example.com/v1/queue/default | Compute job submission | false | [] | |
syn-00094 | medical | https://ehr.example.com/records/312 45 6789/history | Lab results for patient maria-garcia | true | [
{
"field": "resource_url",
"entity_type": "US_SSN",
"start": 32,
"end": 43,
"original_text": "312 45 6789",
"surface_form": "spaces"
},
{
"field": "description",
"entity_type": "PERSON",
"start": 24,
"end": 36,
"original_text": "maria-garcia",
"surface_form": "slu... | |
syn-00095 | media | https://assets.example.com/private/Garcia,Maria/gallery | Public media stream | user=frank@data.example.net | true | [
{
"field": "resource_url",
"entity_type": "PERSON",
"start": 35,
"end": 47,
"original_text": "Garcia,Maria",
"surface_form": "last_first"
},
{
"field": "reason",
"entity_type": "EMAIL_ADDRESS",
"start": 5,
"end": 27,
"original_text": "frank@data.example.net",
"sur... |
syn-00096 | financial | https://payments.example.com/v1/fees/schedule | Card limit check | false | [] | |
syn-00097 | generic | https://api.example.com/v2/catalog/items | Data retrieval | request_id=req-999 | false | [] |
syn-00098 | data_access | https://data.example.com/public/datasets/open-data | Public dataset access | request_id=abc123 | false | [] |
syn-00099 | ai_inference | https://ai.example.com/v1/models/gpt-4 | LLM completion task | false | [] |
Synthetic labelled corpus of 2,000 x402 payment metadata triples for PII filter evaluation. Released alongside the paper "Hardening x402: Privacy-Preserving Agentic Payments via Pre-Execution Metadata Filtering".
Each record represents one x402 payment metadata triple (resource_url, description, reason)
drawn from seven API categories. 36% of samples contain at least one synthetic PII entity
injected into one of the three fields, with ground-truth span labels.
| Field | Type | Description |
|---|---|---|
id |
string | Sample identifier (syn-NNNNN) |
category |
string | API category (media, medical, financial, data_access, generic, compute, ai_inference) |
resource_url |
string | Synthetic x402 resource URL |
description |
string | Payment description field |
reason |
string | Payment reason field |
pii_positive |
bool | true if any PII entity is present |
labels |
list | Ground-truth entity annotations (see below) |
{
"entity_type": "EMAIL_ADDRESS",
"field": "description",
"start": 24,
"end": 45,
"value": "<synthetic value>"
}
Entity types: PERSON, EMAIL_ADDRESS, US_SSN, IBAN_CODE, CREDIT_CARD, PHONE_NUMBER.
| Split | Samples |
|---|---|
| train (all) | 2,000 |
| Entity type | Count | Share |
|---|---|---|
| PERSON | 321 | 36.7% |
| EMAIL_ADDRESS | 313 | 35.8% |
| IBAN_CODE | 96 | 11.0% |
| US_SSN | 85 | 9.7% |
| PHONE_NUMBER | 32 | 3.7% |
| CREDIT_CARD | 28 | 3.2% |
from datasets import load_dataset
ds = load_dataset("vstantch/x402-pii-corpus")
print(ds["train"][0])
@misc{stantchev2026hardeningx402,
title = {Hardening x402: Privacy-Preserving Agentic Payments via Pre-Execution Metadata Filtering},
author = {Stantchev, Vladimir},
year = {2026},
eprint = {2604.11430},
archivePrefix = {arXiv},
primaryClass = {cs.CR},
}
Corpus data also archived at IEEE DataPort:
@misc{stantchev2026dataset,
author = {Stantchev, Vladimir},
title = {Hardening x402: PII Filter Corpus, Sweep Results, and Live Ecosystem Data},
year = {2026},
publisher = {IEEE DataPort},
doi = {10.21227/kpsz-nq73},
howpublished = {IEEE DataPort, \url{https://doi.org/10.21227/kpsz-nq73}},
}