How to trace PDF data before approving an AI workflow
11 April 2026
Before sending confidential PDFs to an AI service, establish what content leaves the organisation, which services receive it, where it is processed and stored, who can access it and how each copy is retired. Check the exact product, feature and configuration against current terms. A statement about training use does not answer retention, logging or access questions. Approve a defined workflow with evidence for its actual data path.
What should a business check before using AI with confidential PDFs?
The decision this article resolves
Start with the processing purpose. An assistant that extracts equipment identifiers needs different data from one that summarises a confidential contract. Identify the minimum document content needed, the intended audience and the consequence of an incorrect disclosure.
Classify source documents and derived outputs under the organisation's own policy. Decide who may authorise processing and which uses require privacy, security, legal or contractual review. Reading permission for an employee does not automatically establish permission to place the content in every external tool.
Where this guidance stops
This is a supplier and workflow assessment method. It does not establish compliance with any country's law, provide a legal basis for processing or certify a provider's security. Those decisions require the organisation's facts and the relevant qualified reviewers.
The worked test uses synthetic files and a receiver on the same machine. It shows exactly what the client sent. The supplier questions address the separate evidence needed for a real deployment.
Map admitted data and model destinations
Prompts, embeddings, outputs and subprocessors
Follow content through the full application, including components outside the model service. A document may be uploaded to storage, converted to text, divided into passages, indexed, placed in a prompt and copied into a response or diagnostic log. Record each transformation and destination rather than drawing one arrow labelled “AI”.
| Data object | Destination questions | Evidence to request |
|---|---|---|
| Original PDF | Where is upload storage, and who administers it? | Resource configuration and access policy |
| Extracted text | Which OCR or parser receives it? | Processing route and temporary-storage settings |
| Passages and metadata | Are names or identifiers copied into an index? | Index schema and access rules |
| Embeddings | Who hosts the vector store? | Store location, isolation and deletion process |
| Prompts and answers | Which model endpoint and optional features are used? | Endpoint identity and applicable terms |
| Logs and support records | Can content be captured during errors or support? | Logging configuration and access controls |
| Backups and exports | Which copies survive primary deletion? | Retention and restoration procedures |
Do not assume embeddings are anonymous. Research by Morris and colleagues demonstrated reconstruction of text from embeddings under the studied conditions. It does not prove that every embedding is equally recoverable, but it supports assessing embeddings as potentially sensitive derived data. Primary research.
Identify every supplier and relevant subprocessor role: hosting, extraction, model inference, monitoring and support. Request current documentation and contract references for the actual service, including optional features. Avoid transferring a statement from a consumer product to an enterprise API or from one deployment route to another.
Worked example: assessing a confidential-document AI data flow
Inputs, assumptions and the expected result
The proposed data-flow register describes a fictional workflow for extracting equipment identifiers from internal maintenance PDFs. The design excludes personal contact details from the permitted prompt. It uses no real documents and names no selected supplier.
Its proposed path is upload storage → text extraction → selected passages → retrieval index → model prompt → reviewed answer. Application logs and backups are separate branches that also need assessment. The allowed answer contains the identifier, source page and an uncertainty flag; it should abstain when the identifier is unreadable.
We put the extraction step under test before connecting a supplier. The first maintenance PDF contains the invented identifier EQ-0481 and a conspicuous contact marker. Its document properties contain a different marker. We extracted the text with Poppler and sent a JSON request to a receiver listening only on the test machine. The receiver recorded the bytes it actually received.
| Request policy | What the receiver observed |
|---|---|
| Send the whole extracted text | 130 bytes. The equipment identifier and the contact marker both arrived. The marker in the PDF properties did not. |
| Allow only one well-formed identifier, its page and an uncertainty flag | 63 bytes. The identifier arrived without the contact marker. |
| Apply the same rule to a PDF with no valid identifier | No request arrived. The client stopped before transmission. |
The receiver record includes the JSON fields, byte counts and file digests. A smaller request alone establishes little. Inspecting the received fields is what exposed the extra contact data. The fixture does not exercise a model or a cloud endpoint.
Ask the supplier and application owner to answer these questions with dated evidence.
- Which exact product, model endpoint and enabled features process each object?
- Is content used for training or service improvement, and under which permissions or options?
- What retention applies separately to uploads, histories, logs, monitoring records and backups?
- Where do processing and storage occur, including fallback or global routing?
- Which people and subprocessors may access content, and for what purpose?
- How does deletion propagate to derived objects, and what remains under an exception?
- How are user permissions enforced during retrieval and export?
- Which configuration changes invalidate the assessment?
Microsoft's current documentation for models sold by Azure illustrates why these questions must remain separate. It says foundation-model training does not use customer inputs without permission or instruction, while some optional features persist content. It also distinguishes Global and DataZone processing from the storage geography. Those statements apply to that documented service and do not establish your application's configuration. Microsoft data-handling documentation.
A published provider setting tells you where to look. For example, Amazon Bedrock documents optional invocation logging for supported runtime calls. An enabled configuration can send inputs and outputs to CloudWatch Logs or S3 in the account and Region. Ask the administrator for the setting and destination for the actual route, then check who can read those records and how long they last. Amazon Bedrock invocation logging.
The supplier evidence worksheet requires each answer to include a source clause or configuration reference, the covered feature, exceptions, evidence date and reviewer. “Unknown” is an acceptable finding; a favourable guess is not.
What the example can and cannot establish
The two received requests establish the fields transferred in this local test. Supplier storage, model processing, logging and deletion in a live tenant still need their own evidence. Repeat the capture with a safe marker at each authorised boundary that matters to your decision.
Use synthetic files with recognisable test markers for the initial control checks. They can exercise routing and access without exposing real information, although they cannot establish whether every sensitive document will be correctly minimised.
Verify handling and access controls
Actual configuration and supplier evidence
Reconcile three evidence layers: supplier commitments, application design and observed configuration. A contract can describe available controls while a deployment uses a different feature. A diagram can omit a troubleshooting service. A successful user-interface test can miss a backend export route.
Have an authorised administrator identify actual resources, endpoints, roles, logging settings and connected stores. Record configuration evidence with its date and scope. Do not put credentials or live secrets into the assessment file.
Run a controlled access matrix using an authorised user, an unauthorised user and a user whose access has been revoked. Check retrieval, answer display, citations, exports and cached conversations. Test both direct questions and paraphrases that might reveal restricted information indirectly.
For deletion, create a synthetic object, trace its derived records and follow the documented process. Distinguish disappearance from the interface, deletion from active stores and expiry from backups or retained monitoring records. A successful search returning no result proves only that search no longer retrieves it in the tested state.
Record results as observed, documented, unverified or failed. A supplier citation is useful only if it covers the precise claim, service and exception. Store unresolved discrepancies as questions for the responsible owner rather than blending them into an overall “private” label.
Acceptance checklist for confidential-document AI processing
Prompt injection, excessive disclosure and legal review
Check whether the proposed task sends more information than necessary. Removing names from visible text may leave identifiers in document metadata, attachments or copied notes. Verify the actual payload and derived records using safe test content before relying on minimisation.
OWASP recommends least-privilege access and human control over privileged actions when mitigating prompt injection. OWASP LLM01. Apply those principles to the surrounding application: a document's instruction to retrieve unrelated confidential files must not create permission to access them.
For this assessment, require:
- A defined processing purpose and permitted data categories.
- A complete destination and derived-data inventory.
- Evidence for training use, retention, locations and access arrangements.
- Tested user isolation, revocation and export behaviour.
- A documented deletion process with remaining copies and exceptions identified.
- Named owners for unresolved contractual, privacy and security questions.
Route jurisdictional obligations and confidentiality commitments to the relevant qualified reviewers. If a material destination or retention condition remains unknown, limit the pilot to synthetic or otherwise approved material until that issue is resolved. No blanket privacy guarantee follows from one successful test.
Approve a bounded AI workflow
Approved scope, responsibilities and change triggers
Record the approved documents, users, processing purpose, service configuration and output destinations. Name who monitors changes and who can suspend the workflow. Keep the evidence supporting approval accessible to those responsible for operating it.
Reassess when the provider, model route, region, optional storage feature, connector, logging policy or document category changes. An approval for extracting identifiers from a small maintenance set does not automatically cover summarising personnel files or connecting an entire repository.
Begin the evaluation with a concrete data-flow register and safe test objects. Approve real content only when the responsible owners have resolved material gaps and accepted the remaining conditions. Preserve the difference between a documented provider promise and a control actually verified in your deployment.
Sources
-
Morris et al.: Text Embeddings Reveal (Almost) As Much As Text, EMNLP 2023, accessed 31 October 2026.
-
Microsoft: Data, privacy and security for models sold by Azure, accessed 31 October 2026.
-
OWASP: LLM01:2025 Prompt Injection, accessed 31 October 2026.
-
Amazon Web Services, model invocation logging in Amazon Bedrock, checked 3 November 2026.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with ChatGPT. Editorial and technical checks by Kairos (Codex).
