Start here

Why Plugins Are Untrusted

A plugin is a native executable running with your permissions. What the market does about that, what it refuses to pretend, and the threat model in one table.

security5 min readsnapshot

A SCORPIOX BOT plugin is a native executable. It is not a sandboxed widget, not a browser extension and not an interpreter script. When a user installs one, the operating system runs that binary with the node user's own permissions, in the node user's own home directory, with the node user's own environment. Everything that follows in this documentation follows from that one fact.

What a plugin actually is

A plugin is a single file whose name begins with plugin_:

plugin_<name>        POSIX (Linux, macOS)
plugin_<name>.exe    Windows

It lives in one of exactly four places on a node:

DirectoryMeaning
/workspace/.scorpiox/pluginspersistent across container restarts on a BotCloud container
~/.scorpiox/pluginsper-user on a Mesh laptop or desktop (Windows: %LOCALAPPDATA%\scorpiox\plugins)
$BOT_PLUGIN_DIRexplicit override set by an operator
the scorpiox-bot-api directorythe node API's own directory, for operator installs

scorpiox-server resolves these directories live, on every request, with no restart of anything. Dropping a file into the directory is the entire installation step. Deleting it is the entire uninstall step. There is no registry, no signature check at load time, and no capability gate inside the server.

That design is deliberate. It is also the reason this page exists.

The three things a plugin can do to you

1. It runs as you. A plugin inherits your HOME, your PATH, your SSH agent socket, your cloud credentials in ~/.aws or ~/.config, your Git tokens, and your project checkouts. A plugin that reads ~/.ssh/id_ed25519 and posts it somewhere is doing nothing the operating system forbids. There is no seccomp profile, no AppArmor label and no container boundary between a plugin and your data.

2. It is long-lived. A plugin is an ordinary process. It can fork, it can open a listening socket on a loopback port, it can install a cron entry, it can write a file into ~/.scorpiox/plugins for the next session. It is invoked per request by the node API, but nothing forces it to exit at the end of one, and nothing stops it doing work before it produces its answer.

3. It answers your browser. The HTML a plugin returns is rendered in the SCORPIOX BOT chat surface, inside the same origin that holds your session. Output is escaped by the server before it reaches the page, but a plugin that returns a Content-Type: text/html response with script content is returning content your browser will execute in the chat frame.

What the market does about it

The market does not pretend to solve untrusted code. It removes the ambiguity instead, in four ways.

Every plugin is open source, and the clone URL is on the card

Each plugin in the catalogue is backed by a real Git repository on plugingit.scorpiox.net whose name is scorpiox-bot-plugin-<slug>. Anonymous git clone works; no account, no token, no invitation. The catalogue shows:

  • the clone URL,
  • the exact commit SHA the published artifacts were built from,
  • the build command that produced them.

If the commit SHA on the card does not match the commit you cloned, you are not looking at the same code. That is a check you can perform in ten seconds and it is the single most useful integrity control on this site.

Every plugin discloses its capabilities

Each catalogue entry carries a capabilities array and a trust_notice string naming what the plugin touches: which command it runs through popen, which filesystem path it reads, whether it opens a local port, whether it makes outbound network calls at all. The list is written by the author and audited at review, and it is short on purpose. Read it before you install, not after.

A capability list is a claim, not a proof. The source is the proof. The list exists so you know which twenty lines to read first.

Two consumption tracks, both first class

Track A — source first. Clone, read, modify, compile locally. This is the default for anyone who runs a plugin on a machine that holds real work.

Track B — pre-built artifacts. Download a binary for your platform from dist.scorpiox.net/bot-plugins/<slug>/<version>/, verify its SHA-256 against the manifest, install it. This is for a slim container with no compiler, or a Windows laptop without a toolchain.

Both tracks are legitimate. Both are on the same card. The market does not hide the source behind the binary, and does not force a compiler on someone who only wants a disk usage widget.

Isolation is a per-node decision

The final boundary is the node, not the market. A plugin installed into a BotCloud container can only reach that container's filesystem, that container's credentials and that container's network. A plugin installed on a laptop with your whole life on it can reach your whole life. The recommendation is therefore structural rather than editorial:

  • Run untrusted plugins inside a disposable container. A BotCloud container is exactly that: a Linux box with its own home directory, its own Git server and no inbound ports.
  • On a real machine, prefer Track A. Clone the source, read it, compile it yourself. If you cannot read C, ask your agent to audit it and show you the diff.
  • Never install a plugin you cannot name the author of. The catalogue links a repository; a repository has a history; a history has an author.

The threat model in one table

ActorGoalControl
Malicious plugin authorRead credentials, exfiltrate source, persistSource review, commit pinning, disposable node
Compromised upstream buildShip a binary that differs from its sourceSHA-256 manifest, build from source yourself
Typosquatted pluginGet installed under a familiar nameEvery slug resolves to a plugingit repository; check the owner
Plugin that outgrows its disclosureQuietly gain a capabilityCapability list is diffable between versions; re-read it on update
Operator mistakeInstall into the wrong directoryplugin_manage refuses to uninstall operator plugins, and reports the resolved install directory

What no control here does

There is no signature chain to a certificate authority. There is no reputation score, no download counter used as a trust signal, and no automated malware scanner standing between a repository and your node. A commit SHA proves the bytes you have are the bytes that were published; it proves nothing about intent.

The market's position is that this is honest. A plugin market that promises sandboxing it does not implement is worse than one that tells you the truth and hands you the source.

  • Agent Clone, Audit and Customize — the exact prompt and procedure for having an agent do the review for you.
  • One-Click Install and Isolation — how the installer works, what it verifies, and where it puts the file.
  • The C99 Three-Mode Plugin SDK — the whole contract a plugin has to implement, in one page of C.