> For the complete documentation index, see [llms.txt](https://docs.whitespots.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whitespots.io/appsec-portal/features/auto-validator/rule-creation.md).

# Rule creation

{% hint style="info" %}
You can **export** and **import** selected validation rules in JSON format.
{% endhint %}

To export, select the desired rules and click the **Export** button:

<img src="/files/IXzc8haIx4JRlZHhCXAJ" alt="" data-size="original">

To import, click the '**Import**' button and drag and drop the JSON file containing the validation rules:

<img src="/files/rfnIGIibLDn0yJpySgb4" alt="" data-size="original">

1. Add new rule for validation:

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

* decide what to do with findings if the right conditions are met: **reject, confirm, no, temporarily accept risk or permamently accept risk .** If **сonfirm** is selected, the validator will automatically create corresponding tasks in Jira. If **reject** is selected, findings will be excluded from future checks. If **No** is selected, entered **tag** or/and **group** will be assigned to findings in accordance with rule;
* automatically add tags to validated findings;
* automatically add group to validated findings;
* set conditions: specify the value you want to find or exclude, choose where to search (in the *title*, *description*, *file path, branch,* *scanner* name, *dependency*, *vulnerable* *url*, *import* *source* (internal or external at your option);
* you can always combine conditions through **junction**, just click on the plus button.

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

{% hint style="info" %}
Get a quick overview of the potential impact of your rule with the *affected findings list* in the Auto Validator's **rule creation view**.
{% endhint %}

2. Set the **launch frequency** with which you want the rules to be applied (in minutes):

<figure><img src="/files/4E6iWDtwoNotPXFoohXO" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Note that changing in the execution frequency may require a **service restart** or the **creation of new rules** to apply to existing data.
{% endhint %}

3\. The validator finishes **before** you even think about making a *coffee*! ☕️

<figure><img src="/files/8UPvnN1w8wqbYKTxBkKv" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please note that the Auto Validator feature is limited to one validation rule in the free license. If you wish to use **more than one rule**, you will need to **upgrade to a paid license**.
{% endhint %}
