powerpoint presentation · less frequent, smaller cache region: 15% more frequent, larger cache...

34

Upload: others

Post on 09-Oct-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 2: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 3: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 4: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

The attacker runs a program on the system that is performing the cryptographic operation of interest

Basic idea: observe computation’s effects on the system, and learn information from that

Recent attacks are asynchronous, in that they do not require the attacker to achieve precisely timed observations of the victim

Page 5: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Cache Set

Cache Line

4-way set associative cache

Physical Address

Page 6: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

PRIME

Page 7: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

PRIME PRIME-PROBE Interval

Page 8: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

PRIME-PROBE Interval

400 600 500 400 400 500

PRIME PROBE

Page 9: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Hardware

Operating System

Attacker

Process

Victim

Process

Hardware

Virtual Machine Monitor

Victim VM

Victim

Process

OS

Attacker VM

Page 10: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

PRIME-PROBE Interval PRIME PROBE

Page 11: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

PRIME-PROBE Interval PRIME PROBE

Page 12: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 13: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 14: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 15: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 16: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 17: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 18: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 19: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Foe VM

Friendly VMs

Page 20: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Xen Hypervisor

Friendly VMs

Page 21: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Xen Hypervisor

PRIME PRIME-PROBE Interval PROBE

Page 22: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Pseudo-physical Pages

Physical Pages

0x5000 0x3000

2 1 3 5 4

2 1 3 5 4

0x5000 0x3000 Page Table Entries

Physical Address 0x2000 0x1000 0x3000 0x4000 0x5000

Page 23: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Pseudo-physical Pages

Physical Pages

Reserved pages

0x01 0x02 0x03 0x04 0x05 0x06

Avoided pages

Data copy

L2 Cache

Page 24: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

PRIME PROBE PRIME-PROBE Interval

Page 25: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

core core

0

0.01

0.02

0.03

0.04

0.05

0.06

0.07

1500 2000 2500 3000 3500

Em

pir

ical

pro

bab

ilit

y

PROBE results with NO foe present (CPU cycles)

core

L2 L2

core

Page 26: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

0

0.01

0.02

0.03

0.04

0.05

0.06

0.07

1500 2000 2500 3000 3500

Em

pir

ical

pro

bab

ilit

y

PROBE results with NO foe present (CPU cycles)

Class B

Class A

Foe more

PROBE results

here

Foe less PROBE

results here

Page 27: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Different friend I/O

level

. . .

Page 28: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Cache region Select Monitoring VM

Xen Hypervisor

Page 29: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Xen Hypervisor

PRIME PRIME-PROBE Interval PROBE

Page 30: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

Xen Hypervisor

Select next Monitoring VM Does the PROBE result fall into

class A or class B? I am the next

Monitoring VM

Page 31: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 32: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory

True detection rate (with 1% false positive) Foe VM running cloud applications

Simulated with PARSEC benchmarks: 84% - 100% Foe VM running PRIME-PROBE protocol

Less frequent, smaller cache region: 15%

More frequent, larger cache region: 85%

Performance overhead Address remapping: 150ms for remapping a 2GB memory (1/16 mapped to monitored cache region)

Less than 5% overhead during detection period

Page 33: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory
Page 34: PowerPoint Presentation · Less frequent, smaller cache region: 15% More frequent, larger cache region: 85% Performance overhead Address remapping: 150ms for remapping a 2GB memory