Morphic Kernel executes code modules. Be explicit about what is and is not a security boundary:
- The core
src/sandbox (sandboxEvaluator.js) uses Node'sworker_thread+vmwith arequirewhitelist and an execution timeout. This is a validation gate, useful against accidental crashes and obvious misbehavior. It is not a hardened boundary against a determined attacker — Node'svmis not designed to contain hostile code. - For untrusted code, use the
wasm-runtime/path. WebAssembly isolates provide a real capability boundary: no filesystem, network, or host memory access unless explicitly granted, plus gas metering to bound execution.
- Run the kernel as a non-root user, in a restricted container, with a read-only root filesystem where possible.
- Place the ingest endpoint behind authentication and rate limiting.
- Prefer the WASM runtime for any code you did not author.
- Persist and monitor the provenance ledger; verify the chain on startup.
Please report security issues privately to the maintainer rather than opening a public issue. Include reproduction steps and impact. We aim to acknowledge within a few business days.