Skip to content

About security and privacy in Tocharian AI

For administrators and security reviewers. This page explains where your data goes when someone asks Tocharian AI a question, what the model receives, and which controls keep sensitive values and changes in check.

The settings themselves are in the administration guide. This page explains why they work the way they do.

Tocharian AI runs inside Kibana. The browser sends the question and the context of the page to the Kibana server. The plugin runs the question there, queries Elasticsearch as the signed-in user, and calls the model endpoint you configured. That endpoint is the only host the plugin connects to outside your cluster.

Data flow: the browser talks to the Kibana server; the Kibana server queries Elasticsearch as the user and sends only masked text to the model endpoint

A few consequences follow from this shape.

The model has no access of its own. It never receives Elasticsearch or Kibana credentials and cannot connect to your cluster. It can only ask the plugin to run a tool, such as an ES|QL query, and the plugin decides whether and how that tool runs.

Questions keep running on the server. Closing the browser does not stop a question. A background investigation runs with the identity of the user who started it, so it cannot see more than that user could.

The model call follows Kibana’s outbound rules. The model URL must pass xpack.actions.allowedHosts, and Kibana’s connector proxy applies unless a model has its own. If your Kibana already restricts which hosts connectors may reach, the same list restricts the model. A local model on your own network keeps every byte inside it.

A few things are not outbound calls by the plugin. To read data behind a page, the plugin calls Kibana’s own HTTP API on the same server with the user’s credentials. When a user confirms pushing a case to Jira or ServiceNow, Kibana’s existing connector makes that call, as it would from the Cases page.

For each question the plugin builds one request to the model. It contains:

  • Instructions for the working mode (security, observability, data analysis or platform).
  • Page context in five layers: the text on screen, the search state (time range, time zone, query, filters, controls), the data every chart on the page draws, the data behind the page loaded with the user’s privileges, and a read-only API tool for going deeper. Page awareness lists what is read on each page.
  • Dataset profiles: field names, types and meanings, a few sample values per field, and the time range of the data.
  • Knowledge: notes and field meanings people have added, for everyone, for the space and for the user.
  • The conversation so far: the last eight questions and answers.
  • Tool results: query results, documents, profiles, page data and read-only API responses.
What Tocharian AI sees: the page context sections exactly as the model receives them

Users can check this themselves. What Tocharian AI sees, the inspect icon next to the context in the chat, shows the page sections exactly as the model gets them, after masking and size limits. It makes no model call.

Limits keep the request within what a model handles reliably. When they apply, content is cut, never invented.

PartLimit
Screen text12,000 characters
Chart data24,000 characters for all charts, at least 900 per chart
Data behind the page14,000 characters per source
Instructions and page contextAbout 60,000 characters. Page sections are cut by priority: screen text first, chart data and the page’s own data last.
Whole conversationAbout 140,000 characters. Older tool results are shortened beyond it.
Query resultsThe Maximum rows setting for ES|QL (default 500), at most 100 documents for Query DSL
  • Credentials of any kind. Form fields for passwords and tokens are not read from the screen, and secret fields (API key values, tokens, passwords, connector secrets, private keys) are removed from every API response.
  • Data the user cannot read. Every query and page lookup runs as the user; a missing privilege is reported to the model as missing.
  • Values of fields set to Not provided, and the real values of masked fields.
  • Other users’ conversations or personal notes.
  • Change anything by itself. In read-only mode it cannot propose changes at all; in read-write mode it can only propose them, and a person confirms each one.
  • Act as anyone but the user. Proposals run with the confirming user’s privileges.
  • Reach a host. Only the plugin calls out, and only to the configured model endpoint.

Masking replaces sensitive values before anything is sent to the model. It needs a license or the trial; in the free edition the model sees values as they are.

An answer that shows the real e-mail addresses to the user, marked 5 sensitive values masked: the model only saw code names

