pcardotatgit / Umbrella_Investigate_Check_Domain_Reputations

Get Domains Security Reputation from Umbrella Investigate for Domains Contained in a text file
Other
1 stars 1 forks source link

Umbrella Investigate Requests examples

This set of scripts request domain reputation to the Umbrella Investigate Backend, for a list of domains which are contained into the domain.txt file.

The last script will dynamically get domain reputations for domains in all URLs contained in any INTERNET Web Page.

You must have access to INVESTIGATE in order to be able to run these scripts. Thanks to this you will be able to generate your Authentication token into the Umbrella INVESTIGATE Dashboard.

It is named investigate_api_key in the scripts.

Instruction for generating your API token can be found in the umbrella online documentation.

https://docs.umbrella.com/investigate-api/docs/about-the-api-authentication

You must store your API token into the token.txt file.

For each domain into the domain.txt file, the script retrieves several security information which help to categorize domains by risk.

Result are stored into output text files into the ./output directory

The goal behind this, is to dynamically create blocking rules into network security devices like Next Gen FireWall

Installation

Installing these script is pretty straight forward . You can just copy and paste them into you python environment but a good practice is to run them into a python virtual environment.

Install a Python virtual environment

For Linux/Mac 

python3 -m venv venv
source bin activate

For Windows 

We assume that you already have installed git-bash.  If so open a git-bash console and :

python -m venv venv
source /venv/Scripts/activate

git clone the scripts

git clone https://github.com/pcardotatgit/Umbrella_Investigate_Check_Domain_Reputations.git
cd Umbrella_Investigate_Check_Domain_Reputations/

install needed python modules

These scripts use the following python modules

You can install these modules with the following :

pip install -r requirements.txt

Running the scripts

First you must have a valid Investigate API token. Copy it into the file named token.txt

Second test your connectivity with INVESTIGATE Backend. Run the 1-test_access_to_investigate.py script

$python 1-test_access_to_investigate.py

Then you are ready to go

Next step is to fill the domains.csv file with the domains you want to check. Put one domain per line

Run the scripts

Credit and References

Cisco DEVNET Express Security Workshop

published