A thief needs only a cheap circuit board spliced into the SPI flash chip to guess a BitLocker PIN without ever advancing the failed-attempt counter, and the vendors have yet to promise a root-cause fix.
- Researchers at Technische Universität Berlin found a way to stop the failed-PIN counter from incrementing, cutting the time to brute-force a 6-digit PIN from 19 years to about 20 days
- Winbond SPI flash chips with RPMC (roughly 25% of the market) cannot be patched in software, and fixing the flaw means replacing the chip
- AMD systems from Zen 2 through the AI 5 330 laptop chip have been confirmed vulnerable to at least one attack, and the fix lies in AGESA, but it depends on each manufacturer choosing to ship a new BIOS
- The attacker needs physical access to the machine, no vendor has committed to a root-cause fix, and Microsoft has only advised using a 6-digit PIN instead of a 4-digit one
Table of Contents
The failed-PIN counter and how it gets abused
Firmware-based disk encryption such as Windows BitLocker exists to protect data when a laptop or desktop is stolen. A thief trying to guess the PIN gets a few free attempts, after which every wrong entry triggers a 10-minute lockout, which makes brute-forcing practically impossible. Researchers at Technische Universität Berlin have now shown that this protection can be bypassed on machines with recent AMD CPUs or Winbond SPI flash chips, and the data can then be unlocked in a few days or even a few hours.
The key is the counter that records failed unlock attempts. On both Intel and AMD systems that use fTPM for security, which covers nearly every mainstream x86 PC today, this counter is stored in encrypted form on an SPI flash chip soldered to the motherboard. The standard process allows 32 consecutive wrong guesses, after which each additional attempt requires a 10-minute wait, so a 6-digit PIN would take an attacker about 19 years under normal conditions. If the counter can be frozen or rolled back to a low value, that figure shrinks to roughly 20 days. All of the attacks require physical access to the machine, but that is exactly the scenario disk encryption is designed to defend against. According to the researchers, the technique likely applies to other fTPM-based disk encryption schemes too, not just BitLocker. Windows defaults to a numeric PIN at sign-in, and most users do not set a long one, which makes the risk more pronounced.
The flaw sits in the Winbond chip itself
The first case involves Winbond SPI flash chips that support RPMC (replay-protected monotonic counter, a rollback-protection feature), which many PC makers use on both Intel and AMD platforms. It is hard to say exactly how many machines are affected, but the paper estimates that Winbond holds about 25% of the SPI flash market, meaning potentially millions of devices. With a simple voltage glitch, the researchers got the chip to leak its HMAC key, which is used to sign the commands exchanged between the TPM and the SPI chip.
With the HMAC key in hand, a thief can attach a cheap interposer board to impersonate the SPI chip. Each time an unlock attempt fails, the machine asks for the counter to be incremented and receives a confirmation, while the counter never actually moves. That lets PIN guessing proceed as fast as Windows allows, which is 5 attempts per reboot. There is no patch for this flaw other than replacing the chip with one that is not affected. The researchers successfully glitched only two specific Winbond chip models, but they believe the problem may extend across the company's product line because the flaw lies in the RPMC design. Chips from other vendors tested in the study were not affected to the same degree.
AMD systems: two related vulnerabilities
On AMD systems, the picture is both worse and more manageable, because there are two related vulnerabilities. The researchers confirmed at least one of the two attacks on AMD machines ranging from Zen 2 up to the AI 5 330 laptop chip, and they reason that, given the mechanism involved, every current AMD system using fTPM may be vulnerable, which means at least many millions of machines. The first attack is fairly simple: on machines whose SPI chip does not use RPMC, an attacker can copy the entire contents of the chip while the counter is still low, then write that image back each time the free attempts run out.
The second attack is more troubling for security architects. According to the paper, AMD's firmware controller responsible for non-volatile storage, the component that talks to the SPI chip, does not verify whether the command to increment the counter after each failed attempt was actually carried out. It issues an add-one command and assumes the job is done, so an attacker only needs a cheap board to intercept and drop that command, with no need for the HMAC key, and the counter stays frozen indefinitely.
Fixable on paper, harder in practice
The second AMD vulnerability can in theory be patched with a firmware update, most likely through AMD's AGESA software. The difficulty is in execution: whenever AGESA is updated for consumer machines, each PC maker has to build a new BIOS for the affected models, and many of those models are already out of support. Anyone who lived through Spectre and Meltdown knows that vendors tend to be slow to ship updates and have little appetite for patching machines that launched more than a few years ago.
The researchers notified all companies involved during testing, but by their own account none has committed to fixing the root cause. As of publication, the only action taken is a policy change by Microsoft, which now advises users to set a 6-digit PIN instead of the current 4-digit one during setup.
Migovi believes the most worrying aspect of this case is not the attack technique but the fact that the flaw lives in hardware and firmware, where users can do almost nothing themselves, while vendors have yet to promise a root-cause fix. Microsoft's 6-digit recommendation only lengthens the time needed to guess a PIN and does not stop an attacker who has frozen the counter, so it should be treated as a mitigation at best. Users in Vietnam, especially those who carry laptops with work data from place to place, should set a PIN longer than the minimum and watch their manufacturer's support page so they can install a BIOS update as soon as one addressing this flaw is released. For machines with Winbond chips, a software patch is not enough, so the most practical step is to keep the device within sight, because every attack described here begins with someone getting their hands on your machine.
Source: Tom's Hardware
Reviewed by: Hero Association