Two sets of rules apply, both deterministic:

  • Field sensitivity in the data catalog. An administrator sets each field to not sensitive, code name, partly hidden or not provided. The plugin suggests sensitive fields from their name, the ECS fields that usually hold personal data, and the format of sample values, but an administrator’s choice always wins. A field marked sensitive in one dataset is masked wherever a field of that name appears, which errs on the side of masking.
  • Content scan of every text value: e-mail addresses, phone numbers, card numbers that pass the Luhn check, IBANs, JWTs, API keys, private keys and password=… pairs. It covers fields nobody has marked, page text and the question itself.

A model could be asked to judge what is sensitive, but then the judgement would happen after the data reached it. Rules run before, and they give the same result every time, which makes them reviewable.

A masked value becomes a code name such as EMAIL_3fa2c1d0. The same value gets the same code name throughout a conversation, and different conversations get different code names. Within a conversation the model can still count, group and compare: “EMAIL_3fa2c1d0 failed to sign in 42 times” is as useful as the address itself.

When the model uses a code name in a query, the plugin puts the real value back before the query runs, so the query finds the right documents. When the answer comes back, the plugin replaces code names with real values for the user. The real values never leave the cluster. The table of code names and values is stored with the conversation, which only its owner can open.

Knowledge outlives a conversation and other people read it. So when someone saves a note or a field meaning from a conversation, any value that the conversation masked is stored as [masked], and so is any code name in the text. A note never carries a masked value to another user or back to the model.

  • The content scan finds values by their format. A personal name or an address in free text has no fixed format; mark such fields in the data catalog.
  • Partly hidden shows part of a value (j***@example.com, ***1234). Use code name or not provided when no part may be seen.
  • Profiles do not sample values of fields marked sensitive. If the sensitivity rules cannot be read, no values are sampled at all.
  • When a license ends, masking keeps applying its last rules, and they can no longer be changed. While the license cannot be read, for example during an Elasticsearch restart, masking stays on.

Queries run with the signed-in user’s Elasticsearch client. Dashboards, cases, rules and alerts are read and changed through Kibana’s clients for that user’s request. Data behind a page comes from Kibana’s HTTP API with the user’s own credentials. So the plugin can never show a user more than Kibana would, and document and field level security apply as usual.

The Kibana feature privilege Tocharian AI decides who may use the plugin at all: read to ask questions, all to administer it. It does not widen data access.

Two stores are shared by all users, so Kibana’s own system user writes them, the same way Kibana writes its event log:

  • The profile index (.kibana-tocharian-ai-profiles): profiles, sensitivity rules and knowledge. A user sees profiles and notes only for datasets they can read, and the sample values in a profile are filtered by the user’s own search, so document level security hides values the user may not see.
  • The activity data stream (.kibana-tocharian-ai-audit): every user’s activity is recorded, whatever their index privileges.

A conversation belongs to a user in a realm. A native admin and an LDAP admin are different people and never see each other’s conversations. A request made with an API key belongs to the user who created the key, so an investigation started by a script or a workflow opens in that user’s chat. Notes are personal, for a space, or for everyone; only administrators can add notes for others.

Every conversation starts read-only. Read-write mode needs an administrator to allow it and the user to switch the conversation to read-write. With a license, administrators can also limit it to some roles and to some kinds of change (documents, dashboards, cases, alerts, rules); see Limit who can use it. The automation API and the Workflows step are always read-only.

In read-write mode the model proposes; it does not act. Each proposal appears as a card that states exactly what will happen. Before a user sees a dashboard card, the plugin has run every panel’s query and shows real rows; before an alerting rule card, it has run the rule’s query on the last 24 hours. Nothing changes until the user confirms, and the change runs with that user’s privileges. A change is executed once, even if two people or two browser tabs confirm it at the same time. Connectors, which hold passwords and tokens, are never created by the plugin.

Every question, tool call, proposed change (confirmed, cancelled or refused) and administrative change is recorded, in the Kibana log and, by default, in the activity data stream. The records say who did what, in which space, with which model, which datasets and queries were used, and what it cost. Question text is stored as a fingerprint unless you choose the full text or nothing.

Records never contain secrets. They do contain queries, and confirmed document writes include the written documents (up to 1,500 characters), because that is what an auditor needs to see. Treat the data stream as sensitive and give read on it only to the people who review it. Activity records lists every field.