“Whether a proof of concept or not, Bootkitty marks an interesting move forward in the UEFI threat landscape, breaking the belief about modern UEFI bootkits being Windows-exclusive threats,” ESET researchers wrote. “Even though the current version from VirusTotal does not, at the moment, represent a real threat to the majority of Linux systems, it emphasizes the necessity of being prepared for potential future threats.”

  • 0x0@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    1 hour ago

    Who would’ve thought replacing a BIOS with what’s essentially a micro-computer would open a can of worms…

    • Eximius@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      26 minutes ago

      BIOS was always a micro computer… it’s just more standardized now.

      And especially things like IPMI (which is essentially a company-sanctioned backdoor to any intel server) which has a full on webserver with an unknown number of threat vectors, things like this really fall flat for security.

      Just because threats are found for UEFI (an open standard), it means nothing in grand scheme of things, just that it is more observed and more easily dissected for nefariousness.

  • progandy@feddit.org
    link
    fedilink
    English
    arrow-up
    6
    ·
    4 hours ago

    This bootkit is not unkillable yet. If the diagram is correct, then it installs itself on the EFI partition and not the EFI Firmware.

  • Illecors@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    45
    ·
    edit-2
    12 hours ago

    The Bootkitty sample ESET found is unable to override a defense, known as UEFI Secure Boot, that uses cryptographic signatures to ensure that each piece of software loaded during startup is trusted by a computer’s manufacturer.

    AKA not that big of a deal, yet. An article from another post about this also mentions GRUB explicitly as a requirement as well as PoC using self signed keys, which renders it sort of impossible to abuse.

    UKI + your own keys + secure boot is still not broken.

    • chevy9294
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 hours ago

      Well… if you have your own keys (like I do) you have to store them somewhere. That somewhere is probably somewhere on a computer where they are used so you can update the kernel. If you have private keys, you can probably bypass secure boot.

      Is there a way to have private keys stored on a nitrokey that has to be plugged in for every kernel update?

      • Illecors@lemmy.cafe
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 hours ago

        Yes, failing to safeguard keys is fatal, but that applies to everything. But if fs you’re storing keys on is behind luks and they’re readable by root only - you’re as safe enough. There’re also LSMs like selinux that can increase the complexity of attack.

        I don’t know about nitrokey specifically, but TPM is an option (not good enough, imo) and a simple luks encrypted usb. You could get some convenience by storing the key to unlock it somewhere on the encrypted root.

        In general - you cannot stop a targeted attack no matter what, but staying safe from all the automated ones is doable.

    • fuckwit_mcbumcrumble@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      35
      arrow-down
      1
      ·
      11 hours ago

      Unfortunately a lot of people in the Linux world still hate secure boot because they associate it with locking your PC to only running windows. Never mind the fact that basically every big Linux distro plays nicely with secure boot these days, and has for a while now.

      • mox@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        7
        ·
        6 hours ago

        because they associate it with locking your PC to only running windows.

        They’re not exactly wrong. BIOS/UEFI bugs that make it a royal pain to use secure boot with anything but Windows are pretty common.

      • Shdwdrgn@mander.xyz
        link
        fedilink
        English
        arrow-up
        19
        ·
        11 hours ago

        I associate it with the fight I’ve had every single time I tried to use it. It’s never been a smooth process on any server I attempted to use it on. Usually I either run into problems with a system not wanting to properly boot the memory stick even with a full UEFI image flashed to it, or if I do get that to work I go through the whole installation process only to find the system unbootable for whatever reason. Eventually I just give up and do a standard installation because why should I have to work this hard to put an OS on a machine?

        • charade_you_are@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          5
          ·
          11 hours ago

          I actually had a system that wouldn’t initiate the video card because of secure boot and many other problems with over the years that I repaired them for a living. Left a very bad taste in my mouth but if it’s actually improving I’ll it again.

        • Illecors@lemmy.cafe
          link
          fedilink
          English
          arrow-up
          2
          ·
          11 hours ago

          It is a system one has to understand fully, i.e. not like ssh, where you can understand connecting to a remote host without bothering about key pairs, x11 forwading, etc.

          I was lucky enough to have figured out Gentoo enough where plugging in secure boot was just extending my own system update script. Admittedly, I don’t know how much other distros fight back.

          • Shdwdrgn@mander.xyz
            link
            fedilink
            English
            arrow-up
            3
            ·
            11 hours ago

            I’m on Debian, they’ve been providing UEFI images for a number of years so everything should “just work”. In fact I have one server where things did just work and that’s the only system using UEFI. Two other servers of the same model and BIOS version completely failed after numerous attempts so I finally said screw it and just did a normal install.

          • Shdwdrgn@mander.xyz
            link
            fedilink
            English
            arrow-up
            1
            ·
            10 hours ago

            Shouldn’t this all be handled automatically by the Debian installer though? It seems weird that I would ever have to run other tools just to install a brand new system.

      • mlg@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        9 hours ago

        The Fedora doc on this is a bit old but it’s still mostly the same:

        Secure boot activates a lock-down mode in the Linux kernel which disables various features kernel functionality:

        • Loading kernel modules that are not signed by a trusted key.
        • Using kexec to load an unsigned kernel image.
        • Hibernation and resume from hibernation.
        • User-space access to physical memory and I/O ports.
        • Module parameters that allow setting memory and I/O port addresses.
        • Writing to MSRs through /dev/cpu/*/msr.
        • Use of custom ACPI methods and tables.

        The implementation of secure boot is still questionable to this day, but it is understandable that it doesn’t always play nice with Linux. I do believe you can use hibernate now as long as you have an encrypted swap (LUKS).

        I can definitely see the pain if you happen to be a kernel dev or use linux on any SBC with IO ports you want to mess with in userspace and not make en entire overkill kernel module for.

      • Illecors@lemmy.cafe
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        11 hours ago

        Yea, I guess that initial total lack of understanding and big headlines has left a long-lasting scar. Admittedly, secure boot could be used to lock a machine down if the ability to turn it off and/or manage the keys yourself was removed.

        We’ll get there, eventually :)

      • TheFogan@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        11 hours ago

        Never mind the fact that basically every big Linux distro plays nicely with secure boot these days, and has for a while now.

        In my experience nicely is still pretty relative. It still seems to be the most common area things go wrong on my installs and place I have the hardest time working around…

        and the bigger part, it’s a solution to a problem that I’ve never seen happen in the wild, and really can’t fathom happening on linux that doesn’t involve a very dumb user running software from an unknown source as root.