4.3 Web Applications
Introduction
Tutela Web Scanner is a BETA feature which provides visibility over the top OWASP vulnerabilities on both your public and internal websites, giving you visibility on vulnerabilities present on your sites.
Requirements
Create your API Keys
Login to your Tutela instance
Go to Admin section > Agent Management
Add ‘API Key’ and give it a friendly name
WebScannerRepeat this step for all sites you wish to scan.
Make sure docker is installed.
Performing a Web Scan
Get the docker by executing the below command:
docker pull dvassallocs/tutela-webRunning the container
Simple web scan:
docker run dvassallocs/tutela-web -a 'api_key_here' -t 'YOUR-WEBSITE-URL'⚠️Trial Users
docker run dvassallocs/tutela-web -a 'api_key_here' -b "https://trial-backend.tutela.cybersift.io" -t 'your-website-url'Perform a scan using a learning model ✨
For more complex websites, you can choose to perform the scan using a learning model ✨ and give it specific instructions on how to browse your website.
Use the -p parameter to give it instructions. E.g Go to 'https://cybersift.io/', and login using the username 'example_user' and the password '1234'. Then navigate to 'Discover' using the side menu
Don’t forget to include your API Key [https://aistudio.google.com/] "--llm-api", type=str, help="Google LLM API Key (or set GOOGLE_API_KEY environment variable)
Warning about using LLM
By using the below LLM to scan your website, please take into considering the rate limit.
Scan with LLM guiding the agent:
docker run dvassallocs/tutela-web -a 'api_key_here' -t 'https://cybersift.io/' -p "Go to 'https://cybersift.io/', and login using the username 'example_user' and the password 'asdasdasd'. Then navigate to 'Discover' using the side menu"⚠️Trial Users
docker run dvassallocs/tutela-web -b "https://trial-backend.tutela.cybersift.io" -a 'api_key_here' -t 'https://cybersift.io/' -p "Go to 'https://cybersift.io/', and login using the username 'example_user' and the password 'asdasdasd'. Then navigate to 'Discover' using the side menu"Proxy Configuration
The scanner supports using a proxy for upload requests to the backend. This is useful when running in environments that require proxy access for outbound connections.
Proxy Usage
Add the --proxy flag with your proxy URL:
docker run dvassallocs/tutela-web -a 'api_key_here' -t 'https://example.com' --proxy 'http://proxy.example.com:8080'Supported Proxy Formats
HTTP proxy:
http://proxy.example.com:8080HTTPS proxy:
https://proxy.example.com:8080With authentication:
http://username:password@proxy.example.com:8080
The proxy will be used for both HTTP and HTTPS requests when uploading scan results to the backend.
IMPORTANT:
The target URL provided via the
-tflag will override the target URL in the OpenAPI/Postman specification, and control which URLs are kept in scope for scanning. Any other URLs that do not fall into scope in the collection will be ignored.The target URL MUST BE REACHABLE from the docker container.
Import OpenAPI Specification
Note: the - at the end of the following command is not a mistake and is necessary
cat /path/to/openapi.yml | docker run -i -a 'api_key_here' -t 'https://google.com' --openapi-spec -Import Postman collection
NB the - at the end of the following command is not a mistake and is necessary
cat /path/to/postman_collection.json | docker run -i dvassallocs/tutela-web -a 'api_key_here' -t 'https://google.com/' --postman-collection -Notes regarding postman
Only postman collections v2.1 are reliably supported
Variables in Postman collection must be defined in the collection, not in the environment or a separate file, example:
//... rest of the collection ...
"variable": [
{
"key": "url",
"value": "www.google.com"
},
{
"key": "path",
"value": "/"
}
]
//... rest of the collection ...Scheduling Web Scans and Cronjobs
To automate web scanning of your sites, please refer to this article as a guide on creating a scheduled task / cronjob.
Tags:
Tutela Web Scanner
Web Scanner Alerts