Giter Site home page Giter Site logo

yutianrun / hint_from_hertz Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.21 MB

License: University of Illinois/NCSA Open Source License

Makefile 2.80% C 54.64% Python 11.28% Shell 0.80% CMake 0.83% Assembly 3.63% C++ 0.08% Jupyter Notebook 25.94%

hint_from_hertz's Introduction

Hints by Hertz

A Hertzbleed-like attack against CPA-Kyber without Compress/Decompress and CCA-NTTRU, accompanying the paper

Hints from Hertz: Dynamic Frequency Scaling Side-Channel Analysis of Number Theoretic Transform in Lattice-Based KEMs

NB: This source code is CPU-specific.

Tested Setup

We follow the same setup as Hertzbleed attack. Similarly, the repo is fully tested with an Intel i7-9700CPU with the Ubuntu20.04. We cannot ensure this code works in virtualized environments, on alternative CPUs, custom hardware configurations, or with different operating systems.

Requirements

  • Sage 10.2

Materials

This repository contains the following materials:

01-leakage-channel-workloads : the same as the one in Hertbleed, the code to test if the scaling of P-states leaks information in certain CPU.

02-Kyber-pureNTT contains the code that we used to perform the frequency measuremnt over NTT.

02b-Kyber-pureNTT-time contains the code that we used to perform timing mesurement over NTT.

03-CPA-Kyber contains the code that we used to perform the Kyber attack over the AVX2-implementation.

03-Kyber-KnownSK_C0C0_128pair_verification contains the code that we used to verify our attack is valid over multiple pairs.

04-CCA-NTTRU contains the code that we used to perform the NTTRU attack over the AVX2-implementation.

05-ToyExample contains the code of our ToyExample , Kyber-256 and the code that we used to perform the frequency measurement and the script to finish an end-to-end attack.

06-Bit_Estimation contains the code that we integrate the hints to DDGR AND estimate the security loss.

util: same as Hertbleed, contains scripts that can be used to run all the leakage model experiments and parse their results.

hint_from_hertz's People

Contributors

yzl777 avatar yutianrun avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.