# 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>


---

# 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://vigil.deadbits.ai/overview/customize-detections/add-custom-yara-signatures.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.
