Skip to content

Exercises for practicing MLSec for Systems Security easily executable on a colab environment

License

Notifications You must be signed in to change notification settings

nicolodon/mlsec-labs-colab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ML Security Labs

Setup

It is better to use Python 3.10 as we are still figuring out a compatibility with the Tesseract library.

I would also advise to create a Python virtual environment for these labs, using Python 3.10: see here for a guide on virtual environments.

Labs overview

This github workspace contains some example to get acquainted with the use of Machine Learning for Systems Security and Malware Detection.

  • Lab 01: Malware detection with Machine Learning. This lab is a warmer to introduce on the use of notebooks, and to compute the main performance metrics.

  • Lab 02: Time-aware evaluations. This lab introduces the use of time-aware evaluations.

  • Lab 03: Adversarial Attacks. A simple weight-driven attack for the linear SVM classifier on DREBIN feature space.

  • Lab 04: Sampling Bias. In this exercise, you will see how training on apps from different marketplaces, how this affects results.

The datasets folder contains simple datasets and the instruction to download a larger dataset based on the DREBIN (NDSS 2014) feature space.

Tesseract Library

In case you need to do time-aware evaluations with:

You can refer to this publication:

To install, create a Python 3.10 environment. If the instructions of the repo do now work, consider trying:

python -m build

To register the virtual environment on a Python notebook:

python -m ipykernel install --user --name <env-name>

where the variable matches the name of the environment.

About

Exercises for practicing MLSec for Systems Security easily executable on a colab environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Jupyter Notebook 93.0%
  • Python 7.0%