Security

One sealed machine per agent.

Network rules, keys, approvals and the audit log live on the host, out of the agent's reach.

Upgrade any time

Start free, no card → Pick a plan when you need more.

Built for the worst case

Assume an attacker controls what the agent reads and has root inside its machine. The sandbox must still keep the host's files, sockets and other sandboxes out of reach, decide every packet on the host, keep real keys out, hold risky actions for a person and leave a record nobody can quietly edit.

The isolation model

A microVM per sandbox

Its own kernel, disk and private network. Apple's Virtualization framework on a Mac; Cloud Hypervisor on KVM on x86-64 Linux.

One shared folder

The agent sees the folder you mount and nothing else. Writable unless you add :ro.

Three programs

kosa8, the kosa8d service (runs as you, no admin rights) and kosa8-guestd in the VM, which is untrusted: nothing depends on it.

What crosses the boundaryDirectionWho controls it
Control channel (vsock)Host to sandboxThe service only; the sandbox cannot open one back
Shared folderBothYou, at creation
NetworkSandbox to worldThe host-side network guard, by the sandbox's rules
CredentialsNeverThey stay with the egress broker
Disk and memoryNeitherEach sandbox has its own; snapshots are files the sandbox cannot read

kosa8 run and the Docker-compatible API share one VM, with ordinary container isolation between containers. kosa8 sandbox and kosa8 agent run give each workload its own VM; a signed policy with require_sandbox makes that mandatory.

Network rules and the egress broker

Rules on the host

Every frame crosses the host's network guard, so root in the guest can't lift them. Rules exist before boot; DNS answers listed names only; refusals are audited.

Keys stay with the broker

The sandbox holds a placeholder worthless anywhere else. The broker admits hosts by name and port and adds the real key on the way out.

Prints the policy in force and how many frames and DNS answers were passed or refused.

Approvals for risky actions

By blast radius

Read-only, contained, destructive, escalating. Destructive and escalating actions (host mounts, egress, the policy itself) ask every time and cannot be auto-approved.

MCP tool rules

Signed rules answer allow, deny or ask. A held call is approved for that call only, once, for ten minutes: kosa8 mcp asks, kosa8 mcp approve ID.

Named approvers

When the policy names them, escalating actions need their signed approvals. The service re-verifies them, refuses replays and records them.

The audit log

What it records

State changes, brokered requests, refused connections, MCP decisions and signed approvals, each with its actor. Only the service writes ~/.kosa8/audit.jsonl.

Tamper-evident

An HMAC-SHA256 chain, a sealed end record and an Ed25519 signature anyone can check: kosa8 audit verify.

What it leaves out

Reads, tool arguments and results (kept as SHA-256 digests), environment variables, request bodies and API keys.

kosa8 audit export --format cef feeds a SIEM; kosa8 evidence export writes a signed package an assessor can check offline. See AI agent governance evidence.

How releases are signed and checked

  • macOSDeveloper ID signed and notarised by Apple. kosa8.app is stapled; the zip archives are notarised but not stapled, so Gatekeeper checks them with Apple at first launch.
  • WindowsAuthenticode-signed with Azure Trusted Signing; an unsigned build fails the publish job.
  • ChecksumsEvery release ships checksums.txt, signed with the kosa8 release key (checksums.txt.sshsig, an SSH signature). The install scripts refuse to install without the checksum; on macOS and Linux, install.sh also checks the signature with ssh-keygen, which those systems already have.
  • Linux packagesThe kosa8 .rpm is signed with the kosa8 release OpenPGP key and the .apk with the kosa8 release RSA key, so rpm and apk can check them once the key is imported.
  • PipelineReleases are built and signed on kosa8's own release machine and Linux build host, not on a hosted CI. Every signature, digest and file name is checked before anything is published.

The public keys: allowed_signers (checksums, SSH key fingerprint SHA256:GRzbgilAN1oU4LtwNLRDlnhpPbhx9jGORY+uPZ7jkNo), kosa8-release-rpm.asc (rpm, fingerprint 075F D831 64B5 C9F6 1353 57C5 E755 1780 6DC4 02FC) and kosa8-release.rsa.pub (apk). The verify guide has every step.

