Skip to content

Risk Analyzer is a python based server that takes an IP address & returns a risk score of 0 to 100 associated with it

Notifications You must be signed in to change notification settings

piyush-palta/risk-analyzer

Repository files navigation

Risk Analyzer

Risk Analyzer is a python based server module that takes an IP address & returns a risk score in range of 0 to 100. It is an integral part of Intrusion Detection System project & will be used to make authorization decisions based on it's risk analysis of the client IP address.

Getting Started

To clone the project in your local systems:

$ git clone https://github.com/piyush-palta/risk-analyzer.git

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

Installing

The below command will start the riskAnalyzer server :

$ python main.py

To configure host and port by yourself :

$ python main.py host_name port_number

Running the tests

Before running tests make sure you execute the following command. This will ensure all files are compiled :

$ python main.py

To run all tests, run the following command in project directory :

$ python -m unittest

This will test all components. But before running this command it's essential that you start the server using following command :

$ python main.py

To run each test separately :

$ python -m unittest test_name.py

Future development Strategy

  • The project isn't optimized for scaling purposes yet. Server is opening only one socket, and Synchronous processing is done. To optimize this, threading will be introduced.

Architecture

The below image illustrates the architecture of Risk Analyzer server :

Risk Analyzer Architecture

About

Risk Analyzer is a python based server that takes an IP address & returns a risk score of 0 to 100 associated with it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages