Why review after the fact does not stop a leak
Policy documents, employee training and log review all operate on a different timeline from a prompt. Once a prompt containing customer account details has reached a third-party model provider, no later review can recall it. Those measures shape behavior in general, but none of them acts on a specific request at the moment it is made.
The practical response is to move the decision into the execution path. The check happens before the prompt reaches the model, before a tool call executes, and before a response reaches a user or a downstream system. This also fits the security posture OWASP recommends: treat the model as an untrusted component and place controls at the trust boundaries around it, not inside the prompt. Prompt injection is a documented route to sensitive-data disclosure, and it is unclear whether fool-proof prevention exists. A system prompt that tells the model not to reveal customer data is not a control.
Define detection rules and accept their limits
Detection works differently for structured and unstructured data. Structured identifiers such as account numbers or tax identifiers can be matched by pattern, with validation to cut false positives. Unstructured text is harder. A customer name next to a balance in a call note, or a loan narrative pasted into a chat window, may not match any pattern, and classifiers can both miss it and flag harmless text.
OWASP describes classifier screening of user prompts and retrieved or tool-returned content as an illustrative layer, not a complete defense. Design for that. Scope rules by context, since the same text may be acceptable for an internal model approved for that data class and unacceptable for an external one. Build labeled test sets from your own prompt traffic. Track false positives and misses as operating metrics. Run regular penetration testing and breach simulation that treats the model as an untrusted user, including tests for cross-user leakage at retrieval and prompt assembly.
Choose allow, redact, block or escalate
The action should depend on both the data type and the context. Which NPI types map to which actions is a design decision that needs legal, privacy and risk input. Regulation P limits the disclosure of NPI to nonaffiliated third parties and limits redisclosure and reuse, so counsel should decide how those limits apply to prompts sent to external providers. The pattern below is a starting point.
- Allow: Content with no NPI, or NPI going to an approved internal model for a data class and role the policy permits. Record the decision as evidence even when nothing is changed.
- Redact: NPI that is incidental to the task, such as a name or account number in a document being summarized. Replace it with consistent placeholders so the output stays useful.
- Block: High-sensitivity identifiers headed to a destination with no approved terms, unknown destinations, or output that would expose NPI to an unauthorized recipient. Default to block for destinations not on the approved list.
- Escalate: Privileged tool calls and ambiguous detections where automated rules are not sufficient. Route to a human approver and record who decided and why.
Where Trussed fits
Trussed enforces policy in the execution path across models, agents, tools and MCP servers, with allow, redact, block, rate limit and escalate actions applied to individual interactions and tool calls. Enforcement is at runtime, not reviewed after the fact. Each enforcement decision produces audit-ready evidence, mapped to frameworks including NYDFS and NIST. Trussed can be deployed self-managed in the customer cloud, with configurable retention and data residency, so evidence can stay within the institution's boundary.
In production, Trussed has run 100+ models under one policy plane and has 18+ months of continuous production in a regulated enterprise. Its customer base is deepest in insurance. The approach in this guide does not depend on any one product. The inventory, rules, action matrix and evidence schema are the same whichever tooling enforces them.