
You can only protect well what you have identified. Data classification means finding, categorizing and labeling information according to its sensitivity, so you can apply proportionate protection: who can access it, does it need encrypting, can it leave the company, can it be sent to an AI?
Without classification, a data loss prevention (DLP) policy is like installing sensors without knowing what they should detect: too many pointless alerts, and the real leaks still get through.
This guide, for CISOs, IT directors, DPOs and lawyers, covers what sensitive data means under the GDPR, a four-level taxonomy, automatic detection, the controls to attach to each level, and protecting outgoing data: blocking, encryption, quarantine, pseudonymization.
The golden rule: four levels everyone understands are better than ten levels nobody applies. And each level must trigger concrete controls, or the label is just decoration.
Key takeaways
| Point | Details |
|---|---|
| "Sensitive data" has a precise meaning | The special categories in article 9 of the GDPR, plus data with high business stakes. |
| Four levels are enough | Public, internal, confidential, restricted. |
| Detection must be hybrid | Automatic analysis of content and context, human review of ambiguous cases. |
| Each level triggers controls | From simple access control to mandatory pseudonymization before any external processing. |
| Outgoing data is the critical moment | Pasting into an AI, email, sending to a provider: that is where DLP acts. |
Table of contents
- What is sensitive data under the GDPR?
- Why classify before protecting
- Four classification levels
- Detecting and labeling automatically
- Launching a classification project
- The controls to attach to each level
- Protecting outgoing data (DLP)
- The most common mistakes
- Safe-doc in your classification policy
- Frequently asked questions
- Further reading
- Sources
- Recommended reading
What is sensitive data under the GDPR?
The GDPR refers to special categories of data (article 9): racial or ethnic origin, political opinions, religious or philosophical beliefs, trade union membership, genetic data, biometric data used to identify a person, health data, sex life and sexual orientation. Data relating to criminal convictions and offenses falls under a similar regime (article 10).
Processing it is prohibited in principle. To process it lawfully, you need both a legal basis under article 6 and one of the exceptions in article 9(2): explicit consent, obligations under employment law, public interest in the area of health, and so on.
In a company, this data often hides where you least expect it: an HR file that mentions long-term sick leave, a biometric access badge, a health insurance form handled by payroll, a union dues deduction on a payslip.
In practice, a classification policy adds data with high business stakes to these legal categories: trade secrets, unpublished financial data, individual payroll data, strategic contracts.
Why classify before protecting
Classifying first lets you set fair access rules, based on the real level of sensitivity rather than assumptions. Data loss prevention tools then generate fewer pointless alerts, and security teams wear themselves out less sorting through them.
Classification also provides traceability, which is valuable during a regulatory inspection or an audit. And it gives users simple decisions: "this document is restricted, it doesn't go to an AI without being pseudonymized".
Four classification levels
| Level | Typical content | Consequence of a leak |
|---|---|---|
| Public | Press releases, brochures, published content | None |
| Internal | Org chart, internal memos, team meeting notes | Limited embarrassment |
| Confidential | Commercial contracts, unpublished financial data, customer files | Harm to the company or a third party |
| Restricted | Special categories (article 9), individual payroll data, industrial secrets | Direct regulatory penalty, serious harm |
Three questions are enough to place a document: what would be the financial impact of a leak? What legal risk? What reputational damage?
Pro tip: Don't go beyond five levels. A taxonomy that business teams can't understand at a glance always ends up misapplied, however sophisticated the tools.
Detecting and labeling automatically
Manual classification quickly hits its limits: beyond a few thousand documents, it becomes unmanageable and errors pile up.
Two approaches work together. Content analysis relies on regular expressions for known patterns (social security numbers, IBANs), and on models that can recognize a medical or legal context without an explicit keyword. Context analysis looks at everything around the file: its location, its author, the application that created it, the department concerned.
The most robust setup is hybrid. Automatic detection runs over the whole scope first. Human review then focuses on ambiguous or high-stakes cases, never on everything. Every reported error is then used to refine the rules or the model. Real cases are analyzed in 8 examples of HR data breaches.
Pro tip: Automatic labeling with no way to correct it manually always ends up misclassifying legitimate documents. Build that mechanism in from the design stage.
Launching a classification project
A project that aims for completeness in the first quarter almost always fails.
The project starts with the taxonomy: the levels, the decision criteria and who signs off. Then inventory the locations (file servers, collaboration spaces, data rooms), without forgetting shared mailboxes.
Next comes automatic discovery of sensitive content, then labeling, with human review of borderline cases. Apply the controls specific to each level, and monitor and adjust continuously.
Start with the high-risk locations (HR, health, finance): that is where the effect is most visible.
Indicators to track: the share of locations inventoried, labeling accuracy, time to fix an anomaly, and the rate of false positives reported by business teams.
The controls to attach to each level
| Level | Controls |
|---|---|
| Public | Version control to avoid publishing by mistake |
| Internal | Access reserved for members of the organization |
| Confidential | Encryption at rest, role-based access, logging of access |
| Restricted | Systematic encryption, attribute-based access, masking, mandatory pseudonymization before any analytical processing, sending to an AI or sharing with a third party |
The point of a label is that it can trigger a rule automatically: a document labeled "restricted" cannot be attached to an external email, or is pseudonymized before being sent to an AI assistant.
Pseudonymization has a special place: it lets you keep working on a restricted document (analyze it, summarize it, share it with a provider) without exposing identities, while keeping the ability to return to the original data.
Protecting outgoing data (DLP)
Data loss prevention for outgoing data automatically detects and handles sensitive data before it leaves the perimeter: email, file sharing, uploads to an online service, pasting into an AI interface.
It works in three stages: inspect the content, decide based on the applicable rule, act.
The possible actions
| Action | When to apply it | Advantage | Limit |
|---|---|---|---|
| Block | Restricted data, unauthorized recipient | No risk of a leak | Can block legitimate flows |
| Encrypt | Authorized sending over an insecure channel | Confidentiality in transit | Key management to plan |
| Quarantine | Ambiguous case, approval needed | Human control | Delay |
| Pseudonymize | AI use, external review, collaboration | Controlled reversibility | Mapping table to protect |
| Anonymize | Archiving, statistics, publication | Maximum protection | No way back |
| Warn | Moderate risk | Raises awareness without blocking | Depends on discipline |
For the first few weeks, prefer warning mode over blocking. You refine the rules on real data without disrupting business teams, then tighten gradually.
The critical point: AI
Data in use, especially pasting into an AI interface, is now one of the main leak vectors. An employee who pastes a contract into an assistant goes through neither email nor file sharing.
| Situation | Recommended treatment |
|---|---|
| Sending a document to an outside AI assistant | Pseudonymize before sending, keep the table internally |
| Internal collaboration between teams | Pseudonymize, with restoring possible for authorized people |
| Sharing with a provider or an auditor | Pseudonymize, with a documented re-identification procedure |
| Archiving with no need to re-identify | Anonymize |
See also: Shadow AI by the numbers.
Avoiding silos

