Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Tool:Detect It Easy

From ReverseEngineering.wiki
Tool
Developer horsicq (Hors) and contributors
Platforms Windows, Linux, macOS
License MIT
Website https://github.com/horsicq/Detect-It-Easy
On this wiki Facts · Code · Notes · Topics

Detect It Easy (DIE) is an open-source (MIT) file-type, compiler, packer and protector identifier for Windows, Linux and macOS whose knowledge lives in readable JavaScript-like .sg signature scripts under db/, a good source of identification markers.

What it is

DIE runs scripts from its db/ folder against a file. Each script is named <kind>_<Name>.<n>.sg and begins with a meta("kind", "Name") line; kinds include compiler, linker, installer, packer, protector, cryptor, joiner, library, game_engine and format. Folders are per file type (db/PE, db/ELF, db/MACH, db/Binary, ...). Scripts call helpers such as PE.compareEP("60E8........") (entry-point bytes with . as wildcard byte, $$$$$$$$ as a relative jump), PE.compareOverlay, PE.findSignature, PE.isSectionNamePresent, PE.isRichSignaturePresent, PE.isImportPositionHashPresent and PE.getRichID. Rules are heuristic: the author of a script can be wrong, so treat results as leads and check the marker yourself.

Using it as a source

The scripts are the most complete public list of byte markers for packers and installers. In db/PE/_Microsoft.6.sg a table maps Rich-header product ids to Visual Studio toolset versions (ids 0x00AA-0x00AF toolset 16.00, 0x00CE-0x00D8 17.00, 0x00E0-0x00EA 18.00, 0x0104-0x010E 19.00 for C/C++ compilers and LTCG/POGO variants; linker ids 0x0078 8.00, 0x0091 9.00, 0x009D 10.00, 0x00CC 11.00, 0x00DE 12.00, 0x0102 14.00); see Format:PE (Portable Executable)/Rich header.

Pages built from these rules: Tool:Inno Setup, Tool:InstallShield, Tool:WiX Toolset, Tool:Advanced Installer, Tool:VMProtect, Tool:Themida, Tool:Enigma Protector, Tool:ASPack, Tool:MPRESS, Tool:Delphi, Tool:MinGW, Tool:Nim, Tool:PureBasic, Tool:AutoIt. Hub: Technique:Identifying the toolchain of a binary.

Code & repositories

  • https://github.com/horsicq/Detect-It-Easy @ fac6bfade82fa35e742de23f30c40b5b97a585b6 · license: MIT
    Signature scripts (db/*.sg) for compilers, installers, packers and protectors; source of the identification facts on the toolchain pages
    Tested on: source read, not run: read the db/PE rules at the pinned commit; not run · checked 2026-10-18; last activity 2026-10-18