Data Masking and DLP Standard Template (ISO/IEC 27001 A.8.11, A.8.12)
Masking and pseudonymisation techniques, test data, re-identification risk, DLP channels, rule catalogue, tuning, alert handling, staff privacy
उपयोग कैसे करें: Use it when A.8.11 or A.8.12 is applicable or customers ask how their data stays out of test systems and unapproved channels. Fill the data types and triggers first, then the masking technique table and the DLP channel coverage table, linked to your classification policy. The main pitfall is enforcing DLP blocking on day one instead of tuning in monitor mode, and calling pseudonymised data anonymous.
प्रीव्यू
Data Masking and Data Leakage Prevention Standard: [Organization name]
Technical standard for two controls added to Annex A in 2022: data masking (A.8.11) and data leakage prevention (A.8.12) of ISO/IEC 27001:2022 + Amd 1:2024, with guidance from ISO/IEC 27002:2022. It sets when and how to mask, pseudonymise or anonymise data, the rules for test and non-production data, which channels data leakage prevention (DLP) covers, how DLP rules are deployed, tuned and handled as security events, and the privacy limits on monitoring staff. Replace every
[bracketed]value and every row marked Example. This is a documentation format, not legal advice.
Document control
| Field | Value |
|---|---|
| Document ID | [DOC-ISMS-062] |
| Version | [1.0] |
| Status | [Draft / In review / Approved / Superseded] |
| Owner | [@security-engineering-lead] |
| Approvers/reviewers | [@isms-manager], [@ciso], [@dpo], [@hr-lead], [@head-of-engineering] |
| Last updated | YYYY-MM-DD |
| Effective from | YYYY-MM-DD |
| Classification | [Internal] |
| Standard and edition | ISO/IEC 27001:2022 + Amd 1:2024 (A.8.11, A.8.12); ISO/IEC 27002:2022 |
| Next scheduled review | YYYY-MM-DD |
| Inputs | [Data classification policy], [Asset inventory DOC-ISMS-012], [Risk register DOC-ISMS-016], [DPIA reference] |
| Rule catalogue version | [DLP-RULESET v1.0, YYYY-MM-DD] |
| Related documents | [Information transfer policy DOC-ISMS-043], [Security monitoring procedure DOC-ISMS-064], [Secure development policy DOC-ISMS-065] |
Approvals
| Role | Name | Decision | Date |
|---|---|---|---|
| Standard owner | [@security-engineering-lead] | [Prepared] | YYYY-MM-DD |
| Data protection officer | [@dpo] | [Privacy review completed] | YYYY-MM-DD |
| HR or employee representative consultation | [@hr-lead] | [Consulted, where required] | YYYY-MM-DD |
| Top management sponsor | [@ciso] | [Approved / Approved with changes] | YYYY-MM-DD |
Revision history
| Version | Date | Author | Change |
|---|---|---|---|
| 0.1 | YYYY-MM-DD | [@owner] | First draft |
| 1.0 | YYYY-MM-DD | [@owner] | Approved for issue; DLP in monitor mode |
| 1.1 (Example) | YYYY-MM-DD | [@owner] | Rules DLP-RUL-001 and 004 moved to block after tuning period |
| [x.y] | YYYY-MM-DD | [@author] | [Change summary] |
Contents
- 1. Purpose, scope and authority
- 2. Roles and responsibilities
- 3. Data in scope and triggers
- 4. Masking, pseudonymisation and anonymisation techniques
- 5. Test and non-production data
- 6. Pseudonymisation secrets and re-identification risk
- 7. DLP channels and coverage
- 8. DLP rule catalogue
- 9. Deployment and tuning
- 10. DLP alert and incident handling
- 11. Privacy and staff monitoring
- 12. Exceptions
- 13. Size tiers
- 14. Records and evidence
- 15. Control mapping
- 16. References
- Standard and licence note
1. Purpose, scope and authority
This standard applies to all information classed Confidential or
Restricted under data/data-classification-policy, and to all personal
data, wherever it is stored or processed inside the ISMS scope
([DOC-ISMS-002]). It covers:
- Masking (A.8.11): deciding who sees full values and who sees a reduced or transformed version, so that support staff, analysts, developers, log readers and test environments get only the detail their task needs (sections 3 to 6).
- Data leakage prevention (A.8.12): knowing every route by which sensitive data can leave the organization's control (mail, sharing links, chat, browser uploads, AI assistants, USB, print, bulk database exports) and, for each route, choosing whether to watch it, warn the user, block it or rely on another control (sections 7 to 11).
It applies to employees, contractors and suppliers using
organization-managed devices, accounts and services. Personal devices
are covered only inside managed containers defined in
isms/endpoint-device-byod-policy.
2. Roles and responsibilities
| Role | Responsibilities |
|---|---|
| Standard owner [@security-engineering-lead] | Maintains this standard and the rule catalogue; runs tuning reviews; reports metrics |
| Information owners | Define which data types need masking or DLP protection; approve unmasked access and rule exceptions for their data as risk owners, within the approval limits in section 12 |
| Engineering leads | Implement masking in applications, pipelines and test data provisioning per section 5 |
| DLP analysts (security team or managed service) | Triage alerts within the service levels in section 10; only named, trained analysts may view alert content |
| Data protection officer [@dpo] | Reviews techniques against privacy law, reviews the monitoring impact (section 11), advises on breach assessment |
| HR lead [@hr-lead] | Handles cases where an alert indicates possible misconduct, under isms/security-disciplinary-process |
| ISMS manager [@isms-manager] | Links rules to risks and the SoA; follows audit findings; includes metrics in the measurement programme |
3. Data in scope and triggers
| Data type | Example identifiers | Classification | Masking required where | DLP detection method |
|---|---|---|---|---|
| Customer personal data (Example) | Name, e-mail, phone, address, customer ID | Confidential | Support tools, analytics, logs, non-production | Label plus pattern plus exact data match on customer table |
| Special category or health data (Example) | Diagnosis, appointment reason, patient identifier | Restricted | Everywhere outside authorised clinical roles | Label plus exact data match; block outbound |
| Payment card data (Example) | Primary account number | Restricted | Display shows last four digits at most; never in logs | Pattern with checksum validation |
| Credentials and secrets (Example) | API keys, private keys, tokens | Restricted | Never displayed; redacted in logs | Secret patterns in code, chat and paste sites; see security/secrets-management-standard |
| Source code and designs (Example) | Repository content, CAD files, OT programs | Confidential | Not applicable | Fingerprint and location rules; repository visibility monitoring |
| Commercial documents (Example) | Contracts, price lists, board papers | Confidential | Not applicable | Sensitivity label and document fingerprint |
4. Masking, pseudonymisation and anonymisation techniques
| Technique ID | Technique | How it works | Reversible? | Still personal data? | Typical use |
|---|---|---|---|---|---|
| MSK-TEC-001 | Static redaction | Replace the value with a fixed token such as *** | No | Usually yes if other identifiers remain | Logs, exports to third parties |
| MSK-TEC-002 | Partial masking | Show part of the value (last four digits, first letter) | No | Yes | Support screens, receipts |
| MSK-TEC-003 | Dynamic masking | Mask at query or display time based on the user's role | Yes for authorised roles | Yes | Production support and analytics tools |
| MSK-TEC-004 | Keyed pseudonymisation | Replace identifier with a keyed hash (HMAC) or token from a vault | Only with the key or vault | Yes (pseudonymised) | Analytics joins, data science, data shared between teams |
| MSK-TEC-005 | Format-preserving encryption | Encrypt so the output keeps the format | Yes with the key | Yes | Legacy systems that validate formats |
| MSK-TEC-006 | Substitution with synthetic values | Replace with realistic fake values from a generator | No | No for the substituted fields, check the rest | Test and demo data |
| MSK-TEC-007 | Generalisation and suppression | Reduce precision (age bands, postcode prefix), drop rare values | No | Depends on re-identification risk assessment | Statistics, research extracts |
| MSK-TEC-008 | Aggregation with thresholds | Publish counts only above a minimum cell size | No | Normally no, if thresholds are adequate | Dashboards, external reports |
| MSK-TEC-009 | Fully synthetic data | Generate a data set with similar statistics but no real records | No | Normally no; test for memorised records | Model training, vendor testing |
Rules:
- MSK-STD-001: Logs and error messages must not contain
Restricted data or credentials in clear; apply MSK-TEC-001 at the
logging library (see
security/security-logging-standard). - MSK-STD-002: Staff who do not need full identifiers see masked
values by default (MSK-TEC-002 or 003). Unmasking is a privileged
action that is logged, in line with the access control policy
(
isms/access-control-policy). - MSK-STD-003: Data is described as anonymised only after a documented re-identification risk assessment (section 6). Otherwise it is treated as pseudonymised personal data.
- MSK-STD-004: Unsalted or unkeyed hashes of low-entropy identifiers (e-mail, phone, national ID) are not an approved masking technique.
5. Test and non-production data
- MSK-STD-005: Production personal or Restricted data must not be copied to development, test, staging, demo or vendor environments unless masked or substituted (MSK-TEC-004, 006, 007 or 009) inside the production boundary before the copy.
- MSK-STD-006: Where real data is unavoidable (for example reproducing a defect that only occurs with one customer's data), the information owner approves in writing (with the department head, or higher, where the residual risk requires it under section 12), the data set is minimised, access is limited to named people, the copy is deleted within [14] days, and the approval is recorded as an exception (section 12).
- MSK-STD-007: Masking pipelines are code: they are reviewed, version-controlled and tested to fail closed (a column added to a production table without a masking rule stops the pipeline).
- MSK-STD-008: Data shared with suppliers for testing or support
follows
isms/information-transfer-policyand the supplier agreement.
6. Pseudonymisation secrets and re-identification risk
- MSK-STD-009: Keys for keyed hashing, tokenisation and
format-preserving encryption are managed under
security/cryptography-standardand recorded in the cryptographic key register ([DOC-ISMS-070]). They are stored separately from the pseudonymised data and accessible to a separate role. - MSK-STD-010: Before data is released as anonymised, or shared
outside the organization in pseudonymised form, a re-identification
risk assessment considers: direct identifiers removed, indirect
identifiers (dates, locations, rare attributes), linkable external
data, the recipient's capability and motive, and the release model
(public, controlled sharing, internal only). Record the result in the
DPIA (
compliance/dpia) where one is required. - MSK-STD-011: Re-identification of pseudonymised data is permitted
only for the purposes recorded in the record of processing
(
compliance/gdpr-ropa) and is logged.
ISO/IEC 27559:2022 gives a framework for de-identification of personal data, and NIST SP 800-188 (September 2023) describes de-identification techniques and governance; use either as a reference for the assessment method.
7. DLP channels and coverage
| Channel ID | Channel | Control approach | Coverage (Example) | Residual gap and compensating control |
|---|---|---|---|---|
| DLP-CHN-001 | Corporate e-mail outbound | Gateway or suite DLP: inspect content and labels, encrypt or block | All mailboxes | Personal webmail blocked by web filtering (A.8.23) |
| DLP-CHN-002 | Cloud storage and file sharing | Suite DLP and sharing policy: block external sharing of Restricted labels | All tenants | Shadow storage services detected by cloud access broker logs |
| DLP-CHN-003 | Collaboration and chat | Suite DLP on messages and attachments to external guests | Internal and guest channels | Screenshots of chat not detectable |
| DLP-CHN-004 | Endpoint (copy to USB, print, upload in browser, clipboard) | Endpoint DLP agent on managed devices | Managed laptops | Unmanaged devices limited to browser access without download |
| DLP-CHN-005 | Web uploads and generative AI tools | Secure web gateway and browser controls; approved AI tools only per ai-data/ai-usage-policy | Managed devices and network | Phone cameras; awareness training |
| DLP-CHN-006 | Source code platforms | Secret scanning, push protection, repository visibility alerts | All repositories | Code pasted elsewhere; covered by DLP-CHN-005 |
| DLP-CHN-007 | Databases and APIs | Query volume anomalies, export limits, database activity monitoring | Production databases | Insider with legitimate bulk access; access reviews |
| DLP-CHN-008 | Removable media and printing | Blocked by default; allowed for named roles with encryption | Managed devices | Paper: clear desk policy (isms/clear-desk-clear-screen-policy) |
8. DLP rule catalogue
| Rule ID | Data type | Channel | Condition | Mode | Action on match | Owner |
|---|---|---|---|---|---|---|
| DLP-RUL-001 (Example) | Payment card data | E-mail, file sharing | 5 or more valid card numbers to an external recipient | Block | Block, notify sender, alert analyst | [@security-engineering-lead] |
| DLP-RUL-002 (Example) | Customer personal data | File sharing | Restricted or Confidential label shared to personal domains | Warn | User justification required, logged | [@privacy-lead] |
| DLP-RUL-003 (Example) | Health data | All | Exact data match on patient identifiers, 10 or more records | Monitor (tuning) | Alert analyst | [@privacy-lead] |
| DLP-RUL-004 (Example) | Credentials | Code platform, chat | Secret pattern detected | Block | Block push or message, open secret rotation ticket | [@platform-lead] |
| DLP-RUL-005 (Example) | Any Confidential label | Generative AI tools | Upload to an unapproved AI service | Block | Block, show approved tool list | [@security-engineering-lead] |
| DLP-RUL-006 (Example) | Source code | Endpoint | Copy of repository folder to USB or personal cloud sync | Monitor | Alert analyst | [@eng-lead] |
9. Deployment and tuning
Every new rule follows these stages:
- Monitor for at least [4] weeks: alerts only, no user impact.
- Review: analysts label each alert true positive, false positive or benign true positive (real data, legitimate business purpose).
- Tune: adjust thresholds, add exact data match or exclusions for approved business flows.
- Warn for at least [2] weeks where user justification is useful.
- Block when precision is at or above the target and the business owner agrees.
Tuning measure: precision = true positives / (true positives + false positives). Target for blocking rules: [90%] or more.
| Rule | Tuning period (Example) | Alerts | True positives | False positives | Benign true positives | Precision | Decision |
|---|---|---|---|---|---|---|---|
| DLP-RUL-001 | Weeks 1 to 4 | 40 | 37 | 3 | 0 | 92.5% | Move to Block |
| DLP-RUL-003 | Weeks 1 to 4 | 120 | 30 | 60 | 30 | 33.3% | Stay in Monitor; add exact data match and exclude the approved hospital transfer channel |
In the example, DLP-RUL-003 precision is 30 / (30 + 60) = 33.3%; benign true positives (approved flows) are excluded from the precision formula and handled by adding the flow to the rule's allow list.
Review all active rules at least quarterly, and when a new channel, SaaS service or data type is introduced.
10. DLP alert and incident handling
| Severity (Example) | Examples | Triage time | Escalation |
|---|---|---|---|
| High | Block of Restricted data to external party, bulk export of health data | Within 1 hour in business hours, next morning otherwise | Incident lead per compliance/incident-response-plan |
| Medium | Warn override with weak justification, repeated attempts | 1 business day | Information owner |
| Low | Single monitor-mode match | 5 business days | Batch review |
Outcomes are recorded in the incident register (isms/incident-register)
and, for personal data, in the breach assessment
(compliance/personal-data-breach-assessment). Legal notification
deadlines (for example 72 hours to the supervisory authority under GDPR
Article 33 where a notifiable breach occurs) run from awareness, so High
alerts cannot wait for a weekly review.
11. Privacy and staff monitoring
- DLP-STD-001: Staff are informed of DLP monitoring in the acceptable
use policy (
compliance/acceptable-use-policy) and the employee security handbook (isms/employee-security-handbook), including what is inspected, why, and who can see results. - DLP-STD-002: A DPIA (
compliance/dpia) is carried out before deploying content inspection of staff communications where privacy law requires one; employee representatives are consulted where local law or agreements require it. - DLP-STD-003: DLP collects the minimum needed: rule matches and metadata by default; full content capture only for High severity rules and kept no longer than [90] days unless part of an open incident.
- DLP-STD-004: Access to alert content is limited to named DLP analysts, logged, and reviewed quarterly. Private or special category content seen incidentally is not used for any other purpose.
- DLP-STD-005: DLP is not used for productivity monitoring or performance management.
12. Exceptions
Exceptions use security/security-exception-request. Each records the
rule or statement affected, the data and volume, the business reason,
compensating controls, the residual risk score (1 to 25, per
compliance/risk-methodology), approver and expiry date. Each exception
is approved at the authority the risk methodology (DOC-ISMS-010 section
2.4) sets for the residual risk: the risk owner for Low; the risk owner
and department head for Medium (top management if the risk category is
Averse, DOC-ISMS-015 section 9 rule 1); top management with a treatment
decision for High, recorded in the risk acceptance record
(DOC-ISMS-019). Critical residual risk is not approvable as an
exception: treat it or stop the activity. Maximum duration is 12 months
for Low or Medium and 6 months for High; at expiry the exception is
reassessed, and a renewal is a new decision (DOC-ISMS-122 section 7).
Real data in test is further limited to [14] days (MSK-STD-006).
| Exception ID | Statement or rule | Reason | Compensating control | Residual score | Expiry |
|---|---|---|---|---|---|
| DLP-EXC-001 (Example) | DLP-RUL-003 | Nightly schedule export to a hospital customer over the managed transfer service | Transfer by managed file transfer with encryption and recipient allow list | 4 Low | YYYY-MM-DD |
| DLP-EXC-002 (Example) | MSK-STD-005 | Reproduce defect affecting one customer tenant | Minimised data set, 2 named engineers, deletion after 14 days | 6 Medium | YYYY-MM-DD |
13. Size tiers
| Aspect | Small: Quillmere Analytics Ltd (46 staff) | Medium: Quillmere Health Systems (320 staff) | Large: Quillmere Group (2,400 staff, 6 sites) |
|---|---|---|---|
| Main risk | Customer analytics data (as processor) copied to test or personal tools | Patient-related scheduling data leaving to unapproved channels; health data in test | Designs, OT programs and commercial data across 6 sites in 4 countries |
| Masking | Masking pipeline for staging built into the data platform; dynamic masking in the support console | Keyed pseudonymisation for analytics; synthetic data for demos to hospitals | Central data platform policies; pseudonymised HR data for group reporting |
| DLP | Suite DLP on mail and file sharing, secret scanning, endpoint controls via device management; alerts reviewed by the 0.5 FTE ISMS manager and one engineer | Suite DLP plus endpoint DLP; 3-person security team triages; DPIA completed | Dedicated DLP platform, cloud access broker, regional analysts, works council consultation where required |
| Tuning cadence | Quarterly | Monthly | Monthly per region, central rule board |
14. Records and evidence
| Record | Proves | Owner | Location (Example) | Retention (Example) |
|---|---|---|---|---|
| Masking rule inventory per data set | MSK-STD-005, 007 | Engineering leads | Masking pipeline repository | Life of the system |
| Masking pipeline test results | Fail-closed behaviour works | Engineering leads | CI pipeline records | 1 year |
| Unmasking access logs | MSK-STD-002 | Standard owner | Central logging | 1 year |
| Re-identification risk assessments | MSK-STD-010 | DPO | DPIA register | Life of the processing plus 3 years |
| DLP rule catalogue with versions | Rules defined and approved | Standard owner | ISMS document store | 3 years |
| Tuning reviews and precision figures | Section 9 | Standard owner | Tuning review notes | 3 years |
| Alert triage records | Section 10 | DLP analysts | DLP console export, ticketing system | 1 year, longer if linked to an incident |
| Alert content access reviews | DLP-STD-004 | DPO | Quarterly review records | 3 years |
| Exception records | Section 12 | ISMS manager | Exception register | 3 years after expiry |
15. Control mapping
| Control (ISO/IEC 27001:2022 Annex A) | Sections |
|---|---|
| A.8.11 data masking (new in 2022) | 3 to 6 |
| A.8.12 data leakage prevention (new in 2022) | 7 to 11 |
| A.5.12 information classification | 3 |
| A.5.14 information transfer | 7, 12 |
| A.5.34 privacy and PII protection | 6, 11 |
| A.8.33 test information | 5 |
| A.8.31 separation of environments | 5 |
| A.8.16 monitoring activities | 10 |
| A.8.23 web filtering | 7 (DLP-CHN-001, 005) |
As international examples, GDPR Article 4(5) defines pseudonymisation and Article 32(1)(a) names pseudonymisation and encryption as possible security measures. Record the laws that bind you in the legal register ([DOC-ISMS-014]).
16. References
| Reference | Edition and status (checked 2026-11-01) | Use |
|---|---|---|
| ISO/IEC 27001:2022 + Amd 1:2024 | Current; https://www.iso.org/standard/82875.html and https://www.iso.org/standard/88435.html | Controls A.8.11, A.8.12 and related |
| ISO/IEC 27002:2022 | Current; https://www.iso.org/standard/75652.html | Control guidance |
| ISO/IEC 27559:2022 | Current; https://www.iso.org/standard/71677.html | De-identification framework |
| ISO/IEC 29100:2024 | Current; https://www.iso.org/standard/85938.html | Privacy framework |
| ISO/IEC 27701:2025 | Current; https://www.iso.org/standard/85819.html | Privacy information management |
| NIST SP 800-188, De-Identifying Government Datasets: Techniques and Governance | Final, September 2023 | De-identification techniques |
| Regulation (EU) 2016/679 (GDPR) | Articles 4(5), 32, 33, 35 | International example |
| Related templates | data/data-classification-policy, isms/information-transfer-policy, isms/secure-development-policy, isms/security-monitoring-procedure, compliance/dpia, compliance/personal-data-breach-assessment, isms/control-evidence-matrix |
Standard and licence note
Structure aligned with ISO/IEC 27001:2022 + Amd 1:2024 (Annex A controls A.8.11 and A.8.12) and ISO/IEC 27002:2022, with references to ISO/IEC 27559:2022 and ISO/IEC 29100:2024. Control numbers are cited with short labels written for this template; no text, tables or definitions from ISO or IEC standards are reproduced, and you need the official standards to implement and audit the controls. NIST SP 800-188 is a US government work. EU legal texts are cited by article only. The techniques table, rules and examples are original. Check the current editions and the law that applies to you before use. This is a documentation format, not legal advice.
Template licence: MIT.
संबंधित टेम्पलेट
Data Centre and Colocation Assessment Template (ISO/IEC 27001)
Facility profile, shared responsibility, evidence pack, weighted checklist (access, power, cooling, fire, contract, audit rights, climate), scoring, decision
ISMS और ISO/IEC 27001Malware Protection Standard Template (ISO/IEC 27001 A.8.7)
Threat picture, layered controls (EDR, e-mail and web filtering, allow-listing, macros), detection and response times, awareness, coverage metrics, exceptions
ISMS और ISO/IEC 27001Network Security Standard Template (ISO/IEC 27001 A.8.20 to A.8.23)
Network zones and flow matrix, firewall rule lifecycle, remote access, wireless, DNS and web filtering, network service agreements, monitoring, evidence