Destroy the FileVault key on standby on Mac

macOS can be configured to destroy its retained FileVault key when the Mac enters standby. The next wake from standby then requires an authorized FileVault user to enter their password again.

This is an advanced hardening option, not a replacement for turning on FileVault. It is mainly relevant when your threat model includes physical access to a sleeping Mac.

The earlier description of the key being stored in an “EFI BIOS” was not accurate. On Macs with Apple silicon or the Apple T2 Security Chip, Apple says FileVault key handling for the internal storage takes place in the Secure Enclave and the keys are not directly exposed to the CPU.

Before you change the setting

  • Confirm that FileVault is on and that you have a working recovery method.
  • Save your work and keep a current backup.
  • Expect a slower wake and another password prompt after the Mac has actually entered standby.
  • On a managed Mac, ask your administrator. Apple provides the same setting through a FileVault device-management payload.

Ordinary sleep and standby are not identical. macOS may enter standby only after it has been asleep for some time, and behavior depends on the Mac and its power settings. Do not change hibernatemode only to make this check pass.

How to fix it

macOS 10.11 and later

  1. Open Terminal.

  2. Enter the following command and press Return:

    sudo pmset -a destroyfvkeyonstandby 1

  3. Enter your administrator password when prompted. Terminal does not show characters while you type the password.

  4. Verify the stored value with:

    pmset -g custom

    Look for destroyfvkeyonstandby 1 in the relevant power profile. If the setting is not shown or the Mac does not behave as expected, do not assume that this hardening is active.

  5. Test sleep and standby before relying on the setting.

The -a option applies the value to battery, charger, and UPS power profiles supported by the Mac.

How to undo it

To retain the FileVault key across standby again, run:

sudo pmset -a destroyfvkeyonstandby 0

Then confirm the value with pmset -g custom.

Security boundary

This setting reduces how long a retained FileVault key remains available while the Mac is in standby. It does not protect an already unlocked session from malware, remote access, or someone using the Mac before it reaches standby. Lock the screen whenever you leave the Mac and keep macOS up to date.

Sources


You might also be interested in

Check your security settings

SimpleumCheck Screenshot

SimpleumCheck checks the security settings on your Mac in three stages and gives you recommendations on how you can improve your security even further.

For Free

Protect and encrypt your data

SimpleumSafe Screenshot


Protect your data with SimpleumSafe App for Mac, iPhone and iPad. Don’t compromise when it comes to protecting your data.


Other security setting to check


PLEASE READ THE FOLLOWING TIP AND DISCLAIMER!

Keep in mind: not every security and privacy setting is suitable for everyone. Enhancing the security can lead in losing functionality and/or comfort.
Before making changes, please backup your Mac! Do not make too many change at once. After changing your Mac, check if your normal usage of your Mac has changed in a way which fits to you. Are your really willing to loose some functionality and/or comfort?
Most important is, that you learn and understand what are the advantages and disadvantages of the security settings and that you are aware about the capabilities and risks of your Mac configuration.

To skip this result message from your next security scan, you can deactivate this check. FAQ: How to deactivate a check.

CHECK RESULTS BY SIMPLEUMCHECK DO NOT COVER ALL ASPECTS OF POSSIBLE SECURITY CHECKS OR MAYBE INCORRECT OR INCOMPLETE. THE RESULTS ARE ONLY CLUES FOR RECOMMENDATIONS TO IMPROVE SECURITY AND PRIVACY ON THE MAC.

The use of SimpleumCheck, the checks and FAQ articles are provided under the SimpleumCheck End User License Agreement (EULA).