Threat model

What Iro protects, from whom, how, and what it doesn't defend against.

Iro is meant to make a stranger’s app safe to install. This page says what that means: what Iro protects, which attackers it assumes, how each boundary is held, and what is out of its reach. Every rule here is enforced by the kernel and backed by an escape test in the repository: an evil app, package or catalog judged by real side effects (files on disk, requests reaching a canary server, leak sentinels), not by what the code under test reports. To report a way around one, see SECURITY.md.

What Iro protects

  • Credentials: OAuth tokens, API keys and per-account OAuth clients. They live only in the kernel’s vault, encrypted with the macOS Keychain.
  • Your data behind them: what your accounts and folders hold, reached only through calls you granted.
  • Your decisions: that nothing is installed, granted, updated or run as a sensitive call without Iro’s own sheet or prompt, and that what you revoke stays revoked.
  • The rest of your Mac: your files, network and other apps, from code you installed through Iro.

Who might attack

Attacker Starting point
A malicious or compromised app Its UI in a view, its service, its jobs, everything in its package
A malicious publisher, catalog or store Packages, signed catalogs, links and install requests they make
A network attacker Between Iro and a download, a catalog or an API
A web page or link iro://install links and pages you open
A model Text that a page, issue or email planted in a chat (prompt injection)

The boundaries

Credentials never leave the kernel. A service asks the kernel to make its HTTP requests (ctx.http). The kernel adds the token or key only for the account’s own API origins, never follows redirects, refuses a service that sets an auth or key header itself, and scrubs known secrets from responses, streamed ones included, even when a secret is split across pieces. An API key or OAuth client is typed only into Iro’s own UI, never asked for on an app’s behalf.

Every app’s code is sandboxed. A service or job runs in a Deno process with no permissions, no environment, hidden runtime globals, a watchdog (calls time out at 30 s, memory is capped), inside a deny-default macOS Seatbelt profile: no writes, no network, no programs but Deno. If that profile can’t be applied, nothing runs. An app’s UI is a Chromium view with its own session, a CSP without unsafe-eval, and an egress proxy that lets through only the origins it declared and you granted, WebRTC included. Chromium’s own DNS is blocked, so a view can’t leak data in a lookup either.

Identity comes from the channel. The kernel knows who is calling from the channel it created for that app, view or job, never from an id in the message. Permissions are checked on every call, a check the store can’t answer is a denial, and a call that can’t be written to Activity doesn’t return its result.

Files go through the kernel. A folder service gets no file permissions. The kernel resolves every path at use time, follows no symlink out of the folder, writes no file with more than one link, and applies the folder’s declared policy (file types, no hidden paths). The service never learns where the folder is.

Only Iro asks you. Install consent, updates, runtime permission requests and confirmations for sensitive calls are drawn only by Iro, over Iro’s own title bar, with every app view hidden while the sheet is open. Jobs can’t ask anything at all.

Packages are checked before they touch the disk. A .iropkg is read by the kernel’s own zip reader and its Ed25519 signature is checked in memory; only then are the same bytes unpacked into a new directory. Only the kernel downloads: https only, no cookies or credentials, at most five https redirects and 100 MiB. The first install pins the publisher’s key. An update is offered only when it’s newer and signed by that key or a rotation from it; anything else is refused, never offered. An update installs itself only if you turned that on for the app and it asks for nothing new. Rollback grants nothing the old version didn’t have.

Stores and catalogs only ask. A store can request an install, which goes through the same download, checks and sheet as anything else, and it hears back only installed or cancelled. No key, catalog or app id is trusted more than another, Iro Labs’ own included. A catalog can revoke versions installed from it, which turns them off; a revocation never installs or changes anything.

Models act as the app, and ask for what’s sensitive. A model can only call the tools its chat offered, and each call runs with the calling app’s grants. A sensitive tool always asks you, saying a model asked, whatever the app’s own settings.

What you are trusting

  • Iro itself: the kernel and the shell, and what they’re built on: Electron/Chromium, Deno and macOS. A bug in their sandboxes is a bug in ours; we keep them current and rerun the escape tests whenever Deno changes.
  • The publisher whose key you accept on first install. The sheet shows the key. Nothing tells you a key is good: that’s what a store you trust is for.
  • Each grant you give. An app may use a grant for whatever its scope allows, for example sending a note’s text to an origin you approved. Iro limits each grant to what it says, records every call in Activity, and lets you revoke it at any time.

Out of scope

  • Malware already running as your user. It can read your files and drive Iro’s windows like you can; the Keychain protects your credentials at rest, not from it.
  • Someone with your unlocked Mac.
  • Denial of service by an app you installed: it can waste your CPU, spend the budget you gave it, or make itself useless. Uninstall it.
  • Timing and other side channels between apps.
  • The services an app talks to, once you’ve granted that app access to them.

Known gaps

  • Unsigned builds. There’s no Apple Developer account yet, so Iro has no notarized release and no automatic updates of Iro itself. Those come in the release phase after the code review.
  • Developer mode loosens two things, and only for a development install with an iro dev session running: that app’s own Vite server on 127.0.0.1 is allowed through its CSP and proxy. The developer socket exists only while Developer mode is on, and gives nothing without the consent sheet.
  • macOS only. The sandbox profile and the Keychain-backed vault are macOS’. Other platforms need their own before Iro runs third-party code there.