> For the complete documentation index, see [llms.txt](https://support.attackforge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.attackforge.com/app/getting-started/vulnerability-slas.md).

# Vulnerability SLAs

## Overview <a href="#overview" id="overview"></a>

A remediation SLA (service level agreement) sets how long a vulnerability can stay open before it must be fixed. Every vulnerability can have a **remediation SLA**, so everyone knows which fixes are most urgent, and nothing is left to drift.

AttackForge makes it easy to filter, find, act on and export vulnerabilities as their SLA deadlines approach. Every SLA is colour-coded and has a countdown, so you can see at a glance how much time is left.

Administrators turn on SLAs in the **Administration** module.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FRwufeTfx8FLpOYizPNiL%2Fvulnerability-slas-at-a-glance.svg?alt=media&amp;token=89b8d191-0b63-496d-b3e8-470dd4abddab" alt=""><figcaption></figcaption></figure>

In this example *(the rules and days are examples)*, a Critical finding on an API doesn't match rule 1, which is only for web apps. It matches rule 2, so it gets a 15-day SLA, and rules 3 and 4 aren't checked.

## Why use SLAs <a href="#why-use-slas" id="why-use-slas"></a>

* **Focus on what's most urgent.** Fix the most serious vulnerabilities first, within agreed timeframes.
* **Clear expectations.** Remediation owners know exactly when each fix is due.
* **Measurable performance.** Track how many fixes are delivered on time, for each team, asset or client.
* **Compliance.** Many standards and policies set remediation timeframes. SLAs show whether you're meeting them.
* **Automatic follow-up.** Reminder and escalation emails can be sent before and after an SLA is breached.

## Who benefits <a href="#who-benefits" id="who-benefits"></a>

| Who                                   | How                                                        |
| ------------------------------------- | ---------------------------------------------------------- |
| **Remediation owners and developers** | Know what to fix first, and by when                        |
| **Security and delivery managers**    | See which vulnerabilities are close to, or past, their SLA |
| **Risk and compliance teams**         | Show that vulnerabilities are fixed within policy          |
| **Clients**                           | See that fixes are tracked against agreed timeframes       |
| **Administrators**                    | Set SLA rules once, and have them applied automatically    |

## Set up SLAs <a href="#set-up-slas" id="set-up-slas"></a>

SLAs are set up with a rules engine. Each SLA has a rule that decides which vulnerabilities it applies to, based on vulnerability, asset and project data. For example, Critical vulnerabilities on internet-facing web apps might get a 15-day SLA.

1. Go to the **Administration** module, and turn on vulnerability SLAs from within **Projects > Vulnerabilities**
2. Create an SLA, and give it a name and a number of days.
3. Write the rule that decides which vulnerabilities it applies to. See "Write SLA rules" below.
4. Put your SLAs in order. Rules are checked from the top down.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FRyiwFFJEJ7cxkU5D8YOB%2FScreenshot%202026-11-06%20at%204.21.13%E2%80%AFpm.png?alt=media&amp;token=1bcf3462-a6b4-478f-81cb-7898a65f591b" alt=""><figcaption></figcaption></figure>

## How rules are applied <a href="#how-rules-are-applied" id="how-rules-are-applied"></a>

* Every rule works out to either **true** or **false**.
* If a rule is true for a vulnerability, its SLA is applied.
* Rules are checked from **top to bottom**, and the **first** rule that matches wins. Later rules aren't checked for that vulnerability.

Because the first match wins, put your most specific rules at the top, and your most general rules at the bottom.

## Apply SLAs on a project <a href="#apply-slas-on-a-project" id="apply-slas-on-a-project"></a>

Each project has an SLA apply method: **Automatic** or **Manual**.&#x20;

Automatic will handle automatically assigning the SLA when the vulnerability is made visible.

Manual will skip this step and rely on the Project Coordinator or Administrator to run the SLA rules against the vulnerability when desired, such as at the end of a test. See [Creating and managing projects](https://support.attackforge.com/app/getting-started/creating-and-managing-projects).

## Manage a vulnerability's SLA <a href="#manage-a-vulnerabilitys-sla" id="manage-a-vulnerabilitys-sla"></a>

Administrators and Project Coordinators can update a vulnerability's SLA deadline, or apply the SLA rules again. See [Updating vulnerabilities](https://support.attackforge.com/app/getting-started/updating-vulnerabilities).

## Write SLA rules <a href="#write-sla-rules" id="write-sla-rules"></a>

A rule is made of **expressions**. Each expression has at least one datapoint and one operator. You can group expressions to build more complex rules.

### Datapoints <a href="#datapoints" id="datapoints"></a>

#### **Vulnerability**

| Datapoint                         | Type         |
| --------------------------------- | ------------ |
| `vuln.id`                         | string       |
| `vuln.created`                    | date         |
| `vuln.modified`                   | date         |
| `vuln.priority`                   | string       |
| `vuln.title`                      | string       |
| `vuln.status`                     | string       |
| `vuln.tags`                       | string array |
| `vuln.zeroday`                    | string       |
| `vuln.likelihood_of_exploitation` | integer      |
| `vuln.ready_for_retest`           | string       |
| `vuln.visible`                    | string       |
| `vuln.alternate_id`               | string       |
| `vuln.cvssv3_vector`              | string       |
| `vuln.cvssv3_base_score`          | string       |
| `vuln.cvssv3_temporal_score`      | string       |
| `vuln.cvssv3_environmental_score` | string       |
| `vuln.custom_tag_<key>`           | string       |
| `vuln.custom_field_<key>`         | string       |

#### **The vulnerability's writeup**

| Datapoint                         | Type         |
| --------------------------------- | ------------ |
| `vuln.library_id`                 | string       |
| `vuln.library_created`            | date         |
| `vuln.library_modified`           | date         |
| `vuln.library_code`               | string       |
| `vuln.library_tags`               | string array |
| `vuln.library_import_source`      | string       |
| `vuln.library_import_source_id`   | string       |
| `vuln.library_custom_tag_<key>`   | string       |
| `vuln.library_custom_field_<key>` | string       |

#### **The affected asset**

| Datapoint                  | Type   |
| -------------------------- | ------ |
| `asset.id`                 | string |
| `asset.created`            | date   |
| `asset.modified`           | date   |
| `asset.name`               | string |
| `asset.external_id`        | string |
| `asset.type`               | string |
| `asset.details`            | string |
| `asset.custom_field_<key>` | string |

#### **The project**

| Datapoint                    | Type   |
| ---------------------------- | ------ |
| `project.id`                 | string |
| `project.created`            | date   |
| `project.modified`           | date   |
| `project.name`               | string |
| `project.code`               | string |
| `project.start_date`         | date   |
| `project.end_date`           | date   |
| `project.organization_code`  | string |
| `project.vulnerability_code` | string |
| `project.custom_tag_<key>`   | string |
| `project.custom_field_<key>` | string |

Replace `<key>` with the custom tag's or custom field's key.

### Operators <a href="#operators" id="operators"></a>

| Operator       | Meaning                                                                    |
| -------------- | -------------------------------------------------------------------------- |
| `NOT` or `!`   | Not                                                                        |
| `AND` or `&&`  | And                                                                        |
| `OR` or `\|\|` | Or                                                                         |
| `==`           | Equal in value                                                             |
| `===`          | Equal in value and type, for example the number `5` but not the text `"5"` |
| `!==`          | Not equal                                                                  |
| `>`            | Greater than                                                               |
| `<`            | Less than                                                                  |
| `>=`           | Greater than or equal to                                                   |
| `<=`           | Less than or equal to                                                      |
| `( )`          | Groups expressions                                                         |

### Examples <a href="#examples" id="examples"></a>

| Rule                                                                  | Applies the SLA when                                                                |
| --------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `vuln.priority == "Critical"`                                         | The vulnerability is Critical                                                       |
| `vuln.priority == "Critical" OR vuln.priority == "High"`              | The vulnerability is Critical **or** High                                           |
| `vuln.priority == "Critical" AND vuln.likelihood_of_exploitation > 5` | The vulnerability is Critical **and** its likelihood of exploitation is more than 5 |

This rule applies the SLA when the vulnerability is Critical and affects a web app, **or** is High and affects an API:

```
((vuln.priority == "Critical") AND (asset.type == "Web App")) OR ((vuln.priority == "High") AND (asset.type == "API"))
```

## Send emails about SLAs <a href="#send-emails-about-slas" id="send-emails-about-slas"></a>

Use custom time-based emails to follow up on SLAs automatically. For example:

* remind remediation owners when an SLA will be breached in 7 days
* escalate Critical and High vulnerabilities that breached their SLA two or three days ago

See [Custom time-based emails](https://support.attackforge.com/app/getting-started/notifications#custom-time-based-emails).

## Tips <a href="#tips" id="tips"></a>

* **Put your most specific rules first.** The first matching rule wins, so a general rule at the top would stop more specific rules below it from ever applying.
* **End with a catch-all rule**, such as one for Low and Info vulnerabilities, so every vulnerability gets an SLA. A vulnerability with no matching rule has no SLA.
* **Use asset and project data** to set tighter SLAs for your most important systems, such as internet-facing apps.
* **Line your SLAs up with your remediation policy**, so reports show compliance with it.
* **Set up reminder and escalation emails**, so owners hear about SLAs before they're breached.
* **Test new rules on a few vulnerabilities** before relying on them.

## FAQ <a href="#faq" id="faq"></a>

**Who can turn on SLAs?** Administrators, in the Administration module.

**What happens if a vulnerability matches more than one rule?** The first matching rule, from the top, is applied. Later rules aren't checked.

**Can I use asset or project details in a rule?** Yes. Use the `asset.` and `project.` datapoints, including custom fields and tags.

**Can I change the SLA on one vulnerability?** Administrators and Project Coordinators can update a vulnerability's SLA deadline, or apply the rules again.

**How do I remind people before an SLA is breached?** Set up a custom time-based email that filters on the SLA date.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Notifications: custom time-based emails](https://support.attackforge.com/app/getting-started/notifications#custom-time-based-emails)
* [Updating vulnerabilities](https://support.attackforge.com/app/getting-started/updating-vulnerabilities)
* [Creating and managing projects](https://support.attackforge.com/app/getting-started/creating-and-managing-projects)
* [Vulnerability scoring systems](https://support.attackforge.com/app/getting-started/vulnerability-scoring-systems)
* [Custom fields and forms](https://support.attackforge.com/app/getting-started/custom-fields-and-forms)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.attackforge.com/app/getting-started/vulnerability-slas.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
