Skip to content

Plugin catalogs ​

A catalog is a list of plugins that a community or a team publishes at an https address. Phantom comes with none: add the catalogs you trust in Settings › Plugins › Catalogs.

What a catalog entry shows ​

Licencethe plugin's licence, as the catalog states it
Sourcewhere its code lives (Open source in the entry's menu)
Publisherwho publishes it
Securitywhere to report a vulnerability in it
Permissionswhat it will ask you to grant
Signed bythe trusted publisher whose key verifies the entry's signature, worked out by Phantom; Not signed by a trusted publisher otherwise
Installedthe version installed here, if any

Everything except the last two comes from the catalog. Phantom computes the signature and installed marks itself, so a catalog cannot claim them.

Installing from a catalog ​

Install downloads the package over https and refuses it unless its SHA-256 is the one the catalog published, so a package swapped on the server after the catalog was written is never installed. The plugin then installs like a file you chose: disabled until you grant its permissions, with the signature applied when it verifies against one of your trusted publishers (Signing plugins), and refused if you require signatures and it has none you trust.

Refresh reads the catalog again. If that fails, the error is shown on the catalog and its last entries stay. Removing a catalog leaves the plugins installed from it.

Publishing a catalog ​

A catalog is one JSON file of at most 1 MiB:

json
{
  "catalog": 1,
  "name": "Example plugins",
  "plugins": [
    {
      "id": "findings-csv",
      "name": "Findings CSV",
      "version": "1.0.0",
      "description": "The findings of a report as a CSV table.",
      "license": "MIT",
      "source": "https://git.example.org/findings-csv",
      "publisher": "Example",
      "security": "security@example.org",
      "permissions": ["reports.read"],
      "package": "https://plugins.example.org/findings-csv-1.0.0.zip",
      "sha256": "<SHA-256 of the zip, 64 hex characters>",
      "signature": "<contents of the .sig file, optional>"
    }
  ]
}

source and package must be https addresses. List each release you want people to install as its own entry, with the digest of exactly the zip you serve; a rebuilt zip needs a new digest and signature.