Packaging Format

A Plugin Archive is a ZIP archive that contains an IDA plugin and its associated ida-plugin.json metadata file. The metadata file should be found in the root directory of the plugin within the archive.

For example:

plugin.zip
├── ida-plugin.json
└── plugin.py

Or for a native plugin:

plugin.zip
├── ida-plugin.json
├── plugin.so
├── plugin.dylib
└── plugin.dll

ida-plugin.json

The ida-plugin.json file is the marker for an IDA Pro plugin. A typical ida-plugin.json file might look like this:

{
  "IDAMetadataDescriptorVersion": 1,
  "plugin": {
    "name": "oplog",
    "entryPoint": "oplog_entry.py",
    "version": "0.1.2",
    "idaVersions": ["9.1", "9.2"],
    "description": "oplog is an IDA Pro plugin that records operations during analysis.",
    "license": "Apache 2.0",
    "categories": [
      "ui-ux-and-visualization"
    ],
    "pythonDependencies": ["pydantic>=2"],
    "urls": {
      "repository": "https://github.com/williballenthin/idawilli"
    },
    "authors": [{
      "name": "Willi Ballenthin",
      "email": "[email protected]"
    }],
    "keywords": [
      "activity-tracking",
      "workflow-analysis",
      "reverse-engineering-methodology",
      "ai-training-data",
      "analysis-visualization"
    ]
  }
}

And a minimal ida-plugin.json could look like this:

In addition to the primary fields described initially on the Plugin Submission Guide, HCLI compatibility added new, required fields in ida-plugin.json:

  • version: the version of the plugin archive

  • urls.repository: the repository that publishes the plugin

  • authors (or maintainers): name and/or email. Social media handles are ok!

And there are new optional fields:

  • .plugin.pythonDependencies is a list of packages on PyPI that will be installed

  • .plugin.keywords is a list of terms to help users searching for plugins

  • .plugin.platforms is recommended, defaults to all platforms. The possible values are: windows-x86_64, linux-x86_64, macos-x86_64, and macos-aarch64.

  • .plugin.license for the code license of your project

  • .plugin.settings is a list of descriptors of settings

If there's a problem with the ida-plugin.json file, then the plugin is invalid and won't work with the repo. Unfortunately even things like trailing commas will break strict JSON parsers like the one used by HCLI. So, you can use hcli plugin lint /path/to/plugin[.zip] to check for problems and suggestions.

Shared Settings

HCLI is aware of settings that plugins declare in ida-plugin.json and prompts users for their value during installation. The settings are written into ida-config.json and can be queried at plugin runtime using the ida-settingsarrow-up-right (v3) Python package:

Plugin authors are encouraged to adopt this configuration system, as it provides a centralized way to manage edits from both the CLI and (eventually) the GUI, users don't have to manually edit source code/config files, and the data can be easily exported/imported.

circle-info

Coming Soon

The associated IDA plugin ida-settings-editor that lets users configure plugin settings within IDA is not yet available. We plan to introduce it in a future release.

Setting Fields

Each setting in the settings array supports the following fields:

Field
Type
Required
Description

key

string

yes

Unique code-level identifier (e.g., "api_key")

type

string

yes

Either "string" or "boolean"

required

boolean

yes

Whether the setting must be provided

default

string/boolean

no

Default value when not configured

name

string

yes

Human-readable name (e.g., "OpenAI API key")

documentation

string

no

Human-readable explanation

validation_pattern

string

no

Regex pattern for string validation

choices

array

no

List of acceptable string values

prompt

boolean

no

Whether to prompt during installation (default: true)

Setting "prompt": false is useful for advanced or niche settings that have sensible defaults and shouldn't clutter the installation experience. These settings can still be configured later via hcli plugin config.

Example settings configuration:

Source Archives and Binary Archives

For many pure-Python IDA plugins, source archives are often sufficient. This means you don't have to create any GitHub Actions workflows; you just have to tag your releases in GitHub.

If you distribute your pure-Python IDA plugin via PyPI, like IPyIDA doesarrow-up-right, then the plugin directory in your source archive becomes very simple. You can put the following content in a subdirectory of the project (preferred), or publish a separate repository for the metadata:

With ida-plugin.json:

And the entry stub:

"Fat" Binary Plugin Archives

Plugin archives can contain multiple compiled versions of a plugin, e.g., foo-plugin.so and foo-plugin.dylib. In this case, the entry point must specify the bare path to the plugin, e.g., foo-plugin, and IDA will append the appropriate extension based on the platform. You don't have to support all platforms. It's acceptable to publish multiple "thin" archives, one for each platform; however, "fat" archives are convenient.

The file extensions must be exactly:

  • .dll - Windows x86-64

  • .so - Linux 86-64

  • _x86_64.dylib - macOS x86_64 (not yet supported by IDA)

  • _aarch64.dylib - macOS aarch64 (not yet supported by IDA)

  • .dylib - macOS Universal Binary, only if Intel/ARM dylibs aren't present. (note: you must use this for macOS currently)

Remember, plugin names must be unique within a plugin archive, which means:

Allowed:

Disallowed:

(uncommon) Multi-Plugin Archives

Because the ida-plugin.json file marks the root of a plugin within the archive, an archive can contain multiple plugins:

Last updated

Was this helpful?