8 ms·
Here's another reason why using a free BIOS like Coreboot is a great idea - if malware attempts to reflash it with an infected copy of presumably the original p
by userbinator 12y ago
Here's another reason why using a free BIOS like Coreboot is a great idea - if malware attempts to reflash it with an infected copy of presumably the original proprietary BIOS, it will be very, very obvious.
Another "tamper detection" idea, if you're OK with using proprietary BIOS and/or Coreboot isn't supported, is to add a small piece of code to the existing BIOS that simply hashes the ROM contents and prints out a human-readable string to the boot screen based on that. If it goes missing or changes, then you can suspect something happened. Of course, the trick is to not have everyone doing this with the same code, or backdoors will just detect and spoof it. I modded the BIOS of an old machine I have to do this, it prints out "Customised by {my handle}".
- thrownaway2424 12y agoI actually don't know how this would become obvious. Do you look at your server screens while they boot? Any attempt to checksum the BIOS from the operating system could be easily bypassed by simply regurgitating the OEM BIOS if anyone reads it.
- userbinator 12y agoDo you look at your server screens while they boot? Long enough to see the POST screen where I put the message: Award Modular BIOS v4.51PG ==Customised by XXXXXXXX== is pretty hard to not notice, especially if it suddenly changed back to string in the OEM BIOS. The code I inserted basically computes my string by "encrypting" the original string with some constants derived from the whole BIOS image, so if the BIOS was only partially modified it turns into rubbish, and if it was replaced, then the string reverts to the original one. The point is that the BIOS on that machine is globally unique, has a feature that I can easily identify, and would be difficult if not impossible to forge by an attacker with only the OEM BIOS. I came up with this shortly after the infamous CIH virus emerged. Ditto for the NSA trying to flash a backdoored Coreboot: they would have to know exactly the customisations I made to my BIOS to replicate them, and if they did, then I'm probably pwned anyway. Backdoors in an offboard option ROM would certainly avoid modifying the BIOS, but I guess a similar mechanism could be used to customise one to easily detect its modification.
- Perdition 12y agoIf the NSA are targeting your systems they will use a backdoor'd version of Coreboot. And in this case the malware is lurking in the RAID cards expansion ROM, so you wouldn't even notice a change at boot anyway.
- psykovsky 12y agoPlease, continue...
- pdkl95 12y agoThis is an interesting idea, but don't try and expect humans to notice some random string (i.e. fingerprint, checksum). Instead, using something like OpenSSH's "randomart"[1]. It can be made such that any small change makes a totally different blob pattern (BIG bonus points for using COLOR!). Possibly, this could even be chained into the background of the main OS load sequence, such that you see something like a Perlin-style colorful noise pattern during the longest part of the boot sequence. This could even hash other parts of the loader besides the BIOS, too. The idea being that you (probably) won't notice if 801EF9B138222F39EB2907634BC7FD47F9151919 changes to 40AE7CE2796FB14526ABB92B67BC0F1423B85B96 Almost everybody would notice if the boot sequence wallpaper that you've seen for months/years http://cs263.markaoyama.com/img/p5_abs_perlin_5_gens.PNG http://cs263.markaoyama.com/img/p5_abs_perlin_5_gens.PNG changes into http://cs263.markaoyama.com/img/p5_perlin_5_gen.PNG http://cs263.markaoyama.com/img/p5_perlin_5_gen.PNG (images taken from a very brief GIS of random Perlin noise articles) There are many alternatives. The key here is to engage the human visual system. Proof of why this work: the popularity of font-lock-mode. [1] http://superuser.com/questions/22535/what-is-randomart-produced-by-ssh-keygen http://superuser.com/questions/22535/what-is-randomart-produ...
- Taek 12y agoThis is nearly a good idea, except that by adding a random string and hashing it a few times, you can get an image that is approximately the same. Its might be reasonable to assume the NSA gets 100,000 to 1,000,000 attempts at low expense, of which at least a few hundred will be a similar color, and one of those will have a similar-enough pattern that people are less likely to notice. It does create another level of protection for the user, and another hurdle for the attacker, but it still requires user diligence.
- pdkl95 12y agoSeeing as we are starting from 0 (no verification at all), any improvement would be a benefit. This would simply be a cheap and easy way to catch "some" attacks. Also, see my response to halfcat in a neighboring post.
- sergeykish 12y ago
- listic 12y agoCoreboot is a great idea, and I actually considered using it, but the project looks woefully under-powered for the role it hopes to play: the list of supported devices is very sparse and consists of really old models, mostly; even the supported systems have issues and/or untested functionality. http://www.coreboot.org/Supported_Motherboards http://www.coreboot.org/Supported_Motherboards I haven't looked into the relationship Chromebooks have with Coreboot: supposedly, Chromebooks use Coreboot, but how is it possible that they restrict the usage of OS to a signed one: do Chromebooks use modified Coreboot? And why is some models' status listed as "Unknown" in Supported Motherboards list? So, I would love to use Coreboot and would actually consider going into some reasonable trouble to make it work on my hardware (including actually picking hardware that it supports), but I really don't see how it would be usable even for an enthusiast, and I don't see the situation changing anytime soon.
- spilk 12y agoChromebooks/Chromeboxes use a forked Coreboot: https://chromium.googlesource.com/chromiumos/third_party/coreboot/ https://chromium.googlesource.com/chromiumos/third_party/cor... Most of the Chromebook/box devices have a physical write-protect that can be removed allowing re-flashing with modified firmware.
- listic 12y agook, so it means that even for a Chromebook, Coreboot support is not a given.
- pgeorgi 12y agoAll x86 Chromebooks (except for the CR48 prototype) use coreboot. For ARM Chromebooks the situation is more complicated - coreboot's ARM support was developed by the Chromebook firmware developers but it seems they missed a deadline or two (no surprise with an architecture bringup), so some of those devices ship with u-boot while coreboot does have support for them.
- 12y ago
- StavrosK 12y agoWhy would the malware not hash the current BIOS and show you the same hash?
- kabdib 12y agoWhat you really need is - A piece of hardware under the user's control that provides cyptographically secure key material that allows the BIOS to boot. - Attestation by the booted thing that it is intact and untampered with. Both of these need to be inspectable by the user. For the former you can use a dongle with a key on it, and this is probably testably secure by an end-user (we can talk about trusting silicon and your tools, but if you use multiple platforms and toolsets for verification that's probably pretty reasonable). Knowing that the "enemy side" (the BIOS) hasn't been suborned is pretty hard and requires hardware-level support that you're not going to see outside of video game consoles. For the truly paranoid, your best bet is to use a computer that has no physically attached peripherals that you can't monitor (e.g., USB). So, USB-attached network adapters and so forth. This stuff is hard.