Slashdot Mirror


Linux Foundation Offers Solution for UEFI Secure Boot

Ever since news broke last year that Microsoft would require Windows 8 machines to have UEFI secure boot enabled, there were concerns that it would be used to block the installation of other operating systems, such as Linux distributions. Now, reader dgharmon sends this quote from Ars Technica about a new defense against that outcome: "The Linux Foundation has announced plans to provide a general purpose solution suitable for use by Linux and other non-Microsoft operating systems. The group has produced a minimal bootloader that won't boot any operating system directly. Instead, it will transfer control to any other bootloader — signed or unsigned — so that can boot an operating system." The announcement adds, "The pre-bootloader will employ a 'present user'; test to ensure that it cannot be used as a vector for any type of UEFI malware to target secure systems. This pre-bootloader can be used either to boot a CD/DVD installer or LiveCD distribution or even boot an installed operating system in secure mode for any distribution that chooses to use it."

32 of 308 comments (clear)

  1. So why even bother with secure boot by Anonymous Coward · · Score: 5, Insightful

    As per subject

    1. Re:So why even bother with secure boot by GameboyRMH · · Score: 5, Interesting

      Exactly. Malware authors can use this. So we've come full-circle and only gained a big heap of complexity. Which is the best we could hope for once this idiotic idea got going.

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    2. Re:So why even bother with secure boot by Joce640k · · Score: 4, Insightful

      Exactly. Malware authors can use this.

      Not if everything in the startup chain has to be correctly signed ... something which a malware author can't do.

      --
      No sig today...
    3. Re:So why even bother with secure boot by GameboyRMH · · Score: 4, Interesting

      And what will the average noob user do? Hit Enter to use their computer or use a Windows recovery disk* to fix the bootloader? And if they do hit Enter and the computer apparently works fine, what do you think they'll do then?

      *Not sold with many PCs, must be burned from the hard disk

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    4. Re:So why even bother with secure boot by BLKMGK · · Score: 4, Informative

      Not exactly, it was signed with a weak key produced by one of their remote desktop solutions that allowed licensing of components. Microsoft has since revoked those keys and bumped up the minimum allowed key size to stop this in the future. This was NOT a case of someone stealing a Microsoft key left in the parking lot.....

      --
      Build it, Drive it, Improve it! Hybridz.org
    5. Re:So why even bother with secure boot by just_another_sean · · Score: 4, Funny

      Become a Linux user?

      --
      Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
    6. Re:So why even bother with secure boot by bmo · · Score: 5, Insightful

      Because secure boot has never been about securely booting.

      --
      BMO

    7. Re:So why even bother with secure boot by Hatta · · Score: 4, Insightful

      And I'd be really fucking pissed off if my Linux PC required a user present at the console to reboot. Seriously, how is this a fix?

      --
      Give me Classic Slashdot or give me death!
    8. Re:So why even bother with secure boot by Miamicanes · · Score: 4, Insightful

      >and still find a way to keep the code signed?

      With a certificate bearing the same CN as the original? Low, as long as the bootloader realizes that it's never seen anything signed by s0m3hack3r@foo.to, and presents the user with a dialog that says something like, "You have never booted an OS signed by s0m3hack3r@foo.to, and foo.to is not recognized as a known OSS Organization. Click here to boot into your computer's mini-distro and perform an automated legitimacy lookup (internet access required), or (... options that include 'continue if you trust them' and 'cancel'...)

      For a side trip, boot into a mini Linux burned into flash that can grab an ip via dhcp or connect to wifi with ssid/key stored in flash or entered now & wget a lookup of the CN from the UEFI bootloader's organization. Known malware CNs would be blacklisted & identified as such, others could be further researched using Lynx before either continuing the boot (optionally remembering the CN for future boots) or aborting.

    9. Re:So why even bother with secure boot by TheGratefulNet · · Score: 4, Funny

      "system error: secure keyboard not found. hit any key to continue."

      (that was sort of a real error message back in the DOS days. all except the secure part.)

      --

      --
      "It is now safe to switch off your computer."
    10. Re:So why even bother with secure boot by spike+hay · · Score: 4, Insightful

      The average computer user is not going to be monkeying around in the BIOS. This is about making life more difficult for non-MS OSes, and reverting the mistake that was the open x86 platform.

      --
      If you don't understand any of my sayings, come to me in private and I shall take you in my German mouth.
    11. Re:So why even bother with secure boot by DRJlaw · · Score: 5, Interesting

      And I'd be really fucking pissed off if my Linux PC required a user present at the console to reboot. Seriously, how is this a fix?

      Because it is a fix for those who cannot or will not use the alternative of entering their own list of acceptable signing keys into the UEFI, which would not require a user present but draws a great hue and cry that it is "too complex" for the average Linux user to accomplish.

      1. Enter your keys into the UEFI key list, walk away; or
      2. Have a user present to acknowledge that they want to boot unsigned/signed-but-not-entered code; or
      3. Don't use a UEFI PC; but not
      4. Prevent the rest of the world from having access to a secure boot chain because you refuse to lift a finger yourself

    12. Re:So why even bother with secure boot by mystikkman · · Score: 4, Interesting

      Do you really think that the makers of an operating system which requires 3rd party AV to correct its own security shortcomings devised secure boot to protect users from malware?

      You mean the Linux folks designed UEFI Secure boot?

      http://www.rootkit.nl/projects/rootkit_hunter.html

      I repeat it again, If you want to secure the bios put a jumper before the write pin of the eprom/flash memory/whatever. Those who can't open the case and locate it are surely not qualified for a bios upgrade.
      I made one firmware upgrade in the last 15 years on my machines, and that upgrade was necessary only if I wanted 64bit linux.

      Secure boot is not about the BIOS, it is about bootkits. You don't know what you're talking about and still get modded +4 interesting, typical Slashdot, really. See below for an example.

      TDL4 is the most recent high tech and widely spread member of the TDSS family rootkit, targeting x64 operating systems too such as Windows Vista and Windows 7. One of the most striking features of TDL4 is that it is able to load its kernel-mode driver on systems with an enforced kernel-mode code signing policy (64-bit versions of Microsoft Windows Vista and 7) and perform kernel-mode hooks with kernel-mode patch protection policy enabled.

      When the driver is loaded into kernel-mode address space it overwrites the MBR (Master Boot Record) of the disk by sending SRB (SCSI Request Block) packets directly to the miniport device object, then it initializes its hidden file system. The bootkit’s modules are written into the hidden file system from the dropper.

      The TDL4 bootkit controls two areas of the hard drive one is the MBR and other is the hidden file system created at the time of malware deployment. When any application reads the MBR, the bootkit changes data and returns the contents of the clean MBR i.e. prior to the infection, and also it takes care of Infected MBR by protecting it from overwriting.

      The hidden file system with the malicious components also gets protected by the bootkit. So if any application is making an attempt to read sectors of the hard disk where the hidden file system is stored, It will return zeroed buffer instead of the original data.

      The bootkit contains code that performs additional checks to prevent the malware from the cleanup. At every start of the system TDL4 bootkit driver gets loaded and initialized properly by performing tasks as follows: Reads the contents of the boot sector, compares it with the infected image stored in hidden file system, if it finds any difference between these two images it rewrites the infected image to the boot sector. Sets the DriverObject field of the miniport device object to point to the bootkit’s driver object and also hooks the DriverStartIo field of the miniport’s driver object. If kernel debugging is enabled then this TDL4 does not install any of it’s components.

      TDL4 Rootkit hooks the ATAPI driver i.e. standard windows miniport drivers like atapi.sys. It keeps Device Object at lowest in the device stack, which makes a lot harder to dump TDL4 files.

      All these striking features have made TDL4 most notorious Windows rootkit and it is also very important to mention that the key to its success is the boot sector infection.

      Another bit:

      The original MBR and driver component are stored in encrypted form using the same encryption. Driver component hooks ATAPI's DriverStartIo routine where it monitors for write operations. In case of write operation targeted at the MBR sector, it is changed to read operation. This way it is trying to bypass repair operation by Security Products.

    13. Re:So why even bother with secure boot by Cajun+Hell · · Score: 5, Insightful

      Take it easy dude. Let's try to remember what this whole thing is for.

      For all the bitching about secureboot, all currently known (yes, this can change) x86 machines which come with it, allow the user to turn it off. Remember the last 4 times you bought a new computer and, in fact, did diddle with stuff in the firmware, maybe to at least check the timings on your expensive Mushkin memory or whatever? Well, then, this whole article and the software it describes, isn't about you because you're going to turn off secure boot, making every aspect fo this boot loader irrelevant. You won't care about pressing enter, because you won't have to press enter.

      This is for users who won't do that. This is for people who are dumber or lazier than your grandma's ditzy bridge partner, for which we do not expect them to follow any directions or do anything "extra" prior to using their computer. They're not installing headless servers. They're not "picky" except in the sense that they don't want to have to read or understand anything longer than one sentence. They can, and will, press enter.

      The people who are opinionated enough to be "pretty fucking pissed" about pressing enter, will also tend to care enough to do what is needed in order to make pressing enter become unnecessary.

      If there are any people left who become furious about pressing enter, but also feel entitled enough to refuse to turn off secureboot, but also feel entitled enough to refuse to install some other secureboot loader, those people can and should go fuck themselves. Or they can go buy a Mac. Or they can boot Windows, and (think about it) they will never notice that they're not running Linux. Just lie to them and tell them Windows 8 is Linux, and they will believe you, and the lie will never have any consequences because behind the blank smile they gave you when you lied, they already forgot what you said.

      --
      "Believe me!" -- Donald Trump
  2. Re:just let microsoft die by GameboyRMH · · Score: 5, Funny

    You target MS before Apple? That's like shooting at a vicious pomeranian nipping at your heels while a wolf is leaping for your throat.

    --
    "When information is power, privacy is freedom" - Jah-Wren Ryel
  3. Unsuitable for server use? by Chrisq · · Score: 5, Interesting
    From TFA:

    To address this, the Linux Foundation bootloader will present its own splash screen and require user input before it actually boots. In this way, it can't be silently installed and used to hand control to a rootkit without the user's knowledge

    Doesn't this mean it is unsuitable for server use - or any "headless" operation such as MythTV?

    1. Re:Unsuitable for server use? by LordNightwalker · · Score: 4, Informative

      From TFA:

      To address this, the Linux Foundation bootloader will present its own splash screen and require user input before it actually boots. In this way, it can't be silently installed and used to hand control to a rootkit without the user's knowledge

      Doesn't this mean it is unsuitable for server use - or any "headless" operation such as MythTV?

      From TFA:

      To facilitate repeat booting (and to make the pre-bootloader useful for booting hard disks as well as USB keys or DVDs) the pre-bootloader will also check to see if the platform is booting in Setup Mode and if it is, will ask the user for permission to install the signature of loader.efi into the authorized signatures database. If the user gives permission, the signature will be installed and loader.efi will then boot up without any present user tests on all subsequent occasions even after the platform is placed back into secure boot mode.

      So they offer a solution for your problem, but user input is required for this as well.

      --
      Install windows on my workstation? You crazy? Got any idea how much I paid for the damn thing?
  4. Re:Virtualization by GameboyRMH · · Score: 4, Informative

    Not yet:

    https://www.virtualbox.org/ticket/7702

    But there's no reason it can't.

    --
    "When information is power, privacy is freedom" - Jah-Wren Ryel
  5. mjg59.dreamwidth.org by bfree · · Score: 4, Informative

    Linux Foundation approach to Secure Boot
    James Bottomley just published a description of the Linux Foundation's Secure Boot plan, which is pretty much as I outlined in the second point here - it's a bootloader that will boot untrusted images as long as a physically present end-user hits a key on every boot, and if a user switches their machine to setup mode it'll enrol the hash of the bootloader in order to avoid prompting again. In other words, it's less useful than shim. Just use shim instead.

    Further UEFI bootloader work
    A couple of people have asked whether we're planning on implementing the Linux Foundation approach of simply asking the user whether they want to boot an unsigned file. We've considered it, but at the moment are leaning towards "no" - it's simply too easy to use to trick naive users into running untrusted code. Users are trained to click through pretty much any security prompt that they see, and if an attacker replaces a legitimate bootloader with one that asks them to press "y" to make their computer work, they'll press "y". If that bootloader then launches a trojaned Windows bootloader that launches a trojaned Windows kernel, that's kind of a problem. This could be somewhat mitigated by limiting this feature to removable media, and we're seriously considering that, but there are still some risks associated. We might just end up writing the code but disabling it at build time, and then anyone who wants to distribute with that policy can do so at their own risk.

    --

    Never underestimate the dark side of the Source

  6. The solution is simple by Anonymous Coward · · Score: 5, Insightful

    The solution is simple. Simply do not purchase ANY computer that requires secure boot, or does not allow you do disable it!

    Personally, I think this is a "feature" that is going to come back and bite MS in the derriere.. At least I hope so! :-)

  7. So by Hatta · · Score: 4, Funny

    When I turn on my PC, it will boot the pre-boot loader, which will then boot grub, which will then boot my initrd which will finally boot Linux. Can we put any more steps in there?

    --
    Give me Classic Slashdot or give me death!
  8. Re:just let microsoft die by Anonymous Coward · · Score: 4, Funny

    That's ridiculous.. they're both wolves, just one is in really sexy sheeps clothing.

  9. Re:Virtualization by afidel · · Score: 4, Interesting

    Windows 8 doesn't require SecureBoot, otherwise their enterprise adoption would be 0% instead of the likely 1-5%. Windows 8/Server 2012 works under ESXi 5.0 with patches and is supported under 5.1.

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  10. Re:just let microsoft die by ByOhTek · · Score: 4, Interesting

    I think it's worse than that.

    Apple is building /their/ product and trying to get everyone to adapt their needs to it. At least MS is trying to make it's product general purpose (if ineptly in some cases), and allow people to have options at every level except the OS. Apple tries to restrict options at ALL levels.

    --
    Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
  11. No true Scottsman by Dareth · · Score: 5, Funny

    No true Scottsman jokes about sheep.

    --

    I only look human.
    My mother is a halfling and my dad is an ogre, so that makes me an Ogreling
  12. For newbies by Chemisor · · Score: 4, Insightful

    Your solution of any value mostly to newbies who are incapable of going to the BIOS and typing in a new signing key (yes, all BIOS manufacturers worth buying, like ASUS, offer this option). I, for one, will not purchase any computer without secure boot. I like having a trusted hardware root. I like the fact that no malware can get in the boot process without my consent.

    1. Re:For newbies by Hatta · · Score: 4, Insightful

      Yeah, that works great until Microsoft deprecates the option for Windows 9 or 10. They've already done so on Windows 8 ARM tablets, why wouldn't they do it on x86 PCs?

      --
      Give me Classic Slashdot or give me death!
  13. Re:just let microsoft die by somersault · · Score: 4, Funny

    I'm Scottish, and it's written Scotsman/Scots by the way.

    Anyway, back to the topic at hand; I have to say that I don't know what you're talking about. I'd say that at least 80% of sheep aren't that sexually attractive.

    --
    which is totally what she said
  14. Obtaining a Microsoft signature will take a while by swm · · Score: 4, Interesting

    the Linux Foundation will obtain a Microsoft Key and sign a small pre-bootloader which will, in turn, chain load (without any form of signature check) a predesignated boot loader which will, in turn, boot Linux (or any other operating system).

    The purpose of Secure Boot is to prevent people from booting non-Microsoft operating systems.
    Why on earth would Microsoft sign such a bootloader?

    The process of obtaining a Microsoft signature will take a while, [...]

    Anyone want to open an over/under line on when this happens?
    I'll put $100 on the first patch Tuesday following the heat death of the universe.

  15. Re:just let microsoft die by Hatta · · Score: 4, Informative

    Apple's policies only affect Apple hardware. Microsoft is pushing this on everyone.

    --
    Give me Classic Slashdot or give me death!
  16. Re:Srsly, what is wrong with you people? by Hatta · · Score: 4, Insightful

    Secure boot is a good thing when the owner of the PC has ultimate control over which signatures are valid. But Microsoft has tipped its hand with Windows 8 ARM tablets, and I see no reason not to expect them to lock down secure boot on x86 PCs in the future.

    If this was a vendor neutral initiative, I can see how it would be useful. But this is being done by Microsoft, for Microsoft. This will not end well for open source.

    --
    Give me Classic Slashdot or give me death!
  17. Re:Why is the linux community struggling with this by cpghost · · Score: 4, Interesting

    That seems like a LOT more of a pain in the butt than simply turning off the secure boot option.

    How long will motherboard BIOSes ship with the option to turn off UEFI secure boot? Maybe not tomorrow, but what about 1, 2 or 3 years down the road? That's the real issue here! The problem is that the PC commodity market is about to be turned into a walled garden controlled by, guess who? Microsoft in this case. That's pretty scary stuff actually, and I wouldn't wonder if the regulating authorities (at least in the EU) will sooner or later consider this as anti-competitive behavior.

    --
    cpghost at Cordula's Web.