How pseudonymisation works
Custodos replaces detected personal data with placeholders before a message reaches a model, and puts the real values back only in the reply.
Pseudonymisation means that detected personal data leaves Custodos only as placeholders: the model provider reads <IBAN_1> instead of the IBAN. The mapping to the real value stays with Custodos, encrypted. This is not anonymisation, because through that mapping the data can still be linked to a person.
The protection levels
| Protection level | What is replaced | What is blocked | Uploaded images |
|---|---|---|---|
| Off (default) | nothing | nothing | allowed, unchecked |
| Standard | the six hard identifiers | nothing | allowed, unchecked |
| Strict | every category | the six hard identifiers | refused |
| Custom | what the admins set per category | hard identifiers and custom rules only | allowed or refused |
| Security mode | every category, without exception | as the protection level | refused |
The six hard identifiers are the AHV number, the German tax ID (Steuer-ID), the German and Austrian social security number, the IBAN, the card number and the UID number (including the German USt-IdNr. and the Austrian UID). Each category has one action: Ignore, Mask or Block. Blocking sits on top of masking and is only possible for the hard identifiers and custom rules; names, addresses, email addresses and phone numbers are at most replaced. Members of a group with strict data protection (on request) get Strict.
The process
- While you type, the message field already shows what was detected. The same detection runs on the server, so Custodos never replaces less than the note announces. No text goes to a third party for detection.
- Every value gets a placeholder with its category, such as
<NAME_1>. The same value keeps the same placeholder throughout the chat. - The model provider receives the message with the placeholders.
- Before the reply is shown, Custodos puts the real values back.

The mapping is stored per chat, encrypted (AES-256-GCM), in the database in Switzerland, and is deleted with the chat. The activity log never holds values.
What is detected
| Category | Example | How it is detected | Under Standard |
|---|---|---|---|
| Name | "Ms Weber", "Anna Weber" | first and last name, using a list of first names, or a name after "Mr", "Ms" or "Dr" | readable |
| Address | "Bahnhofstrasse 15, 8001 Zürich" | street with house number, postcode and town | readable |
| Birth date | "born on 12.03.1985" | only after "born on" or "date of birth" | readable |
| Email address | [email protected] | by its format | readable |
| Phone number | +41 44 123 45 67 | Swiss or international | readable |
| Reference number | "customer number KD-4711" | only after a keyword such as "customer number" | readable |
| AHV number | 756.1234.5678.97 | by its format | replaced |
| Tax ID | "Steuer-ID 12 345 678 901" | after a keyword, otherwise only with a valid check digit | replaced |
| Social security number | 65 170839 J 003 | after a keyword such as "SV-Nr.", otherwise only with a valid check digit | replaced |
| IBAN | CH93 0076 2011 6238 5295 7 | by its format, several in a row too | replaced |
| Card number | a credit card number | with a valid check digit | replaced |
| UID number | CHE-123.456.789 | Swiss UID, German VAT ID, Austrian UID | replaced |
Keywords are also recognised in German, French and Italian, and hard identifiers across a line break. On top of that come the admins' custom rules (hits show as <DATA_1>) and values a member marks themselves.
Where pseudonymisation applies
Everything that goes to a model is checked: your message and the history, the text and names of attached files (scanned PDFs included), agent and project instructions, your personal instructions and text from connectors. Your display name and, in a company workspace, the company name go with every chat so that letters are signed. Where names are masked, your name goes as a placeholder; the company name is checked like the rest of your text.
Special cases:
- Images cannot be checked. Where they are allowed, they go to the model unchanged. Names go into a created image as typed, unless the member protects them; then they are left out.
- Company Brain has a level of its own for each brain. On "Open", passages go to the model as stored; in security mode, passages from every brain are pseudonymised. See Data protection in a brain.
- When the model searches a connected account or a brain for a person, the real values go to that system, because it holds them anyway; the result comes back as placeholders. A placeholder that Custodos never issued in this chat is refused by the search.
- A web search is not sent if the query contains a hard identifier, a match of a custom rule, a placeholder or something like
NAME_1, nor the digits of an identifier from this chat. Web results are public text and are not checked.
Inside Custodos, your messages stay stored as you wrote them.
Sending values unchanged on purpose
If a member removes the tick in the review panel (Send original), the value leaves in clear text at every detection in this chat. For phone numbers, 079 … and +41 79 … count as two values. This is not possible for custom rule hits, blocked values or in security mode. See Protecting personal data in chat.
Limits
- A first name on its own stays, as do product and company names such as "Claude". A surname without a salutation or a first name not on the list can be missed; a company named like a person can be replaced.
- The formats in the table are detected. For your company's recurring formats, custom rules are the right tool.
- Values are replaced, not descriptions: "our managing director in Winterthur" can identify a person.
- If a model writes a placeholder that Custodos never issued, it stays in the reply.
Frequently asked questions
No. The mapping stays with Custodos, encrypted, and is never sent along.
Name detection works with rules and misses spellings such as "Muster, Hans"; and the same person as "Mr Muster" and "Hans Muster" would become two strangers to the model. To protect names, choose Strict, set name to Mask or use security mode.