Giter VIP home page Giter VIP logo

trench's Introduction

ML for Encrypted Traffic Classification

Introduction

This tool uses machine learning to analyse encrypted network traffic for maliciious activity without the need to decrypt packets. 

This project was largely influenced by Cisco research from 2016.

Dependencies

  • Python
    • scikit-learn
    • numpy
    • pandas
    • imblearn
  • Linux
  • Joy

Joy

Joy is a BSD-licensed libpcap-based software package for extracting data features from live network traffic or packet capture (pcap) files, using a flow-oriented model similar to that of IPFIX or Netflow, and then representing these data features in JSON.

Setting up Joy

  1. Install Joy dependencies:

    [sudo] apt-get update
    
    [sudo] apt-get install gcc git libcurl3 libcurl4-openssl-dev libpcap0.8 libpcap-dev libssl-dev make python python-pip ruby ruby-ffi libz-dev
    
  2. Download Joy:

    git clone https://github.com/cisco/joy.git
    cd joy
    
  3. Configure:

    ./configure --enable-gzip
    
  4. Build:

    make clean; make
    
  5. Installation:

    sudo ./install_joy/install-sh   
    

How It Works

It takes as input, packet capture files. These files are fed into Joy to extract JSON formatted features including TLS metadata, DNS, HTTP, Netflow, etc depending on the argument passed to "bin/joy ...".

The JSON data is further parsed to extract TLS metadata information as input features to our model. These features can broadly be categoried as:

  1. TLS/SSL Handshake Information:
  • Ciphersuites
  • Extensions
  • Key length
  • Server Certificate
  1. Byte Distribution
  2. Individual Flow Metadata
  3. Netflow Information

trench's People

Contributors

chukudubem avatar kevinajordan avatar

Watchers

James Cloos 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.