Slashdot Mirror


SgxSpectre Attack Can Extract Data From Intel SGX Enclaves (bleepingcomputer.com)

An anonymous reader quotes BleepingComputer: A new variation of the Spectre attack has been revealed this week by six scientists from the Ohio State University. Named SgxSpectre, researchers say this attack can extract information from Intel SGX enclaves. Intel Software Guard eXtensions (SGX) is a feature of modern Intel processors that allow an application to create so-called enclaves. This enclave is a hardware-isolated section of the CPU's processing memory where applications can run operations that deal with extremely sensitive details, such as encryption keys, passwords, user data, and more... Neither Meltdown and Spectre were able to extract data from SGX enclaves. This is where SgxSpectre comes in.

According to researchers, SgxSpectre works because of specific code patterns in software libraries that allow developers to implement SGX support into their apps. Vulnerable SGX development kits include the Intel SGX SDK, Rust-SGX, and Graphene-SGX. Academics say an attacker can leverage the repetitive code execution patterns that these SDKs introduce in SGX enclaves and watch for small variations of cache size. This allows for side-channel attacks that allow a threat actor to infer and slowly recover data from secure enclaves.

Intel's recent Spectre patches don't necessarily help, as an attacker can work around these fixes. Intel says an update for the Intel SGX SDK that adds SgxSpectre mitigations will be released on March 16. Apps that implement Google's Retpoline anti-Spectre coding techniques are safe, researchers say.

