Slashdot Mirror


Intel Cache Poisoning Is Dangerously Easy On Linux

Julie188 writes "A researcher recently released proof-of-concept code for an exploit that allows a hacker to overrun an Intel CPU cache and plant a rootkit. A second, independent researcher has examined the exploit and noted that it is so simple and so stealthy that it is likely out in the wild now, unbeknownst to its victims. The attack works best on a Linux system with an Intel DQ35 motherboard with 2GB of memory. It turns out that Linux allows the root user to access MTR registers incredibly easily. With Windows this exploit can be used, but requires much more work and skill and so while the Linux exploit code is readily available now, no Windows exploit code has, so far, been released or seen. This attack is hardware specific, but unfortunately, it is specific to Intel's popular DQ35 motherboards."

20 of 393 comments (clear)

  1. Linux by the_one(2) · · Score: 5, Funny

    They make it sound like a bad thing that it's easier to use your hardware on Linux =)

    1. Re:Linux by Anonymous Coward · · Score: 5, Insightful

      This attack still requires root access, so all this says is that if you have an Intel DQ35 motherboard, are running linux and you've already been rooted, then someone could probably install a really sneaky rootkit.

      Not a nonissue, but also not the end of the world.

    2. Re:Linux by dtolman · · Score: 5, Insightful

      Why is this insightful? This is a problem that can be exploited through a hosted VM! If you've rooted one VM on a system, now you can jump to the host server and all the other hosted VM's. And oh yeah - theres no way to detect it at all!!!

    3. Re:Linux by SanityInAnarchy · · Score: 5, Informative

      If the nasty programs get root, you're already hosed.

      So yes, this is interesting, but also completely irrelevant. On most systems, root can also

        - modify libc, thus affecting every single dynamically-linked program on the system
        - modify gcc, thus affecting any new programs downloaded/compiled from source
        - modify tripwire (or whatever they're calling it now), thus hiding itself
        - access /dev/mem, thus making attacks like this seem trivial
        - rm -rf /, thus nuking the system
        - dd if=/dev/zero of=/dev/sda, thus nuking the system even more permanently
        - access everyone's xauth, thus their X, thus easily keylogging and screenshotting, if it's a desktop
        - access everyone's .ssh -- and if they have an unencrypted ssh key, thus accessing every machine they have access to! And you can find out which ones by looking at .ssh/known_hosts, and maybe .bash_history.
        - kill any process (except zombied processes)
        - access /tmp, or swap...

      You get the idea.

      There are various ideas to secure root (like selinux, etc), but it is still BAD for them to get root, and the best technique is still to prevent people from getting root in the first place.

      --
      Don't thank God, thank a doctor!
    4. Re:Linux by annodomini · · Score: 5, Interesting

      If an attacker can run code as your user account, then they can insert alias sudo=evilpasswordstealingsudo (as well as alias su=evilpasswordstealingsu) into your .bashrc and wait for you to start a new shell and run one of those commands.

      Basically, if an attacker gets local access to an account that is ever used to privilege escalate to root, then the attacker can get root. And even if not, there are frequently local root exploits (like a recent udev bug) that can escalate ordinary user privileges to root privileges. You should always assume that once an attacker has some access to a machine, that they can root it; treat any kind of remote-code execution exploit as if it were a remote root, and treat any kind of privilege escalation exploit as a remote root (since if one exists, there's a high probability that the other does too).

  2. "Exploit" implies there was an actual hole by amorsen · · Score: 5, Insightful

    I would recommend that you don't give out root access to script kiddies on systems where you don't want them to install root kits.

    --
    Finally! A year of moderation! Ready for 2019?
  3. It requires root privileges and is hw limited ... by Nicolas+Roard · · Score: 5, Informative

    Right, so the 2nd article states "I should note that this particular exploit requires that the attacker already have admin or root privileges on the box" -- and "The exploit code was only written for Intelâ(TM)s DQ35 motherboards. The DQ35 is one of their modern boards. According to Joannaâ(TM)s paper, Intel reported that their newest motherboards (DQ45â(TM)s for example) are not vulnerable to this attack.". In short, it's an interesting proof of concept, but at first glance it's not exactly the scare of the century....

  4. Finally! by Cornwallis · · Score: 5, Funny

    2009 will be the Year of the Windows Desktop!

  5. Re:Queue Microsoft Trolls in by Anonymous Coward · · Score: 5, Funny

    Actually hackers have much more experience with Win 32 systems than Linux. So while it is easier to program this exploit with Linux, we're still ok because we have security through obscurity.

  6. Re:First you need root on the box by DaleGlass · · Score: 5, Informative

    No, it doesn't work like that.

    This came up in a previous discussion. The SMM is simply a part of the normal RAM, used for the CPUs own purposes. While the OS can't normally touch it, it's still RAM and doesn't persist across reboots.

    All that putting the virus into SMM RAM means is that as memory not normally accessible by the OS, so an antivirus can't go and scan it. But something has to put the virus into the SMM RAM anyway, and that something is on the hard disk or comes from an exploit through the network.

  7. Re:First you need root on the box by h4rr4r · · Score: 5, Insightful

    If you can stick a pen drive in the box you have physical access and that means all security pretty much goes out the window.

  8. Probably a month-old dupe by Bazer · · Score: 5, Informative

    Thi story is probably a dupe. The original not only has the same blog post, but also has links to far more relevant information. Please tag it.

  9. Re:First you need root on the box by LoRdTAW · · Score: 5, Insightful

    I read the PDF of the exploit and from what it states the code injected into the SMRAM is effectively being executed in a region where no OS or hyper visor can touch. So from what I understand a system running virtualization software only needs one of the guest operating systems to become compromised in order for the attacker to gain control of the entire system. From there the other guest/host OS's or possibly the hyper visor can be attacked. So yes for a single OS system it is redundant to attack the SMRAM because if you already have root then whats the point?

    But even with the ability to attack other software on a virtualized DQ35 system, their numbers I am sure are close to none. The DQ35 board is a uATX desktop board. If it were specific to Intel server boards or Intel based server boards then I would worry.

    I wonder if this exploit is truly only limited to the DQ35. How many different Intel systems have they tested this on. And what about AMD systems, are they vulnerable to similar attacks?

  10. Re:First you need root on the box by Lord+Ender · · Score: 5, Funny

    Your post indicates that you are suffering from the wooosh vulnerability.

    --
    A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
  11. This is an exploit for virtual servers by ashmodai9 · · Score: 5, Informative

    As many have pointed out, there's no real point to "exploiting" a machine that you already have full (root) access to - with one exception: virtual servers.

    The whole 'danger' of this exploit is that it enables a virtual server's "privileged" "root" user to gain hypervisor access, which is equivalent to taking over the entire physical machine and any/all other virtual servers hosted on said machine.

    If you don't run a virtual server farm, this exploit means absolutely nothing to you. If you do, it's a very easy, scary way whereby any of your "clients" can take over your physical machines and access all of the other virtual servers hosted on the same piece of hardware.

  12. Re:Queue Microsoft Trolls in by grub · · Score: 5, Funny


    "With Windows this exploit can be used, but requires much more work and skill"

    That eliminates the VBS crowd, or about 99.8% of Windows 'programmers'.

    --
    Trolling is a art,
  13. Re:First you need root on the box by nedlohs · · Score: 5, Informative

    Do you buy every new employee a new machine?

    Or when Bob leaves does his machine get the hard drive reimaged and Bill uses it?

    If so Bob's root kit survived that re image of the hard drive...

  14. Re:Yeah? How? by AigariusDebian · · Score: 5, Informative

    There are interfaces to access that stuff in Linux, while in Windows you actually need to write your own custom software in assembly. That is the only difference.

  15. Re:Well that's a good thing then by Urban+Garlic · · Score: 5, Informative

    > Just go into whatever driver code that handles the MTRR /proc filesystem and have it spoof writes. The invading rootkit will think "all is swell", and it won't be.

    Indeed. In particular, this exploit is really only scary-bad on virtual servers, since it might allow someone with root on a virtual system to get root on the physical box. (On any other system, the attacker was already root, so it's a matter of closing the barn doors...)

    A sensible-seeming precaution would be to just disable /proc/mtrr in particular on virtual servers -- it refers to a global physical register, and that's out of scope for a virtual machine anyways.

    --
    2*3*3*3*3*11*251
  16. Re:Queue Microsoft Trolls in by overlordofmu · · Score: 5, Insightful

    And don't forget about the encrypted root file system. Take my drive. Hell, take my whole machine and you still don't have my data.

    Actually, I like my machine. Please, don't take it. I was just trying to make a point.