GithubHelp home page GithubHelp logo

kaiyoo / ml-anomaly-detection Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 4.0 2.11 MB

Detection of network traffic anomalies using unsupervised machine learning

Jupyter Notebook 100.00%
anomaly-detection anomalydetection unsupervised-machine-learning clustering-algorithm iforest ocsvm oneclasssvm adversarial-machine-learning adversarial-samples fgsm

ml-anomaly-detection's Introduction

[1] Overview

This project was done in the subject, COMP90073 (Security Analytics) taken in Semester2, 2020 in the University of Melbourne.

  1. https://cloudstor.aarnet.edu.au/plus/s/Hvu7YyCDDG7ByWb
  2. https://cloudstor.aarnet.edu.au/plus/s/38CH3I8HbuYkh3r

[2] Features

More details in the anomaly_detection_reports.pdf

  • Feature1: Numeric value (existing + newly generated) + Standardscaler + PCA

  • Feature2: Feature1 + One-hot encoded categorical feature

  • Feature3: Scale (Cumulative features grouped by stream_id + time-based feature) + PCA

[3] Model

  1. Iforest
  2. OneclassSVM

[4] Hyperparameter tuning (2 examples among 6)

  • Criteria of setting a threshold: Accuracy > 0.88 and Max(TPR-FPR)
  1. OCSVM + feature3

alt text

  1. Iforest + feature 3

alt text

[5] Clustering visualisation and Evaluation (2 examples among 6)

  1. OCSVM + feature3

SCORES:

alt text

CLUSTERING:

alt text

  1. Iforest + feature3

SCORES:

alt text

CLUSTERING:

alt text

[6] Interpretation of the result

alt text alt text

  • Attack Timeline alt text

[7] Generating Adversarial samples (FGSM)

  • FGSM generates adversarial samples with the error rate of almost 100%.

alt text

ml-anomaly-detection's People

Contributors

kaiyoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ml-anomaly-detection's Issues

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.