# Risk Score

## Introduction

Each [end user](/application-reference/users/end-users.md) has their own risk score based on the number of attacks they've been sent and the number of attacks they've failed. This reputation level can be leveraged in campaigns to send recipients specific attacks and trainings based on their risk score.

The formula for determining risk score is:

```
(1 - number of attacks failed / number of attacks sent) x 100
```

This number is then displayed as a percentage in the user's portal along with their reputation level:

<figure><img src="/files/fES17ydFsmXGg6lGZLcI" alt=""><figcaption></figcaption></figure>

***

## Custom ranges

Reputation level thresholds can be set by Lucy administrators under **Users > Risk Score**:

<figure><img src="/files/YKUsCNP15I2drqKo4Zt4" alt=""><figcaption></figcaption></figure>

The levels shown above are the default configuration. Administrators can add or remove levels as desired and define the rating and minimum number of attacks necessary to reach that level.&#x20;

{% hint style="success" %}
Up to 10 ranges can be defined.
{% endhint %}

You may also define ranges on a per-client basis:

<figure><img src="/files/g3YsNmhdmu4QEzYXKmcF" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.lucysecurity.com/application-reference/users/risk-score.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
