AMD와 윈본드 취약점, 수백만 대 PC의 BitLocker PIN 브루트포스 공격 허용
🇰🇷 한글 번역
AMD와 Winbond의 취약점으로 인해 공격자가 수백만 대의 PC에서 BitLocker PIN을 무차별 대입 공격할 수 있게 되었으며, 6자리 PIN의 해독 기간은 19년에서 20일로 단축된다.
Winbond 기반 SPI 플래시를 사용하는 기계는 새로운 하드웨어 없이는 수정할 수 없으며, 취약한 AMD PC는 새로운 BIOS 파일이 필요할 가능성이 높다.
노트북의 이전 소유자들은 오늘 또 다른 우려 사항을 얻게 되었다. Windows의 BitLocker와 같은 펌웨어 기반 드라이브 암호화 설정은 노트북이나 데스크톱 컴퓨터를 도난당하는 것을 방지하기 위해 설계되었다. 잠재적 도둑은 PIN을 추측하는 데 어려움을 겪게 되며, 결국 각 시도마다 10분을 기다려야 한다. 즉, 기계가 최신 AMD CPU를 사용하거나 Winbond의 SPI 플래시를 의존하는 경우를 제외하고는 말이다. 이 경우 베를린 공과대학교(Technische Universität Berlin)의 연구원들이 발견한 바와 같이 데이터가 며칠, 심지어 몇 시간 안에 공개될 수 있다.
해당 논문은 여러 취약점을 다루고 있지만, 우리는 가장 중요한 세 가지에 초점을 맞출 것이다. 모두 수년 대신 수일 또는 수시간 내에 암호화된 드라이브의 비밀번호를 무차별 대입 공격할 수 있는 방법을 중심으로 한다. 공격에는 물리적 접근이 필요하지만, 하드웨어 도난은 디스크 암호화가 보호하려는 정확한 시나리오이다.
공격자는 실패한 잠금 해제 시도를 기록하는 카운터를 재설정하거나 증가하는 것처럼 속임수를 써서 무차별 대입 공격을 더 쉽게 만든다. 보안에 fTPM을 사용하는 Intel 및 AMD 기반 PC(거의 모든 최신 x86 소비자 기계)에서 이 카운터는 마더보드의 SPI 플래시 칩에 암호화되어 저장된다.
표준 절차는 연속적으로 32번의 시도를 허용한 후, 추가 시도마다 기계를 10분간 대기하게 하여 짧은 PIN의 잠금 해제를 수년 동안 지연시키는 것이다. 정상 조건에서 6자리 숫자 PIN의 경우 19년이 소요된다. 공격은 BitLocker뿐만 아니라 다른 fTPM 기반 디스크 암호화 메커니즘에도 적용될 가능성이 있음을 유의해야 한다. 암호화 키는 영숫자일 수 있지만, Microsoft Windows는 로그인 시 기본적으로 숫자 PIN을 사용하며 대부분의 사용자는 긴 PIN을 사용하지 않는다.
첫 번째로, Intel 및 AMD 플랫폼 전반에 걸쳐 많은 OEM이 사용하는 Winbond의 RPMC(롤백 보호 기능이 있는) SPI 플래시를 기반으로 하는 기계가 있다. 영향을 받는 기계의 수를 정확히 파악하기는 어렵지만, 논문은 Winbond가 SPI 플래시 시장에서 약 25%의 점유율을 차지한다고 주장하므로 잠재적으로 수백만 대의 기계가 영향을 받을 수 있다. 간단한 전압 글리치를 통해 연구원들은 칩이 TPM과 SPI 칩이 서로 통신할 때 명령에 서명하는 데이터인 HMAC 키를 노출하도록 만들었다.
HMAC을 확보한 도둑은 SPI 칩 앞에 저비용 인터포저 보드를 배치하여 이를 사칭한다. 잠금 해제 실패 시 컴퓨터는 카운터 증가를 요청하고 확인을 받지만, 실제로는 아무 일도 일어나지 않아 Windows가 허용하는 속도로(부팅당 5회) 반복 시도가 가능하다. 이 취약점에 대한 수정 방법은 버그를 포함하지 않는 SPI 칩으로 교체하는 것뿐이다.
연구팀은 두 가지 특정 Winbond 칩 모델에 글리치를 적용했지만, 결함이 RPMC 엔진 설계에 있다고 주장하므로 문제가 제조사의 제품군 전반으로 확대될 가능성이 있다고 이론화했다. 테스트에 사용된 다른 회사의 플래시 칩은 동일한 정도로 영향을 받지 않았다.
Tom's Hardware의 최고의 뉴스와 심층 리뷰를 이메일로 직접 받아보세요.
AMD 머신의 경우, 두 가지 관련 취약점으로 인해 상황이 더 나쁘면서도 더 나은 양상을 보이고 있다. 연구진은 Zen 2부터 AI 5 330 노트북에 이르기까지 AMD 머신에서 두 공격 중 적어도 하나를 확인했다. 연구진은 메커니즘을 고려할 때, fTPM을 사용하는 일반적인 소비자용 하드웨어를 대상으로 한다면 모든 최신 AMD 시스템이 최소한 취약할 것이라고 추측한다. 이는 잠재적으로 리스크에 노출된 머신이 최소 수백 대에 달한다는 것을 의미한다.
첫 번째 취약점은 비교적 단순하다. 테스트된 머신 중 SPI 플래시가 롤백 보호(RPMC)를 사용하지 않은 경우, 카운터 값이 낮을 때 SPI 플래시 내용을 복사해 두고 무료 시도 횟수를 모두 소진한 후 다시 플래시하면 된다. 물론 이는 심각한 문제이지만, 두 번째 취약점은 보안 아키텍트들이 얼굴을 손바닥으로 감싸고 싶게 만드는 실수다.
논문에 따르면, AMD의 비휘발성 저장장치용 펌웨어 컨트롤러 — 즉 SPI 플래시와 통신하는 부분 — 는 실패 시도 횟수 카운터가 실제로 증가했는지 확인하지 않는다. 단순히 카운터를 +1하라는 명령을 내리고 작업을 끝내는 것으로 처리하는데, 이로 인해 공격자가 저렴한 보드를 사용해 해당 명령을 가로채고 무시할 수 있는 경로가 열리게 된다. 이때 HMAC 키가 필요하지 않으므로 카운터는 전혀 변경되지 않는다.
후자의 취약점은 펌웨어 업데이트를 통해 거의 확실하게 수정할 수 있을 것으로 보이며, 이는 아마도 AMD의 AGESA 소프트웨어를 통해 이루어질 것이다. 문제는 실용성에 있다. 과거 클라이언트 하드웨어에서 AGESA를 업데이트하려면 모든 OEM이 영향을 받는 머신용 새로운 BIOS를 생성해야 했는데, 이러한 머신들의 상당수는 이미 지원 기간이 종료되었을 가능성이 높다.
스펙터(Spectre)와 멜트다운(Meltdown) 사태를 겪어본 사람이라면 실무에서 이것이 얼마나 어려운지 잘 알 것이다. OEM들은 업데이트를 게시하는 속도가 매우 느리며, 수년 이상 된 하드웨어에 대한 수정 프로그램을 제공하는 것을 꺼리는 경향이 있기 때문이다.
연구진은 테스트에 관여한 모든 기업에 연락해 자신의 발견 사항을 알렸지만, 안타깝게도 "어느 곳도 근본 원인 취약점을 수정하기로 약속하지 않았다"고 밝혔다. 적어도 본稿 작성 시점에서는 마이크로소프트만이 설정 과정에서 현재 4자리 대신 6자리 PIN을 입력하도록 사용자에게 권장하는 정책 변경을 발표했을 뿐이다.
최신 업데이트를 위해 iOS 및 Android용 Tom's Hardware 앱을 다운로드하라. 또한 Google 뉴스에서 Tom's Hardware을 팔로우하거나 선호하는 소스로 추가하여 최신 뉴스, 분석 및 리뷰를 피드에서 받아보라.
Bruno Ferreira는 Tom's Hardware의 기고 작가다. 그는 수년간의 PC 하드웨어 및 다양한 잡품에 대한 경험과 개발자로서의 경력을 보유하고 있다. 그는 디테일에 집착하며 자신이 사랑하는 주제에 대해 장황하게 이야기하는 경향이 있다. 그런 일을 하지 않을 때는 보통 게임을 하거나 라이브 음악 공연과 페스티벌에 참석한다.
📄 원문 (English)
AMD and Winbond vulnerabilities let attackers brute-force BitLocker PINs on millions of PCs — cracking a six-digit PIN drops from 19 years to 20 days
Machines using Winbond-based SPI flash not fixable without new hardware, while vulnerable AMD PCs likely need new BIOS files.
Former owners of laptops gained yet another concern today. Firmware-backed drive encryption setups like Windows' BitLocker are meant to protect against someone stealing your laptop or desktop computer. Prospective thieves would have a hard time guessing your PIN, as they'll eventually have to wait 10 minutes for each attempt. That is, unless your machine uses a modern AMD CPU or relies on Winbond's SPI flash — in which case your data may be open for inspection in a few days, or even hours, as researchers from Technische Universität Berlin found out.
The paper covers many vulnerabilities, but we'll focus on the big three. All focus on having a way to brute-force an encrypted drive's password in a matter of days/hours rather than years. Physical access is required for the attacks, but hardware theft is precisely the scenario that disk encryption is meant to protect against.
An attacker makes brute-forcing easier by resetting, or pretending to increase, the counter that records the number of failed unlock attempts. On Intel- and AMD-based PCs using the fTPM for security — nearly all modern x86 consumer machines — this counter is stored encrypted in an SPI flash chip on the motherboard.
Standard procedure is to allow for 32 attempts in succession, then force the machine to wait 10 minutes for each additional one, resulting in many years for unlocking a short PIN — 19 years for a six-digit numerical PIN, under normal conditions. We should note the attacks likely extend to other fTPM-based disk encryption mechanisms, not just BitLocker. While encryption keys can be alphanumeric, Microsoft Windows does default to using a numeric PIN for sign-in, and most users don't use long ones.
First up: machines based on Winbond's RPMC-enabled SPI flash (variant with rollback protection), used by many OEMs across both Intel and AMD platforms. Although it's hard to pin down the number of affected machines, the paper claims Winbond has roughly a 25% market share for SPI flash — so, potentially millions of machines. With a simple voltage glitch, the researchers made the chip reveal the HMAC key, the datum that signs commands when the TPM and the SPI chip talk to each other.
With the HMAC in hand, the thief places a low-cost interposer board in front of the SPI chip to impersonate it. On a failed unlock, the computer will request a counter increase and get a confirmation, when in reality nothing happened — allowing for repeat attempts as fast as Windows lets them, at five per reboot. There is no fix for this vulnerability other than replacing the SPI chip with one that doesn't contain the bug.
The team glitched two specific Winbond chip models, but they theorize the issue extends further into the maker's lineup, as the flaw allegedly lies with the RPMC engine design. Flash chips from other firms in the test were not affected to the same extent.
Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.
As for AMD machines, the situation is both worse and better, with two related vulnerabilities. The team verified at least one of the two attacks across AMD machines from Zen 2 up to an AI 5 330 laptop. They theorize that considering the mechanisms, all contemporary AMD setups may be vulnerable, at least for standard consumer hardware using fTPM. That's multiple millions of machines potentially at risk, on the low side.
The first is simple enough. On the tested machines whose SPI flash didn't use RPMC — rollback protection — you can just make a copy of the SPI flash's contents when the counter is low, and just flash it again once you've used up your free tries. Bad enough, yes, but the second vulnerability should elicit facepalms from security architects.
According to the paper, AMD's firmware controller for non-volatile storage — the bit that talks to the SPI flash — does not verify that the failed-attempt counter increase actually took place. It'll just issue the order to +1 it and be done, opening the avenue for an attacker to simply intercept that order (again, with a cheap board) and ignore it without even needing HMAC keys, so the counter never changes.
The latter vulnerability should be fixable via a firmware update, almost certainly via AMD's AGESA software. The problem is one of practicality: in the past, updating AGESA on client hardware meant that every OEM had to create fresh BIOSes for affected machines, many of which are assuredly out of their support window.
Anyone who's lived through the Spectre and Meltdown days knows how hard it is in practice, as OEMs are exceedingly slow to publish updates, and have a distaste for providing fixes for hardware that's more than a few years old.
The researchers contacted every company involved in their tests, informing them of their findings, but sadly "none of them has committed to fixing the root-cause vulnerabilities" — at least, as of this writing, only Microsoft announced a policy change recommending users enter six-digit PINs instead of the current four during setup.
Download the Tom's Hardware app for up-to-the-minute updates on iOS and Android. Also follow Tom's Hardware on Google News, or add us as a preferred source, to get our latest news, analysis, & reviews in your feeds.
Bruno Ferreira is a contributing writer for Tom's Hardware. He has decades of experience with PC hardware and assorted sundries, alongside a career as a developer. He's obsessed with detail and has a tendency to ramble on the topics he loves. When not doing that, he's usually playing games, or at live music shows and festivals.
▶ 칩 라이브 24 홈으로 — chiplive24.com