Book a call
PROMPT MASKING · LLM MASKING · ON-PREMISE

The prompt goes to the model.
Personal data
stays with you.

What you don’t tell an AI matters
as much as what you do.

Prompt Masking finds and masks personal data, customer details and secrets such as API keys in prompts before AI agents and LLMs see them, and restores them with your key when the answer returns. It also flags injection attempts in English prompts. Your agents keep working.

Detection models that run on your own server.
A SAMPLE CUSTOMER MESSAGE01 / 03

Hi, I’m [PERSON_1].

Could I get an update on my order?
You can reach me at [EMAIL_1]
or [PHONE_1].

Thanks.

✓3 fields masked. The message keeps its context.
Prompt MaskelemeTEXT SENT TO THE MODEL
Same message.
Less personal data.

Illustrative example · Tap the tabs to see each step.

01 Turkish + multilingual detection02 18 data categories03 Key-based restore04 MCP · API · Proxy

01 — WHY PROMPT MASKING

What goes into a prompt
is no longer only yours.

Text sent to an LLM or an AI agent is processed on the provider’s servers, may be kept in logs, and is passed on to the tools and other models the agent calls. Once personal data has left, it cannot be taken back. That is why Prompt Masking masks the text at the start of the path, before the model sees it.

01

People paste.

A customer e-mail, a CRM record, a contract clause, a loan application. Every text pasted into AI for a quick summary takes the name, ID number and IBAN inside it along.

02

Agents carry.

An AI agent spreads one request across dozens of tools, search engines and sub-models. At every step the text lands in another system’s logs. Prompt Masking cleans the text the agent sees from the start.

03

Secrets leak.

A log pasted for debugging, a .env file or a connection string carries API keys, passwords and internal IP addresses to the model. Prompt Masking catches them just like personal data.

The model sees the masked text, still understands the context and gives a useful answer. When the answer returns, Prompt Masking puts the original values back with your key.

02 — CONNECT YOUR AI IN A MINUTE

Connects over MCP.
Stands in front of your agent.

MCP (Model Context Protocol) is the open standard AI agents use to connect to outside tools. Prompt Masking runs as an MCP server: it is added to your agent with one settings entry, with no new software to install, and stands between personal data and the agent.

  1. 01

    Get your access token.

    Get your own MCP token from the panel. It only grants access to the masking tools and is separate from your panel password.

  2. 02

    Add the connection.

    Claude Desktop, Cursor, VS Code or your own agent: one connection entry goes into the settings of any MCP client. No code to write.

  3. 03

    The agent works masked.

    Before passing text to another tool, model or system, the agent calls the maskele (mask) tool; when the answer returns, geri_coz (restore) puts the original values back. rapor (report) shows what was masked.

WHY IT MATTERS

Agents carry everything
somewhere.

An agent spreads one request across search engines, databases and other models. Every stop means a log, a provider, a risk. Prompt Masking stands at the start of that journey: the text in the agent’s hands is cleared of personal data and secrets at the very first step.

FRONT LAYER

Protects before the
first model call, too.

MCP protects the text an agent passes to other tools. If text must never reach the model in the clear, put the same engine in front of your traffic as an LLM proxy: OpenAI, Anthropic, Gemini and local model requests pass through masked, and only one address changes in your application.

See the connection settings

03 — PROMPT INJECTION AND SECRETS

Not only personal data.
Text that misleads the agent, too.

The e-mails, web pages and documents agents read can carry hidden commands such as “ignore previous instructions”. While masking personal data, Prompt Masking also makes these attempts, and secrets mixed into prompts, visible.

01 / INJECTION CHECK

Flags suspicious
instructions.

English messages are scored by a classifier model. “Possible” and “high” risk requests are flagged in the report, so your security team sees which session and source they came from. The check is experimental and does not block the request on its own; for now it only looks at English text.

02 / SECRETS

Keys and passwords
never reach the model.

API keys, passwords, JWTs, private keys, connection strings, IP addresses and device IDs are found by rules and masked. If an administrator sets these types to “block”, a request that contains a secret is never sent.

NEW — TOWARDS AN AI SECURITY GATEWAY

Not just the text going out.
The answer coming back, and who used it.

Prompt Masking is becoming the gate all of an organisation’s AI traffic passes through. The first steps are ready; we state plainly what is still missing.

01 / OUTPUT MASKING · TODAY

The model’s answer
is checked too.

If the model writes a person’s name, phone number, IBAN, ID number or secret that was not in your request, the answer is masked before the user sees it. Values you sent stay visible. It is switched on with a single header or a rule.

02 / GATEWAY AND RULES · FIRST VERSION

Who, which model,
under which rule.

A separate gateway key for every user. Rules decide which provider and model each department uses and which data types never leave it; a rule cannot be loosened by a request. Rules and people are managed in the panel and take effect as soon as they are saved. Today: OpenAI, Anthropic, Gemini and local models (Ollama, vLLM); the organisation’s directory (SSO) is next.

03 / USAGE TRACKING · FIRST VERSION

Denied requests
are on record too.

Every request records who and which model; a denied request never reaches the model but is logged. The dashboard breaks usage down by user, model and data type, with CSV export. The log never holds original values.

INTEGRATION IN PROGRESS Agent memory: annesa, the agents’ shared memory. Our endpoints that mask records written to and read from memory and control what each agent may access are ready; integration with annesa is in progress.

Where each module stands: the roadmap

04 — IN THE FLOW, IN YOUR CONTROL

The workflow continues.
Sensitive data stays behind.

