9

I have learned about attacks where the BitLocker master key can be sniffed on its way from the CPU to the TPM using a logic analyzer. However, in computer configurations without TPMs, this is obviously not possible. Furthermore, as I understand, the TPM will rate-limit the number of attempts on BitLocker passwords, and also verify the integrity of the hardware/firmware of the entire system before even allowing decryption attempts. I have also read that in some cases, Microsoft will automatically send the BitLocker recovery codes to its "Microsoft cloud backup" under the user's account, but others have contested that this is optional and/or not enabled by default. I need to continue work to find out if there is a way to find out if this is the case on a running system connected to a Microsoft account.

My question is, is there any known way, aside from bruteforce attacks, for an attacker to decrypt a drive protected by BitLocker with a very strong passphrase?

3
  • 3
    Cold boot, evil maid, etc., the list goes on. Commented Sep 24 at 6:25
  • 2
    Whether recovery key is automatically saved to Microsoft Account depends on how BitLocker was enabled. If it was automatically enabled on eligible machines, then it would be automatically saved to your Microsoft Account. It you manually enabled it via the Control Panel, you could choose where you save the key. It you manually enable it via the manage-bde command, you could even choose to have no recovery key at all. All of this is also subject to policy if your device is managed by an organization.
    – DL444
    Commented Sep 24 at 8:00
  • 15
    xkcd.com/538
    – Sam Dean
    Commented Sep 24 at 12:37

4 Answers 4

13

While there are more than one, the Cold Boot attack is probably the most infamous type of attack on encryption keys like Bitlocker’s.

The Cold Boot attack is a physical attack that can dump encryption keys- meaning that the length of the passphrase doesn’t matter.

But don’t get me wrong: this is a very sophisticated attack. It usually involves using an extremely cold chemical (such as liquid nitrogen) to capture the remanence of the RAM- which includes these encryption keys.

18
  • 3
    I believe this attack can be mitigated via memory encryption features on the processor (Intel TME, AMD SME, etc.) where RAM content is encrypted with a key held by the CPU. However as far as I know it's currently not available on most consumer platforms.
    – DL444
    Commented Sep 24 at 8:09
  • 2
    There was a variant of this attack that wasn't that hard: you merely crash the OS and force a reboot, then load your own OS. The memory remains powered all the time, and systems don't test the memory with quick boot. If the system is new enough, Secure MOR has UEFI keep track if the previous shutdown was clean. If not, it will zero out the RAM before passing control.
    – user71659
    Commented Sep 24 at 20:33
  • 3
    @security_paranoid A simple warmboot does not require cooling because the memory and memory controller remains powered. What you need to do to defeat Secure MOR is to move it to another computer, and the time to do that requires cooling.
    – user71659
    Commented Sep 24 at 20:44
  • 4
    You don't need liquid nitrogen for a cold boot attack! A simple spray can can give you minutes. The word “cold” in “cold boot” merely means that the system goes through an unpowered state, it doesn't imply a colder-than-ambient temperature. Commented Sep 24 at 21:24
  • 4
    So a cold boot attack can retrieve encryption keys stored on DRAM for some short seconds, but my power blips even a half a second and i've lost all my work? Thanks Intel!
    – enorl76
    Commented Sep 25 at 15:53
10

It depends totally on your threat model

If the attacker can physically access a powered on machine protected by only screen lock, the cold boot or DMA attacks will work.

If the attacker can physically access the machine to install hidden hardware and later the owner types the password, there are many attacks possible, such as the TPM sniffing, keyloggers and malicious USB devices. They could even completely replace the machine and have a fake BitLocker steal the password.

If the machine is connected to network, any exploitable security issues in the operating system or other software could be used to steal data with no regard to BitLocker.

If a wireless keyboard is used to log in, timing analysis can provide information about the password and make bruteforcing more efficient.

If the recovery key is physically stored somewhere, it can be found and used to open the encryption.

One can reasonably say that none of these are attacks against BitLocker itself but merely circumvent it. A security solution is only as strong as the weakest link.

3
  • "If the machine is connected to network, any exploitable security issues in the operating system or other software could be used to steal data with no regard to BitLocker." - this requires physical access to the already-powered-on machine, right?
    – the_endian
    Commented Sep 25 at 1:24
  • @the_endian No, it just requires a virus or malware that gets onto the system while it is running. No physical access needed, just that the machine is in normal everyday use.
    – jpa
    Commented Sep 25 at 6:11
  • 2
    And if the attacker can physically access the user or someone or something they care about, they can threaten same until the user gives them access to whatever data they want.
    – Vikki
    Commented Sep 25 at 19:07
9

Other than the Cold Boot attack outlined by @security_paranoid, another way to extract raw encryption key from the RAM is to perform DMA attack, where the key is leaked out through a DMA-capable peripheral port like Thunderbolt.

This can be mitigated by IOMMU-based DMA protection, where the IOMMU hardware restricts supported peripheral devices to accessing only the memory area assigned to them, similar to how the MMU imposes memory protection between software processes. For unsupported devices, the mitigation is usually requiring logging into the machine before the device can be connected and used.

Without TPMs, devices are also ineligible to Secure Boot and thus susceptible to rootkit attacks where early-launch malware sits under the OS and extracts arbitrary memory content from the machine. You can use the TPM + PIN authentication option to enable platform integrity validation and enforce physical presence (thus mitigating TPM-sniffing attacks) at the same time.

See BitLocker countermeasures article for more attack opportunities and defense measures.

10
  • The cold boot attacks target the residual data in RAM directly after a reboot or shutdown, bypassing peripheral devices entirely. So wouldn’t this make IOMMU protection and the like redundant? But I could be wrong… Commented Sep 24 at 9:20
  • 3
    @security_paranoid Yes. But DMA attack is considered to be much easier to carry out than cold boot, so it still has some value.
    – DL444
    Commented Sep 24 at 9:27
  • I agree with that, yes, DMA attacks are more feasible and ‘easier’, but the cold boot attack is more likely to always work… Commented Sep 24 at 9:29
  • @DL444 but could such rootkit attack decrypt the drive or extract a key for the encrypted drive (assuming user isn't typing it in?)?
    – the_endian
    Commented Sep 25 at 1:23
  • @the_endian If the user never enter the password to unlock the drive at startup, then surely no software could ever know the password. But without the preboot warning that Secure Boot (theoretically) issues, your average users wouldn't know that their device was compromised and would proceed to enter the password to boot the machine.
    – DL444
    Commented Sep 25 at 7:20
4

Technically speaking, yes, there are attacks faster than brute force.

BitLocker uses the AES algorithm for encrypting the data on the disks, and there is a known attack against AES that provides about a three-fold speedup over brute force for AES-256, and a four-fold speedup for AES-128. Still completely impractical, so if you need to decrypt something without having access to the password, your best bet is still something like a side-channel attack or a $5 wrench.

2
  • What about using one of the various other (physical) methods stated by one of the various other answers? Something like the cold boot attack, or such, is sure easier than cracking AES (!) you do make a good point with your linked article (I hadn’t actually heard of that,) but the OP specifically stated “very strong” password, which even with you method, like you say, would not be feasible before the heat death of the universe! (Schroeder quote.) Commented Sep 25 at 2:25
  • 3
    I recommend the $25 wrench over the $5, you can beat passwords out of a lot more nerds with it before it breaks.
    – Vikki
    Commented Sep 25 at 19:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .