Reference · Data
Keeping Client Data Out of Public AI Models
Boundaries are enforced before the model, not promised by it.
01Three questions
- What data classes exist? Public/internal, client-confidential, regulated. Each gets a rule.
- Which model may see which class? Public frontier model, private endpoint, or on-premises. The routing table is the control.
- What proves it held? A log of model calls by class, plus a sample case where out-of-scope data was filtered before the call.
02What filtering looks like
Filtering is deterministic code that removes or masks out-of-scope fields before the prompt is assembled: account numbers, names, addresses, anything outside the task's scope. It runs every time, not when someone remembers. The model never sees the excluded fields, so there is nothing for it to leak.
A sample routing table
| Data class | Allowed destination | Condition | Evidence |
|---|---|---|---|
| Public / internal | Public model endpoint | No client identifiers | Model-call log by class |
| Client-confidential | Private endpoint | Masked fields; no training | Filter rule and before/after sample |
| Regulated | Private or on-premises | Contract and approval on file | Routing table and approval record |
03Separation
If one agent serves many clients, each client's or matter's data must stay separate: separate context, separate retrieval, separate logs. "The model doesn't remember" is not separation; the retrieval layer is where cross-client leakage happens.
04Evidence
- Routing tabledata class × model × justification
- Filter ruleswith a sample before/after
- Model-call logby class, retained
- Separation testshowing one client cannot retrieve another's records
05FAQ
Is a private model enough?
Private hosting removes the public-service path, but the boundary still has to exist: what the agent reads, what it sends, and what it logs are separate decisions.
Can we use public models at all?
Yes, for classes whose rules allow it. The point is the per-class decision, documented and enforced — not a blanket yes or no.
05Questions to ask the vendor
- Which model sees which data class, and where is that enforced — in code, not in a policy?
- Is the content used to train or improve the model, and can we opt out in writing?
- Where are the prompts and outputs stored, and for how long?
- How is one client's retrieval separated from another's?
- What happens to the data on termination, and can we get a deletion record?
These map to OWASP's 2026 items for sensitive information disclosure and vector/embedding weaknesses, and to the data controls in ISO/IEC 42001.12
Next: regulated industries.
Free · the 24-point audit
Get the shadow AI audit
Twenty-four checks across visibility, identity, data, and governance — each with the evidence that answers it. The printable version of the method on this page.
We use the address to send the pack, then a person checks in once. No list, no sequence; no sales calls unless you ask. Privacy.
06Sources
- OWASP GenAI Security Project, “OWASP GenAI LLM Top 10 2026.”
- ISO, ISO/IEC 42001:2023 — AI management system.