Control · C-070 · Data & Data Governance
Prompt and context data loss prevention
Prompts, uploads and retrieved context are inspected before they reach a model, and blocked, redacted or flagged where they contain personal or restricted data.
- Control type
- Preventive
- Family
- Risks addressed
- 6
- Audience
- Heads-of · Practitioner
- Frameworks
- AML.M0012 · Article 5 · Article 32
- Responsible AI domain
- Lifecycle stage
- Reviewed
- 2026-11-11
What it does
It controls what goes into a model. An inspection step sits between users, integrations and retrieval on one side and the model on the other, detects personal, confidential and classified content, and applies a rule: block, redact, warn or allow. Security owns the mechanism and the data owner sets the rules. It operates on every request, for approved tools, and at the network edge for traffic to tools that are not approved.
How to implement it
- Classify what must not be sent to which tools, by data type and by provider.
- Detect identifiers, financial and health data, secrets and marked documents in prompts and uploads.
- Redact or tokenise where the task can still be done without the detail.
- Apply source permissions to retrieval, so context contains only what the user may see.
- Warn the user at the point of entry, with the reason.
- Log detections and review them for patterns and for false positives.
Evidence it operates
Design: data handling rules for AI tools; the configuration of the inspection step. Operation: detection and block logs; tests with seeded restricted data; tuning records; reports of trends to the data owner.
Where it fits
In front of the model, complementing output validation and guardrails behind it. It is the primary control for personal data in prompts and context and, with output controls, for sensitive information disclosure. It supports shadow AI use by blocking restricted data bound for unapproved tools.
Limits
Detection works well for structured identifiers and poorly for sensitive meaning expressed in ordinary words. Heavy blocking pushes staff to personal devices, where nothing is inspected. Encrypted traffic to consumer tools may not be visible at all. It reduces what reaches a provider and does not govern what the provider does with the rest.
Risks this mitigates
Primary mappings
- Confidential information disclosed to AI tools High
- Blocks or redacts restricted information in prompts and uploads. Trade secrets, legally privileged material or information held in confidence for others are entered into AI tools and leave the organisation's control.
- Personal data in prompts and context High
- Inspects prompts, uploads and retrieved context and blocks or redacts personal data. Users or integrations put personal data into prompts, uploads or retrieved context without a lawful basis or appropriate safeguards.
- Sensitive information disclosure Critical
- Stops restricted data reaching the model in the first place. An AI system reveals personal, confidential or commercially sensitive information in its output to someone who should not have it.
Supporting mappings
- Hidden context exposure Medium
- Stops restricted data entering the context where it could later be exposed. Content the operator assumed the user could not see, such as retrieved passages, tool definitions, schemas or policy logic, is revealed or inferred through the model.
- Shadow AI use High
- Blocks restricted data going to unapproved tools. Staff use AI tools that have not been approved, placing organisational data and decisions outside any control.
- Vendor reuse of organisation data High
- Limits what reaches the provider at all. A provider uses the organisation's prompts, documents or outputs to train or improve its own models, or keeps and reviews them, beyond what the organisation intended.
Framework and clause references
| Framework | Clause | Title |
|---|---|---|
| MITRE ATLAS | AML.M0012 | Encrypt Sensitive Information Protection of sensitive information. |
| UK General Data Protection Regulation | Article 5 | Principles relating to processing of personal data Minimisation. |
| UK General Data Protection Regulation | Article 32 | Security of processing Security of processing. |
Related terms
How to cite
Axiom Verity (2026). Prompt and context data loss prevention. Reference Library, C-070. https://axiom-verity.com/controls/prompt-and-context-data-loss-prevention. Reviewed 2026-11-11.
Found an error or a better source? Report a correction.