По-русски

ZuBrIQ Gateway

Personal data never reaches the LLM — PII masking at the gateway

A proxy in front of any model: UNP, INN, card numbers, bank accounts, BIC and personal names are replaced with synthetic values before the request reaches the LLM, and restored in the answers — streaming included. Works with any OpenAI-compatible provider, and the set of detected entity types extends to your formats.

How it works

The model sees only synthetic data — the client gets their own back

Your app

service, chat or agent · OpenAI-compatible API

ZuBrIQ Gateway

Masking

UNP, INN, cards, accounts, names and phone numbers · replaced with synthetic data

Model

any model behind the gateway · sees only synthetic data

model answer ↓

Restoration

synthetic → your data · in answers and streams

answer with real data → Your app

If masking fails, the request never reaches the model · every detection is a SIEM event

🆔

UNP

9 digits with a checksum check (Belarusian company ID)

🇷🇺

INN

10/12 digits with checksum validation (Russian tax ID)

💳

Payment cards

number validation, MIR / Visa / Mastercard

🏦

Accounts and BIC

account key check against the bank directory

🧾

SNILS

11 digits with checksum validation (Russian pension ID)

🧑

Personal names

detected with attention to context and forms of address

♻️

Reusable pairs

The same value is always replaced with the same synthetic one — referential integrity holds inside a dialogue and across dialogues.

🚪

Fail-closed

If the masking module fails, the request is rejected — PII never reaches the model. The mode is set when the gateway is deployed.

🌊

Streaming

Works in streamed responses too: data is restored on the fly as the model answer arrives.

📋

SIEM events

Every PII detection is written to an audit log tied to the user, the model and the request — ready for your SIEM.

How it differs from the market

Generic maskers (Presidio) do not solve a CIS bank's problem

Generic maskers (Microsoft Presidio, the built-in PII filters of open-source gateways) cut out anything that looks like personal data using NLP models. It is a general-purpose tool — too little for CIS registry identifiers and for dialogues where the data has to come back.

  • CIS identifiers

    Presidio

    Generic patterns without validation. UNP, BIC, account keys — not supported.

    ZuBrIQ Gateway

    Checksum validation against the official CIS registry formats: a valid number never slips through, an invalid one is not mistaken for PII.

  • Returning data to the client

    Presidio

    Replaced forever (REDACTED/fake). The original cannot be restored in the answer.

    ZuBrIQ Gateway

    Restored in answers and streams: the client sees their own data, the model only sees synthetic values.

  • Dialogue consistency

    Presidio

    The same surname is replaced differently every time — the model loses track.

    ZuBrIQ Gateway

    One value — one synthetic replacement for the whole lifetime: the same UNP, the same substitution in any dialogue.

  • Phone numbers

    Presidio

    One generic international pattern, many false positives.

    ZuBrIQ Gateway

    Validated against current operator codes for Belarus, Russia and Kazakhstan — minimal false positives.

  • Speed

    Presidio

    NLP models, heavy startup, weak for Russian text.

    ZuBrIQ Gateway

    Detection by registry formats, no GPU and no external models: milliseconds per request.

  • Oversight

    Presidio

    No substitution history.

    ZuBrIQ Gateway

    A SIEM event on every detection, a substitution log for the security team, fail-closed by default.

Presidio remains useful for non-registry entities (addresses, e-mail, dates) — it plugs in as a second layer on top of the Gateway, not instead of it.

Second layer: where Presidio fits

What it does

Recognises non-registry entities: addresses, e-mail, dates, document numbers without checksums. The entity set extends to your formats.

At which level

After the gateway: registry identifiers are already replaced, the second layer cleans the leftovers in the same request before it goes to the model. Answers and data restoration are unaffected.

How it plugs in

A separate service next to the gateway, enabled by a setting at deployment. An option, off by default.

Live

A request with a UNP and a card number: the whole chain in 17 seconds

0:00 / 0:00
The same as a curl command — ready to copy
curl -s https://api.zubriq.ai/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model": "gpt-4o-mini", "user": "user-42",
        "messages": [{"role": "user",
                      "content": "My UNP is 192628898, please send the invoice."}]}'

# The model receives:  "My UNP is 732432413, …"
# The answer returns:  "My UNP is 192628898, …"

For some models in the catalogue the provider stores no requests and answers at all — that is the “ZDR” tag. How ZDR works in ZuBrIQ →