Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
rpmc_attacks — Research code and hardware for RPMC attacks: voltage glitching, SPI interposer firmware, and NV-state rollback to brute-force Windows Hello and BitLocker PINs. | Kitploit
Tools/GitHubGitHub/mattifinder/rpmc_attacks
Embedded Systems SecurityPrivilege EscalationPassword AttacksExploitationReverse EngineeringHardware HackingHardware SecurityPapers & ResearchFirmware Analysis
GitHubmattifinder/rpmc_attacks

rpmc_attacks

3122h 39m agoNot yet reviewed
Share

Research code and hardware for RPMC attacks: voltage glitching, SPI interposer firmware, and NV-state rollback to brute-force Windows Hello and BitLocker PINs.

View Repository

RPMC Attacks

This repository provides up-to-date information as well as supplemental material to our paper: "Hello Again: Exploiting Replay Protected Monotonic Counters to Brute-Force Windows Hello PINs" (originally published at ACM CCS 2026)

[!IMPORTANT]

tl;dr: If you rely on numeric Windows Hello or BitLocker PINs, increase your PIN length by at least two digits. Even in light of our attacks, this increases the time to bruteforce them from several days to months or even years.

In the paper, we introduce vulnerabilities in both RPMC flash chips (e.g., Winbond's) and RPMC controllers (e.g., AMD's). This repository is mainly a collection of code that helped us test for the respective vulnerabilities. It includes scripts to test a counter for integer overflows, conduct crowbar voltage glitching attacks to test for sensitive leakages, and firmware for an RP2350 allowing two types of interposition attacks: one exploiting AMD's unverified RPMC increments and another for forging RPMC replies when an attacker is in posession of an HMAC key (e.g., on a Winbond-based system vulnerable to voltage glitching). It also contains the hardware designs for our custom interposer PCB.

[!NOTE] With this repository, we try to make our code and data available for other researchers. Given the experimental nature of offensive hardware security research, reproduction of our attacks is not plug-and-play. Most importantly, it assumes access to our interposer PCB (v1 or v2).

Important updates since paper release

AMD systems relying on pre-RPMC flash may already use RPMC functionality

In our paper, we claim that the Lenovo IdeaPad 5 Pro 16ACH16 from 2021 does not use RPMC. Technically, this is correct, as the used flash chip (Winbond 74M series) does not support a technology called RPMC. However, as we found out only after the final deadline of the paper, this flash series is already a so-called Authentication Flash that is functionally identical and uses the exact same commands as the RPMC version. We verified that it is used by tracing SPI flash during boot and our Saleae RPMC analyzer detected the commands right away. Most importantly, this falsifies our assumption that AMD prevents NV state rollbacks without RPMC (or Authentication Flash) on that system.

Secondly, we re-tested naive NV state rollbacks on additional systems, both by AMD and Intel, to better understand if pre-RPMC NV rollabck protection existed:

  • Two AMD-based systems without access to RPMC(-like) SPI flash (Winbond W25Q series)
    • A Zen 2-based ASUS desktop mainboard
    • A Zen 5-based MSI PRO desktop mainboard
  • Two Intel-based systems without access to RPMC(-like) SPI flash
    • An Intel Core i3-4170 on an ASUS H81M-PLUS
    • An Intel Core i5-14400 on an MSI PRO B760M-P DDR4

While the Intel sytems defended against the naive rollbacks, both AMD systems did not. They allowed us to reliably reset the TPM's dictionary attack counters only by reprogramming an old NV state onto the SPI flash using an SPI programmer; no interposer required.

While these two observations may not be representative of all AMD systems, our key insights are these:

  1. RPMC was already used on systems as early as 2021, despite being called Authentication Flash by Winbond.
  2. A Zen 2-based desktop system without access to RPMC-like SPI flash allows naive rollbacks of the NV state.
  3. Our assumption that AMD SoCs feature standalone rollback protection for their NV state was probably wrong. (Our highlighted recommendation to fix the current issues with both RPMC controllers and flash by falling back to those (Section 6 - "RPMC Security") is, therefore, worthless.)

Intel in contrast does seem to have their own pre-RPMC rollback protection, since we couldn't naively rollback the NV state on the Acer Aspire, whose Macronix MX25U25672G doesn't have a comparable feature.

Brute-force speeds of E2E attack against Winbond/Intel

A simple optimization of our KVM's attack loop sped up the overall duration of the 236-try brute-force campaign from 8min 40s to 6min 55s, so by ~ 20%. This decreases the worst-case brute-force times for a default-length 6-digit BitLocker PIN from 26 days to ~ 20 days.

Am I affected?

As of now, two sorts of systems are affected by our end-to-end attacks enabling fTPM rollback (and therefore dysfunctional anti-hammering/brute-force protection):

  1. AMD-based systems (any flash vendor, with or without RPMC; RPMC-based protection may be fixed by future AMD firmware updates)
  2. Systems relying on Winbond RPMC flash for its x86 firmware (UEFI/BIOS)

Is my system AMD-based?

On Windows, press Win + I, go to System -> About. Under "Device specifications", the Processor line shows the exact model.

On Linux, open up a Terminal and run lscpu.

If your system uses an AMD CPU, it is prone to either naive NV state rollbacks (using only an SPI Flash programmer) or, if it relies on RPMC to protect against NV state rollbacks, against attacks from our interposer suppressing the RPMC counter increments.

Does my AMD system have and use RPMC?

Unlike on Intel, AMD systems can tell from software whether RPMC is in use. Since Linux 5.19, the ccp driver exports the PSP's security attributes via sysfs (documentation), including:

  • rpmc_spirom_available: whether an RPMC-capable SPI flash is present
  • rpmc_production_enabled: whether RPMC has been enabled

On Linux (e.g., booted from a live USB stick), run:

grep . /sys/bus/pci/drivers/ccp/*/rpmc_*

Alternatively, the firmware update daemon fwupd summarizes both attributes in its AMD SPI Replay protections attribute, displayed by:

fwupdmgr security

These reports match our results: The Lenovo IdeaPad 5 Pro 16ACH16, whose Authentication Flash supports RPMC commands, reports both attributes as 1 and detected naive rollbacks, whereas the Zen 2 desktop reports both as 0 and accepted them.

[!NOTE] The PSP exports these attributes only on select SoCs. If the files are missing (or fwupd cannot report the attribute), this does not imply that your system lacks RPMC.

Either way, an AMD system is exposed to one of the two rollback paths: the Unverified Increment attack via an interposer if RPMC is used, or a naive rollback via an SPI programmer if it is not.

Does my system rely on Winbond RPMC flash for its x86 firmware?

For Intel systems, we are not aware of an interface comparable to AMD's (see above). Whether they rely on RPMC can, to our knowledge, only be identified through inspection of the mainboard and SPI bus traffic. Unfortunately, telling the SPI flash manufacturer from running OS is impossible on a lot of systems. Moreso, OEMs may source SPI flash from multiple vendors for a single model.

Open up the back of your laptop and look for a black rectangular chip with markings like Winbond, Macronix, GigaDevice. Winbond's RPMC-capable series are labelled 74M or 25R and it is very likely that those are specifically there to enable the rollback protection of NV state on both Intel and AMD.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    708
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    500
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    398
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    341
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    259
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    257

Explore all tools

Browse our collection of tools

View all tools →