IT-Manager.tech

Encryption and key management for assets: Implementing compliance requirements in practice

Hardware-Sicherheitsmodul im Rack neben einem textfreien Architekturdiagramm zum Schlüsselmanagement für IT-Assets
Ein zentrales KMS/HSM wird zur kritischen Infrastruktur: Policies, Rollen und Audit-Trails müssen genauso geplant sein wie die Technik.

„Encryption everywhere“ sounds simple – in practice programs rarely fail because of the cryptography itself, but because of unclear scope, missing responsibilities and non-auditable key management. Especially in the asset context (devices, servers, databases, storage, SaaS instances, backups, container images, configuration and secrets stores) it is not the chosen algorithm that matters, but whether you implement encryption and key management for assets as a consistent operational standard: with data classification, clear policies, measurable controls and verifiable evidence for audits.

This article presents an implementation-oriented approach: which compliance requirements typically underlie this, how to cleanly define the scope, which architectural decisions genuinely affect operations and audit – and how pragmatic checklists, role models and technical control points lead to a state that works in day-to-day operations and stands up to audit.

Encryption and Key Management for Assets in Practice

Suitable inline motif for the section \
A suitable visual for the section „Encryption and Key Management for Assets in Practice“ deepens the content visually.

Encryption reduces risk reliably only when keys are controlled throughout their lifecycle. „Key management“ therefore encompasses more than a vault for keys: it covers generation, storage, access control, rotation, backup/recovery, revocation and traceability. Audits typically reveal the following patterns:

  • Unclear allocation: Which keys protect which assets? Who is the owner (functional) and who the custodian (operational)?
  • Inconsistent standards: database encryption in place, but backups unencrypted; TLS on the load balancer, while internal service-to-service connections lack mTLS.
  • Weak separation of roles: admins can both manage keys and read data – missing „Separation of Duties“ (separation of critical tasks).
  • Missing rotation and deprovisioning processes: old keys remain active indefinitely; during system offboarding it is unclear what to delete, archive or revoke.
  • No auditable evidence: there are no central logs, no key events, no traceable changes.

Important for decision-makers: many requirements (GDPR, ISO 27001, NIS2 implementations, industry-specific policies) do not demand „a specific product“, but appropriate technical and organizational measures and demonstrable evidence. This is precisely where it is decided whether encryption becomes an operational capability or an audit gap.

Regulatory interpretation: what is typically ‚meant‘, even when it is not spelled out

Regulatory frameworks are often deliberately technology-agnostic. In practice they almost always boil down to the same expectations:

  • Confidentiality and access control: Protection of personal data, trade secrets, financial or production data – including protection in transit and at REST.
  • Integrity and tamper protection: Traceability of changes, protection against unauthorized modifications (e.g., signed artifacts, tamper-evident logs).
  • Auditability: Audit trails, documented policies, regular reviews.
  • Risk-based controls: Stronger protection measures for critical assets (e.g., crown-jewel data, central identity services, key material).

For implementation, the precise legal wording is less important than the concrete question: Which data/assets cause what damage if they leak or are manipulated? From that you derive where you must enforce which cryptographic controls — and where „best effort“ is sufficient.

Define scope clearly: Which „assets“ must be included in your encryption strategy?

In asset management the biggest source of error is an overly narrow focus on „disk encryption.“ Compliance, however, looks end-to-end. Typical asset groups you should explicitly include:

  • Endpoints: Laptops, workstations, mobile devices; including local profiles, offline caches, developer notebooks, admin jump hosts.
  • Server/VMs/Hosts: OS disks, data volumes, swap, temporary directories, logs.
  • Storage: SAN/NAS, object storage, fileshares, archival systems.
  • Databases: Encryption at REST (in storage) and in transit (transport); where applicable, column/field encryption.
  • Backups & replicas: Offsite backups, snapshot repositories, tape/cold storage, DR environments.
  • Cloud assets: Managed databases, storage accounts, secrets stores, compute disks, Kubernetes-ETCD.
  • Application-level secrets: API keys, certificates, tokens, passwords; often distributed in CI/CD, config repos, ticket attachments.

