Skip to content

papastam/artemis_detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • Go 1.21+

Compile

In order to compile the application you need to run the following command:

go build -o artemis_detector main.go utils.go

Run

The application has two running modes:

  • detect_all: In this mode the detector will detect hijacks for every AS possible.
  • detect_as: In this mode the detector will detect hijacks for a specified AS, given to it using the --asn 〈AS#〉 flag
  • active: The active mode executes the hijack detection algorithm in given intervals specified using the --interval 〈interval〉 flag for a given AS specified using the --asn 〈AS#〉 flag. When the detector detets a hijack for the specified AS, it will use the mitigation script, specified using the --mitigation_script_path 〈script_path〉 flag, to mitigate the hijack. The user can stop the detector using the Ctrl+C termination signal and an output file will be created.

General Flags

  • --updates <File(.csv) | Dir>: The BGP updates file/directory
  • --input_type <”file”|”directory”>: The type of input you are providing the tool with (default:”file”)
  • --prefixes 〈prefixes_file.txt〉: The file containing the legal prefixes of each AS.
  • --output <output_file(.csv)>: The file where the detector will write the final detected hijacks (will be created if not exists)
  • --asn: The AS number to detect hijacks for. If not specified, the detector will run in detect_all mode.

Output

The detector will print the analysis statistics in the output of the terminal. The output of the detection can be found in the file specified with the –output flag. This csv file will contain the following information for each detected hijack:

  • prefix
  • origin as
  • hijack type
  • hijacker asn
  • time started
  • time of last update
  • time ended
  • state
  • duration

About

A lightweight implementation of ARTEMIS Detector in GoLang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published