Interplay between the filesystem and tiCrypt
tiCrypt Vault Storage
The tiCrypt Vault offers a file system-like facility that allows files and directories to be created and used. All the metadata, such as file properties, directory entries, access information, and decryption keys, are stored in the MongoDB database used by the ticrypt-file-manager service.
In tiCrypt Vault, the file content is broken into chunks of 8 MiB by default (chunk-size), each encrypted independently using the file key. Each stored chunk begins with its 16-byte IV (initialization vector for AES-CBC encryption) and ends with padding, so with the default chunk size a full chunk takes 8 MiB + 32 bytes on disk; the backend accepts up to 64 bytes of overhead per chunk by default (max-header-size). For each file, the chunks are numbered from 0 onwards. The chunks are stored in a directory structure based on the file ID, visible only to the tiCrypt backend (preferably not to the VM hosts). The storage location is set by ticrypt.rest.storage.path in the ticrypt-rest configuration, and ticrypt.filemanager.storage.path in the ticrypt-file-manager configuration must point at the same storage.
tiCrypt is not opinionated on the file system or integration with other systems for this storage, but for compliance reasons, it is recommended that the access is restricted to only the tiCrypt backend.
Without the decryption keys that only users can recover, the content of the chunk files is entirely indecipherable. A backup of these files needs no encryption of its own: whatever tool makes the copy, the copy is ciphertext, and the key is unavailable even to administrators.
That protects the confidentiality of the copy. It does not move the copy outside the compliance boundary. The Department of Defense CIO's CMMC Frequently Asked Questions (July 2026 edition) state that "encrypted CUI data retains the control designation given to the plain text counterpart" (question B-Q8). A backup or replica of the chunk files is therefore still CUI: keep it on systems inside your assessment scope, and use a cloud service for it only if that service meets the FedRAMP Moderate baseline or its equivalent (question E-Q2).
tiCrypt Encrypted Drives in Libvirt
tiCrypt virtual machines use a boot disk image that is not encrypted and one or more encrypted drives. Both disk images and encrypted drives are stored as files in the underlying distributed file system available to all Libvirt host servers. The specific mechanism uses the notion of Libvirt disk pools. Independent disk pools can be defined for disk images, encrypted drives, ISOs, etc. Each pool is located in a different directory within the distributed file system.
Libvirt (and tiCrypt, by extension) is agnostic to choosing the file system where various disk pools are defined. A good practice is to place the different disk pools on a visible distributed file system (preferably in the same location) and to mount the file system on all VM hosts. Any file system, including NFS, BeeGFS, Lustre, etc., can be used. When the drives contain CUI, the file system that holds the encrypted drive files, and every snapshot, replica and backup of it, holds CUI and stays inside the assessment scope (question B-Q8).
As part of the virtualization mechanism, Libvirt makes the files corresponding to drives stored on the host file system appear as devices to the OS running within the VM. Any writes to the virtual device get translated into changes in the underlying file. The situation is somewhat more complex when snapshots are used since multiple files on the disk will form the virtual device.
Encrypted Drive Creation
Upon drive creation, tiCrypt instructs Libvirt to create a drive. This results in a file being made in the underlying file system in the corresponding drive pool. Two drives are supported: raw, with extension .raw, and QCOW2, with extension .qcow2.
A file as large as the indicated drive size gets created for a raw drive. The file content is initialized with 0s (corresponding to a blank drive). Writes in the virtual drive result in writes in the corresponding file at the same position (e.g., if block 10244 of the virtual drive is written, block 10244 of the raw file gets changed as well).
For a QCOW2 drive, only changed blocks get written; the file format is quite complex and supports advanced features like copy-on-write. The initial file size is small (low megabytes) when the drive is new; the file grows in size as more data is written to the disk.
The qemu-img tool can be used to convert between two formats. Usually, tiCrypt sets the drives up without the need for this tool.
A newly created tiCrypt disk is blank. No formatting of the drive or any other preparation has been performed. The drive will be formatted the first time it is attached to a tiCrypt virtual machine. The main reasons for this are:
- The encryption/decryption key for the encrypted drive is kept secret from the infrastructure. This includes the tiCrypt backend, Libvirt, and underlying VM host.
- The choice of the file system to use is delegated to the underlying operating system and tiCrypt VM Controller. Libvirt is not aware, nor does it need to know, of the actual file system on the drive. For Linux formatted drives, inspecting the files backing up the drives reveals only that the drive carries a LUKS header and, for a QCOW2 file, the image's own header and allocation metadata; nothing about the content or type of file system can be read from it.
Encrypted Drive Formatting
As far as Libvirt is concerned, only low-level disk reads and writes exist. Whatever operation the operating system is performing gets translated into read/write operations on the virtual disk; in turn, this will result in read/write operations for the underlying file in the disk pool.
In Windows, a standard NTFS file system is created, but immediately (before the drive is made available to the user), BitLocker is turned on. This ensures that all files created subsequently are encrypted. BitLocker uses so-called "full volume encryption," i.e., all the new data will be encrypted, including the metadata. An external tool scanning the backing file can determine that the drive is an NTFS formatted drive and read all non-encrypted content. Since tiCrypt turns on encryption immediately, minimal information is visible.
In Linux, the LUKS entire disk encryption mechanism is used. It essentially places an encryption block layer between the raw drive (virtual drive in this case) and the file system (usually EXT4). This way, all information on the disk except the LUKS header is encrypted. An external tool can only see that header, plus the QCOW2 header and allocation metadata when the backing file is QCOW2, and tell which disk blocks have been written to (are non-zero) but can derive no info on the rest of the content.
tiCrypt Non-secure Drives
Two non-secure drives are supported in tiCrypt: ISOs and read-only NFS shares.
Attaching ISOs
ISOs are made available using read-only CD-ROM devices. As such, they are always safe to mount in a secure tiCrypt VM. Linux and Windows can readily mount such ISOs and make them available as "drives."
ISOs are particularly useful if the NFS shares described below are not used. For example, Python or R packages could be made available as ISOs so that various VMs can install the required packages locally.
Attaching NFS file systems
By allowing, through firewall rules, access to a local NFS server, various tiCrypt VMs can mount a common file system for the purpose of accessing public (non-secure) data, packages, software, etc.
From a security point of view, the NFS server should export the data as read-only. The tiCrypt secure VMs should never be allowed to mount a read-write NFS share since data can be exfiltrated, thus defeating the tremendous effort put into tiCrypt protections against data exfiltration. This will most unquestionably make the tiCrypt deployment non-compliant.
A further restriction is related to the location of the NFS server. The system administrators of tiCrypt must control the NFS file system. It has to be part of the tiCrypt system envelope; for example, one of the servers part of the tiCrypt infrastructure can take this role. This restriction is due to compliance complications: the security envelope extends to all system parts; a remote NFS server becomes part of the secure environment and is subject to all security restrictions.
A practical recommendation is to create a local NFS server inside the security envelope and replicate the necessary data from a regular NFS server outside the envelope. This way, the tiCrypt VMs access only the local, controlled copy.
Related documentation: Shared Computing to tiCrypt | Drives | Share Drives
