Giter VIP home page Giter VIP logo

pysca's Introduction

Pysca toolbox

This toolbox was started in 2014 to experiment with efficient differential power analysis (DPA) techniques from the paper "Behind the Scene of Side Channel Attacks" by Victor Lomné, Emmanuel Prouff, and Thomas Roche (https://eprint.iacr.org/2013/794).

To clone this repo with the included example traces you will need Git-LFS. Without Git-LFS, only pointers to traces will be cloned.

Why

The toolbox was designed with the following in mind:

  • state-of-the-art DPA techniques
  • performance
  • visualization of metrics for security evaluations purpose (and not just attack)
  • simplicity and flexibility through use of a language suitable for scientific computing

In terms of these points, Pysca (still) outperforms some commercial tooling. Pysca is nowadays mostly superseded by https://github.com/Riscure/Jlsca.

What

Pysca implements:

  • non-profiled linear-regression analysis (LRA) with configurable basis functions
  • classical correlation power analysis (CPA)
  • significant speed-up of the above by conditional averaging
  • targets: AES (S-box out) and DES (round in XOR round out, round out, S-box out)
  • visualization of results

How

For usage basics refer to the HOWTO.

For a deeper dive into leakage modelling using linear regression, clone the tutorial into the subfolder:

git clone https://github.com/ikizhvatov/leakage-modelling-tutorial.git

Details

Pysca works on traces stored in npz (numpy zipped) format. Example tracesets are included in the repo using git-lfs. The conversion script from Riscure Inspector trs format is included. The trs reader was originally implemented by Erik van den Brink.

Under the hood, the most interesting technical tricks in pysca are perhaps:

Author: Ilya Kizhvatov
Version: 1.0, 2017-05-14

pysca's People

Contributors

ikizhvatov avatar macgyvernl avatar pmassolino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.