Skip to content
0:00 / 0:00

#microcode#x86#amdk8

USENIX Security '17 - Reverse Engineering x86 Processor Microcode

USENIX

42K subscribers • 4 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Philipp Koppe

Advanced. Deep dive for people who know the field.

7.5K views9 years ago1 recommendation

SecurityHardwareReverse engineeringCPUs and computer architectureExploits and vulnerabilities

Philipp Koppe presents a reverse engineering analysis of x86 processor microcode semantics and update mechanisms on AMD architectures.

Philipp Koppe, Benjamin Kollenda, Marc Fyrbiak, Christian Kison, Robert Gawlik, Christof Paar, and Thorsten Holz, Ruhr-University Bochum Microcode is an abstraction layer on top of the physical components of a CPU and present in most general-purpose CPUs today. In addition to facilitate complex and vast instruction sets, it also provides an update mechanism that allows CPUs to be patched in-place without requiring any special hardware. While it is well-known that CPUs are regularly updated with this mechanism, very little is known about its inner workings given that microcode and the update mechanism are proprietary and have not been throughly analyzed yet. In this paper, we reverse engineer the microcode semantics and inner workings of its update mechanism of conventional COTS CPUs on the example of AMD’s K8 and K10 microarchitectures. Furthermore, we demonstrate how to develop custom microcode updates. We describe the microcode semantics and additionally present a set of microprograms that demonstrate the possibilities offered by this technology. To this end, our microprograms range from CPU-assisted instrumentation to microcoded Trojans that can even be reached from within a web browser and enable remote code execution and cryptographic implementation attacks. View the full program: usenix.org/sec17/program

Why it's here

1 person recommends this

What people say. Recommended as a deep dive into reverse engineering proprietary CPU microcode.

u/A_Robot_Crabin r/ReverseEngineering • Recommends

Reverse Engineering x86 Processor Microcode - Philipp Koppe @ USENIX Security 2017