Giter Club home page Giter Club logo

app-fingerprinting-data-collection's Introduction

Introduction

The focus of the project is to identify an app from its network traffic. The dataset was collected by running 30,000 apps from 4 different categories. Extract 8 features from network packets and then used Radial Basis Function (RBF) kernel support vector machine(SVM), 10-fold cross validation on Spark to train a model that can identify an app from its network traffic. The model accuracy is around 88.4%.

Team Members

  • Binhan Wang
  • Menghua Liu
  • Wenjie Li
  • Runze Zhang
  • Hafez Eslami Manoochehri

Project Structure

Group9_Final_Project
├── README.md               # Current readme file.
├── Group9Presentation.pptx # PPT for presentation.
├── pcap_parser.py          # model to extract features from a single pcap file
├── data_parser.py          # model to parse all the pcap files and generate input data file
├── training.py             # train model using input data and get accuracy  
└── app_data                # some data for running the code
    ├── communication       # pcap files with label communication
    ├── finance             # pcap files with label finance
    └── social              # pcap files with label social

Requirement

  1. Install tshark (https://www.wireshark.org/docs/man-pages/tshark.html)
  2. Python 3.6.2
  3. pip3
    • pyshark
    • numpy
    • sklearn

Running instruction

Feature extractions and generate input file for ML

python3 data_parser.py --input app_data --output output.csv

Training with svm

python3 training.py --input output.csv

Sample output

Round 1 - kernel='rbf', probability=True
Accuracy: 0.93 (+/- 0.04)
Round 2 - kernel='sigmoid', probability=True
Accuracy: 0.74 (+/- 0.10)
Round 3 - kernel='poly', probability=True, degree=3
Accuracy: 0.87 (+/- 0.06)
Round 4 - kernel='poly', probability=True, degree=8
Accuracy: 0.80 (+/- 0.08)
Round 5 - kernel='poly', C=10, probability=True, degree=8
Accuracy: 0.84 (+/- 0.08)    

app-fingerprinting-data-collection's People

Stargazers

 avatar

Watchers

 avatar

Forkers

fafa777 rhmpzyyx

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.