Operationally you need a system of record: typically a CMDB (Configuration Management Database, i.e., an inventory and relationship database for configuration items) or at least a consistent asset inventory with unique IDs. Without this mapping, key management is not scalable.

Data classification as a control point: From „nice to have“ to an actionable policy

Compliance rarely requires a perfect classification, but it does require consistent measures for defined classes. A practical classification for many companies:

  • Public: publication is non-sensitive.
  • Internal: internal operations; moderate damage if leaked.
  • Confidential: significant damage; contractual, financial, customer, or security data.
  • Strictly confidential: existentially critical; key material, identity databases, crown-jewel data.

Classification does not have to be set manually everywhere. The decisive factor is the translation into minimum controls: „Confidential“ means, for example, always encryption at REST and in transit, a central key store, logging of key usage, defined rotation intervals. „Strictly confidential“ can additionally trigger an HSM requirement, four-eyes approvals, separated admin roles and stricter monitoring rules.

Example: Policy Matrix as an Operational Agreement between IT, Security and the Business Unit

A policy matrix (table) becomes the „operational agreement“ in day-to-day use: it defines which measures are mandatory for each class and how exceptions are approved. Important columns are: Asset type, Data class, Encryption at REST, Encryption in transit, Key owner, Permitted KMS/HSM option, Logging/Evidence, Rotation, Backup/Recovery requirement.

Technical building blocks: KMS, HSM, BYOK/HYOK clearly classified

To enable decision-makers to assess risks and costs, a clear classification of key terms is worthwhile:

  • KMS (Key Management Service/System): Central system for generating and managing cryptographic keys, including access policies and audit logs. Can be operated on-premises or as a cloud service.
  • HSM (Hardware Security Module): Specialized hardware that stores key material with strong protection and executes cryptographic operations in hardware. Objective: keys do not leave the HSM in plaintext.
  • BYOK (Bring Your Own Key): You use a cloud service but bring your own keys (or root keys) to increase control and auditability.
  • HYOK (Hold Your Own Key): Keys remain fully under your control (e.g. on-prem HSM). The cloud service cannot decrypt without your authorization. Higher complexity, but greater sovereignty.

Important: Not every asset needs an HSM. An HSM is often appropriate for root/master keys and for particularly critical classes, while downstream „Data Encryption Keys“ (DEKs) are managed in a KMS and rotated regularly. This concept is called Envelope Encryption in many architectures: a master key protects many shorter-lived keys that in turn encrypt data. The advantage: rotation and access control become operationally manageable.

Encryption at REST: What you really need to secure — and what is often overlooked

„At REST“ means: data is stored on a storage medium (disk, volume, object storage, backup). Typical measures are full-disk/volume encryption, storage-side encryption or database encryption (TDE, Transparent Data Encryption). The most common blind spots:

  • Backups: Backup repositories are a preferred target because they contain „everything“. Encryption must be standard here, including key handling during RESTore.
  • Snapshots and replicas: Snapshots can preserve data in a state that contains „old“ keys or old ACLs. Governance must clarify whether snapshots use their own keys and how long they may persist.
  • Temporary data: Export files, debug dumps, ETL staging, cache directories. If data classified as „confidential“ ends up there, your controls often do not apply.
  • Logs: Application or access logs often contain IDs, tokens, personal data or error messages with data fragments. A log policy is part of the encryption strategy.

From an audit perspective, it’s not enough that encryption is enabled; what matters is who controls the keys, whether recoverability exists and how you prevent unauthorized decryption.

Encryption in transit: TLS is mandatory, but not sufficient

„In transit“ refers to data transmission between clients, services and systems. The standard is TLS (Transport Layer Security). Typical compliance pitfalls arise less at the frontend and more internally:

  • Service-to-Service: Internal APIs, data pipelines, messaging. Without a consistent TLS-Policy gaps open up due to „temporary“ exceptions.
  • Certificate lifetimes and Renewal: Expired certificates are an operational risk and lead to frantic emergency measures that undermine auditability.
  • Legacy protocols: Old SMB/NFS setups, insecure database connections, device or OT interfaces. Here you need migration or compensating measures (segmentation, jump hosts, proxies).

