close
The Wayback Machine - https://web.archive.org/web/20201112001533/https://github.com/IAIK/contextlight
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ConTExT-light

This is the PoC implementation for the NDSS'20 paper

ConTExT: A Generic Approach for Mitigating Spectre by Schwarz, Lipp, Canella, Schilling, Kargl, and Gruss

Installation

Prerequiesits

On a Debian-based system, you need to install the following packages:

  • linux-headers
  • build-essential
  • clang

Kernel Module

In order to build the kernel module, run the following command in the module directory:

$ make

To load the module, run as root:

# insmod pteditor.ko

To unload the module after usage, run as root:

# rmmod pteditor

Example

In order to test ConTExT-light, build the provided example in the example directory:

$ make

The Makefile will build two executables: example and example_secured, both implementing a Spectre V1 attack. While the example file is unprotected, example_secured utilizes the ConTExT-light protection to protect its data area with the nospec attribute.

To run the example, just execute it:

$ ./example

The expected output is

[*] Flush+Reload Threshold: 180
[ ]  SECRET 

[>] Done

If you run example_secured, the value SECRET cannot be recovered.

About

The PoC for ConTExT-light

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.