FileVault is a
disk encryption program in
Mac OS X 10.3
Mac OS X Panther (version 10.3) is the fourth major release of macOS, Apple's desktop and server operating system. It followed Mac OS X Jaguar and preceded Mac OS X Tiger. It was released on October 24, 2003.
System requirements
Panther's s ...
(2003) and later. It performs
on-the-fly encryption with
volumes on
Mac computers.
Versions and key features
FileVault was introduced with
Mac OS X Panther
Mac OS X Panther (version 10.3) is the fourth major release of macOS, Apple's desktop and server operating system. It followed Mac OS X Jaguar and preceded Mac OS X Tiger. It was released on October 24, 2003.
System requirements
Panther's s ...
(10.3), and could only be applied to a user's home directory, not the startup volume. The
operating system
An operating system (OS) is system software that manages computer hardware, software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ef ...
uses an encrypted
sparse disk image (a large single file) to present a volume for the home directory.
Mac OS X Leopard
Mac OS X Leopard (version 10.5) is the sixth major release of macOS, Apple's desktop and server operating system for Macintosh computers. Leopard was released on October 26, 2007 as the successor of Mac OS X 10.4 Tiger, and is available in two ...
and
Mac OS X Snow Leopard
Mac OS X Snow Leopard (version 10.6) is the seventh major release of macOS, Apple's desktop and server operating system for Macintosh computers.
Snow Leopard was publicly unveiled on June 8, 2009 at Apple’s Worldwide Developers Conferen ...
use more modern
sparse bundle disk images which spread the data over 8 MB files (called ''bands'') within a bundle. Apple refers to this original iteration of FileVault as ''legacy FileVault''.
Mac OS X Lion
OS X Lion, also known as Mac OS X Lion, (version 10.7) is the eighth major release of macOS, Apple's desktop and server operating system for Mac computers.
A preview of OS X 10.7 Lion was publicly shown at the "Back to the Mac" Apple Speci ...
(10.7) and newer offer FileVault 2,
which is a significant redesign. This encrypts the entire OS X startup volume and typically includes the home directory, abandoning the disk image approach. For this approach to
disk encryption
Disk encryption is a technology which protects information by converting it into unreadable code that cannot be deciphered easily by unauthorized people. Disk encryption uses disk encryption software or hardware to encrypt every bit of data that ...
, authorised users' information is loaded from a separate non-encrypted boot volume (partition/slice type Apple_Boot).
FileVault
The original version of FileVault was added in Mac OS X Panther to encrypt a user's home directory.
Master passwords and recovery keys
When FileVault is enabled the system invites the user to create a master password for the computer. If a user password is forgotten, the master password or recovery key may be used to decrypt the files instead.
Migration
Migration of FileVault home directories is subject to two limitations:
* there must be no prior migration to the target computer
* the target must have no existing user accounts.
If Migration Assistant has already been used or if there are user accounts on the target:
* before migration, FileVault must be disabled at the source.
If transferring FileVault data from a previous Mac that uses 10.4 using the built-in utility to move data to a new machine, the data continues to be stored in the old sparse image format, and the user must turn FileVault off and then on again to re-encrypt in the new sparse bundle format.
Manual encryption
Instead of using FileVault to encrypt a user's home directory, using
Disk Utility
A disk utility is a utility program that allows a user to perform various functions on a computer disk, such as disk partitioning and logical volume management, as well as multiple smaller tasks such as changing drive letters and other mount p ...
a user can create an encrypted disk image themselves and store any subset of their home directory in there (for example, ). This encrypted image behaves similar to a FileVault encrypted home directory, but is under the user's maintenance.
Encrypting only a part of a user's home directory might be problematic when applications need access to the encrypted files, which will not be available until the user mounts the encrypted image. This can be mitigated to a certain extent by making
symbolic links for these specific files.
Limitations and issues
Backups
Without Mac OS X Server,
Time Machine
Time travel is the concept of movement between certain points in time, analogous to movement between different points in space by an object or a person, typically with the use of a hypothetical device known as a time machine. Time travel is a ...
will back up a FileVault home directory only while the user is logged out. In such cases, Time Machine is limited to backing up the home directory in its entirety. Using Mac OS X Server as a Time Machine destination, backups of FileVault home directories occur while users are logged in.
Because FileVault restricts the ways in which other users' processes can access the user's content, some third party backup solutions can back up the contents of a user's FileVault home directory only if other parts of the computer (including other users' home directories) are excluded.
Issues
Several shortcomings were identified in legacy FileVault. Its security can be broken by cracking either 1024-bit
RSA
RSA may refer to:
Organizations Academia and education
* Rabbinical Seminary of America, a yeshiva in New York City
*Regional Science Association International (formerly the Regional Science Association), a US-based learned society
*Renaissance S ...
or
3DES-EDE
In cryptography, Triple DES (3DES or TDES), officially the Triple Data Encryption Algorithm (TDEA or Triple DEA), is a symmetric-key block cipher, which applies the DES cipher algorithm three times to each data block. The Data Encryption Standa ...
.
Legacy FileVault used the CBC mode of operation (see
disk encryption theory); FileVault 2 uses stronger XTS-AESW mode. Another issue is storage of keys in the macOS "safe sleep" mode.
A study published in 2008 found
data remanence
Data remanence is the residual representation of digital data that remains even after attempts have been made to remove or erase the data. This residue may result from data being left intact by a nominal file deletion operation, by reformatting o ...
in
dynamic random-access memory
Dynamic random-access memory (dynamic RAM or DRAM) is a type of random-access semiconductor memory that stores each bit of data in a memory cell, usually consisting of a tiny capacitor and a transistor, both typically based on metal-oxi ...
(DRAM), with data retention of seconds to minutes at room temperature and much longer times when memory chips were cooled to low temperature. The study authors were able to use a
cold boot attack
In computer security, a cold boot attack (or to a lesser extent, a platform reset attack) is a type of side channel attack in which an attacker with physical access to a computer performs a memory dump of a computer's random-access memory (RAM) ...
to recover cryptographic keys for several popular disk encryption systems, including FileVault, by taking advantage of redundancy in the way keys are stored after they have been expanded for efficient use, such as in
key scheduling
In cryptography, the so-called product ciphers are a certain kind of cipher, where the (de-)ciphering of data is typically done as an iteration of ''rounds''. The setup for each round is generally the same, except for round-specific fixed valu ...
. The authors recommend that computers be powered down, rather than be left in a "sleep" state, when not in physical control by the owner.
Early versions of FileVault automatically stored the user's passphrase in the system keychain, requiring the user to notice and manually disable this security hole.
In 2006, following a talk at the 23rd
Chaos Communication Congress titled ''Unlocking FileVault: An Analysis of Apple's Encrypted Disk Storage System'',
Jacob Appelbaum
Jacob Appelbaum (born 1 April 1983) is an American independent journalist, computer security researcher, artist, and hacker. He studied at the Eindhoven University of Technology and was a core member of the Tor project, a free software network ...
& Ralf-Philipp Weinmann released ''VileFault'' which decrypts encrypted Mac OS X disk image files.
A free space wipe using
Disk Utility
A disk utility is a utility program that allows a user to perform various functions on a computer disk, such as disk partitioning and logical volume management, as well as multiple smaller tasks such as changing drive letters and other mount p ...
left a large portion of previously deleted file remnants intact. Similarly, FileVault compact operations only wiped small parts of previously deleted data.
FileVault 2
Security
FileVault uses the user's login password as the encryption pass phrase. It uses the
XTS-AES mode of
AES
AES may refer to:
Businesses and organizations Companies
* AES Corporation, an American electricity company
* AES Data, former owner of Daisy Systems Holland
* AES Eletropaulo, a former Brazilian electricity company
* AES Andes, formerly AES Gener ...
with 128 bit blocks and a 256 bit key to encrypt the disk, as recommended by
NIST
The National Institute of Standards and Technology (NIST) is an agency of the United States Department of Commerce whose mission is to promote American innovation and industrial competitiveness. NIST's activities are organized into physical sc ...
.
Only unlock-enabled users can start or unlock the drive. Once unlocked, other users may also use the computer until it is shut down.
Performance
The
I/O performance penalty for using FileVault 2 was found to be in the order of around 3% when using CPUs with the
AES instruction set
An Advanced Encryption Standard instruction set is now integrated into many processors. The purpose of the instruction set is to improve the speed and security of applications performing encryption and decryption using Advanced Encryption Standard ...
, such as the
Intel Core i, and
OS X 10.10.3. Performance deterioration will be larger for CPUs without this instruction set, such as older
Core CPUs.
Master passwords and recovery keys
When FileVault 2 is enabled while the system is running, the system creates and displays a recovery key for the computer, and optionally offers the user to store the key with Apple. The 120 bit recovery key is encoded with all letters and numbers 1 through 9, and read from , and therefore relies on the security of the
PRNG used in macOS. During a cryptanalysis in 2012, this mechanism was found safe.
Changing the recovery key is not possible without re-encrypting the File Vault volume.
Validation
Users who use FileVault 2 in OS X 10.9 and above can validate their key correctly works after encryption by running in Terminal after encryption has finished. The key must be in form and will return true if correct.
Starting the OS with FileVault 2 without a user account
If a volume to be used for startup is erased and encrypted before clean installation of OS X 10.7.4 or 10.8:
* there is a password for the volume
* the clean system will immediately behave as if FileVault was enabled ''after'' installation
* there is no recovery key, no option to store the key with Apple (but the system will behave as if a key was created)
* when the computer is started, ''Disk Password'' will appear at the EfiLoginUI – this may be used to unlock the volume and start the system
* the running system will present the traditional login window.
Apple describes this type of approach as ''Disk Password—based DEK''.
See also
*
Apple Keychain
*
BitLocker
BitLocker is a full volume encryption feature included with Microsoft Windows versions starting with Windows Vista. It is designed to protect data by providing encryption for entire volumes. By default, it uses the AES encryption algorithm in ...
*
TrueCrypt
TrueCrypt is a discontinued source-available freeware utility used for on-the-fly encryption (OTFE). It can create a virtual encrypted disk within a file, or encrypt a partition or the whole storage device ( pre-boot authentication).
On 28 ...
*
VeraCrypt
*
LUKS
References
{{macOS
MacOS
Cryptographic software
Disk encryption