For governance it is decisive whether you treat transport encryption as „configuration per team“ or as a central baseline with mandatory minimum standards (Cipher-Policy, minimum TLS version, certificate provenance, renewal automation, monitoring).

Operationalize the key lifecycle: From creation to deletion

Auditable key management depends on the lifecycle. In operations, a clear separation has proven effective:

  • Owner (functional): Accountable for protection requirements, approvals, exceptions, retention periods.
  • Custodian (IT/Security operations): Operates KMS/HSM, enforces policies, monitors events, performs rotation technically.
  • Consumer (application/service): Uses keys via defined interfaces, without „carrying“ or extracting key material.

Lifecycle phases you should document in policy and runbooks:

  • Create: Key generation with defined parameters (algorithm, key length, intended use).
  • Activate: Authorization for use, tied to roles/identities (IAM), ideally with least privilege.
  • Rotate: Planned replacement without data loss and without downtime — including a migration path for database/storage keys.
  • Suspend/Revoke: Immediate block on suspicion (Incident Response) — with pre-determined impact on availability.
  • Archive/Destroy: End of retention or end of system; documented, auditable deletion (or archival where legally required).

Rotation: Security benefit only if you have the operational consequences under control

Key rotation is often required in audits but feared in operations. The crux: rotation affects not only the key but often Re-Encryption (re-encryption) or the handling of multiple active key versions. Plan rotation based on risk:

  • Root/Master keys: rotate rarely, but protect them maximally (e.g. HSM, strict approvals).
  • Data Encryption Keys: rotate more frequently; technically often represented as versioning in the KMS.
  • Certificates: Automate renewal; short lifetimes make sense only if automation and monitoring are in place.

From a business perspective, rotation is a controlled change with clear rollback logic. Without a test path, rotation is more likely to cause outages than to increase security.

Audit perspective: Which evidence auditors typically want to see

Audits rarely fail because „no encryption exists“; they fail because evidence is missing or inconsistent. Typical evidence you should standardize:

  • Policy-Dokumente: Datenklassifizierung, Krypto-Policy, Ausnahmeprozess, Rollenmodell.
  • Asset-Liste: Scope der relevanten Assets mit Klassifizierung (oder Vererbung über Systemtypen), idealerweise CMDB-gestützt.
  • Konfigurationsnachweise: Für Cloud/Storage/DB: Verschlüsselung aktiviert, Key-Quelle definiert (Provider-managed vs. customer-managed), TLS erzwungen.
  • Key-Events: Logs über Key-Erstellung, Rotation, Deaktivierung, Policy-Änderungen, Zugriff (wer, wann, wofür).
  • Kontrolltests: Stichproben, z. B. „Backup eines vertraulichen Systems ist verschlüsselt“, „RESTore benötigt definierte Freigabe“, „Zertifikate werden vor Ablauf erneuert“.

Praktisch hilfreich ist ein „Audit-Paket“ pro kritischem System: 1–2 Seiten Zusammenfassung plus Links/Exports zu Logs und Konfiguration. Das reduziert Audit-Aufwand erheblich, weil Fragen wiederholbar beantwortet werden können.

Praktische Umsetzung: Ein 90-Tage-Plan, der nicht am Alltag vorbeigeht

Für viele Organisationen ist ein iterativer Plan realistischer als ein Big-Bang. Ein bewährtes Vorgehen in drei Phasen:

0–30 Tage: Transparenz und Minimum-Baseline

  • Inventar konsolidieren: Welche Assets halten „vertrauliche/streng vertrauliche“ Daten?
  • Baseline definieren: TLS-Minimum, Verschlüsselung von Backups, zentrale Ablage von Secrets (kein Ticket/kein Wiki).
  • Quick Wins: Laptop-Full-Disk-Verschlüsselung erzwingen, Backup-Verschlüsselung aktivieren, Zugriffe auf Key-Stores härten.
  • Rollen und On-Call klären: Wer darf Keys sperren? Wer entscheidet über Notfall-Entschlüsselung?

