数据分类标签体系
data-labeling-system
实现数据分类标签和标记系统,包括元数据标记、DLP 集成、自动标签传播、用户应用标签和标签继承规则。涵盖 Microsoft Purview 敏感性标签和企业标签架构。关键词:数据标记、敏感性标签、元数据标记、DLP 集成、标签传播、Purview、分类。
- License 许可
- Apache-2.0
- 最近更新
- 2026-03-17
- Stars
- ★ 338
- Forks
- 68
01 前言 Front Matter
- name
- data-labeling-system
- license
- Apache-2.0
- metadata
- { "tags": "data-labeling, sensitivity-labels, metadata-tagging, dlp, label-propagation, purview", "author": "mukul975", "domain": "privacy", "version": "1.0", "subdomain": "data-classification" }
- description
- Implements data classification labels and tagging systems including metadata tagging, DLP integration, automated label propagation, user-applied labels, and label inheritance rules. Covers Microsoft Purview sensitivity labels and enterprise labeling architecture. Keywords: data labeling, sensitivity labels, metadata tagging, DLP integration, label propagation, Purview, classification.
02 资源文件 8
- 资产文件assets/template.md3.1 KB
- 参考文档README.md9.7 KB
- 参考文档references/difficult-conversation-scripts.md10.0 KB
- 参考文档references/expectation-alignment.md8.2 KB
- 参考文档references/feedback-sbi-model.md8.4 KB
- 参考文档references/standards.md2.3 KB
- 参考文档references/workflows.md2.6 KB
- 脚本scripts/process.py10.1 KB
03 SKILL.md 正文
Data Classification Labels and Tagging System
Overview
Data classification labels are the operational mechanism through which classification policy is enforced across the enterprise. Labels attach classification metadata to data assets — documents, emails, database records, and cloud resources — enabling automated enforcement of handling requirements through DLP policies, access controls, and encryption. This skill covers the design and implementation of a labelling system using Microsoft Purview Information Protection as the primary platform, with architecture patterns for automated labelling, user-applied labelling, label inheritance, and cross-platform propagation.
Label Taxonomy
Vanguard Financial Services Label Hierarchy
Vanguard Classification Labels
├── Public
│ └── (no sub-labels)
├── Internal
│ └── Internal - Project Confidential
├── Confidential
│ ├── Confidential - Customer Data
│ ├── Confidential - Employee Data
│ ├── Confidential - Financial Data
│ └── Confidential - Legal
└── Restricted
├── Restricted - Special Category (Art. 9)
├── Restricted - Criminal Data (Art. 10)
├── Restricted - AML Investigation
└── Restricted - Board & Strategy
Label Properties
| Label | Colour | Visual Marking | Encryption | DLP Policy | Auto-Apply |
|---|---|---|---|---|---|
| Public | Green | Footer: "Vanguard Financial Services — Public" | None | None | No |
| Internal | Blue | Footer: "Vanguard Financial Services — Internal Use Only" | Optional | Warn on external | No |
| Confidential | Amber | Header + Footer: "CONFIDENTIAL" | Azure RMS (AES-256) | Warn + audit external; block personal email | Yes (when PII detected with >85% confidence) |
| Restricted | Red | Header + Footer: "RESTRICTED" with red background; watermark on print | Azure RMS (AES-256, double key encryption) | Block all external; block USB/print; alert DPO | Yes (when Art. 9/Art. 10 data detected with >85% confidence) |
Microsoft Purview Implementation Architecture
Component Architecture
┌─────────────────────────────────────────────────────────────────┐
│ Microsoft Purview │
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
│ │ Sensitivity │ │ Auto-labelling│ │ DLP Policies │ │
│ │ Labels │ │ Policies │ │ (endpoint, email, │ │
│ │ (definitions) │ │ (rules) │ │ SharePoint, Teams) │ │
│ └──────┬───────┘ └──────┬───────┘ └──────────┬───────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Unified Label Application Engine │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │ │ │ │
└─────────┼──────────────────┼──────────────────────┼──────────────┘
▼ ▼ ▼
┌─────────────┐ ┌──────────────┐ ┌──────────────────────┐
│ Office Apps │ │ SharePoint/ │ │ Endpoint DLP │
│ (Word, Excel,│ │ OneDrive │ │ (Windows devices) │
│ Outlook) │ │ │ │ │
└─────────────┘ └──────────────┘ └──────────────────────┘
Auto-Labelling Configuration
Policy 1: Confidential — Customer PII Detection
| Setting | Value |
|---|---|
| Policy Name | VFS-AutoLabel-Confidential-CustomerPII |
| Scope | All SharePoint sites, OneDrive accounts, Exchange mailboxes |
| Conditions | Content contains ANY of: UK National Insurance Number (HIGH confidence), IBAN (HIGH), Vanguard Account Number (HIGH), Credit Card (HIGH + Luhn validated) |
| Minimum count | 1 instance of any SIT at HIGH confidence |
| Label applied | Confidential - Customer Data |
| Priority | 2 (overridden by Restricted auto-label) |
Policy 2: Restricted — Special Category Detection
| Setting | Value |
|---|---|
| Policy Name | VFS-AutoLabel-Restricted-SpecialCategory |
| Scope | All SharePoint sites, OneDrive accounts, Exchange mailboxes |
| Conditions | Content contains ANY of: ICD-10 codes (MEDIUM+), health terminology trainable classifier (HIGH), biometric template format detection, genetic marker patterns |
| Minimum count | 1 instance at MEDIUM confidence or above |
| Label applied | Restricted - Special Category (Art. 9) |
| Priority | 1 (highest priority — overrides all other auto-labels) |
Policy 3: Restricted — Criminal Data Detection
| Setting | Value |
|---|---|
| Policy Name | VFS-AutoLabel-Restricted-CriminalData |
| Scope | HR SharePoint sites, Compliance SharePoint sites |
| Conditions | Content contains: DBS reference patterns, criminal conviction terminology, SAR reference numbers |
| Label applied | Restricted - Criminal Data (Art. 10) |
| Priority | 1 |
Label Inheritance Rules
| Rule | Description | Implementation |
|---|---|---|
| Container inheritance | Items in a labelled SharePoint site inherit the site's label as minimum | Site sensitivity label propagates to new items; existing items retain higher label |
| Email attachment inheritance | Attachments inherit the email's label if attachment label is lower | Outlook plugin checks attachment label vs email label on send |
| Parent-child inheritance | Child documents inherit parent folder label as minimum | SharePoint library policy; items cannot be labelled below folder label |
| No downgrade without approval | Users cannot remove or downgrade labels without justification | Label policy: require justification text for downgrade; audit log entry |
| Highest label wins | When documents are merged or combined, the highest label applies | User training + DLP monitoring for combined documents |
User-Applied Labelling
Labelling Responsibilities
| Scenario | Who Labels | How |
|---|---|---|
| New document creation | Author | Select label from Office ribbon (Word, Excel, PowerPoint) |
| New email composition | Sender | Select label from Outlook toolbar; mandatory before sending external |
| File upload to SharePoint | Uploader | Label prompt on upload if no label detected |
| Data export from system | Exporter | Label selection required before export completes |
| Physical document printing | Printer | Classification header/footer printed automatically; user selects tier if not auto-labelled |
Mandatory Labelling Policy
| Setting | Value |
|---|---|
| Require label on documents | Yes — all Word, Excel, PowerPoint documents must have a label before save |
| Require label on emails | Yes — for emails to external recipients; recommended for internal |
| Default label | Internal (applied if user does not select; user can override up or down) |
| Justification for downgrade | Required — user must enter text justification; logged in audit |
| Justification for removal | Required — DPO-approved exception only |
DLP Integration
DLP Policy Matrix
| Label | External Email | USB/Removable | Screenshot | Cloud Upload | |
|---|---|---|---|---|---|
| Public | Allow | Allow | Allow | Allow | Allow |
| Internal | Warn | Warn | Allow | Allow | Block (non-approved cloud) |
| Confidential | Warn + audit | Block | Secure print | Allow (watermarked) | Block |
| Restricted | Block | Block | Block (unless DPO approved) | Block | Block |
DLP Alert Routing
| Alert Severity | Label Trigger | Routing |
|---|---|---|
| Low | Internal label — external email warn overridden | Security team email |
| Medium | Confidential label — external sharing attempted | Security team + Data Owner |
| High | Restricted label — any policy trigger | DPO + CISO + immediate investigation |
| Critical | Restricted label — data exfiltration indicators | DPO + CISO + Incident Response Team + 15-minute SLA |
Label Propagation Across Platforms
Supported Platforms
| Platform | Label Method | Propagation |
|---|---|---|
| Microsoft 365 (Word, Excel, PowerPoint) | Native sensitivity label in file metadata | Full support — label travels with file |
| Outlook / Exchange | Email header X-MS-Exchange-Organization-Classification | Label persists in message store and forwarded copies |
| SharePoint Online | Document library metadata + file metadata | Dual storage — library and file level |
| OneDrive for Business | File metadata | Same as SharePoint |
| Teams | Channel/chat message metadata | Limited — file attachments inherit, message labels in compliance |
| PDF export | Visual marking (header/footer) + XMP metadata | Visual marking persists; metadata depends on PDF viewer |
| Azure SQL Database | Column-level sensitivity classification (sys.sensitivity_classifications) | Native Azure SQL feature; integrates with Purview |
| AWS S3 | Object tags (key: classification, value: tier) | AWS-native tagging; read by Macie and IAM policies |
| On-premises file shares | File metadata (NTFS ADS) via AIP Unified Labelling client | Requires AIP client installed on endpoints |
Enforcement Precedents
- ICO v Interserve Group (2022): GBP 4.4 million — failure to implement adequate data classification and labelling contributed to staff not recognising the sensitivity of data compromised in a breach
- CNIL v Free Mobile (2022): EUR 300,000 — customer personal data stored without classification or access controls; staff could access all customer data regardless of role or need
Integration Points
- classification-policy: Labelling system is the technical implementation of the classification policy
- auto-data-discovery: Discovery results trigger auto-labelling for newly detected PII
- pii-in-unstructured: PII detection in documents drives label recommendation or auto-application
- data-inventory-mapping: Labels feed the data inventory with current classification status per asset
- data-lineage-tracking: Labels propagate through data lineage — transformed data inherits source label
04 同仓库更多 Skills
职场邮件监控合规
workplace-email-privacy
依据 Barbulescu 诉罗马尼亚案(欧洲人权法院大法庭)、EDPB 指引及各国劳动法,实施工作场所电子邮件与互联网监控合规。涵盖可接受使用政策、合理的隐私期待、比例原则测试以及内容监控与元数据监控的区别。关键词:邮件监控、Barbulescu、职场隐私、互联网监控、可接受使用政策、ECHR、比例原则。
举报人数据保护合规
whistleblower-data
依据欧盟指令 2019/1937 和 GDPR,为举报(吹哨)系统实施数据保护合规。涵盖匿名举报渠道、举报人与被指控人的身份保护、保存期限限制、访问限制以及反报复措施。涉及成员国转化立法与数据保护机构(DPA)指引。关键词:举报人、指令 2019/1937、匿名举报、身份保护、报复、保存期限、举报渠道。
供应商终止数据返还与删除
vendor-termination-data
依据 GDPR 第 28(3)(g) 条的供应商终止数据返还与删除流程。涵盖数据提取格式、删除证明要求、过渡规划、残留数据处理以及终止后核验。
供应商隐私风险评分
vendor-risk-scoring
面向数据处理者管理的供应商隐私风险分级方法论。涵盖数据量、敏感度、传输地点、认证情况、泄露历史和控制成熟度等评分要素,通过加权风险计算进行风险分级与等级划分。
供应商隐私尽职调查
vendor-privacy-due-diligence
依据 GDPR 第 28(1) 条的签约前供应商隐私尽职调查。涵盖风险问卷、技术控制评估、认证审查、数据流分析以及针对处理者合作的书面充分性决策。
供应商隐私合规审计
vendor-privacy-audit
依据 GDPR 第 28(3)(h) 条进行现场和远程供应商审计程序。涵盖审计计划、证据收集方法、问题发现分类、整改跟踪以及用于处理者合规验证的审计报告生成。