GithubHelp home page GithubHelp logo

bgp-hijacks's Introduction

Detecting BGP hijacks on the Internet

CS4450/CS5456

This repository contains code for detecting and visualizing BGP hijacks. Below are the instructions for running the code:

  1. Clone the repository

  2. Run training.py to extract the training data and create a file.

(Please note that the data collected for the project is not present in the repository as it is about 20GB in size, and GitHub does not allow uploading such large files. Instead, smaller files have been created for debugging and testing purposes from different route collectors and various times, which are present in the /Data folder. When you use these data, make sure to change the path of the file when running any other code to the name of the file that you want to train the model on. Additionally, note that the project uses specific route collectors for specific time frames, so using data in the folder may or may not give accurate results. For accurate results, it is recommended to download the code, run training.py and use the training data obtained from that.)

  1. Run main.py to execute the program.
    • This file is the central point of contact for all the remaining files.
    • It runs visualizations.py to visualize the data (shows some network graphs about connections between ASes and interesting facts about AS prepending and information on ASes that frequently do this)
    • It also runs each of the detectors, and collects data about the attacks. Note that when each detector is run, a live animation of the hijacks will be shown. Once a particular detector completes running, the graph has to be closed to continue running the rest of the code.
    • Finally, main.py displays graphs regarding the time of attacks and the number of attacks split across various stages and types of hijacks.

bgp-hijacks's People

Contributors

akalyaasokan avatar aarushi3113 avatar sad2023 avatar

Watchers

 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.