> 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="https://3069717380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M81VrXQrfSaYjNIFOtt%2Fuploads%2FlOCBRB68Rq4Q4b2O5swY%2Fautoval1(2).gif?alt=media&amp;token=8856023e-42d0-47a9-8321-fd70d80f996d" alt="" data-size="original">

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

<img src="https://3069717380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M81VrXQrfSaYjNIFOtt%2Fuploads%2FOiqQbSe0X6e9iTEIJGZ9%2Fautoval3.gif?alt=media&amp;token=b530d23f-f31a-4a9d-88e2-4e08767ee194" alt="" data-size="original">

1. Add new rule for validation:

<figure><img src="https://3069717380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M81VrXQrfSaYjNIFOtt%2Fuploads%2FQQK3RcgUFtisVAo40Xdu%2Fimage.png?alt=media&amp;token=921c4189-dbad-44ea-af38-78af7e155c5b" 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="https://3069717380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M81VrXQrfSaYjNIFOtt%2Fuploads%2FQHF4USoDWYIRSIw4MvoL%2Fautovalidator.gif?alt=media&amp;token=b940f2b6-8040-4cd1-b7be-9c9bdf005b47" 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="https://3069717380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M81VrXQrfSaYjNIFOtt%2Fuploads%2F1isjUbxh5buOJQoG1AD9%2Fimage.png?alt=media&amp;token=24e8fcea-124c-4bca-8e4d-38217ffcf81e" 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="https://3069717380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M81VrXQrfSaYjNIFOtt%2Fuploads%2FbVrfR1hAbZgpP0Ppd5Qg%2Fimage.png?alt=media&amp;token=da711f99-7f06-4035-910b-86036fab351f" 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 %}
