# website-script-risk

### Overview

* **Key:** `website-script-risk`
* **Name:** Website Script Risk
* **Triggers when:** The risk rating of a script changes from low to medium or high

### Fields

| Field        | Type    | Description                 |
| ------------ | ------- | --------------------------- |
| detail       | string  | Hostname of the script link |
| host         | string  | Hostname of the script link |
| risk         | integer | Risk rating                 |
| risk\_reason | string  | Reason of the risk rating   |
| scan\_id     | string  | ID of the scan              |
| target\_id   | integer | ID of the target            |
| url          | string  | URL of the script           |

### Example data

```json
{
  "detail": "www.example.com",
  "host": "www.example.com",
  "risk": 2,
  "risk_reason": "Not HTTPS",
  "scan_id": "202101010000x1Xx2Xx3Xx4Xx5Xx6Xx7",
  "target_id": 123456,
  "url": "http://www.example.com/example.js"
}
```
