Skip to content

PII Scanner and Vault

Detects and pseudonymizes personally identifiable information, with each entity class tuned on its own.

Runs on

Chat inbound and chat outbound. The same entity classes screen tool traffic, see PII in Tool Traffic.

Entities

The table lists the classes in groups; a chip above it selects or clears a whole group.

The classes marked Beta and the country scope are new in 1.28.1. Their formats, context words and scores can still change.

Group Class Detects Scored or match-only
Contact and personal Email Address Email addresses match-only
Contact and personal Phone Number Telephone numbers: international numbers always, national numbers of the scoped countries scored
Contact and personal Person People's names scored
Contact and personal Location Places and addresses scored
Contact and personal Date Dates and timestamps match-only
Financial Credit Card Credit and debit card numbers scored
Financial IBAN International bank account numbers match-only
Financial BIC Beta. Bank identifier codes, with a context word or beside an IBAN scored
Financial Crypto Bitcoin addresses (legacy and bc1) with a valid checksum match-only
Financial VAT ID Beta. VAT identifiers with their country prefix (DE, ATU, FR, IT, CHE) match-only
Secrets API Key Beta. Provider API keys by their published format (AWS, GitHub, GitLab, Slack, Stripe, Google, OpenAI, Anthropic, npm, PyPI, Hugging Face, MATVIS) match-only
Secrets Private Key Beta. PEM, OpenSSH and PGP private key blocks match-only
Secrets Access Token Beta. JSON Web Tokens and bearer tokens match-only
Secrets Password Beta. A password or secret assigned to a credential keyword, or in a connection string scored
Government identifiers Tax ID Beta. DE Steuer-ID, AT Steuernummer, FR numéro fiscal, IT codice fiscale scored
Government identifiers Social Security Number Beta. DE Rentenversicherungsnummer, AT SV-Nummer, CH AHV number, FR NIR scored
Government identifiers Health Insurance Number Beta. DE Krankenversichertennummer, CH and IT health insurance card numbers scored
Government identifiers Passport Number Beta. DE, AT, CH, FR, IT passport numbers, with a context word scored
Government identifiers Identity Card Number Beta. DE, CH, FR, IT identity card numbers, with a context word scored
Government identifiers Driving Licence Number Beta. DE, AT, FR, IT driving licence numbers, with a context word scored
Network and device URL Web addresses (an email address is not a URL) match-only
Network and device IP Address IPv4 and IPv6 addresses scored
Network and device MAC Address Beta. Hardware addresses match-only
Network and device IMEI Beta. Device identifiers, with a context word scored

Country scope (Beta). A country-aware class (Phone Number, VAT ID, Tax ID, Social Security Number, Health Insurance Number, Passport Number, Identity Card Number, Driving Licence Number) offers a country picker. Pick the countries whose formats the class should detect; an empty picker means every country the class supports. An international phone number is detected whatever the scope.

Context words. A format that ordinary numbers resemble (a nine-digit tax number, a passport number) is detected only next to a word that names it, in German, French, Italian or English ("Steuer-ID", "numéro fiscal", "passaporto", "passport number"). A format with a fixed prefix or a check digit over a structure ordinary numbers rarely have (an AHV number, a codice fiscale, a VAT ID) is detected on its own.

Per entity

Each entity class you enable carries its own policy line, so you can be strict about card numbers and relaxed about locations inside the same configuration. A scored class has its own Block from severity slider. A match-only class shows Blocks on detection instead: it either matches or it does not, and an enabled match-only class blocks whatever the slider would say.

Entity list with a per-entity severity policy line and the PII Vault toggle.

Ignore well-known public names

The PII check has a built-in list of well-known places and public figures that it does not flag as Location or Person. The switch Ignore well-known public names (recommended) at the top of the PII dialog turns that list off for this configuration. It is on by default. Switched off, a place or a public figure is flagged, blocked or masked like any other detection of its class. The card reads Public names ignored: On or Off. The switch is on chat inbound, chat outbound, tool and ICAP configurations.

Allowlist

The Allowlist tab of the PII dialog holds patterns of your own, each with a name and an on/off switch. PII inside text a pattern matches is not flagged, and neither is a detected value that matches a pattern: a counterparty's name your team writes every day, a reference the Email Address class keeps catching. The screening result reports it under handling as allowlisted.

The allowlist affects the PII check only. Content, Language, Prompt Injection and the Custom Filter read the full text. A pattern that does not compile or that matches empty text is refused.

Pseudonymization

With Pseudonymization enabled on a chat inbound configuration, detected values are replaced with tokens before the prompt reaches the model. The original values stay in the PII Vault. On the way back, the chat outbound configuration restores them with De-pseudonymization, so the model never sees the data and the agent still returns a complete answer.

Before After
Hi Jane Doe, please email jane@example.com Hi PERSON_GENQTVKJAR, please email EMAIL_GYER8W39M6

A token is the entity prefix and ten characters. The same value always yields the same token in one deployment, and it cannot be reversed without the deployment's secret.

De-pseudonymization restores and nothing else: a chat outbound configuration never masks. A response whose tokens were restored and delivered reports modified: true with the restored text in content_modified.

Caution

Enabling PII on a chat outbound configuration does two things: it restores the pseudonymized values and it screens the response. A response that still contains PII can therefore be blocked. If you only want restoration, enable De-pseudonymization outbound and leave the entity types switched off.

This holds for secrets too: a restored API key is screened by an outbound API Key class and blocks the response that carries the user's own key back.

The PII dialog shows this warning while De-pseudonymization is on and a class is selected. An Allowlist entry of the outbound filter covering the restored value lets such a response through, and the exemption is on the record.

Reversible tokenization and a complete audit trail, built for GDPR and privacy-by-design requirements.