All case studies

Where reduction worked

Tinfoil

Deleted 1M lines of OVMF firmware in favour of ~300 lines of assembly

OVMF's pre-boot code did far more than Tinfoil's threat model needed, so most of the work moved into the build system and the firmware shrank to ~300 lines with no dependencies.

Removed: the OVMF firmware Tinfoil had been using to set up its confidential VM enclaves. OVMF is the general-purpose open-source UEFI firmware, and the company concluded “most of OVMF’s functionality was not necessary for our purposes.” They deleted 1M lines of C and replaced it with “~300 lines of open-source assembly and zero dependencies,” moving almost all of the remaining setup work into their build system where it could be audited and tested.

Outcome: on the company’s own account, the change “removed almost all responsibility from the very security-critical part of the stack”. The pre-boot code is the piece an untrusted host talks to, and it is now small enough that they intend to formally verify it.

Two parts of the argument are worth separating. The first is specific and checkable: firmware that runs before the OS does not need to support every platform, and the features that make it useful to everyone are also the features an attacker gets to reach. The second is the company’s own bet, not a result: they argue that large language models make reviewing and fuzzing small purpose-built code cheap enough that, in their words, “Security is no longer correlated with popularity”. That is a claim about tooling rather than an outcome anyone has measured yet. Tinfoil published this in October 2026 and has not reported breach or vulnerability data for the replacement, so what exists is a defensible reduction and a stated intent to verify it, not a track record.

Source: Tinfoil, Less Is More: From 1M Lines of Firmware to 300 of Assembly (25 October 2026)