Giter Club home page Giter Club logo

aisy_framework's Introduction

AISY - Deep Learning-based Framework for Side Channel Analysis

Welcome to the first deep learning-based side-channel analysis framework. This AISY Framework was developed by AISYLab from TU Delft.

Contributors: Guilherme Perin, Lichao Wu and Stjepan Picek.

Installation

git clone https://github.com/AISyLab/AISY_Framework.git
cd AISY_framework
pip install -r requirements.txt

To start the webapp:

flask run

Requirements

This framework required tensorflow==2.0.0, keras==2.1.6 and python==3.7.

All requires python packages are listed in requirements.txt.

Documentation

See our documentation page: https://aisylab.github.io/AISY_docs/

Main Features

  • SCA Metrics
  • Gradient Visualization
  • Data Augmentation
  • Grid Search
  • Random Search
  • Early Stopping
  • Ensemble
  • Profiling Analyzer
  • Custom Metrics
  • Custom Callbacks
  • Custom Loss Functions
  • Confusion Matrix
  • Easy Neural Network Definitions
  • Data Augmentation
  • GUI - plots, tables
  • Automatically generate scripts
  • Fully reproducible script

Example:

import aisy_sca
from app import *
from custom.custom_models.neural_networks import *

aisy = aisy_sca.Aisy()
aisy.set_resources_root_folder(resources_root_folder)
aisy.set_database_root_folder(databases_root_folder)
aisy.set_datasets_root_folder(datasets_root_folder)
aisy.set_database_name("database_ascad.sqlite")
aisy.set_dataset(datasets_dict["ascad-variable.h5"])
aisy.set_aes_leakage_model(leakage_model="HW", byte=2)
aisy.set_batch_size(400)
aisy.set_epochs(20)
aisy.set_neural_network(mlp)
aisy.run()

Running a script

After your AISY Framework project is set on your local machine, to run scripts that are placed inside scripts folder from command line or terminal, we recommend to write the following lines on your script (as the first lines of script code):

import sys
import os

sys.path.append(os.path.abspath(os.getcwd()))

However, if you prefer to run scripts from inside an IDE such as PyCharm, you don't have to set the above code in your scripts.

Alternatively, you can place your script files outside scripts folder (in your project root directory) and run them from there.

If you use our framework, please consider citing:

@misc{cryptoeprint:2021:357,
  author = {Guilherme Perin and Lichao Wu and Stjepan Picek},
  title  = {{AISY - Deep Learning-based Framework for Side-Channel Analysis}},
  howpublished = {Cryptology ePrint Archive, Report 2021/357},
  note   = {\url{https://eprint.iacr.org/2021/357}},
  year   = {2021}
}

aisy_framework's People

Contributors

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