31–60 Tage: KMS/HSM-Entscheidungen, Policies, Automatisierung

  • KMS-Standard festlegen (on-prem oder Cloud) und Schnittstellen definieren.
  • Schlüssel-Namensschema und Tagging einführen (Zuordnung zu Asset-ID/Service/Umgebung).
  • Rotation für ausgewählte Key-Typen pilotieren (z. B. DEKs, Zertifikate).
  • Logging zentralisieren: Key-Events, Policy-Changes, Zugriffe in SIEM/Log-Management.

61–90 Tage: Audit-Evidence, Ausnahmeprozess, Härtung der Kronjuwelen

  • Audit-Pakete für die Top-10 kritischen Systeme erstellen.
  • Ausnahmeprozess verbindlich machen (Ablaufdatum, Kompensation, Owner-Sign-off).
  • HSM-Einsatz prüfen für Root-/Master-Keys oder streng vertrauliche Klassen.
  • Incident-Response-Runbooks: Key-Revoke, Zertifikatskompromittierung, Backup-Repository-Verdacht.

Entscheidungshilfen: Welche Architekturvariante passt zu Risiko und Betrieb?

Eine Kernentscheidung ist die Frage nach dem Kontrollgrad über Schlüssel und der Betriebsrealität:

  • Provider-managed Keys: Geringster Betriebsaufwand, aber weniger Kontrolle; geeignet für niedriger klassifizierte Daten oder nicht-kritische Workloads.
  • Customer-managed Keys (KMS): Gute Balance aus Kontrolle und Aufwand; üblich für „vertraulich“.
  • HSM-gestützte Master-Keys: Höchster Schutz für Schlüsselmaterial, aber höhere Komplexität (Beschaffung, HA, Backup, Betriebs-Know-how).
  • BYOK/HYOK: Mehr Souveränität, aber zusätzliche Integrations- und Verfügbarkeitsabhängigkeiten; sinnvoll bei regulatorischem Druck oder besonderen Schutzbedarfen.

Bewerten Sie Varianten nicht nur nach Security, sondern auch nach Wiederherstellbarkeit (z. B. nach Standortausfall), Change-Fähigkeit (Rotation ohne Downtime) und Auditierbarkeit (zentrale Logs, klare Zuständigkeiten).

Governance: Responsibilities, approvals and control points that actually work

Encryption often fails at the interfaces between teams. Practical governance establishes few but strict rules:

  • Policy Owner: Security/Compliance is responsible for the crypto policy and exceptions.
  • Plattformverantwortung: IT operations is responsible for KMS/HSM, standard configurations, monitoring, runbooks.
  • System Owner: The business unit or IT product owners decide on classification and accepted risks.
  • Change Control: Key policy changes are „high impact“ and require formal approvals.

The following control points in operations have proven effective: regular reviews of key policies, automated checks for unencrypted resources, verification of backup encryption, certificate monitoring and a mandatory offboarding process for assets.

Concrete checklists and templates for „Gestione asset“

Checklist: Asset is encrypted in compliance

  • Asset is uniquely identified in the inventory/CMDB (owner, criticality, data class).
  • Encryption at REST active (Disk/Volume/DB/Storage) and documented.
  • Encryption in transit enforced (TLS policy, certificate source, monitoring).
  • Key source defined (Provider-managed / KMS / HSM / BYOK/HYOK).
  • Access rights minimal and role-based (no „Allmächtigen“ without justification).
  • Logging enabled: key events and accesses centrally reviewable.
  • Rotation governed (interval, responsible party, test path, rollback).
  • Backup encrypted, RESTore process tested and approved.
  • Exceptions documented (justification, compensating controls, expiration date, sign-off).

