Klasifikacija podataka za LLM u preduzeću: praktični vodič
The framework is not simple to build, but it is far simpler than recovering from a classified data exposure incident caused by an AI system that nobody thought to govern.
Inlock focus
Inlock AI primenjuje politike klasifikacije podataka na nivou infrastrukture, osiguravajući da dokumenti, promptovi i preuzeti kontekst nikada ne dospeju do nivoa modela za koji nisu ovlašćeni — bez izmena u radnim tokovima krajnjih korisnika.
Data Classification for Enterprise LLMs: A Practical Guide
Enterprises have spent decades building data classification frameworks — tiering information as public, internal, confidential, and restricted, then enforcing those tiers through access controls, DLP tools, and storage policies. When large language models arrived, most organizations quietly set those frameworks aside. The pressure to move fast, combined with the opacity of how LLMs consume context, made classification feel like an obstacle rather than an enabler.
That was a mistake. And the consequences are becoming visible: confidential deal terms surfacing in AI-generated summaries, personally identifiable information cycling through third-party model APIs, proprietary source code leaking into training feedback loops. Data classification is not an optional governance checkbox for enterprise AI — it is the foundational control layer on which every other LLM security measure depends.
This guide explains why existing classification frameworks break down when LLMs enter the picture, what a purpose-built AI data classification architecture looks like, and how to implement it without grinding productivity to a halt.
Why Traditional Data Classification Fails at the LLM Boundary
Classical data classification was designed for structured flows: a file has a label, the label determines who can open it, and a DLP agent enforces that rule at the endpoint or email gateway. The model is simple and the data is relatively static.
LLMs break every assumption in that model.
Context aggregation. A single LLM prompt can combine a user's query, a retrieved document chunk, a conversation history, and a system prompt. Each individual piece might be classified at a different level. The resulting aggregate — the full context window — may be far more sensitive than any single component. Traditional classification tools have no concept of context-window sensitivity.
Implicit data extraction. Users do not send files to an LLM. They ask questions. The model answers by synthesizing information it has access to, which may include confidential material retrieved from a vector database or injected by an orchestration layer. There is no discrete "transfer event" for a DLP tool to intercept.
Non-deterministic outputs. The same classified input can produce outputs of wildly different sensitivity depending on how the prompt is framed. A document classified as "internal" might contain a paragraph that, when summarized and combined with other context, reveals a restricted competitive strategy. Output classification is at least as important as input classification, but most frameworks stop at inputs.
Model-tier heterogeneity. Organizations increasingly operate multiple LLM tiers: a small, locally hosted model for general productivity, a mid-size on-premise model for departmental workflows, and potentially a frontier API model for high-complexity tasks. Data appropriate for one tier may be completely inappropriate for another. Traditional classification systems have no concept of a "model tier" as a destination.
Building a Data Classification Framework for LLMs
An effective AI data classification framework needs four components: a sensitivity taxonomy, a model-tier policy matrix, a context-assembly governance layer, and an output classification mechanism.
1. Sensitivity Taxonomy: Extend Your Existing Labels
Most enterprises already have a working classification taxonomy. The goal is not to replace it but to extend it with AI-specific metadata.
Each existing classification level should acquire two new attributes:
- •Model-tier ceiling: The highest model tier (by trust level, hosting location, and data boundary) that may process data at this classification level.
- •RAG eligibility: Whether data at this level may be chunked, embedded, and stored in a vector database for retrieval-augmented generation workflows.
A practical extended taxonomy might look like this:
| Classification | Model-Tier Ceiling | RAG Eligible | Example Data | |---|---|---|---| | Public | Any, including cloud APIs | Yes | Marketing copy, public documentation | | Internal | On-premise or private cloud | Yes, isolated index | Internal wikis, process docs | | Confidential | On-premise, air-gapped preferred | Restricted index, audit required | Customer PII, financial forecasts | | Restricted | Air-gapped, on-premise only | No, or dedicated isolated index | M&A data, source code, regulated data |
This extended taxonomy gives your LLM infrastructure a machine-readable policy it can enforce, not just a human-readable label for auditors.
2. Model-Tier Policy Matrix
Define your model tiers explicitly, with documented trust boundaries for each. A common three-tier structure for regulated enterprises:
Tier 1 — Public API Models: Frontier models accessed via vendor APIs (OpenAI, Anthropic, Google, etc.). No enterprise data should reach these models without explicit de-identification or the data being classified as Public. Treat the API boundary as an untrusted network.
Tier 2 — Private Cloud or Managed Deployment: Models deployed in a dedicated cloud environment under your organization's control, with network isolation and contractual data processing agreements. Appropriate for Internal and some Confidential data where residency requirements are met.
Tier 3 — On-Premise or Air-Gapped: Models running entirely within your data center or sovereign infrastructure, with no external network egress. The only tier appropriate for Restricted data and for organizations operating under strict data residency or regulated-industry requirements.
The policy matrix maps classification levels to tier ceilings and makes those mappings enforceable in your orchestration layer, not just in a policy document.
3. Context-Assembly Governance Layer
The most dangerous gap in most enterprise LLM deployments is the absence of classification enforcement at the moment of context assembly — the point at which retrieved chunks, conversation history, tool outputs, and user prompts are combined into the full context window before being sent to a model.
A context-assembly governance layer intercepts this combination step and applies three checks:
Aggregate sensitivity evaluation. Scan each component of the assembled context for its classification level. Compute an aggregate sensitivity score for the full context window. If any component is classified above the ceiling for the target model tier, block the request and either redact the offending component, route to a higher-trust tier, or return an error to the user.
Cross-compartment contamination detection. Enforce compartmentalization rules. A user with access to multiple data compartments (e.g., both HR data and Finance data) should not be able to assemble a prompt that combines context from both compartments unless explicitly authorized — even if they have read access to both individually. This mirrors the need-to-know principle in traditional access control.
Prompt injection screening. Before context assembly reaches the model, screen for prompt injection patterns that might be attempting to exfiltrate classified content by manipulating the model's behavior. This is particularly important when retrieved chunks come from user-submitted or externally sourced documents.
4. Output Classification and Redaction
What the model produces inherits sensitivity from what it consumed. Output classification is the step most organizations skip entirely, and it is where data leakage most commonly occurs.
Implement output classification as a post-processing step in your inference pipeline:
- •Entity detection: Scan model outputs for PII, financial identifiers, credentials, and other sensitive entity types using a local NER (named entity recognition) model or rule-based scanner.
- •Provenance-based classification: If the model's context window included Confidential or Restricted source material, apply a minimum classification floor to the output regardless of what entity scanning finds.
- •Differential output handling: Route classified outputs appropriately. A response classified as Confidential should not be stored in a shared conversation cache, logged to a general observability platform without redaction, or returned over an unencrypted channel.
Operationalizing Classification: What Changes for Users
A common objection to data classification in AI workflows is that it will create friction that drives users toward ungoverned, shadow AI tools. This risk is real, and it argues for classification enforcement that is as invisible as possible to end users.
The practical answer is classification inheritance through authentication context. When a user authenticates to your LLM platform, their identity carries their clearance level, their department, and their data compartment memberships. The platform uses that context to automatically scope retrieval queries to appropriately classified indexes and to automatically route inference requests to the correct model tier.
From the user's perspective, they log in and ask questions. They do not think about classification levels. The governance layer operates entirely below the surface.
Where users do encounter classification in their workflow, the experience should be explanatory rather than opaque. Instead of a generic error, the platform should tell a user: "This question involves Restricted materials. It has been routed to the on-premise model tier. Response time may be longer." That transparency builds trust in the system and reduces the temptation to route around it.
Common Implementation Mistakes
Classifying documents but not chunks. Vector databases store chunks, not documents. A document classified as Internal might contain a paragraph that qualifies as Confidential. Classification must be applied at chunk granularity for RAG workflows to be safe.
Treating model selection as a user choice. In a governed deployment, users should not be choosing which model tier their query goes to. The classification framework should determine routing automatically, with human override available only to authorized administrators.
Static classification without re-evaluation. A document classified as Internal today might become Restricted after a merger announcement. Classification should be a living attribute, with workflows to trigger re-classification events and re-embedding of updated content in appropriate vector index tiers.
Logging everything to a single SIEM without redaction. Observability is essential, but logging full context windows and model outputs without redacting classified content creates a secondary data exposure risk. Apply output classification before writing to any logging pipeline.
Regulatory Alignment
A well-implemented data classification framework for LLMs is not just an internal governance practice — it is a direct enabler of regulatory compliance.
GDPR Article 25 (Data Protection by Design): Classification at the context-assembly layer ensures that personal data is not sent to model tiers without adequate processing agreements, fulfilling the technical measures requirement of privacy by design.
DORA (Digital Operational Resilience Act): Classification metadata supports the ICT asset inventory requirements under DORA and provides the traceability needed for incident classification and reporting when an AI system is involved in a disruption.
NIS2: For operators of essential services, classification ensures that sensitive operational data processed by AI systems remains within defined security perimeters and is auditable under NIS2's incident reporting obligations.
Industry-specific frameworks (HIPAA, PCI-DSS, ISO 27001): Each of these frameworks requires that sensitive data categories (PHI, cardholder data, etc.) be identified, labeled, and protected with appropriate controls. Extending those requirements to LLM context windows and outputs is a natural and necessary evolution.
Getting Started: A Phased Approach
Building a complete AI data classification framework is a multi-quarter effort. A phased approach makes it manageable:
Phase 1 (Weeks 1–4): Extend your existing classification taxonomy with model-tier ceiling and RAG eligibility attributes. Document your current LLM tiers and their trust boundaries. Identify your highest-risk data types — the ones where a leakage incident would be most damaging — and prioritize those for early enforcement.
Phase 2 (Weeks 5–12): Implement classification enforcement at vector index creation time. Separate indexes by classification level. Apply authentication-context-based retrieval scoping so users can only query indexes appropriate to their clearance.
Phase 3 (Weeks 13–24): Deploy context-assembly governance layer with aggregate sensitivity evaluation and cross-compartment contamination detection. Implement output classification and redaction in the inference pipeline. Connect classification events to your SIEM for audit trail completeness.
Phase 4 (Ongoing): Establish a classification review cadence. Build workflows for re-classification events. Train department data stewards on AI-specific classification responsibilities.
Conclusion
Data classification is not a new idea, but applying it to LLM workflows requires rethinking where and how it is enforced. The classical model — label the file, control access to the file — is insufficient when the fundamental operation is assembling dynamic context windows from multiple sources and passing them to probabilistic models that produce non-deterministic outputs.
The enterprises that will navigate AI adoption without major data exposure incidents are those that treat the LLM boundary as a first-class policy enforcement point: classifying not just documents but chunks, not just inputs but outputs, not just data at rest but data in context.
The framework is not simple to build, but it is far simpler than recovering from a classified data exposure incident caused by an AI system that nobody thought to govern.
Next step
Check workspace readiness
Validate connectors, RBAC, and data coverage before piloting Inlock's RAG templates and draft review flows.