Noobs can pwn world's most popular BIOSes in two minutes

grandpaflo

Member
Jan 18, 2011
139
2
81
Nobody expects the BIOS inquisition, so nobody patches them

19 Mar 2015 at 01:31, Darren Pauli

http://www.theregister.co.uk/2015/03/19/cansecwest_talk_bioses_hack
https://archive.is/qmZ5W
https://archive.is/qmZ5W.zip

"Millions of flawed BIOSes can be infected using simple two-minute attacks that don't require technical skills and require only access to a PC to execute.

Basic Input/Output Systems (BIOS) have been the target of much hacking research in recent years since low-level p0wnage can grant attackers the highest privileges, persistence and stealth.

LegbaCore researchers Xeno Kovah and Corey Kallenberg revealed the threat to El Reg ahead of a presentation How Many Million BIOSes Would You Like to Infect?[1] at CanSecWest tomorrow.

"Because almost no one patches their BIOSes, almost every BIOS in the wild is affected by at least one vulnerability, and can be infected," Kovah says.

"The high amount of code reuse across UEFI BIOSes means that BIOS infection can be automatic and reliable.

"The point is less about how vendors don't fix the problems, and more how the vendors' fixes are going un-applied by users, corporations, and governments."

Kovah and Kallenberg's talk aims to both highlight the dangers and capabilities of BIOS attacks and the need for system administrators to apply vendor patches, something which they say is not being done.

They will demonstrate attacks against BIOS on Gigabyte, Acer, MSI, HP, and Asus, using the LightEater implant running the privacy-focused Tails platform to siphon GPG keys from memory to a flash chip.

LightEater, according to Kovah, reveals the naïveté of claims that Tails and other live operating systems can protect users from dedicated or nation-state attackers.

The LightEater attack would take an unskilled attacker such as a maid or border guard two minutes of physical access to a target laptop.

"Then we'll boot up the infected HP system and show how LightEater can use the Intel Serial Over LAN technology to exfiltrate data from SMM (System Management Mode), without needing a NIC-specific driver. And we'll show the uber1337 'rot13' encryption which will blind network defenders to what the SMM attacker is exfiltrating," he says.

Kovah says misconfigured BIOS access controls present more of a threat than vulnerabilities such as exploitable buffer overflows.
Those flaws are homogeneous.

Using tiny signatures built from 10 machines the pair found the code hooks attackers need to build reliable SMM implants across thousands of BIOS images.

"This shows empirically that attackers wouldn't have to reverse engineer each BIOS model or revision. Simple pattern matching can make it so that tools can just assemble BIOS implants for any model on demand," Kovah says, adding he expects that attackers already know this.

The need for better BIOS security is "starting to sink in" with top vendors (Lenovo, Dell and HP) moving to squash flaws in their gear. ASUS Kovah says a good example of those which had not patched or acknowledged BIOS flaws.

Some BIOSes are woefully insecure. The pair found Giagbyte's BIOS had borked access controls that did nothing to prevent attacks.

"So, we didn't even have to do anything special; we just had a kernel driver write an invalid instruction to the first instruction the CPU reads off the flash chip, and bam, it was out for the count, and never was able to boot again," Kovah says.
The duo will reveal an automated scripts they supplied to vendors that can detect dangerous attacks against SMM capable of reading and writing to all system memory.

BIOS attacks surfaced on the public record from the research community but as leaked Snowden documents reveal it was the National Security Agency that likely first exploited the vector.

The research pair says the attacks should serve as a boot in the arse for governments and corporations to apply BIOS patches if only to make life more difficult for less-resourced hostile spy agencies.

"I personally find it very ironic that things like Tails gained popularity as OPSEC tools thanks to Snowden, while at the same time Snowden's leaks showed that the NSA had the capability to defeat such mechanisms if they wanted to." ®"

[1] https://cansecwest.com/speakers.html

"The Register
Biting the hand that feeds IT © 1998–2015"
 

Red Squirrel

No Lifer
May 24, 2003
70,166
13,572
126
www.anyf.ca
I'm not surprised. UEFI bios is basically an operating system at this point, with tons of vectors for attack. Really not sure what they were thinking when they introduced this, there was nothing wrong with the older style bios. KISS.
 

matricks

Member
Nov 19, 2014
194
0
0
I disagree. Look at what Gigabyte customers are presented with when looking for these updates:
Warning:
Because BIOS flashing is potentially risky, if you do not encounter problems using the current version of BIOS, it is recommended that you not flash the BIOS. To flash the BIOS, do it with caution. Inadequate BIOS flashing may result in system malfunction.

Unless you experience actual problems, you shouldn't update. That is manufacturers advice. I disagree with the advice, but the warning is the problem, not the people following it. If you experience this kind of problem, the update is too late.

From the text of the article, it would seem that motherboard manufacturers fix security issues as they are discovered. I have yet to see a security advisory from such manufacturers regarding a motherboard. Asus are pretty good at fixing security issues in their router firmware, but they don't seem to routinely announce security fixes other than what you find in the firmware changelog. I haven't seen security issues mentioned in any BIOS/UEFI update changelog, other than stuff related to copyright infringement protection (e.g. HDCP bypass issues).

Overall, I don't see the manufacturers attempting to spread awareness of security issues they have fixed. I also don't see an actual history of fixed issues. In addition, some manufacturers (Gigabyte is just an example) warns customers not to update unless they actually experience issues. Finally there's the issue of failed flashes, which is a real issue and the obvious source of warnings. Manufacturers need to implement foolproof recovery mechanisms (they already exist, but are reserved for premium boards) so they can stop warning people, then fix the actual issues and announce that issues are actually fixed. Then I will consider the lazy users as the main problem.
 

sbpromania

Senior member
Mar 3, 2015
265
1
16
www.sbp-romania.com
I didn't liked the UEFI bios from its beginnings, and I like it less now. I think they've changed the classical one just for the sake of changing something. If it ain't broke, don't fix it...