Template: Exception approval (minimum content)

  • Affected asset (ID), data class, business justification
  • Which control is not met (at REST / in transit / Rotation / Logging)
  • Compensating measures (segmentation, access hardening, monitoring)
  • Risk acceptance: Owner, date, expiration date
  • Remediation plan (milestones)

Technical examples: Evidence and controls in daily operations (copyable)

Which commands are appropriate depends heavily on your environment. The following examples are intentionally generic and serve as templates for runbooks and audit evidence.

Linux: Check status of full-disk encryption (LUKS)

Shell
# Blockgeräte und Dateisysteme anzeigen
lsblk -f

# LUKS-Metadaten eines Geräts prüfen (Beispiel: /dev/sda3)
sudo cryptsetup luksDump /dev/sda3

# Aktive Device-Mapper-Mappings anzeigen (zeigt, ob ein verschlüsseltes Mapping aktiv ist)
sudo dmsetup ls --tree

TLS: Check certificate chain and expiration date of an endpoint

Shell
# Zertifikat und Ablaufdaten anzeigen (Beispielhost und Port anpassen)
echo | openssl s_client -connect example.internal:443 -servername example.internal 2>/dev/null 
  | openssl x509 -noout -issuer -subject -dates -fingerprint -sha256

Backup evidence: Demonstrate encryption at the repository (example check)

Shell
# Example: Check whether a backup directory is on an encrypted filesystem
# (practical e.g. for NFS mounts, local repositories or backup staging)
backup_path="/srv/backup"
df -T "$backup_path"

# Show mount options (Note: actual encryption may be below the FS layer,
# therefore additionally provide storage/volume proof)
findmnt -no SOURCE,TARGET,FSTYPE,OPTIONS "$backup_path"

Note for audits: a single command is rarely „the evidence.“ Better is a repeatable evidence chain: Asset-ID → Configuration → Key source → Logs → RESTore test report.

Costs, risk and operational consequences: what you should realistically expect

Decisions on KMS/HSM, BYOK/HYOK and rotation are not just security questions. Typical cost and effort drivers:

  • Operations and availability: A central KMS/HSM becomes critical infrastructure. Outages can prevent decryption, service startup or RESTores.
  • Migration complexity: Database migrations, storage changes, cloud moves — keys must migrate cleanly everywhere without losing key IDs, policies or audit trails.
  • Monitoring and incident response: Key events must be part of security monitoring. Without alerting, logs are only an archive.
  • Skill set: No one needs to „reinvent“ cryptography, but teams need routine in policies, rotation, recovery and troubleshooting.

From a risk perspective, two extremes are dangerous: „encrypt everything, no matter what“ (leads to non-recoverable systems or shadow keys) and „only the bare minimum“ (leads to gaps in backups, internal interfaces and secrets). The stable path is risk-based, but with strict minimum standards.

Typical pitfalls and how to avoid them

  • Keys in configuration files: Prevent via centralized secrets-store standards and scans in repos/CI logs.
  • Break-glass without control: Emergency access is necessary, but must be logged, time-limited and approved.
  • Unclear data flows: Without a data flow diagram you miss locations where data temporarily lands (exports, ETL, integration servers).
  • Rotation without testing: Pilot rotation first for non-critical systems, with a clear rollback option and monitoring.
  • Incomplete asset coverage: Backup/DR assets must be in the same scope and subject to the same controls.

Conclusion: Compliance-aligned encryption is an operational standard, not a project handoff

Compliance requirements can be implemented in practice if you treat encryption as an asset and operational discipline: with clear classification, binding minimum controls, central key management, clear role and approval logic and repeatable evidence. Technically the building blocks are usually available — the difference is created by governance, lifecycle processes and the ability to keep rotation, RESTore and incident response under control.

If you want to bring your encryption and key management for assets to the next maturity level, don’t start with algorithms, but with scope, ownership, evidence and the three areas that almost always hurt in audits: backups, internal data flows and key lifecycle.

Weiterfuehrend

Passende weitere Inhalte