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.
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.
Hi, I’m [PERSON_1].
Could I get an update on my order?
You can reach me at [EMAIL_1]
or [PHONE_1].
Thanks.
Illustrative example · Tap the tabs to see each step.
01 — WHY PROMPT MASKING
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.
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.
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.
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
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.
Get your own MCP token from the panel. It only grants access to the masking tools and is separate from your panel password.
Claude Desktop, Cursor, VS Code or your own agent: one connection entry goes into the settings of any MCP client. No code to write.
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.
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.
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 settings03 — PROMPT INJECTION AND SECRETS
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.
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.
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
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.
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.
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.
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.
04 — IN THE FLOW, IN YOUR CONTROL
A support message, a customer record or an agent conversation. Prompt Masking steps in before the text reaches the model.
Combines Turkish and multilingual BERT models with rules to find names, IDs and sensitive patterns.
Mask, allow or block the request, per data type. The same value gets the same label throughout a conversation.
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
From names to financial details, from API keys to device IDs. 18 categories in a single control layer.
You choose
what gets masked.
First names, last names and initials.
T.C. identity number patterns.
Tax identification numbers.
Turkish passports and labeled foreign passports.
Local and international formats.
Email addresses within text.
Dates stated as a date of birth.
Plate-format identifiers.
IBAN details of bank accounts.
Payment card numbers.
Numbers stated as account details.
Company, institution and organization names.
Text containing a street address.
City, region and location names.
Supported API key and secret patterns.
IPv4 and IPv6 addresses.
MAC, labeled IMEI, device IDs and cookie values.
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
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.
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.
[PERSON_1]Sarah BrooksMappings 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 daysReview 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
A tool for your agent, an API for your app, or a layer in your model traffic. Connect wherever it fits.
{
"mcpServers": {
"mascdoc": {
"url": "https://mcp.mascdoc.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_MASCDOC_TOKEN"
}
}
}
}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
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.
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.
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.
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.
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.
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.
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
Mask it, review the result, connect it to your flow.
Share the information.