Security & Trust Model
This page specifies the RunVero Deployment Trust Model (runvero.trust-model/v1, version 2026-11-14). It explains what RunVero enforces across embedded, self-hosted, and managed Cloud deployments, what remains trusted in each environment, where policy boundaries stop, and how to report security vulnerabilities without needing private repository access.
1. Principal & Component Trust Boundaries
Section titled “1. Principal & Component Trust Boundaries”Every RunVero execution crosses up to nine logical components. Which organization controls each component depends on how you deploy RunVero:
| Component | Role | Embedded (runvero_host) |
Self-Hosted (runvero serve) |
Managed (RunVero Cloud) |
|---|---|---|---|---|
1. Guest Tool (wasm32-wasip2) |
Untrusted LLM-generated code or third-party tool executing inside Wasmtime | Untrusted | Untrusted | Untrusted |
2. Host Sandbox (runvero-host) |
Wasmtime Component Model engine, fuel meter, epoch ticker, StoreLimits, WASI hooks |
Application process | Customer gateway host | RunVero Cloud worker |
| 3. Gateway & Authenticator | Bearer API key hashing (rv_live_* / rv_test_*), tenant quotas, narrow-only request ceilings, X-RunVero-Task-Grant verification |
Caller application | Customer gateway host | RunVero Cloud API plane |
| 4. Worker & Warm Pool | Single-use Store checkout, post-run store destruction, memory ceiling enforcement |
Caller application | Customer gateway host | RunVero Cloud worker pool |
| 5. Credential Broker & Vault | Per-execution rvsec_... placeholders, signing-only HMAC keys, placement checks, response redaction |
Caller memory | Customer env/files/vault | RunVero Cloud KMS envelope vault |
| 6. Audit Sink & Signer | Append-only hash chain (AuditLogSink) and asymmetric DSSE runvero.execution-attestation/v1 signatures |
Caller process | Customer signing key | RunVero Cloud signing key |
| 7. OCI Registry & Cache | Digest-verified .wasm pulls, cosign / Sigstore / Notation signature checks, content-addressed cache |
Customer / registry | Customer / registry | RunVero managed catalog + tenant uploads |
| 8. Artifact Store & Consumer | Virtual /input, /tmp, /output quotas and downstream code reading tool outputs |
Caller application | Caller / operator | RunVero Cloud temporary S3 store + caller |
| 9. Host OS / VM Operator | Kernel, hypervisor, container runtime, hardware clock, root filesystem, network perimeter | Application operator | Customer infra team | RunVero Labs (AWS) |
2. Enforced Controls
Section titled “2. Enforced Controls”- Instruction Fuel & Epoch Deadlines: Every call runs under a deterministic Wasmtime instruction budget (
fuel) and an independent epoch-interruption deadline (timeout_ms) that cancels both compute loops and blocked host I/O (Deterministic Fuel). - Linear Memory & Payload Ceilings: Guest linear memory and table growth are capped per store (
memory_mb, default64 MiBonrunvero run), alongside request-body, response-body (8 MiBdefault), and outbound request-count (64default) limits. Warm-pool instances are single-use: every executed, trapped, cancelled, or timed-out store is discarded rather than recycled dirty. - Default-Deny Networking & Resolve-then-Connect SSRF Guard: Raw sockets and ambient guest DNS are disabled. Outbound HTTP requires explicit
scheme://host:portrules. The host resolves DNS once, rejects loopback, RFC 1918 private, link-local, CGNAT, and cloud-metadata (169.254.169.254) addresses unless private networks are explicitly enabled by the operator, and connects directly to the vetted socket address to prevent DNS-rebinding TOCTOU attacks. - Task-Scoped Action Authorization: Operators and host applications can require signed
runvero.action-policy/v1task grants (X-RunVero-Task-Grant) and single-userunvero.action-approval/v1approvals (X-RunVero-Action-Approval), constraining HTTP methods, canonicalized URL paths, resource identifiers, query/JSON-body fields (such as allowed recipients), and cumulative call/upload budgets before any upstream socket is opened. - Action-Bound Credential Brokering: Secrets are exposed to guests only as per-execution opaque placeholders (
rvsec_...) or kept strictly host-side assigning-onlyHMAC keys (Credential Protection). The host verifies destination bindings, explicit request placement (Authorization/ custom header, query parameter, JSON pointer, orsigning-only), task-grantallowed_credentials, and revocation state before injecting values on the wire. - Verified Component Supply Chain: OCI pulls validate manifest and layer SHA-256 digests, media types, and byte budgets, re-verifying cached blobs before execution, and support cosign PEM keys (with key-fingerprint revocation), offline Sigstore bundles (Fulcio + Rekor), and strict Notation trust policies.
- Bounded Virtual Filesystem: File access is disabled unless opted in. When enabled, guests see only quota-bounded virtual
/input(read-only),/tmp, and/outputtrees with flat, path-traversal-safe filenames—never ambient host directories.
3. Explicit Limitations & Operator Responsibilities
Section titled “3. Explicit Limitations & Operator Responsibilities”Allowed-Destination Abuse
Section titled “Allowed-Destination Abuse”Destination allowlists (--allow-host / allowed_hosts) control where a guest may connect, not what it sends there. Without a task-scoped action grant, a prompt-injected guest permitted to reach https://api.example.com:443 can invoke any endpoint on that origin or transmit guest-visible input data to it. Use task action grants and single-use approvals whenever a tool reaches multi-endpoint APIs (such as GitHub, Slack, email, or ticketing systems).
Credential Placement, Caching, and Redaction Limits
Section titled “Credential Placement, Caching, and Redaction Limits”- Legacy vs. placement-enforced secrets: Destination-only bindings without
--secret-placement(or--require-secret-placement) allow a placeholder to be substituted anywhere in a request to its bound host. Production deployments should set explicit placements (bearer,header:<name>,query:<param>,body:<pointer>, orsigning-only). - Cloud revocation cache window: RunVero Cloud encrypts tenant secrets at rest using AWS KMS envelope encryption. Workers cache decrypted secret metadata for up to 30 seconds; rotating or deleting a secret in the console takes effect across all warm workers after that cache window expires.
- Redaction is defense-in-depth, not information-flow control: The host scrubs exact configured secret strings (4 bytes or longer) and common credential prefixes from stdout, errors, response bodies, and logs. If a guest had direct access to a raw secret and Base64-encoded, compressed, split, or hashed it, string redaction cannot reliably detect the transformed output—which is why secrets are withheld behind host placeholders or
signing-onlypolicies in the first place.
Unsafe & Relaxed Flags
Section titled “Unsafe & Relaxed Flags”Flags such as --allow-all-hosts, --allow-private-networks, --allow-unverified, --insecure-registry, and --outside-manifest intentionally weaken default-deny boundaries for local debugging or controlled internal networks. Never enable them for untrusted agent inputs in production.
Safe Consumption of Guest Outputs & Generated Files
Section titled “Safe Consumption of Guest Outputs & Generated Files”Treat every string, JSON value, Markdown snippet, spreadsheet, or binary artifact produced by a guest tool as untrusted external input:
- Validate tool outputs against expected schemas and byte limits before passing them to downstream parsers, shells, SQL queries, or rendering engines.
- Serve downloaded artifacts from isolated origins or with
Content-Disposition: attachmentandX-Content-Type-Options: nosniff; never render guest-generated HTML or SVG inline in an authenticated application origin.
Execution Attestations, Audit Logs, and Replay Boundaries
Section titled “Execution Attestations, Audit Logs, and Replay Boundaries”- What signatures prove: Portable DSSE + in-toto execution attestations (
runvero.execution-attestation/v1) prove that the holder of the signing private key signed a statement binding the component digest, canonical policy digest, caller/grant references, bounded event counts, and outcome. - What signatures do NOT prove: Cryptographic signatures do not prove host integrity if the machine running Wasmtime or holding
--audit-signing-keyis compromised; they do not prevent a self-hosted operator from omitting an entire unexported log stream unless anchored to external storage (such as S3 Object Lock or caller-held idempotency receipts); andexternal_effect_confirmationis alwaysunconfirmed_by_hostbecause only the downstream service can confirm whether an external write committed. - Bounded telemetry & replay exclusions: Per-execution audit arrays cap retained entries (
32egress denials,64secret dispatches,64action decisions) and disclose exactdropped_count/truncatedflags when exceeded. Execution replay (--record/runvero replay) is off by default, never re-sends network traffic, and excludes wall-clock timeout races, multi-memory components, and non-deterministic host extensions from exact fuel comparison.
Host Compromise & When to Add Process / MicroVM Isolation
Section titled “Host Compromise & When to Add Process / MicroVM Isolation”Wasmtime isolates WebAssembly components inside a memory-safe Rust host process, which is substantially lighter than booting a Linux guest kernel per call. However, all sandboxes inside one OS process share that host process and kernel:
- A vulnerability in Wasmtime’s JIT/runtime, host WASI hooks, or the underlying OS kernel—or root compromise of the host—exposes in-process memory (including active secret vaults and signing keys).
- Recommended hardening: Run
runvero serveas an unprivileged user (runAsNonRoot: true), with a read-only root filesystem, dropped Linux capabilities, strict egressNetworkPolicy/ security groups, and KMS-backed or restricted (0600) key files (Self-Hosting & Deploy). - When to add process or VM boundaries: Separate high-sensitivity tenants, different security classifications, or untrusted native helper workloads into dedicated OS processes or hardware-virtualized microVMs (such as AWS Nitro / Firecracker worker nodes) around the RunVero worker process.
4. Reporting a Vulnerability
Section titled “4. Reporting a Vulnerability”If you believe you have found a security vulnerability in RunVero Core, runvero.dev, or RunVero Cloud, please report it privately before public disclosure:
- Email: [email protected]
- Machine-readable contact (RFC 9116):
https://runvero.dev/.well-known/security.txt
Please include:
- The affected component (
runveroCLI/host,runvero.devconsole/docs, or RunVero Cloud API) and version or URL. - Minimal reproduction steps or proof-of-concept input (do not test against other tenants’ data on RunVero Cloud).
- The boundary crossed and potential impact.
Response targets:
- Acknowledgement: within 48 hours of receipt.
- Initial triage & severity assessment: within 7 calendar days.
- Coordinated disclosure: we work with reporters on a mutually agreed remediation and advisory timeline and do not pursue legal action against good-faith security research that respects tenant privacy and service availability.