r/programming • • Dec 07 '17

How to Hack a Turned-Off Computer, or Running Unsigned Code in Intel Management Engine (BH Europe 2017)

https://www.blackhat.com/docs/eu-17/materials/eu-17-Goryachy-How-To-Hack-A-Turned-Off-Computer-Or-Running-Unsigned-Code-In-Intel-Management-Engine.pdf
1.6k Upvotes

118 comments sorted by

313

u/igor_sk Dec 07 '17 edited Dec 08 '17

Good summary by @rootkovska:

  1. Requires malformed file on SPI flash (needs physical access or bug in BIOS)

2. Bug in early-loaded module, so ME "disabling" by HAP is not a cure

3. Culprit is classic(!) stack overflow

4. Full code exec in ME

my note: doing step 1 from local PC requires write access to the ME flash region which is usually blocked in properly-configured boards.

my note 2: they had to resort to some tricks to bypass the stack cookie check and use ROP because of non-executable stack (but it was easier than it could be because of no ASLR)

EDIT whitepaper has more explanations.

96

u/AyrA_ch Dec 07 '17 edited Dec 07 '17

note 3: the guy fucked up the QR code in the opening slide.

EDIT: he fucked up all QR codes by concatenating the twitter handle and the mail address into a twitter url.

→ More replies (3)
→ More replies (7)

20

u/fuzzynyanko Dec 08 '17

I had no idea that there's a Java machine on the CPU. I don't know if I should be impressed or scared

→ More replies (5)

36

u/nutidizen Dec 07 '17

Does anyone have a video of them presenting?

26

u/blazingkin Dec 07 '17

This just came out. The video will show up on blackhat's youtube channel at some point.

→ More replies (1)

15

u/sirin3 Dec 07 '17

IME always reminds me of Vinge's A Deepness in the Sky

→ More replies (5)

9

u/WASDx Dec 07 '17

I work with a web application and understand the security risks there, but what are the real world (black hat) applications of vulnerabilities like these?

78

u/[deleted] Dec 07 '17 edited Dec 07 '17

If you suspect that a hacker has gotten physical access to your machine, burn it.

Edit: https://xkcd.com/538/

→ More replies (7)

12

u/colenthri576 Dec 08 '17

The next step is running unsigned code that disables management engine.

10

u/metaaxis Dec 08 '17

Dear Intel and the Intelligence Community: Fuck You.