Controlling Sensitive Data in Prompts Under ISO/IEC 42001 Annex A.7.6 Data Preparation
Annex A.7.6 addresses data preparation for AI systems and does not spell out prompt handling at inference time. Applying it to prompts is an implementer's interpretation. A defensible approach turns it into six control requirements (detection, classification, redaction, blocking, escalation and retention), enforces them before a prompt reaches a model, agent or tool, and keeps per-interaction records as audit evidence. Runtime enforcement covers that path. It does not replace RAG access scoping or provider-side retention settings.
- The documented interpretation of A.7.6 for prompt inputs, with scope and rationale
- Data category definitions and the handling rule for each category, destination and application
- Per-interaction records of policy decisions: allowed, redacted, blocked or escalated
- Escalation records showing who approved or rejected a request, and when
- Retention and residency settings for prompts and decision records, including provider-side settings
- Periodic review of detection performance and rule changes within the Plan-Do-Check-Act cycle
What Annex A.7.6 covers and what it leaves to you
ISO/IEC 42001:2023 specifies requirements for establishing, implementing, maintaining and continually improving an AI management system. ISO describes it as a Plan-Do-Check-Act standard, and its requirements include data governance and system lifecycle controls. Annex A.7.6 is titled Data preparation.
The NIST crosswalk between the AI RMF and ISO/IEC 42001 places data preparation alongside the neighbouring data controls against Map 2.3, which concerns data collection and selection, experimental design and construct validation. That framing is about data used to develop AI systems. A user pasting a patient record or an API key into a prompt at inference time is not obviously within it.
Extending the control to prompt inputs is therefore a decision your organization makes and records, not something the standard states. The justification is straightforward. Current guidance, including OWASP LLM02:2026 on sensitive information disclosure and NIST AI 600-1 on data privacy risk, treats prompt-level exposure as a material risk. Document the interpretation in your control mapping, with its scope and rationale, so an auditor sees a deliberate position rather than an assumption. Read the control wording and its implementation guidance in your licensed copy of the standard before finalizing it.
Which sensitive data in prompts needs handling
NIST AI 600-1 describes data privacy risk as leakage, unauthorized use, disclosure or de-anonymization of biometric, health, location and other personal or sensitive data, and notes that what counts as sensitive can be highly contextual. That argues against a fixed list. Start from your existing data classification policy and add organization-specific rules.
For most regulated enterprises the working categories are:
- Personal data: Identifiers and contact details, plus biometric and location data, where privacy law applies.
- Health data: Clinical or insurance information subject to sector rules such as HIPAA.
- Credentials and secrets: API keys, tokens and passwords, which OWASP advises never to store in system prompts.
- Proprietary content: Source code, contracts, pricing and other confidential business material, defined by your own classification scheme.
Where runtime enforcement fits, and where it does not
Policy documents describe intent. They do not show that a control operated on a live interaction. Placing enforcement in the path between the prompt source and the model, agent or tool lets minimization and obfuscation happen before data leaves your boundary, and produces a record of each decision at the point it was made. This placement is a design choice, and it is where an auditor looking for operating evidence will expect to find it.
Several exposure paths sit outside that point. System prompts can hold secrets, so remove secrets and regulated data from them. RAG pipelines can retrieve sensitive content from drives and knowledge bases with legacy permissions, which OWASP calls oversharing upstream. That is an access-scoping problem to solve at the source. Provider-side exposure is separate again: prompts may be unencrypted at a cloud AI provider, so retention and logging settings there need their own control. Add ISO/IEC 27001 controls, GDPR obligations and NIST AI RMF practices to the mapping where they apply. ISO positions 42001 and 27001 as complementary.
Trussed is one way to enforce policy in the execution path across models, agents, tools and MCP servers. It applies allow, redact and block decisions, supports escalation for human approval, and can be deployed self-managed in the customer cloud with configurable retention and data residency. It does not provide dataset provenance, model lineage or end-to-end tracing of agentic workflows, so those needs call for other controls.
Evaluating an enforcement approach
Whether you build or buy, test a few things. Check which categories are detected and whether organization-specific categories can be configured, given that sensitivity is contextual. Check which actions are available and whether they vary by category, application or destination. Confirm that the records produced per interaction are durable, retained and located as your policy requires, and that they can be exported in a form an auditor can read. Confirm coverage across models, agents, tools and MCP servers, and where the enforcement runs.
Be equally clear about what the approach leaves out. Redaction accuracy has limits, so document residual risk and the compensating controls around it. Prompt-level enforcement narrows exposure and produces evidence, but it does not by itself establish conformity with the standard. Certification depends on the whole management system, and no single technical measure determines it.
A practical next step is to take one high-risk application, write the six requirements for it, run it through enforcement for a defined period, and review the resulting records against the evidence list above.
From Annex A.7.6 to prompt-level control
Define
Prompt data categories and handling rules set in policy
Enforce
Allow, redact, block or escalate before data leaves the boundary
Retain
Retention and residency set to match organizational policy
Evidence
Per-interaction decisions available to an auditor
See prompt-level enforcement and evidence in practice
Talk through how policy is enforced in the execution path and what audit-ready evidence it produces for your ISO/IEC 42001 control mapping.
Request a DemoHow does your AI governance program compare?
See where your program has gaps in less than 2 minutes.