2.0 Network Scans
Introduction
A network scan in Tutela is a security assessment performed via a Docker container to identify vulnerabilities across your infrastructure by scanning specific subnets. It provides visibility into vulnerabilities present on network-accessible assets
graph LR
A[<b>Tutela Network Scan</b>] --> B[<b>Tutela Container</b>]
B -- "Scans via Network" --> C[<b>Target Subnets</b>]
C -- "Maps Vulnerabilities and Network Assets" --> B
B -- "Uploads Results" --> D[<b>Tutela Dashboard</b>]Requirements
Please ensure the below requirements are met beforehand:
Select an internal server to host docker and make sure the selected server has network connectivity to all intended targets.
Install Docker or Docker Desktop as outlined in Docker’s documentation and make sure it’s up and running. [Download Docker]
Installing and Running Tutela Image
Make sure that docker is running by running
docker versioncommand in command prompt / terminal with elevated privileges.
Run the following command
docker pull dvassallocs/tutela. This should pull the latest image from Docker Hub.
To verify correct operation, run the command
docker run dvassallocs/tutela. It should give output similar to the below.
Now, we need to generate our API Keys and configure the targets.
Login to Tutela
Go to
Settings>Agent API Keys and Settingsection.Click
Add API KeyOnce generated, click on Add Agent Targets next to your API key and add your desired network targets
Run your first Network Scan (Please execute 1 of the below commands depending on your implementation):
docker run dvassallocs/tutela -api_key API_KEY Trial Users only
docker run dvassallocs/tutela -api_key API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"After the scan is complete. login to Tutela to view your results!
Automating Scans via Cron / Scheduled Tasks
Now that we got our network scanner to work, ideally, we want it to run on a weekly or a monthly basis to ensure our data is up to date.
To do this, we will be creating a cronjob or scheduled task on windows to run this command every week.
Linux (Cronjob)
Creating Cron Job
Edit your crontab:
crontab -e
Add the below line (replace
API_KEYwith your real key):
Production Users:
0 5 * * 0 docker run dvassallocs/tutela -api_key API_KEY ⚠️ Trial Users:
0 5 * * 0 docker run dvassallocs/tutela -api_key API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"Permission Checklist
Make sure that the cron user can run Docker (docker group)
sudo usermod -aG docker your_userYou successfully created your Cron Job!
“0 5 * * 0” will run every Sunday at 5AM. Feel free to change this to your desired time
Windows (Scheduled Task)
Creating a scheduled task
Open Task Scheduler (Privileged)
Click
Create Task- Not basic taskSelect
Run whether user is logged in or not(Depending on your machine)
Go to
TriggerstabPress
NewConfigure your desired schedule
Click
Ok
Go to
ActionstabClick
NewSelect Start a Program
Add the location where docker is installed ("C:\Program Files\Docker\Docker\resources\bin\docker.exe")
Add the below arguments:
Production Users:
run dvassallocs/tutela -api_key API_KEY ⚠️ Trial Users:
run dvassallocs/tutela -api_key API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"Go to Conditions & Settings
Uncheck / Check any settings which might hinder this task from running.
In the settings tab, make sure to allow the task to run on demand.
Make sure to test it!
You successfully set up the scheduled task
tags:
Setting up network scans
Setting up docker
Creating scheduled / cron job tasks
Agent Targets
Network Scans targets