104 karma · joined May 31, 2019 (7y ago) · 10 submissions
comment 1w ago · link · parent
Windows Hello PINs are often just 4-6 digits. What makes that safe is the TPM's lockout: after 32 wrong guesses, one try every 10 minutes. On most PCs the TPM is a firmware TPM inside the CPU (AMD PSP, Intel CSME, Pluton), which keeps its state, including the failed-attempt counter, encrypted on the external SPI flash. Encryption doesn't stop replay: restore an old copy and the TPM forgets your failed guesses.
- 4-digit Windows Hello PIN: 40 hours instead of 69 days
- 6-digit BitLocker TPM+PIN: 20 days instead of 19 years
Affected:
- All AMD systems we know of. Without RPMC (JEDEC's secure counters in the flash chip) AMD doesn't detect rollbacks at all. With RPMC, AMD never verifies counter increments, so our Pi Pico based interposer just suppresses them.
- Systems with Winbond RPMC flash, including Intel: voltage glitching leaks the RPMC key, so the interposer can forge counters.
It's a physical attack (stolen laptop, evil maid): you need to open the device and get at the flash chip.
We told AMD in February. It could fix this in firmware but hasn't committed to a fix. The key leak needs a Winbond hardware revision; Winbond hasn't told us it will do one.
Until then: treat your PIN like a password, or use at least a 6-digit Hello PIN and an 8-digit BitLocker PIN if numeric only.
Presenting at ACM CCS tomorrow, happy to answer questions here.
2.
Exploiting Replay Protected Monotonic Counters to Brute-Force Windows Hello PINs(arxiv.org ↗)
70 points · by cwerling · 1w ago · 5 comments
comment 3y ago · link · parent
The beauty of a discrete TPM is its anti-hammering protection, making a numerical PIN a very effective security measure (akin to a SIM/SmartCard).
[1] https://www.sciencedirect.com/science/article/pii/S089812211...
comment 3y ago · link · parent
https://www.intel.com/content/www/us/en/newsroom/news/the-st...
comment 3y ago · link · parent
Looking into it shortly, I've found a paper from 2019 from Meijer et al. ([1]) finding several flaws with OPAL-compliant drives. They further find that BitLocker entirely depends on SSD-based encryption if the hardware advertises it. This finding's nature is very similar to ours in that BitLocker's Disk Encryption is insecure/unreliable in particular hardware configurations.
comment 3y ago · link · parent
When TPMs became popular, dedicated TPMs were mainly used, being a separate chip on the mainboard connected via the SPI or LPC bus. These were prone to (relatively primitive) bus sniffing attacks, where you would hook up a Logic Analyzer to the bus, watch a regular boot procedure grab the disk key, and then use software like Dislocker to extract all data from a USB Live Linux or alike.
Nowadays, most modern CPUs (both on Intel and AMD) ship firmware TPMs that are "included" with CPU die, making them safe against the bus sniffing attacks. However, they can still be prone to more sophisticated attacks like ours.
comment 7y ago · link · parent
[1] https://msrnd-cdn-stor.azureedge.net/bluehat/bluehatil/2019/...
comment 7y ago · link · parent
[1] https://seclists.org/fulldisclosure/2018/Jan/12
[2] https://msrnd-cdn-stor.azureedge.net/bluehat/bluehatil/2019/...
9.
Show HN: PSPTool – Parse and Trace Firmware of AMD's Platform Security Processor(github.com ↗)
3 points · by cwerling · 7y ago · 1 comment