Skip to content

VMM to investigate KVM KSM memory pages deduplication resistance over side channel attack (cache-time driven attack).

Notifications You must be signed in to change notification settings

selinux/vmm-sca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Deduplication, Cache-based Side-Channel Attacks

My master thesis project.

abstract

"For several decades, Side-Channel Attacks (SCA) have been considered a potential threat to information systems security. These attacks operate through a multitude of physical channels such as power consumption, execution or response time with Timing Attacks (TA) or access times to cached data with Cache-based Side-Channel Attacks (CSCA). With platform virtualization, several guests co-resident on the same host. Virtualization is supposed to guarantee strict partitioning between VMs. A potential risk has been described via two types of attacks ; one exploiting processor cache and the other memory deduplication. The KVM hypervisor (Kernel-based Virtual Machine) implements a memory optimization called KSM (Kernel Same-page Merging). When several VMs use the same content, it is merged by KSM and provided to VMs. This optimization, would allow a malicious VM to infer the state of another VM thus violating the partitioning principle.

I developed this tool using the KVM API and bare-metal VMs in order to quantify this risk in real conditions and assess the scope of memory deduplication and CSCA attacks on information systems. Our study takes into account how VT-x behave on the x86_64 architecture and implementation of virtualization under GNU\Linux."

Cache-Based Side-Channel Attacks

VMM

One VMM lauch two or three VMs

architecture

simulate different timelines

timeline

VMM-timeline

VMs

VMs memory

some measurements

READ

Read access cache/no cache

WRITE (Copy-On-Write)

Write access

RDTSC three VMs

Qemu rdtsc

Shared pages

Qemu BIOS/UEFI Qemu Alpine

(sources : Memory Deduplication, Cache-based Side-Channel Attacks, une menace réelle en environnement virtualisé? Sebastien Chassot's Master's Thesis - Geneva University - 08.2022 )

About

VMM to investigate KVM KSM memory pages deduplication resistance over side channel attack (cache-time driven attack).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published