Check a download yourself:

The first says Good "kosa8-release" signature, then OK for each file you downloaded; the second shows a Developer ID signature, not adhoc.

FIPS 140-3 builds for government

A separate channel builds kosa8 against Go's FIPS 140-3 module, using the snapshot that has completed CMVP validation, with fips140=on by default. The whole test suite runs under the module; checksums are signed keylessly with cosign and logged in Rekor; each archive has a CycloneDX SBOM. Private repository, vX.Y.Z tags only. A FIPS build's kosa8 version reports crypto: on, and a signed policy can require it. The validation belongs to Go's module, not to kosa8 as a product. Ask contact@kosa8.com for access.

Privacy: no telemetry

No telemetry, crash reporting or analytics. Sandboxes, files, commands, snapshots, prompts and audit logs stay on your machine. A paid licence activates and revalidates with Polar, the merchant of record, and reports aggregate usage counts once a day for billing; KOSA8_OFFLINE=1 or a signed site licence turns that off. The website sets one cookie, only for referral links. See the privacy policy.

What kosa8 does not protect against

The threat model gives the attacker the agent's inputs and root in the guest. Trusted: the host OS, the user account kosa8 runs as, and kosa8d; the hypervisor is assumed to separate guest and host memory.

  • A hypervisor escapeA virtualization bug would break the boundary. A smaller surface than a shared kernel, not zero.
  • Anything running as youA process under your account can call the service, read ~/.kosa8 and approve a held call. Host root can stop the daemon and rewrite local state, so forward the audit log off the machine.
  • Misuse of what you allowedAn allowed host that accepts uploads is a way out for data. The broker's placeholder is spendable along its route while the sandbox runs. HTTPS tunnels to allowed hosts are opaque; bodies are not inspected.
  • Prompt injection itselfkosa8 bounds what a hijacked agent can do, not what it reads. First-use tool pinning trusts a server's first definition unless the policy lists the pins.
  • Open defaultsA sandbox made by hand with no network flag has an open network unless the organisation sets default_egress. Agent-created and brokered sandboxes are closed by default.
  • Out of scopeSide and timing channels, the contents of the images you run, and the host's own hardening and disk encryption.

SOC 2 is in progress: kosa8 has not yet had an external penetration test and has no SOC 2 report. The research paper sets out the threat model, the security goals and the residual risk for each.

Report a vulnerability

Email contact@kosa8.com with a description, steps to reproduce and the output of kosa8 version --json. Please let us fix it before you publish, and leave other people's data out.

Questions

Does an AI agent in a kosa8 sandbox share my computer's kernel?

No. Each kosa8 sandbox is a microVM with its own Linux kernel, on Apple's Virtualization framework on a Mac or Cloud Hypervisor on KVM on x86-64 Linux. The exception is kosa8 run and the Docker-compatible API, which share one VM; kosa8 sandbox and kosa8 agent run give each workload its own.

Can code inside the sandbox read my API key?

Not for brokered credentials. The key stays with the egress broker on the host, and the sandbox gets a placeholder that is worthless anywhere else. The placeholder can still be spent along its allowed route while the sandbox runs, so scope the key at the provider too.

Does kosa8 send telemetry?

No. The software has no telemetry, crash reporting or analytics. A paid licence talks to Polar to activate the key and reports aggregate usage counts once a day; KOSA8_OFFLINE=1 or a signed site licence turns that off.

How do I check that a kosa8 download is genuine?

Check the signature on the release's checksums.txt with ssh-keygen -Y verify against kosa8.com/keys/allowed_signers, compare the file with shasum -a 256 -c, and on a Mac run codesign -dv and spctl -a -vv -t install on the binary to see a Developer ID signature and the notarisation. The install script checks both for you.

Give every agent a sealed box.

Upgrade any time

Earn 20% for 12 monthsAffiliates →