A fragmented policy (one module for email, another for the web, a third for APIs) creates blind spots and contradictory rules. A unified approach, based on the same classification, is simpler to govern.
Before choosing a tool, check that it inspects encrypted web traffic and handles PDFs, Word files and data rooms. It should also offer API or MCP connectors for application flows, centralized and exportable logs, documented key management, and latency compatible with your critical flows.
Deploying a DLP solution
Deployment begins with an audit of sensitive data, its outgoing flows and the risk surfaces. Then test on a limited scope, measuring false positives, latency and the block rate.
It is better to start in warning mode, then gradually turn on blocking and pseudonymization for the riskiest flows. The rules are reviewed every quarter.
A few questions help you judge a vendor quickly. Does it have a GDPR-compliant data processing agreement, with processing located in Europe? Where are logs stored, and how can they be exported? How does restoring work after pseudonymization, and are documents kept after processing? And which data types do its detectors cover in the languages you work in?
The most common mistakes
The most common mistake is trying to classify everything at once, rather than starting with the risk areas. The second is unclear governance: nobody knows who approves the levels. You also find the fifty-page policy nobody reads, where one clear page would do, and labels that non-technical teams can't understand.
Two mistakes show up later: no review after launch, even though data and uses change, and a DLP that ignores AI and only monitors email.
Safe-doc in your classification policy

A classification policy needs a simple action for the "confidential" and "restricted" levels: pseudonymize before anything goes out. Safe-doc provides that action and nothing else; it replaces neither your classification tool nor your DLP.
Users trigger it from the web interface, and your automated flows call it through the API or the MCP server. Documents (PDF, Word, spreadsheets, text) are not kept after processing, and the mapping table stays under your control. See the security page and the integrations.
Frequently asked questions
What is sensitive data under the GDPR?
Data in the special categories of article 9: health, origin, political opinions, religious beliefs, trade union membership, genetic or biometric data, sex life and sexual orientation.
How many classification levels should you have?
Four are enough in most organizations: public, internal, confidential, restricted.
What is DLP?
Data loss prevention: a set of controls that detects sensitive data and blocks, encrypts, quarantines or pseudonymizes what leaves the company's perimeter.
Should you block or pseudonymize?
Block when the recipient is not authorized; pseudonymize when the use is legitimate (AI, a provider, collaboration) but the identities are not needed.
How do you classify documents automatically?
By combining content analysis (patterns, recognition models) with context analysis (location, author, department), plus human review of ambiguous cases.
Further reading
- Pseudonymization: the CNIL and EDPB recommendations, a guide for DPOs
- HR data breaches and the GDPR: 8 concrete examples
- Shadow AI: why banning it fails, and how to bring it under control in 90 days