~/talk

Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing

links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Shows a practical side‑channel that leaks branch‑level control flow from SGX by running colliding shadow branches outside the enclave and reading prediction results via the CPU’s LBR while using an APIC timer and cache disabling to single‑step the enclave. Implements LBR‑based history inference and an APIC‑based interrupt synchronizer, builds shadow code that shares BTB entries with target branches, and recovers RSA private‑key bits with ~99.8% per‑bit accuracy; proposes branch‑history flushing (hardware) and a compiler transform (cmov+indirect) that costs ~30% runtime.

AI-written summary · about

  1. 0:00Intro
  2. 0:27Intel Software Guard Extension (SGX)
  3. 2:59Branch shadowing: A fine-grained side- channel attack against Intel SGX Can attack each branch instruction
  4. 5:31Branch collision timing attack works for SGX but has limitations
  5. 8:44How does branch shadowing overcome the two limitations? Apply LBR to a shadow branch to identify branch prediction results instead of timing
  6. 10:11Step 1: Prepare a shadow copy of an SGX program to monitor it with LBR
  7. 10:59Step 2: Interrupt SGX execution and monitor shadow code with LBR
  8. 11:45Shadow conditional branch and
  9. 14:59Near single-stepping: Frequent timer and disabled cache
  10. 15:55Attack evaluation: Sliding-window exponentiation
  11. 19:49Hardware countermeasure: Flush branch history at SGX mode switch Most effective, but need hardware modification
  12. 20:53Software mitigation: Branch obfuscation
  13. 21:29Example of branch obfuscation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.