Skip to main content

Disk encryption – BitLocker and LUKS: compliance and key management

Applies to: Medulla
Version: All versions
Environment: SaaS / On-Premise
Category: Security / Compliance / Encryption

Medulla allows you to implement a disk encryption compliance policy using the Packages and Convergence modules.

The principle involves deploying a package containing a script capable of checking the computer’s encryption status and automatically enabling encryption when it is missing.

This approach can be used with:

  • BitLocker for Windows workstations;
  • LUKS for Linux workstations.

How it works:
Medulla handles the targeting, deployment, execution, and re-execution of the package. The script embedded in the package performs compliance checks and enables encryption when necessary.


How do you automatically bring a workstation into compliance?

A Medulla package can run a script to check for compliance and enable encryption.

On Windows, the script can rely on the following:

Get-BitLockerVolume
manage-bde
Enable-BitLocker

On Linux, the logic can be built around LUKS management tools, including:

cryptsetup

The script must be idempotent so that it can be run regularly without unnecessarily modifying a computer that is already compliant.

The process might work as follows:

  1. Medulla runs the package on the target computer;
  2. the script checks the actual encryption status;
  3. if the disk is properly encrypted, no action is taken;
  4. if encryption is missing, the script enables it according to the defined policy;
  5. the script checks the result and returns its status in the execution logs.

Example:
A policy can target all affected Windows 11 workstations. The package is run on these computers, and its script determines on its own whether BitLocker is already enabled before taking any action.


How can this compliance be maintained over time?

The Application Convergence module can be associated with the package to ensure its regular execution.

The compliance logic is then based on two levels:

Component Role
Medulla Packages / Convergence Targeting, distribution, and regular execution of the package
Compliance script Detection of the actual encryption status and corrective action if necessary

Medulla Convergence currently relies on the software inventory to determine the presence of a package. Since the encryption status is not currently a native criterion of this inventory, the encrypted/unencrypted check is performed directly by the script.


How do you target the relevant computers?

Medulla dynamic groups allow you to target computers based on information available in the inventory, for example:

  • the operating system;
  • the system version;
  • software and its versions;
  • other criteria available in the inventory.

This allows you to apply the encryption policy to a group of relevant computers, then let the script determine which ones actually require action.

Possible enhancement:
Adding the encryption status as inventory data would eventually allow for the direct creation of dynamic groups such as “unencrypted workstations.” This criterion is not currently available natively.


What BitLocker information can be monitored?

The code for the Windows workstation monitoring module already provides for querying BitLocker using:

Get-BitLockerVolume

The planned information includes, in particular:

  • the volume protection status (ProtectionStatus);
  • the encryption percentage;
  • detection of incomplete encryption;
  • the presence of a TPM protector;
  • the type of protector used, for example, Tpm or RecoveryPassword.

Since this monitoring module has not yet been implemented in production, the solution currently available is to perform this check directly in the package script.


What about LUKS on Linux?

The same architecture can be used on Linux:

Medulla → Package → Check Script → LUKS / cryptsetup.

Since LUKS detection is not currently integrated into the Medulla inventory, the script must check the encryption status and, if necessary, apply the defined policy.


Is key management included?

Compliance can be orchestrated by Medulla, but centralized storage of recovery keys must currently be handled by an external escrow system.

The encryption script can therefore be designed to back up the key in the system chosen by the organization.

For BitLocker, for example, it is possible to use an escrow mechanism in Active Directory or an external key management solution.

For LUKS, the management of keys or passphrases must similarly be entrusted to a suitable secure system.

Security:
Recovery keys and passphrases must not be stored in plain text in Medulla packages, scripts, or execution logs.


Summary

Requirement Solution with Medulla
Target the relevant workstations Medulla groups
Check BitLocker PowerShell script deployed via Packages
Check LUKS Linux script deployed via Packages
Enable encryption if it is missing Compliance script via Packages
Run the check regularly Packages / Convergence
Check only non-compliant computers Check performed by the script on each targeted computer
Report the result of the action Package execution logs
Store recovery keys Active Directory escrow or external secure solution

In summary:
Yes, a BitLocker or LUKS compliance policy can be implemented with Medulla. Medulla handles computer targeting, package deployment, and regular checks. A custom script checks the encryption status and enables it if it is missing.

Centralized management of recovery keys is not currently built-in; it must be integrated with an escrow mechanism such as Active Directory or an external secure solution.