Our own models
We trained GLiNER and BERT on trade-finance documents, and a language model that weighs uncertain findings on our own data; training runs on our own hardware, an NVIDIA DGX Spark.
ROADMAP · LONG-TERM GOAL
Companies are putting AI into everything: customer correspondence, loan files, code, agents. Every AI call carries the organisation’s data somewhere. mascdoc aims to be the layer through which all of this traffic flows under the organisation’s own rules, inside its own environment and on record, and to protect the network itself under the same roof.
This page shows where we are today, how we will get there and why we are the team to do it. We give no dates; each step follows once the previous one has settled in a real organisation.
01 — WHAT WE HAVE TODAY
The heart of an AI security layer is finding the sensitive information inside the data correctly. We built that starting from the hardest place: scanned, multilingual bank documents.
On 77 full pages of 12 documents never seen in training, 1,011 secret fields.
A classifier, in a test of 1,000 different prompts.
Keep arriving; we retrain the models with them.
We trained GLiNER and BERT on trade-finance documents, and a language model that weighs uncertain findings on our own data; training runs on our own hardware, an NVIDIA DGX Spark.
Our OCR combines several reading models and reads Turkish, English and Chinese in one pass, even under stamps and security patterns.
Document masking, prompt masking, secret detection, the injection check and output masking; they connect over MCP, HTTP API and an LLM proxy and run fully on site. On the network side, Network Security.
02 — WHY NOW
AI no longer just answers; it sends e-mails, opens files and connects to systems. What an agent can touch now matters as much as an employee’s permissions.
Customer names, account numbers, contract clauses, API keys. Data that has reached a model cannot be taken back; most organisations do not even know what has gone.
KVKK, GDPR and the EU AI Act; in regulated sectors such as banking and health, auditors ask “what did you send to AI?”. The answer needs a record.
Banks and the public sector do not let data leave. A security layer that runs in-house, offline, is the precondition for these organisations to open up to AI safely.
03 — ARCHITECTURE
All AI traffic passes through one gate. Inside the gate there are four shared parts; modules plug in on top of them. A company can start with document masking alone and add the others over time.
mascdoc gateway · inside the organisation
04 — MODULES
Each module is installed and licensed separately and runs on the same gate. Every card says what the module does and what of it is already in place today.
Finds party names, addresses, account and reference numbers in scanned PDF and TIFF documents and covers them, or swaps in consistent pseudonyms, without breaking the layout.
From today’s foundation: Product: our own unified OCR, models trained on trade-finance documents, a review screen and an audit log. 96% of fields fully masked on 77 pages never seen in training.
Replaces personal data in text going to AI with tags or pseudonyms before the model sees it, and restores it in the answer with a key.
From today’s foundation: Product: 18 data types, Turkish and multilingual detection, an AES-256-GCM encrypted vault, MCP, HTTP API and LLM proxy.
Catches secrets such as API keys, access tokens, passwords, private keys, connection strings and IP addresses, and masks them or stops the request.
From today’s foundation: Product: inside Prompt Masking, with a per-type “block” policy.
Scores steering attempts in prompts and in instructions hidden in documents: clean, worth a review, blocked.
From today’s foundation: A classifier; 95% accuracy in a test of 1,000 different prompts.
Aims to stop DDoS, SQL injection and XSS attacks in real time on the network AI agents and systems connect to, and to answer who, when and from where with evidence.
From today’s foundation: Product: Network Security. Windows and macOS editions; hand-written parsers, zero external libraries, ~250 MB, ~100 kinds of evidence, AI-assisted anomaly detection.
Uses vector similarity to find fake sites copying the organisation’s name and look, and warns before a phishing attack begins.
From today’s foundation: Ready: a small model. Missing: connecting it to the platform and measuring it on real organisation data.
The model’s answer is scanned before the user sees it; names, phone numbers, ID numbers, IBANs, addresses and secrets that were not in your request are masked.
From today’s foundation: Product: switched on in the Prompt Masking proxy with a single header. Values the user sent stay visible; names, phone numbers, IBANs, ID numbers and secrets the model writes on its own are masked.
A single gate in front of every AI service the organisation uses (OpenAI, Anthropic, Gemini, local and in-house models). Every module runs on top of it.
From today’s foundation: Ready: a single gate for OpenAI, Anthropic, Gemini and local models (Ollama, vLLM, LM Studio); a separate gateway key per user; a denied request never reaches the model. Missing: the connection formats specific to Azure OpenAI, AWS Bedrock and Vertex AI.
The organisation’s own rules: which department uses which model, which data types never leave, which actions need human approval. Every module uses the same engine.
From today’s foundation: Ready: rules by department, role, provider and model; data types that never leave a department; mandatory output masking. A rule cannot be loosened by a request. Rules are edited in the panel and take effect as soon as they are saved; before saving you can check “would this request pass?”. Missing: a human-approval flow and a history of rule changes.
Which models a user may reach and what level of data they may send to AI, by role, department and clearance.
From today’s foundation: Ready: user, department and role definitions; rules apply by this identity. People are added in the panel; the gateway key is shown once and the server keeps only its hash. Missing: a link to the organisation’s directory (AD / LDAP, SSO); people are added by hand for now.
Which user and department sent what kind of data to which model and how often; risky habits and security statistics on a dashboard.
From today’s foundation: Ready: who and which model on every request, denied ones included. Dashboard breakdown by user, model, type and channel, plus CSV export. Missing: automatic detection of risky usage habits.
Which tools AI agents may use: sending e-mail, deleting files, pulling CRM data, starting payments. An agent can never exceed the rights of the user it acts for. Agent-to-agent data flows follow the same rules.
From today’s foundation: We already connect to agents over MCP; because tool calls pass through the same gate, permission control is added to that connection.
Applies access rights when AI pulls data from documents, vector databases and knowledge bases: a document a user cannot see stays hidden through AI too.
From today’s foundation: A natural link to our document strength: a document can be masked before it enters AI.
Regularly tests AI systems for prompt injection, data leakage, privilege escalation and agent manipulation, and finds the gaps before attackers do.
From today’s foundation: Our injection classifier and attack samples; Turkish attack sets are our home ground.
A continuously updated risk score per department, user, agent, model and use case; the picture at a glance for management.
From today’s foundation: Computed on top of usage tracking and policy data.
Reports AI services employees use without approval, the possible data-transfer risks and unauthorised use.
From today’s foundation: Needs network and endpoint visibility; after the gateway is in place.
Tracks where the data AI uses came from, which steps it passed through and which outputs it fed; lets you trace data back to its source after an incident.
From today’s foundation: Our audit log is the starting point.
Watches model behaviour over time; catches unusual answers, sensitive data exposure and sudden behaviour changes.
From today’s foundation: Starts as anomaly detection on gateway logs.
Tracks the source, integrity and known vulnerabilities of the models, model files, libraries, plug-ins and agent tools in use.
From today’s foundation: Starts with model-file scanning and integrity checks.
A shared, governed memory for agents. Personal data entering memory is masked; the policy engine decides what each agent may recall; every read and write is logged.
From today’s foundation: annesa works: the shared memory that serves agents their history as context. On the mascdoc side, endpoints are ready that mask personal data in conversations written to memory, pull out only keys and passwords from code, mask again on read, control which agent may read or write which project, and log denied access. Missing: integrating the two.
05 — PHASES
Each phase builds on the previous one and delivers value that can be sold on its own. We do not move on until the previous phase has settled in a real organisation.
First versions of the gateway, policy engine, role-based security and usage tracking are ready; the gateway covers OpenAI, Anthropic, Gemini and local models, rules and people are managed in the panel, and output masking is available today. Next: the organisation’s directory (SSO), a human-approval flow, Azure and Bedrock connections.
Outcome: The organisation can pass all AI traffic through a single gate, under its own rules, on record.
Agent permission control, RAG security, continuous red teaming, AI security score; shared memory for agents (annesa) works, and integration with mascdoc is in progress.
Outcome: While agents work inside the organisation, what they can touch, see and remember is governed.
Shadow AI detection, data lineage, model behaviour monitoring, supply-chain security.
Outcome: All of the organisation’s AI use, approved or not, is seen and managed from one control centre.
Our measurable target: find 99% of secret fields on a blind test set and reach 99% precision on unnecessary masks. We chase it with new documents, retraining the models regularly.
06 — WHY US
The value of a security layer depends on knowing correctly what is sensitive. We can do it on scanned, stamped, mixed Chinese and Turkish documents; plain text is easy by comparison.
Every model ships in the installation package; no step depends on a cloud service. The closed networks of banks and the public sector are our natural environment.
New documents keep arriving; every new document type and language feeds retraining, measurement and improvement.
A company starts with one module and adds more as needed. Sales cycles shorten, and every new module reaches existing customers as new value.
07 — BUSINESS MODEL
Each module is licensed separately; the organisation picks one or several as it needs.
Installation in the organisation’s own environment; if wanted, tuning the models to its own document types, inside its environment.
Retrained models, new languages and new modules arrive through regular updates.
08 — RISKS AND HOW WE MANAGE THEM
We add modules in phase order, each after it has settled in a real organisation. The focus always stays on protecting data.
That is why the product works with human approval: doubtful items are flagged, uncertain ones stay masked. We measure accuracy on every new document set and publish it.
Most of them focus on the cloud and English. We stand apart with local operation, regulated sectors, documents and depth in Turkish and multilingual data.
Network security, agent memory and the AI layer work today as separate products. Bringing them together in one panel under shared rules is our biggest job, and we do it only after each piece has settled in a real organisation.
ON THIS JOURNEY TOGETHER