Git Product home page Git Product logo

can-anomalies's Introduction

work in progress...

Repo for generating anomalies using CAN data frames.

These anomaly functions were built to be used with the RNN-based anomaly detection systems, therefore it uses a binary data representation rather than the hexadecimal representation obtained from a CAN dump.

The fields_data.pkl file contains the information about fields for every CAN ID, including length, type, variability, and number of unique values. It is required to generate field anomalies.

Dependencies:

  • Before using this you must have the data file with the binary representation of the DATA field, and place it in a /data directory.
  • python 3.6+
  • pandas
  • numpy
  • pickle (for the fields_data.pkl file)

main.py shows how the sequences are built and how to generate each of the anomaly types we have considered.

Anomalies:

  • Interleave
  • Discontinuity
  • Reverse
  • Drop

Field anomalies:

  • Set to maximum value
  • Set to minimum value
  • Set to constant value
  • Set to random value
  • Replay field

For more information on the attack model, which is based it from Taylor et al. work, check their research available at: Taylor (2016) and Taylor (2017)

can-anomalies's People

Contributors

novad avatar

Watchers

 avatar  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.