Please report security issues privately — do not open a public issue for an unpatched vulnerability.
- Use GitHub's "Report a vulnerability" (Security → Advisories) on this repository: https://github.com/htcom-code/protrus/security/advisories/new, or
- email the maintainer at htjulia1@gmail.com.
Include a description, the affected version or commit, the host topology (execution_mode), and
a minimal reproducer (a failing test, or a bootstrap JSON + signed manifest + REST/MCP calls).
We will acknowledge the report and work with you on a fix and coordinated disclosure.
Protrus is pre-1.0. Fixes land on the active line, and the public API may change between minor versions.
| Version | Supported |
|---|---|
| 0.1.x | Yes |
Protrus hosts pre-built, signed WebAssembly components. It never compiles or evaluates source. What a module can reach is decided by the host, not by the module:
- Wasm sandbox. A component sees only the WIT imports the host links:
config,observe,control,bridge,db(and the stream world for ABI 2). There is no filesystem, socket, clock or process access, and every request runs under a fuel budget and a deadline. - Signed artifacts. An artifact's manifest and files are covered by an Ed25519 signature
that is verified against the host's trust store before it deploys (
gate.signature.requireddefaults to true). A signature that is present is always verified, even when signatures are not required. Worker and OCI launches verify again at every launch. - Promotion gates. Signature → unit tests (opt-in) → capability policy → candidate verification. A candidate that fails never replaces the serving revision.
- Capability grants. A module gets a capability only when its signed manifest asks for it
and the host's policy allows it. Database access is scoped (
db+ a signedscope); host services (bridge) are reachable only when the manifest declares them and the host registered them. - Process and container isolation.
workerruns modules in separate processes;containerruns them in OCI containers with a read-only root filesystem, all Linux capabilities dropped,no-new-privileges, PID and memory limits, a non-root user, and an--internalnetwork reached only through a host-verified gateway. Secrets reach workers as owner-only files or mounts, never through argv, environment variables or container labels. - The control plane is a deployment entry point.
/platformand MCP can install code. MCP is off by default (mcp.enabled), debug tools too (mcp.debug.enabled). Protrus does not authenticate callers itself: the embedding application supplies the identity and theControlAuthorizer. Never expose/platformor MCP unauthenticated on an untrusted network.
In scope — Protrus bugs with security impact:
- a gate that can be bypassed: an unsigned or untrusted artifact that deploys or launches, a capability granted that the manifest or policy did not allow, or a failing candidate that ends up serving;
- a component escaping the Wasm sandbox, or reaching a host import it was not granted;
- a module reaching another module's database scope, host services it did not declare, or the host's secrets;
- worker or container isolation that fails to contain (writable root filesystem, kept capabilities, a route around the internal network or the gateway);
- control-plane endpoints reachable or authorizable when they should not be (MCP or debug tools active while disabled, authorization skipped);
- a module exhausting host memory, threads or processes beyond its configured limits.
Out of scope:
- a module doing what its granted capabilities allow (a granted
dbscope or bridged service is the host's decision); - an embedding application that exposes
/platformor MCP without authentication; - denial of service by an authorized operator (deploying many modules, raising limits);
- vulnerabilities in third-party dependencies with no Protrus-specific exploit path — report
those upstream (CI runs
cargo auditon every change).