matcha icon indicating copy to clipboard operation
matcha copied to clipboard

FEAT: Plugin marketplace should verify plugin integrity

Open andrinoff opened this issue 7 months ago • 2 comments

Is your feature request related to a problem?

Plugins installed via matcha install <url> or the marketplace UI are downloaded and executed without any verification of authenticity or integrity. There is no checksum validation, no signature checking, and no sandboxed preview. A compromised plugin source or MITM attack could inject malicious Lua code.

Describe the solution you'd like

At minimum:

  • Add SHA-256 checksums to plugins/registry.json for each plugin
  • Verify the checksum after download before installing
  • Show the user the plugin source and request confirmation before installation

Ideally:

  • Add plugin signing with a trusted key
  • Verify signatures before installation

Describe alternatives you've considered

Relying solely on the Lua sandbox (no os, io, debug libs). While this limits damage, plugins still have HTTP access (matcha.http()) which could be used to exfiltrate data visible through the plugin API (email subjects, recipients, etc.).

Additional context

The current plugins/registry.json has no integrity fields — just name, title, description, file, and optional URL.

andrinoff avatar Apr 15 '26 19:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 16 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 30 '26 05:05 floatpanebot