# 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.

 ![](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2MwNWNhZDYzLTA0ZmEtNGFmZC04NjMwLTI3MjNjZDYwZWZkNS8wNzQwNzg4OC01NTViLTQyN2EtOTc3ZC1mOTRlOWFkMGVjMjQvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTU0NDg3MDAsImV4cCI6MTc5NTUzNTEwMH0.hubHVyKS_E6Zy2dqtg4bQxe4WVyi9ifHbZUWtVHOUMY " =1864x917")

## Requirements


:::tip
**Create your API Keys**

* Login to your Tutela instance
* Go to **Admin** section > **Agent Management**
* Add ‘**API Key**’ and give it a friendly name `WebScanner`
* Repeat 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:

```bash
docker pull dvassallocs/tutela-web
```

### Running the container

* Simple web scan:

```bash
docker run dvassallocs/tutela-web -a 'api_key_here' -t 'YOUR-WEBSITE-URL'
```


:::warning
**⚠️Trial Users**

```bash
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 ✨


:::tip
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
**Warning about using LLM**

* By using the below LLM to scan your website, please take into considering the [rate limit](https://ai.google.dev/gemini-api/docs/rate-limits).

:::

* Scan with LLM guiding the agent:

```bash
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"
```


:::warning
**⚠️Trial Users**

```json
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:

```bash
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:8080`
* HTTPS proxy: `https://proxy.example.com:8080`
* With 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.

### 


+++++++


:::warning
IMPORTANT:

* The target URL provided via the `-t` flag 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


:::tip
**Note:** the `-` at the end of the following command is not a mistake and is necessary

:::

```bash
cat /path/to/openapi.yml | docker run -i -a 'api_key_here' -t 'https://google.com' --openapi-spec -
```

### 


++++++
+++++++
Import Postman collection


:::tip
**NB** the `-` at the end of the following command is not a mistake and is necessary

:::

```bash
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:

```json
    //... 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](https://outline.cybersift.io/s/support-wiki/doc/agent-schedules-60RxaJQZUb) on creating a scheduled task / cronjob.


---


:::info
**Tags:**

* Tutela Web Scanner
* Web Scanner Alerts

:::

---

**Documents**

- [1. Getting Started](https://outline.cybersift.io/s/tutela-docs/doc/1-getting-started-wi972eTn7N)
- [2. Vulnerability Scanning](https://outline.cybersift.io/s/tutela-docs/doc/2-vulnerability-scanning-giL9tJRfit)
- [3. Asset Management](https://outline.cybersift.io/s/tutela-docs/doc/3-asset-management-TVe3GfeqgX)
- [4. Online Presence Monitoring](https://outline.cybersift.io/s/tutela-docs/doc/4-online-presence-monitoring-7dAIDIi6OT)
- [5. Reporting](https://outline.cybersift.io/s/tutela-docs/doc/5-reporting-xCbDsqRFGR)
- [6. Tutela Integrations](https://outline.cybersift.io/s/tutela-docs/doc/6-tutela-integrations-GJJVFdWlTI)
- [7. Porta](https://outline.cybersift.io/s/tutela-docs/doc/7-porta-0KQ0fvqN3u)
- [FAQ](https://outline.cybersift.io/s/tutela-docs/doc/faq-IkXHcKeIFy)