Skip to content

A tool to detect VPN/Proxy from a given IP. It was developed during Smart India Hackathon Aug 2020.

Notifications You must be signed in to change notification settings

vorabrijesh/SIH2020-VPN-PROXY-DETECTION

Repository files navigation

  1. Objective: Proxy & VPN Detector - detect whether an IP is behind VPN/Proxy

  2. Dependencies

    1. Framework used is Python Flask.

    2. Setting up Flask - make sure you are in home directory

      1. sudo apt install python3-venv
      2. mkdir my_flask_app
      3. cd my_flask_app
      4. python3 -m venv sih
      5. source sih/bin/activate (execute this command in parent directory of sih to activate sih virtual environment)
      6. pip install Flask (use pip or pip3 - doesn't matter in sih virtual environment)
      7. python -m flask --version
    3. Installing necessary modules/tools/libraries in sih virtual environment

      1. sudo apt-get install -y net-tools
      2. sudo apt-get install -y nmap
      3. sudo apt install -y gcc libpcre3-dev zlib1g-dev libluajit-5.1-dev libpcap-dev openssl libssl-dev libnghttp2-dev libdumbnet-dev bison flex libdnet autoconf libtool
      4. sudo apt-get install -y wkhtmltopdf
      5. pip install setuptools
      6. pip install python3-nmap
      7. pip install shodan
      8. pip install ipwhois
      9. pip install wheel
      10. pip install json2html
      11. pip install flask-googlemaps
      12. pip install pdfkit
      13. pip install zipfile36
      14. pip install numpy
  3. Usage

    1. Use following command in parent directory of sih project folder $ python app.py
    2. Enter an IP address in the textbox and Click on 'Submit' to check the results.
  4. College - Indian Institute of Technology Tirupati

  5. Tasks completed

    1. Our tool takes 3 secs to get the details of the IP address
    2. Integrated our tool with 4 APIs(shodan, IP2proxy, IPquality, vpnapi)
    3. Our tool does real-time analysis
    4. Implemented honeypot for detecting real-time attacks from VPN/Proxy enabled users
    5. Detailed reports generated in text, html and pdf formats for further analysis by experts
    6. Locating the location of origin of IP address using Google Maps
    7. Maintains history of recently scanned IP addresses
  6. Idea Chart alt text

  7. Future Improvements

    1. Machine learning can be used to determine the probabilistic behaviour of an IP in use for proxy/VPN.
    2. We can use SIEM tools to get the log data of different attacks in real-time
    3. Collaborating with the governments and ISPs will give us more data of attacks and their IP addresses which will improve our database
    4. We can plot the data from SIEM tools and other sources(APIs, ISPs and governments) to create a threat map which will be a very useful visualization for a security operations center like BPRD

About

A tool to detect VPN/Proxy from a given IP. It was developed during Smart India Hackathon Aug 2020.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages