Security model
incentru sits between an AI tool and your systems: a directory, a helpdesk, a database, an internal
API. It holds the credentials, runs the actions and masks every answer before the model reads it. This
page says who takes part, what each of them holds and sees, what the model can still work out from
what it receives, and what incentru does not protect against.
incentru owns the connectors, so it knows the shape of each system’s records: which field is a
person’s name, which is an email, which holds free text, which is a password. The rules below are
applied per field and per connection, not by looking for patterns in text.
Who takes part
Section titled “Who takes part”| Party | Holds or sees | Never gets |
|---|---|---|
| The AI tool, its model and the model’s provider | Tool and connection names, descriptions, field names, placeholders, plain fields, counts | Credentials, secret-shaped fields, masked values |
The machine incentru runs on |
Everything: encrypted secrets and the key that opens them, the values behind placeholders | — |
| The person at the machine, in the Client | The real values behind what AI sessions received | Values the AI sessions never touched; secrets |
| Your systems | Their own data, what the model writes, placeholders filled in from that system | Another system’s hidden values, unless a flow allows it |
InCentru Cloud, when incentru is enrolled |
Settings it sends, encrypted blobs, run details such as counts and durations | Secrets, the org key or the run’s data in clear |
The AI tool and its model
Section titled “The AI tool and its model”Everything the model receives also reaches the AI tool and, for a hosted model, the model’s provider. They receive:
- The tool list: tool names, connection names and each connection’s description (written by you, or a summary of an OpenAPI document) as written.
- Field names. Object keys are never masked, so data used as a key is sent as it is.
- What
discoverreports about a system’s structure: its objects and fields. - Placeholders such as
[name 1],[email 2]and[text 1]in place of values. - Plain fields, sent as they are at the
maskedlevel (see What the model can still learn), and every value at levelrealor under arealexception. - For free text at the
layoutandmaskedlevels: a placeholder, the number of characters and the language, such as{"text": "[text 1]", "characters": 57, "language": "en"}. - Lists longer than
--rows(default 20) in compact form: the count, the field names and the first--rowsrows, masked. - Links to the Client, which hold a session id and a call number and nothing else.
A field whose name says it holds secret material (a password, a token, a credential, an API key) is never sent at any level, and neither is any credential a connection uses: secrets are opened on the machine only when a request goes out. Secret detection goes by field name: a password typed into a ticket’s description is free text, held back as a placeholder by default, and sent as written under Names hidden unless its own record holds it.
The machine incentru runs on
Section titled “The machine incentru runs on”The state directory (/var/lib/incentru, or ~/.config/incentru for a user) holds:
local.key, the machine’s local key, andlocal.json, the connections with their secrets encrypted under that key.reveal/<session>/: each AI call that held a placeholder, with the real values behind it, encrypted withlocal.key(files 0600, directories 0700).activity.log: each request an AI tool made, with tool, connection, action and counts, the hosts its connection reaches and the connections the values it filled in came from, never a value. Its lines, and those oflock-refusals.jsonl, are numbered and each holds the SHA-256 of the line before it, soincentru activity checkshows an entry that was changed, removed or put in. An enrolled node reports each record’s head (an entry number and a hash) to InCentru Cloud.lock-trial.json: locks being tried. A trial is only replayed fromactivity.log; nothing that runs AI calls reads it, so it never changes what is enforced.history/, when enrolled: the run’s data encrypted under the org key, which is held in memory only.client.json: the Client’s port and its launch key (0600).
The encryption protects copies of single files. Whoever controls the account that runs incentru, or
root, holds local.key beside what it encrypts, and so holds every secret and every revealed value. A
copied history/ without the org key reveals nothing.
The person at the machine
Section titled “The person at the machine”The Client shows the real values behind what AI sessions received, so a person can check what the AI
tool found or proposes. It listens on 127.0.0.1 only. A browser signs in with a one-time link that
works for 10 minutes; incentru asks the running Client for one with the launch key in client.json,
so only the account that owns the state directory (or root) can open the Client. A signed-in browser
stays signed in until it goes 30 days unused, and incentru client --uninstall signs every browser
out. The links AI sessions carry open nothing without a signed-in browser.
The Client never shows a secret’s value. The no_reveal lock keeps nothing for it and deletes what
was kept.
Your systems
Section titled “Your systems”Each connection acts with the rights of the account its credentials belong to. When the model passes
a placeholder back, incentru fills in the real value only on a call to the connection the value was
read from, or to one a flow allows (incentru connection set directory --allow-flow helpdesk:email).
A call that would carry a value anywhere else does not run. So the directory’s phone numbers, which
the model holds as placeholders, reach the helpdesk only if you allowed that flow. What the model
received as it is (a plain field, a value at real) it can write to any connection.
InCentru Cloud, when enrolled
Section titled “InCentru Cloud, when enrolled”incentru makes outbound connections only; InCentru Cloud cannot connect to it. An enrolled
incentru takes its masking settings from InCentru Cloud, but never looser than the machine’s
masking_floor lock. Locks set on the machine can be tightened from InCentru Cloud and
never loosened. InCentru Cloud holds secrets only as encrypted references and never holds the org key
in clear. The run’s data comes back encrypted under the org key; what stays clear is the branch label, the
count, the error code and the durations, and in an error message sent in clear the run’s values are
replaced by placeholders. Showing encrypted data to a member needs a device approval that verifies
against the administrators’ keys the machine’s owner pinned with incentru trust.
For encrypted assistant chats, InCentru Cloud writes the system text, the tool list and the prompt,
so it can steer the model, for example into copying the transcript into a tool call. The model’s tool
calls come back to it in clear, because it runs them. In a chat, incentru fills a call’s
placeholders in only where every connection InCentru Cloud says the call reaches is one the
value came from, or one a flow allows; any other call comes back refused, with its placeholders
left in. InCentru Cloud states the reach, the flows and where results came from, so this stops a
hidden instruction from steering the model into carrying a value elsewhere, not InCentru Cloud
itself. InCentru Cloud keeps the encrypted blobs, so it can hand back an
older state and roll a chat back. An incentru locked with org_key: never, or tagged local, takes
no part in any of this.
When the AI tool runs the organisation’s workflows through incentru mcp and the organisation encrypts
run inputs, the workflow’s inputs are encrypted on the machine to the organisation’s intake node before
they are sent, so InCentru Cloud gets them only encrypted. InCentru Cloud names the intake node
and hands out its key. A node pinned to the administrators’ keys encrypts only to an intake node an
administrator admitted: the setup key it enrolled with is signed by an administrator device of the
verified administrators’ keys, and its enrolment proof binds that setup key to the key InCentru
Cloud hands out. Otherwise incentru refuses the call and sends nothing; it does the same before the
administrators’ keys are verified. An unpinned node takes the key on InCentru Cloud’s word, and
the answer says so: if InCentru Cloud handed out a key of its own, it could read the inputs. An
organisation that does not encrypt run inputs gets them in clear, as it does from the console. Whether
the organisation encrypts run inputs is InCentru Cloud’s word too, so a compromised InCentru Cloud can
say it does not; the answer then says the inputs went in clear. An intake node that enrolled with a
key InCentru Cloud made, rather than a setup key an administrator signed, carries no admission,
so a pinned node refuses until that node is admitted with incentru admit. When the administrator
who signed a setup key leaves the administrators’ keys, a pinned node refuses to encrypt to the nodes
that key admitted until they are admitted again. Those inputs are only what the user gives in clear: incentru mcp fills no
placeholder into a workflow, because the workflow runs elsewhere. The run’s results come back encrypted
under the org key and are opened only by the running incentru up, through its control socket, which
any process of the machine’s user can reach; they are masked before the AI tool sees them.
What the model can still learn
Section titled “What the model can still learn”Masking hides values, not the existence or the shape of the data. With Example Org’s directory and helpdesk connected, the model can learn the following.
That a placeholder is one value. The same value always gets the same placeholder within a
session (one incentru mcp process). If [name 1] raised three tickets and is in the Finance group,
the model knows that one person did both, without knowing who. A new session numbers again from 1.
Counts and shape. How many entries a search found, how many members a group has, which fields a record holds and which are empty, how long a list is, and how long a free text is and its language.
Plain fields. At the masked level these fields are sent as they are: active, company,
count, created, created_at, department, departmentnumber, disabled, division,
employeetype, enabled, kind, locked, o, ok, organization, ou, state, status,
total, type, updated, updated_at (the list is PlainFields in
internal/masking/masking.go), and any field you add as plain.
A department with one member identifies that member. An exception can hide any of them, and layout
hides them all. A value sent as it is, plain or at real, is in the model’s hands, and flows do not
apply to it.
People a free text names that its record does not hold. Under the Names hidden rule (record), a
ticket’s description is sent with its requester’s and assignee’s values replaced. Somebody else it
names, or a name spelled differently from the record (“Hanna” for “Hana”), is sent as written. The
default rule, a placeholder, sends none of the text.
What a summary lets through. Under the Summary rule (summary), a model on the machine or the
local network reads the text, and the AI gets its summary after the checks in
masking. A name written in lower case, or a value of an
unusual shape, that the model copies without listing it as personal can reach the AI. A summary can
also be wrong, and text written to steer the model can steer what it says. With no local model, the
placeholder goes alone.
Where a value came from. A refused flow names the placeholder, both connections and the kind of value, never the value.
Answers to its own questions. The model chooses what to search for. If it types a guessed email address into a search, the system receives it as typed, and the count that comes back says whether such an entry exists. Masking hides what comes back, not what the model asks.
Text in error messages. When a system refuses a call, the model reads the part of the error
incentru writes: the step, the status or result code, and names and values from the call’s own
input, with the values this session already holds as placeholders (values of 3 characters or more).
What the system itself wrote (an HTTP API’s response body, an LDAP server’s diagnostic message and
matched DN, a database’s message, a manifest’s error: text about an answer) is held back. A JSON
body is sent masked, its keys kept and its values placeholders, as an answer is; other text is
replaced by a sentence saying it was held back, and the full message is kept for the person to read
in the Client, with a link in the answer. At level real, when no floor is stricter and no exception
hides a field, text that is not JSON is sent as it is. A value the model typed into the call itself, such as a DN in its input, can
still come back in the part incentru writes.
What incentru does not protect against
Section titled “What incentru does not protect against”- A compromised machine or account. Whoever controls the account that runs
incentru, root, or the memory of the running process, has the keys and the values. - A rewritten record, alone. The activity log and the lock refusal record show a changed entry
only up to their last entry. Someone in control of the machine can change the last entry, remove the
newest ones or the older file, or write the whole record again with new links, and the local check
alone will not see it. A head kept elsewhere sees it: one printed by
incentru activity check, or the heads an enrolled node reported. Such a person can also stop the reports, and rewrite what came after the last head that left the machine. - What you allowed. Level
real, arealexception, a plain field, a flow and a write you approved all do what they say. - A connection with too many rights.
incentrucannot narrow what the system lets its account do. Give each connection a least-privileged account, and use theread_onlylock where the AI should only read. - Instructions inside the data. A ticket can ask the model to do something. Flows stop values crossing systems, but a write on the same connection still runs once you approve it in your AI tool. Read what a write will do before approving it; a dry run shows it with the real values in the Client.
- Side channels. Counts, the order of results, timing and whether a search finds anything can tell the model about data it never receives.
- Network errors and your own input. A failure to connect is sent with the network’s own text, which names the host and address, and an error can repeat a value the model typed into the call. See Text in error messages.
- Copies elsewhere. Your systems keep their own logs, and the AI provider keeps what it received
under its own terms: placeholders, plain fields, descriptions and whatever you set to
real.
How these claims are checked
Section titled “How these claims are checked”cmd/incentru/leak_test.go (TestNothingMarkedReachesTheAI) fills the
sample directory and helpdesk with marked values, drives every MCP tool against them at each masking
level that hides the field, and fails if a marker reaches an MCP answer, the server’s log,
activity.log or reveal/ in clear, or if a credential reaches the AI. The masking rules themselves are
tested in internal/masking/.
Reporting a vulnerability
Section titled “Reporting a vulnerability”Report security problems privately, through GitHub’s private vulnerability reporting for this repository, never in a public issue. SECURITY.md says what to include and what happens next.