# Add custom YARA signatures

Custom YARA signatures can be saved to the `data/yara` directory. Any valid YARA rule saved here will be loaded when the `yara` scanner loads.

Vigil returns the following information when a prompt matches a YARA signature:

* Rule name
* Rule tags
* Rule category
  * "category" metadata field

#### Sample Rule Template

<pre><code>rule MyRule_custom: customTag
{
    meta:
        category = "Prompt Injection"
        description = "Detects prompts that contain some custom strings"
    strings:
        ...
<strong>    condition:
</strong><strong>        ...
</strong>}

</code></pre>
