# Yara

<figure><img src="/files/s6gaiCoYkJ8IJvQdZFWu" alt=""><figcaption><p>The Yara View</p></figcaption></figure>

The Yara View provides access to the Yara Rule support that's built into ImHex. It lets you choose one or more rule files and matches the entire data against them.

For more information about how to use and write Yara rules, check out their [Documentation](https://virustotal.github.io/yara/).

### File Chooser

Before any matching can be done, first select one or more Yara Rule files. This is done by pressing the `+` button which opens the Choose file dialog. Either select a file from the provided list there or click on `Browse...` to open a regular file picker. To remove a file from the list again, click the `-` button.

### Matching

To now match against the selected set of Rules, click the `Match Rules` button. This will execute all the Rules in order and at the end displays the results in the `Matches` table below. Clicking on a row jumps to this Match in the Hex Editor View.

If any Rule uses Yara's `console` module, its output will be displayed in the console below the matchs table.


---

# 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://docs.werwolv.net/imhex/views/yara.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.
