Code Monkey home page Code Monkey logo

skype-type's Introduction

Don't Skype & Type!

S&T is a novel, powerful, and open-source research tool for keyboard acoustic eavesdropping.

It allows users to perform keyboard acoustic eavesdropping attacks: training a Machine Learning model on the different noise of each key of someone's keyboard, and then use this model to understand what he's typing from keystroke noise alone.

Don't Skype & Type! is a research project from SPRITZ Group (University of Padua, IT), and SPROUT (UC Irvine, USA). For further information see our project webpage: http://spritz.math.unipd.it/projects/dst/

If you use our tool in your own research, please cite our paper:

Compagno, A., Conti, M., Lain, D., & Tsudik, G. (2017, April).
Don't Skype & Type!: Acoustic Eavesdropping in Voice-Over-IP.
In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security (pp. 703-715). ACM.

Introduction

S&T is built around the concept of operator chains, concatenated basic blocks that provide functionalities. This modular design allows for customization of every operation.

A chain is composed of four main blocks: a Listener, a Dispatcher, a Model, and an Output.

On each block, a different function can be loaded (provided that it can work with its previous and next block), as long as the correct interface is implemented. Each function has its own subprocess, and communicates using multiprocessing.Queue objects.

Listener functions are responsible of loading sound and passing it to a Dispatcher, that extracts keypress sounds from the audio file or stream, and passes it to a trained Model that performs classification. Finally, results are passed to Output operators, that show classification results.

Usage

First, you need to create a sklearn.Pipeline containing a classifier, plus any other data transformation you want.

A convenient way to create it is to use generate_model, passing training data to it:

generate_model.py training_files_and_folders output_model [...]

Which will take as training data all the files passed as arguments, and all the files contained in folders that are passed as arguments. The trained model will be saved in the specified location. Please note: acoustic training data needs to be .wav (Microsoft), 32bit float PCM. For each .wav file passed as training, a corresponding .txt file with identical name needs to contain its ground truth, one target per line. NOTE: spaces are not allowed as characters in ground truth -- please replace them with another character.

When launching S&T, operator chains can be specified manually through CLI parameters, such as:

main.py --listener wavfile --dispatcher offline ...

or convenient opmodes, that automatically load blocks, can be used:

main.py --opmode from_file

More information about each block, possible options, and usage can be found on the User Guide_.

Examples

Generate a model from training data in file1.wav, file1.txt, and all files in folder1 and folder2, and save it in folder3/model:

generate_model.py file1.wav file1.txt folder1 folder2 folder3/model

Run S&T on target.wav, using the pipeline saved in folder3/model:

main.py --opmode from_file --target target.wav --pipeline folder3/model

Run S&T on target.wav, using the pipeline saved in folder3/model, manually specifying a listener and dispatcher block:

main.py --listener wavfile --dispatcher offline --target target.wav --pipeline folder3/model

Requirements

Eventually, this software will have a proper installer and dependency management. For now, you'll need to install dependencies manually:

sklearn
numpy
python_speech_features

Additionally, if you want to fully leverage S&T against words in a known language, please provide your own dictionaries in the /dictionaries folder.

TODO

  • Finish proper documentation and generate it
  • Upload unit tests

skype-type's People

Contributors

spritz-research-group 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.