> For the complete documentation index, see [llms.txt](https://docs.werwolv.net/imhex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.werwolv.net/imhex/views/yara.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.werwolv.net/imhex/views/yara.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
