Skip to content

Security: instavm/tarit

Security

SECURITY.md

Security Policy

Tarit runs untrusted guest workloads inside hardware-virtualized microVMs, and the host is responsible for containing them. We take security reports seriously.

Supported versions

Tarit is pre-1.0 and under active development. Security fixes land on the main branch. There is no long-term support branch yet.

Reporting a vulnerability

Please report vulnerabilities privately. Do not open a public issue, pull request, or discussion for a security problem.

Use GitHub private vulnerability reporting: open the repository Security tab and choose Report a vulnerability. This creates a private advisory visible only to the maintainers.

Please include:

  • the affected component (vmm/, orch/, or proto/, plus the crate and file) and the version or commit,
  • a description of the issue and its impact,
  • reproduction steps or a proof of concept if you have one.

We aim to acknowledge reports promptly and will coordinate a fix and a disclosure timeline with you.

Threat model

Tarit has two trust boundaries.

Guest to host (the VMM, vmm/). The guest is untrusted and assumed hostile. The boundary is crossed via virtio devices (block, net, vsock, serial), MMIO, and shared guest memory. KVM provides the CPU and memory boundary. The host applies the following additional controls.

  • Enforced on the standard orchestrated path: restrictive Unix-socket permissions with SO_PEERCRED checks, fail-closed seccomp on every VMM thread, an nftables egress allowlist for VMs that set an egress policy, and per-VM cgroup v2 limits when a parent cgroup is configured.

    On the same path taritd applies a network boundary to every networked VM, independent of the VM's egress policy: each TAP drops traffic to IPv4 link-local, Azure WireServer, the guest pool and the operator's infrastructure ranges (TARIT_DENY_EGRESS_CIDRS, mandatory in production mode) before routing or destination NAT and again after it, and forwarded traffic toward a guest is dropped unless it answers the guest's own connection. Egress policy entries are IPv4 CIDRs or host names that taritd resolves to public addresses and matches by address; there is no DNS-interception or TLS policy, and no entry opens the ranges above. Details are in orch/docs/ISOLATION.md.

  • taritd starts the VMM with an explicit environment allowlist. On Linux only stdio and the VM's selected KVM, TAP and volume descriptors survive exec.

  • Production mode requires a per-VM jail. Cold boot and restore execute a SHA-256-verified private copy of the VMM. The namespace child pivots into the jail, detaches the old mount tree and drops privileges. Both the child and its waiting launcher have a hard open-file limit of at most 4096. Jail setup fails closed. The per-thread seccomp filters remain mandatory.

The evidence and remaining release blockers are tracked in PRODUCTION_READINESS.md.

On Linux, standalone boot, restore and the API server install a process-wide seccomp baseline before starting VM threads. It permits pthread creation and limits new sockets to Unix streams and IPv4 datagrams used for TAP queries. It denies process creation, exec, mount, namespace changes and the userfaultfd(2) syscall. On spawning threads, clone3 returns ENOSYS so libc uses clone, whose flags the filter can inspect.

Each thread then adds a filter for its role. The lifecycle coordinator can open disks and snapshots and configure KVM. The RPC listener, PTY sessions and relays, signal waiter, vsock helpers, device workers, IRQ registration, boot watchdog and page-fault handler have narrower permissions. A vCPU can issue only the KVM requests used by its run loop and snapshot state capture. Outside the coordinator and initial setup, path opens (open, openat, openat2) return EACCES. A forbidden syscall terminates the entire VMM.

Lazy restore creates its userfaultfd through /dev/userfaultfd on Linux 6.1 or newer. Keep vm.unprivileged_userfaultfd=0 and restrict device access to the launcher or VMM service account. A jailed VMM opens the device before dropping privileges. Authenticated restore fails if the device is unavailable.

Raw VMM snapshots have corruption checks. The orchestrator additionally authenticates artifacts and verifies RAM chunks during lazy restore. It repairs guest network configuration and waits for guest identity and entropy repair before admitting workload requests. Applications own the rotation of secrets cached in their processes. Guest repair hook

Client to control plane (the orchestrator, orch/). taritd exposes an HTTP API and drives one VMM per microVM over a Unix-domain socket. It is responsible for tenant isolation, API-key authentication, per-tenant network and egress policy, and resource accounting across a fleet.

A fork inherits all captured RAM and disk, including application credentials. Customer-derived state and attached volumes stay with the source tenant, including for admin operations. Cross-tenant warm clones come only from operator-built, secret-free goldens. For images that carry application identity, set TARIT_REQUIRE_POST_FORK_HOOK=1 on every worker and install /usr/libexec/tarit/post-fork to refresh credentials before ingress. The hook runs before the guest has any network egress, so it must not need the network. The VMM checks the acknowledgement against a fresh host-generated clone ID. Guest root controls the agent and hook, so an acknowledgement cannot attest to the contents of a customer image or authorize cross-tenant reuse.

API keys have three roles. admin keys are fully trusted and bypass tenant ownership on some routes. user keys act as their own tenant. service keys let a fronting platform act for one tenant per request, named in X-Tarit-On-Behalf-Of. Such a request gets that tenant's ownership checks and quota. Taritd refuses a service request that omits the header or needs admin privileges. Native exec, PTY and SSH are refused for service tenants unless the operator enables them, and private shares of service tenants strip the caller's Authorization and Cookie unless an operator allowlist names them (see orch/docs/CONFIGURATION.md). A service key can still act for every tenant in its namespace, so keep it, like admin keys, on a private, authenticated path to the API listener.

Reports about the guest-to-host boundary (seccomp or jailer escapes, egress bypass, virtio parsing bugs) and cross-tenant isolation failures in the control plane are the highest priority.

There aren't any published security advisories