28 comments

  1. Intel wishing for by Anonymous Coward · · Score: 0

    6 dead in Oh High Oh.

  2. Yay for Intel by Anonymous Coward · · Score: 0

    Yet another proprietary Intel-only technology that doesn't even work, great job.

    1. Re: Yay for Intel by Anonymous Coward · · Score: 0

      Are ya a ruskie troll?.. ;-)

  3. Re: Intel is ISIS by Anonymous Coward · · Score: 0

    Congratulations on your stupid comment.

    At least a patch will be available soon for this. Anyone know how many apps out there actually use SGX?

  4. Patch: meh... by DrYak · · Score: 1

    Anyone know how many apps out there actually use SGX?

    On Linux (and other open source OS, i.e.: the only distributions where code for nearly all the software is available and can be recompiled with a retpoline-enabled compiler, such as the recent GCC 7.3.1, and thus the only environment where there's any hope for spectre counter measures to be actually deployed):
    probably close do zero, anyway.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Patch: meh... by serviscope_minor · · Score: 1

      On Linux (and other open source OS, i.e.: the only distributions where code for nearly all the software is available and can be recompiled with a retpoline-enabled compiler, such as the recent GCC 7.3.1, and thus the only environment where there's any hope for spectre counter measures to be actually deployed): probably close do zero, anyway.

      Unless you're running Gentoo of course. Then if you accidently look at your computer wrong you'll trigger a full rebuild of everything (with -funroll-ALL-the-things, naturally) and you'll have a fully patched system next month.

      --
      SJW n. One who posts facts.
  5. Re:also you can extract by Anonymous Coward · · Score: 0

    Wrong.

  6. intel is so fucked.. by Anonymous Coward · · Score: 0

    I think its because of SEVERAL YEARS OF MIS-MANAGEMENT, those whom seek to extract the most with the least effort and get the fuck out before they get caught..

    1. Re:intel is so fucked.. by Anonymous Coward · · Score: 0

      fucking Eyes and Teeth

    2. Re:intel is so fucked.. by Anonymous Coward · · Score: 0

      are you referring to intel's India counterparts?
      I wonder how much "globalization" has affected this?
      how come AMD does not suffer the same?
      Why is it so difficult to work @ intel?
      with all of it's resources, why is intel so fucked?
      what happens to those whom bought into Intel's High Assurance programs that supposedly did away with all this shit?
      does it affect intel processors or does it affect OTHER INTEL CHIPS AS WELL? Such as those on Network Cards, disk controllers, PCH's, aww fuck the list goes on?
      Hey Wait, aren't CISCO PRODUCTS ALL INTEL BASED DEVICES?
      Wholly crap.. Appiffanni..
      Intel Knew, since Cisco Is a fairly big reseller of the intel products, perhaps Intel Disclosed it which is why CISCO is running away from the Hardware scene and focusing on the SDN Software Defined Network (or what ever for that matter) initative.. That makes TOTAL sense..
      bottom line, AMD may have suffered some of the same Caviets due to poor business decisions, but this, this is a compounded-Blinder-Fuck of a situation. One that will definitely factor into my purchasing decisions into the future..

      I hope those whom read this, think along the same lines..
      Intel's High Assurance Anything is out the fucking window.
      AMD, I hope you see this as an opportunity to turn shit around..

  7. Stuffing the box. by Anonymous Coward · · Score: 0

    Academics say an attacker can leverage the repetitive code execution patterns that these SDKs introduce in SGX enclaves and watch for small variations of cache size.

    How about cache padding?

  8. ok ok,, what about this.. by Anonymous Coward · · Score: 0

    Whats next??
    New xploit.
    Send a custom crafted packet or Frame through an applicance, Swtich, router, network interface, CPU, etc that triggers something else (undocumented) like an increased DDOS from the inside at the applicance level. A step ahead, whos to say it cant be hacked to participate in a HUGE DDDOS (Dirty Distributed Denial Of Service)
    I am serious, who's to say it's not possible now??

    Intel, We'll sell ya shit, and hopefully you'll figure it out long after we are Gone. Intel High Assurance Platforms. We Know you like fancy Terminology.

  9. Does it only work when you control the hardware by jader3rd · · Score: 1

    How well do these cache timing attacks happen when you don't control the hardware and all sorts of other activities are swapping stuff in and out of the cache?

  10. Re: Intel is ISIS by Anonymous Coward · · Score: 0

    Sounds like the place a Bluray decryption key would be placed.

  11. But.. by DCFusor · · Score: 1

    Rust is perfectly secure! How can so many adamant evangelists be wrong?

    --
    Why guess when you can know? Measure!
    1. Re:But.. by HiThere · · Score: 1

      FWIW, this has nothing to do with Rust.

      OTOH, I don't think there's anywhere a claim that things written in Rust are guaranteed to be secure, so that's another problem with your assertion.

      FWIW, this is either a hardware or a microcode flaw, and a high level programming language isn't even going to address the issue.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    2. Re:But.. by serviscope_minor · · Score: 1

      Rust is perfectly secure! How can so many adamant evangelists be wrong?

      I've always found the techno-luddism on slashdot interesting. Technology is awesome and amazing and new things are cool except that actually it reached it's peak in 1989 with ANSI C and basically everything else has been downhill from there and none of the news ideas are anything but bloat and cruft (seriously who actually says "cruft" anyway).

      --
      SJW n. One who posts facts.
    3. Re:But.. by Anonymous Coward · · Score: 0

      "Technology is awesome and amazing and new things are cool except that actually it reached it's peak in 1989 with ANSI C and basically everything else has been downhill from there and none of the news ideas are anything but bloat and cruft "

      All true.

  12. I recognize that this is by and large bad, but... by Red_Chaos1 · · Score: 2

    ...I can't wait for the decryption keys for UHD BR to be leaked via this method. Being forced to use an SGX enabled Intel rig for an HTPC with UHD BR capability is bullshit.

  13. Re:I recognize that this is by and large bad, but. by Anonymous Coward · · Score: 0

    Do you think the player program will require you to have the patch for this vulnerability installed in order to play discs? Once such a patch is released, that is.

  14. Re:I recognize that this is by and large bad, but. by Anonymous Coward · · Score: 0

    No. There's a reason DVDs stayed cracked after libdvdcss was released.

  15. Re:I recognize that this is by and large bad, but. by Anonymous Coward · · Score: 0

    True, but BluRay discs are not DVDs. The decryption key will be disabled and all new discs will require the software be updated. The thing about this crack is that there appears to be no way to prevent the new key from also being captured.

  16. Re:I recognize that this is by and large bad, but. by Anonymous Coward · · Score: 0

    ...I can't wait for the decryption keys for UHD BR to be leaked via this method. Being forced to use an SGX enabled Intel rig for an HTPC with UHD BR capability is bullshit.

    You had best write protect your BD rom drive's flash chip then. I'd imagine crapywood's publishers will revoke the keys the second they find a set somewhere. Never mind they'll stop encrypting using them too, so even the write protect only lets you keep using what you have.

  17. Intel SGX side channel by NovaSupreme · · Score: 1

    First thing to realize regarding these attacks is that SGX protects from other traditional attacks originating from OS. Therefore, there is increased focus on side channel on Intel SGX. I found www.fortanix.com/assets/Fortanix_Side_Channel_Whitepaper.pdf a very comprehensive document. Side channels operate in every digital system. In fact, one can even harden against Spectre type attacks in SGX just like one would outside SGX.

    The whitepaper is written by Fortanix guys who are invested in SGX so the whitepaper may be biased but reading through it, seems like side channels are overblown.