PASSISOAUDIT · REF: PIA-CTL-8.11 ISO/IEC 27001:2022 + AMD 1:2024 · LAST REVIEWED 23 NOV 2026
Annex A · Control 8.11 · Technological · New in 2022

ISO 27001 Annex A 8.11 data masking: when you need it and how

Control 8.11 asks you to hide or replace sensitive data wherever people or systems do not need to see all of it. Test environments are where it matters most.

Control
8.11
Theme
Technological
Status
New in 2022
Covered by
SoA row
Short answer

ISO 27001 Annex A 8.11 requires data masking to be used where your access rules, policies, business needs and the law call for it. In practice: find where people or systems do not need full data, such as test environments and support screens, and pseudonymise, redact or partly hide it there. Keep live personal data out of test systems.

Who wrote this

Brian Colborne, a deployment engineer with 25 years of testing whether systems work the way their documentation says they do. He runs independent pre-audit diagnostics on ISO 27001 management systems. About PassISOaudit

The requirement

What does ISO 27001 control 8.11 require?

Control 8.11 limits exposure of sensitive data, especially personal data, to what each user or system needs.

  1. Find where full data is not needed: test and development, analytics, support screens, exports and reports.
  2. Choose a technique: pseudonymise, anonymise, redact or partly mask, depending on the purpose.
  3. Apply it consistently: build masking into systems and processes, not individual habits.
  4. Respect the law: check data protection requirements, since pseudonymised data can still be personal data.
The audit test

What evidence does an auditor ask for on 8.11?

An auditor testing 8.11 asks where test and reporting data comes from. If the answer is "a copy of production", they ask to see how it was masked before use.

What the auditor looks for

  • A rule saying when masking is required
  • Test environments using masked or synthetic data
  • Reports and exports that hide data users do not need
  • Records of decisions where masking was judged not needed

Gaps to check before the audit

  • Production personal data copied into test systems
  • Full card or ID numbers visible to all support staff
  • Spreadsheets of customer data exported without need
  • A masking rule written but never applied
For small companies

How does a small company meet 8.11?

A small company that does not build software or handle bulk personal data can meet 8.11 lightly: a rule that test data is synthetic or masked, and that exports carry only the columns needed. If you build software, never copy live personal data into test environments without masking it first.

Decision table: where full data is not needed, and the technique that fits
SituationTechniqueEvidence
Test and development databasesSynthetic data, or a masked copy of productionMasking script or seed data in the repository
Support and admin screensPartial display, such as the last four digitsScreenshot of the screen
Analytics and management reportsPseudonymised IDs or aggregated figuresReport definition
Ad hoc exports to spreadsheetsOnly the columns needed; identifiers removedExport rule in the handling procedure
Documents released outside the companyRedactionRedacted copy kept with the original

A practical rule of thumb (our advice, not a requirement of the standard): if a person or system can do its job without seeing a field, mask that field there. Record the places where you decided masking was not needed, and why.

Related controls: 8.12 Data leakage prevention · 8.10 Information deletion · 8.28 Secure coding.

FAQ

Control 8.11 questions

Is data masking the same as encryption?

No. Encryption protects data so only key holders can read it. Data masking hides or replaces parts of the data so even authorised users see only what they need. Many companies need both.

Is pseudonymised data still personal data?

Under UK GDPR, usually yes, because pseudonymised data can be linked back to a person with extra information. Truly anonymised data is not personal data. The ICO's anonymisation and pseudonymisation guidance, published in March 2025, explains where the line sits.

Do small companies need data masking tools?

Usually not. A small company can meet 8.11 with synthetic test data, partial display of identifiers and limits on exports, without a dedicated masking product.

Can we exclude 8.11 if we do not develop software?

Sometimes, but check first. Even without software development, 8.11 can apply to reports, exports and support screens that show personal data. If none of those exist, justify the exclusion in your Statement of Applicability.

Is Azure SQL dynamic data masking enough for 8.11?

Azure SQL dynamic data masking helps but is not enough on its own. Microsoft says it limits what non-privileged users see, set under Security, Dynamic Data Masking in the Azure portal, but does not stop direct database users running queries that expose the data (Microsoft Learn). Pair it with access control, and mask test copies separately.

How do we mask data in PostgreSQL for test environments?

PostgreSQL has no masking built in. One route is the PostgreSQL Anonymizer extension, or a script that replaces names, emails and phone numbers with fake values before a production copy reaches test. Keep the script in your repository as 8.11 evidence.

Does showing only the last four digits count as data masking?

Yes. Partial display, such as the last four digits of a card or bank number, is one of the simplest masking techniques. It suits support and admin screens where staff need to confirm a record, not read the full value.

Can developers use production data to fix a live bug?

Yes, if it is controlled. Let developers look at production data in production, with approval, time-limited access and a logged reason, rather than copying it into a test environment. Write that exception into your masking rule.

PASSISOAUDIT · ISO/IEC 27001:2022 TOOLKITS NOT AFFILIATED WITH ISO OR ANY CERTIFICATION BODY.