A support message, a customer record or an agent conversation. Prompt Masking steps in before the text reaches the model.

01

Detect

Combines Turkish and multilingual BERT models with rules to find names, IDs and sensitive patterns.

02

Mask or block

Mask, allow or block the request, per data type. The same value gets the same label throughout a conversation.

03

Restore when needed

When the response comes back, put the original values back with your key. Delete the mapping when you’re done.

05 — MORE THAN ONE NUMBER

Sensitive data
shows up in every shape.

From names to financial details, from API keys to device IDs. 18 categories in a single control layer.

18data categories

You choose
what gets masked.

PERSON

Person name

First names, last names and initials.

TCKN

Turkish national ID

T.C. identity number patterns.

VKN

Turkish tax ID

Tax identification numbers.

PASSPORT

Passport number

Turkish passports and labeled foreign passports.

PHONE

Phone

Local and international formats.

EMAIL

Email

Email addresses within text.

DOB

Date of birth

Dates stated as a date of birth.

PLATE

License plate

Plate-format identifiers.

IBAN

IBAN

IBAN details of bank accounts.

CARD

Card number

Payment card numbers.

ACCOUNT

Account number

Numbers stated as account details.

ORGANIZATION

Organization

Company, institution and organization names.

ADDRESS

Address

Text containing a street address.

LOCATION

Place name

City, region and location names.

SECRET

Secret key

Supported API key and secret patterns.

IP

IP address

IPv4 and IPv6 addresses.

DEVICE

Device & cookie ID

MAC, labeled IMEI, device IDs and cookie values.

CUSTOM

Your own terms

Your own term lists and patterns.

Detection results vary with the text, language and format. Evaluate with your own data.

06 — FIT MASKING TO YOUR WORK

Not a single mask.
A control surface.

01 / POLICY

Don’t make the same call
for every kind of data.

Mask, block or allow by data type. Choose types per request, and exclude roles such as system messages from scanning. Types blocked by an admin can’t be re-enabled at request level.

Card numberBlock ×EmailMask ▰Place nameAllow ✓
Sample policy
02 / MASK STYLE

A replacement
that fits the context.

Use consistent labels or realistic fake values of the same type. Text tools also offer X, black-box and type-label options. Types without a fake-value generator fall back to labels.

Emily Carter
[PERSON_1]Sarah Brooks
Label or fake value
03 / ENCRYPTED VAULT

You hold the key
to the way back.

Mappings are stored encrypted with AES-256-GCM. The restore key is given to the client. Records are deleted when they expire or on request; a mapping can’t be restored without its key.

key → mapping → original textDefault retention: 30 days
04 / REPORTS & ALERTS

See what happened,
measure it.

Review type, count, position, duration and request source. Track with date filters, time charts and CSV export. Set webhook alerts for blocked requests and threshold breaches.

07 — WITH THE TOOLS YOU ALREADY USE

Don’t build a new workflow.
Add to the one you have.

A tool for your agent, an API for your app, or a layer in your model traffic. Connect wherever it fits.

MCP CONNECTION SETTINGS
{
  "mcpServers": {
    "mascdoc": {
      "url": "https://mcp.mascdoc.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MASCDOC_TOKEN"
      }
    }
  }
}

Mask. Restore. Report.

The maskele (mask), geri_coz (restore) and rapor (report) tools over a Streamable HTTP connection authorized with a Bearer token. Keep the key; reuse the same mapping as the conversation continues.

MCP access requires the usage token issued to you. Replace YOUR_MASCDOC_TOKEN in the example with your own key and use your client’s header setting. The panel opens with a username and password. MCP is for masking text that an agent passes on to other tools. To protect text before the first model call, use the API or proxy layer.

08 — GOOD TO KNOW

A few good questions.
Straight answers.

Are the panel and MCP public?

This page is public. The panel, and API access through it, require a username and password. The MCP connection is authorized with a separate Bearer token. The panel password, MCP token and restore key serve different purposes; never put them in public code or links.

Is Prompt Masking a PDF or OCR tool?

Prompt Masking works on text and prompts. For scanned PDF and TIFF documents there is mascdoc document masking: it reads the document locally with our own unified OCR, finds the secrets and masks them without changing how the document looks.

Is my text sent to an outside AI?

The detection models run on the Prompt Masking server; detection needs no external LLM API. With the proxy, the masked request is forwarded to the provider you choose. An agent using MCP may have seen the original text before it calls the masking tool.

Is masking permanent, or can it be reversed?

With labels and fake values, text can be restored as long as the mapping is in the vault and the right key is provided. If the key is lost or the mapping is deleted, it can’t be restored. If the model alters a label or fake value, the result may be affected.

Which languages does it support?

Turkish and multilingual BERT models can be used together. It works with Turkish, English and mixed text; accuracy varies by language, writing style and data type. You can choose a rule-based, BERT-only or hybrid engine.

Does it catch every piece of personal data?

There is no guarantee of complete detection. Some fields may be missed, or more text than needed may be masked. Evaluate with your own samples and tune policies, custom terms and patterns to your use. Prompt Masking alone does not guarantee legal compliance.

How do reports and retention work?

Persistent reports keep metadata such as type, count, position, duration and request source; they never contain original values. Restore mappings are kept in a separate encrypted vault. Retention is configurable; the default is 30 days and records can be deleted on request.

MORE MINDFUL SHARING STARTS HERE

Start with one text.
Stay in control.

Mask it, review the result, connect it to your flow.

Request access Connect MCP
Share the information.
Not every detail.