> For the complete documentation index, see [llms.txt](https://docs.hex-rays.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hex-rays.com/9.1/user-guide/signatures/makesig.md).

# Makesig

Built-in Makesig plugin is a tool for generating FLIRT signatures from a current database.

{% hint style="info" %}
The content here was a part of the [blog article](https://hex-rays.com/blog/an-overview-of-the-makesig-plugin/)
{% endhint %}

## How to make signatures from working database?

1. Export the patterns from the database into a `.sig` file;
2. Re-import the `.sig` into the target database.

## Example

Let’s see how that would work in a real scenario. Imagine working on a long-term reversing project with frequent new versions. With the makesig plugin, we can migrate the carefully curated list of functions that we already reverse-engineered and exported as a signature file, into the current binary (given that compiler flags didn’t change too much between releases). Let’s say we identified an interesting function In the older release (source) binary and wanted to port that information to the newer binary:

![](https://2148706108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8M5PHYsEEeI7qsOcPAD%2Fuploads%2Fgit-blob-39e92731fafac1f53344024584125da0f584a0b9%2Fmakesig.png?alt=media)

We can export a signature file for this function via menu item **File -> Produce File -> Create SIG file...**

![Create .sig file dialog](https://2148706108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8M5PHYsEEeI7qsOcPAD%2Fuploads%2Fgit-blob-af6ce2ee9eb2c120f3775a651acc17e1f5b5d180%2Fcreate-sig-file.png?alt=media)

Then, in the new binary file, we can import this signature file in the Signatures window:

![Import signature](https://2148706108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8M5PHYsEEeI7qsOcPAD%2Fuploads%2Fgit-blob-525e7b63a3da3a182ef0252822fb8316b83befcf%2Fimport-signature.png?alt=media)

As we can see, IDA applies the signature and reports that it found a match in the new database! And indeed, we can find the function, labeled as a library function, because its function name came from the signature file:

![Applied signature](https://2148706108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8M5PHYsEEeI7qsOcPAD%2Fuploads%2Fgit-blob-bac1db65c7024d6d06a681715509e50f199ee4a7%2Fapplied-signature.png?alt=media)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hex-rays.com/9.1/user-guide/signatures/makesig.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
