ISO 27001 Annex A Controls Relevant to Document Processing Pipelines
Document pipelines face unique data-movement risks that 2022's ISO revisions directly address.

That combination is rare. Most systems face one or two of these risk classes at a time. A document pipeline faces all of them simultaneously, in a single workflow that runs continuously and at volume.
Each stage of that workflow adds its own exposure point. Every OCR call sent to a vendor API, every parsed payload handed off to an accounts payable system or a mortgage underwriting tool, and every intermediate file written to a storage bucket is a separate place where something can go wrong. A static document repository, where files sit and wait to be retrieved, doesn't multiply exposure this way. A pipeline does, because it moves data constantly and hands it to different systems and different parties at each step.
That concentration is why a targeted reading of Annex A works better than a blanket one. Treating all 93 controls as equally urgent wastes engineering time and buries the controls that actually matter under a pile of controls that don't apply to this particular workflow. Engineering and compliance teams get more value from identifying the specific subset of controls that maps to where document pipelines actually break down. The 2022 revision of the standard, as it happens, sharpened precisely that subset, adding new controls that speak directly to the data-movement problems pipelines create.
How ISO 27001:2022 changed for document workflows
The revision added 11 new controls, and the ones that bite hardest in document pipelines are concentrated in Theme 8, the Technological Controls category. Those controls are:
- 8.9 Configuration management, new in 2022
- 8.10 Information deletion, new in 2022
- 8.11 Data masking, new in 2022
- 8.12 Data leakage prevention, new in 2022
- 8.16 Monitoring activities, new in 2022
- 8.28 Secure coding, new in 2022
- 5.23 Information security for use of cloud services, new in 2022
These controls together address a specific gap that caused real-world breaches: organizations with strong perimeter security had no systematic controls over how data moved within or out of the environment, exactly the internal data-movement problem that document pipelines create. That's the exact problem document pipelines create internally, since a pipeline's whole job is moving sensitive data from one system to another, repeatedly, often through a third party.
The four-category structure of the 2022 standard, Organizational, People, Physical, and Technological, also changes how teams can assign ownership. Supplier and cloud governance controls sit under the Organizational theme, in Clause 5. That separation lets a compliance function own vendor contracts, a vendor management function own the ongoing relationship, and an engineering team own configuration and code, without any group having to claim the whole standard as its responsibility.
Theme 5 organizational controls and pipeline entry
The organizational controls that matter most to a document pipeline are the ones governing supplier relationships and information classification. Most production document pipelines rely on at least one third-party vendor for OCR, parsing, or AI extraction, and the security of that relationship is established at the contract stage, not the audit stage.
Controls 5.19 and 5.20 require that any third-party vendor processing sensitive information on an organization's behalf be held to documented security standards, with those standards written into the contract itself rather than left in a vendor questionnaire that gets filed away and forgotten. For a document AI vendor specifically, the contract needs to spell out data retention policy (ideally a zero-retention commitment), where processing physically happens, whether subprocessors are involved and disclosed, and how fast the vendor commits to notifying the customer of a breach. A vendor that refuses to put those terms in writing isn't offering a minor inconvenience. It's a vendor whose security posture can't be audited, which is itself a failure of control 5.20.
Classification comes next. Controls 5.12 and 5.13 require an organization to know the sensitivity level of each document type before that document ever reaches the pipeline, because classification is what tells the rest of the system which downstream controls apply: masking, access restriction, how long something can be retained. A pipeline that hasn't classified its inputs has no way to decide, automatically, whether a given file needs the strict handling a payslip requires or the lighter handling an invoice might get.
Control 5.23, one of the new 2022 additions, requires documented policy for how cloud services get acquired, used, managed, and eventually exited, which covers the security requirements an organization places on cloud-based document processing APIs. This matters because most document AI runs on infrastructure the customer doesn't own, and 5.23 is the control that forces a written answer to what happens when that relationship ends.
None of this is paperwork for its own sake. A data leakage prevention system can monitor every byte that leaves a pipeline, but it can't undo a retention period the vendor contract never restricted. If the supplier agreement doesn't require zero retention, no amount of technical monitoring catches the copies of a document sitting on a vendor's server months after the customer assumed they were gone.
Data leakage prevention and information deletion in document pipelines
Controls 8.12 and 8.10 target the most common real-world failure in document pipelines: data that enters correctly but leaves, or lingers, in ways the organization never intended. This is where the argument gets concrete, because these two controls map almost one-to-one onto the specific mechanics of how a pipeline moves and stores information.
Control 8.12, data leakage prevention, requires both preventive measures that block unauthorized data transfers and detective measures that monitor and alert on suspicious movement. In a document pipeline, that covers two distinct things: the outbound API call sent to a document AI vendor, and the internal routing of parsed payloads from one system to the next. Both directions carry risk, and both need coverage.
The parsed output deserves particular attention here. Every OCR call and every parsed JSON payload is a potential exfiltration point, and the parsed version of a document is often more dangerous than the original file. A payslip, once parsed, becomes a structured record containing name, employer, salary, tax ID, and bank account details, all machine-readable and easy to move, copy, or query at scale. DLP programs frequently miss this. Security effort tends to concentrate on the ingestion layer, the point where the raw PDF comes in, while the extracted JSON gets treated as internal data and left out of the same scrutiny.
Control 8.10, information deletion, requires that data be disposed of securely once it's no longer needed, and it directly addresses the over-retention problem that builds up naturally as a pipeline scales. Volume creates its own risk here. Every additional day a document or its parsed fields sit in a processing cache, a vendor's temporary storage, or an intermediate queue is another day during which a misconfiguration, a compromised account, or a subprocessor breach could expose it.
Zero-retention API contracts, where a vendor processes a document and returns structured output without keeping the original file or any intermediate representation, are a direct way of putting 8.10 into practice at the vendor relationship level. 8.10 extends beyond the vendor boundary. The same requirement applies internally: any pipeline stage that writes intermediate files to disk or object storage during processing needs a defined retention window and automated deletion rather than a policy that just assumes an engineer will eventually clean things up.
These two controls reinforce each other in a specific, practical way. A pipeline that holds onto documents longer than necessary expands the surface area that 8.12's monitoring has to cover. Deletion is the upstream control, and getting it right shrinks the monitoring burden that falls on leakage prevention downstream. Get retention right first, and detection has a smaller, more manageable target.
Data masking and access restriction for mixed-sensitivity fields
Document pipelines create a problem that most generic data systems don't have to deal with: a single document frequently contains fields at wildly different sensitivity levels. An invoice might carry a vendor name and an amount due next to a bank routing number. A payslip might sit next to a diagnosis code in a benefits claim. That mix means access control and masking can't operate at the level of the whole document. They have to operate field by field.
Control 8.11, data masking, requires that sensitive data be obscured according to access control policy and actual business need. For a document pipeline, that means PII fields like name, tax ID, and account number need to be redacted or tokenized before parsed output reaches any system or person who doesn't have a legitimate reason to see the raw value. For healthcare organizations, this control directly supports HIPAA's de-identification requirements: the same parsed record that contains both a diagnosis code and a patient name needs that name masked before it ever reaches a claims processing queue where billing analysts work. For pipelines feeding an LLM or a retrieval-augmented generation system, 8.11 governs PII redaction before a document enters the model's prompt context. Passing a raw payslip or bank statement into an LLM without masking it first is a direct failure of 8.11, not just a lapse in judgment.
Control 8.3, information access restriction, governs which pipeline components and which downstream systems get to read which extracted fields. The access policy applied to parsed JSON output needs to be as granular as the classification applied to the original document under control 5.12, and that granularity is what makes the engineering hard. Most access control systems are built to grant or deny access to an object, a whole file or a whole database record, not to individual fields inside a parsed output. Enforcing field-level restrictions means the pipeline's data model has to support that granularity from the start, and most off-the-shelf access control tooling doesn't make this easy.
The gap this creates in practice is a familiar one. A service account used by the parsing component often ends up with read and write access to every extracted field, because it was given broad permissions during early development and nobody ever went back to scope it down. That setup violates 8.3 directly, and it means a single compromise of the parsing service exposes the entire structured dataset at once, not just the fields that particular service actually needs.
Control 8.2, privileged access rights, extends this same logic to the humans running the infrastructure. Engineers and administrators with access to pipeline systems can see raw documents and parsed output as a side effect of their operational role, regardless of whether any business process requires it. That access needs the same scrutiny applied to any automated service account: scoped to what the role actually requires, and reviewed on a schedule rather than granted once and forgotten.
Configuration management and secure coding requirements for the pipeline codebase
Everything covered so far treats the pipeline as a conduit, a system that moves and stores sensitive data under a set of rules. But the pipeline's own codebase, its prompt templates, schema validation logic, model endpoint configurations, and credential management, is itself a security asset that needs governance. A large share of document pipeline breaches originate in exactly this layer.
Control 8.9, configuration management, requires that configurations across hardware, software, services, and networks be established, documented, implemented, monitored, and reviewed. Applied to a document pipeline, that requirement plays out in a few concrete places. Model endpoints need version control: an unversioned endpoint that receives a silent update from the vendor can change extraction behavior overnight, with no change management review to catch it, and the result is field-level accuracy regressions that stay invisible until a downstream business process breaks. API keys and vendor credentials used throughout the pipeline are configuration items that require management, rotation, and auditing, and hardcoded credentials sitting in pipeline code are a straightforward 8.9 failure with direct data exposure consequences. Schema validation rules, the JSON schema that defines what a valid parsed invoice actually looks like, count as configuration items too. A schema that drifts away from the upstream model's output format, without going through a controlled change process, will quietly let malformed extractions flow through to whatever system consumes them next.
Control 8.28, secure coding, requires secure coding principles applied throughout software development. For pipelines built on LLM-based extraction, this includes defending against prompt injection: code that builds a prompt by concatenating raw document content with instruction text is vulnerable to injection through hidden text embedded in the document itself. A malicious actor doesn't need to compromise the pipeline's infrastructure to manipulate its output. They only need to plant text in a document that the extraction logic will read as an instruction rather than as data.
Taken together, 8.9 and 8.28 establish that the pipeline itself, along with the channel data flows through, is part of the attack surface. A perfectly configured vendor contract and a well-designed access policy still leave an organization exposed if the code running the pipeline hardcodes its own credentials or trusts document content as if it were safe instruction text. Annex A's technical controls close that last gap, and closing it is what turns a pipeline built for speed into one built to withstand scrutiny.
Sources
- ISO 27001 Controls Explained: A Guide to Annex A (Updated 2024) | Secureframe
- ISO 27001 Annex A Controls Explained | Full List & Overview | Hicomply
- ISO 27001 Controls: A Complete Guide to Annex A
- ISO 27001:2022 Annex A 8.12 Data Leakage Prevention Explained
- ISO 27001:2022 Annex A Control 8.10 Explained - ISMS.online
- ISO 27001:2022 Annex A 8.11 Data Masking Explained
- ISO 27001 Configuration Management Explained (Annex A 8.9) - High Table
- How to Implement ISO 27001 Annex A 8.28 Secure Coding


