Use
Extensions
Connect 0 to your tools and services with reviewed, commit-pinned extensions.
An extension is a git folder pinned to one commit. It connects 0 to a service such as GitHub, starts MCP servers, or adds rules such as a verifier. Add, review and manage extensions from the CLI or the Extensions page.
An extension has no runtime of its own. Its MCP servers and scripts are ordinary commands under the same approvals and sandbox as anything the agent runs. An extension never updates on its own. Themes are not extensions. Read the security model before you add third-party code.
Skills are instructions the model loads, and contain no code. An extension can bring a skill along. That skill appears on the Skills page with its source.
Add one
Section titled “Add one”0security skills add owner/repo@<full 40-character commit>0security skills extensions add ./my-extension0security skills extensions mcp docs --url https://example.com/mcpEach command first shows a prompt with the repository at the full commit, the licence, the files, hidden-Unicode flags, and what the extension can do. That covers the service it connects to, the MCP servers it starts, the rules it adds, and any skills it adds. Nothing installs without --yes from your own terminal, and a flag alone never approves. --yes is refused without a pinned commit.
In the browser app, Add extension on Extensions takes a git source. Add MCP server takes a command or an https URL and creates a local extension with the same prompt.
Manage extensions
Section titled “Manage extensions”0security skills extensions list0security skills extensions info <name>0security skills extensions enable <name>0security skills extensions disable <name>0security skills extensions update <name>0security skills extensions remove <name> --yesAn extension installs disabled. Enabling asks you to approve the exact revision once. update shows the folder diff and what the extension can now do, then asks again. Any change re-prompts, even one new script. Built-in extensions such as github update with the 0 binary.
info also shows each MCP server’s tools with the approved and last-seen hash. See MCP servers.
Repo files are suggestions
Section titled “Repo files are suggestions”A repository’s .0/ or .claude/ folder (settings, .mcp.json, skills) never installs or enables an extension or MCP server. On first open, the app shows what the repo asks for, with the install prompt for each. If you ignore it, nothing runs. A plain SKILL.md is still read as instructions.
Check agent files in a repository
Section titled “Check agent files in a repository”AI coding tools read instruction, rules, MCP and settings files from the repository. A change to one of them can steer the tool or run a command. 0security sbom agent-config reads those files and lists what to review.
0security sbom agent-config .0security sbom agent-config . --fail-on high0security sbom agent-config . --format sarif -o agent-config.sarifThe check reads files as text. It runs nothing, calls no model and uses no network. Import the SARIF file with 0security findings import agent-config.sarif. Add --allow-host for each host your remote MCP servers may use.
| Rule | Severity | What it finds |
|---|---|---|
agent-config/hidden-unicode |
medium or high | Zero-width characters, bidirectional overrides, Unicode tag characters and variation selectors in an instruction file. An emoji joiner, a flag sequence and one leading byte order mark are allowed. |
agent-config/injection-phrase |
low | Heuristic. Wording such as “ignore previous instructions” or “do not tell the user”, a sensitive item sent to a URL, or a base64 block that decodes to text. In rules files it reports only hidden or encoded text. |
agent-config/mcp-unpinned-launcher |
medium or high | npx, bunx, uvx, pipx run, pnpm dlx, yarn dlx without an exact version, docker run with latest or no tag, and a download piped into a shell. |
agent-config/mcp-secret |
medium or high | A provider-shaped key or a high-entropy value in an MCP server’s env, headers or arguments. The finding shows the first characters and the length only. |
agent-config/broad-permission |
high or medium | Claude Code Bash(*), Bash(curl:*), Bash(rm:*), a wildcard allow, defaultMode bypassPermissions, enableAllProjectMcpServers and enabledMcpjsonServers. A Cursor CLI Shell(curl:*) allow. A Gemini CLI MCP server with trust. VS Code chat.tools.global.autoApprove. Codex approval_policy = "never", sandbox_mode = "danger-full-access" and default_permissions = ":danger-full-access". The flags --dangerously-skip-permissions, --dangerously-bypass-approvals-and-sandbox (alias --yolo), --sandbox danger-full-access, --yolo and --trust-all-tools. |
agent-config/hook-command |
low, medium or high | Every hook that runs a shell command. It is medium when the command uses the network and high when it pipes a download into a shell. |
agent-config/mcp-remote-insecure |
medium | A remote MCP server over plain http, or on a host you did not allow with --allow-host. |
agent-config/symlinked-config |
medium | An agent file or folder that is a symbolic link. The scan never follows links, so it reports the link instead of the target. |
agent-config/mcp-project-autostart |
low | An MCP server defined in the repository. Your tool asks before it starts. Check it before you approve. |
Each finding says how to fix it. The rule’s explanation lists its sources: the Pillar Security rules file backdoor post, Trojan Source (CVE-2021-42574), the Cursor advisories for CVE-2025-54136 and CVE-2025-54135, the Invariant Labs tool poisoning post, the Nx advisory and Wiz analysis of the s1ngularity malware, and each tool’s documentation for the settings it names. In SARIF the sources are in the rule’s helpUri and references.
The check reads JSON, JSON with comments and TOML settings. It reads YAML and Markdown only for hidden characters, wording and allowed-tools. It does not run your tool’s own approval logic, and a clean result does not mean the files are safe.
MCP servers
Section titled “MCP servers”In the browser app, open Extensions, press Add, then choose MCP server. Enter the command that starts it, or an https URL. It becomes a local extension with the same review as any other. Nothing runs until you read the exact command and approve it, and it is saved turned off. Once enabled, it starts only when a Thread first uses it, and its tools are pinned.
From the command line:
0security skills extensions mcp docs --url https://example.com/mcp0security skills extensions mcp docs -- npx [email protected] # shows the review; add --yes to approve it0security skills extensions info docs0security skills extensions enable docs0security skills extensions remove docs --yesDo not type secrets on the command line. An extension declares the variable names it needs, and the review lists them. Add --format json for JSON output.
The browser app and headless Threads also read a JSON array in ZERO_MCP. Local entries take id, command and optional args, env and cwd. Remote entries take id, url and optional headers. Local entries can also take sandbox (see Sandbox your own MCP servers). 0 skips malformed entries and failed connections.
Tools appear as mcp__<server-id>__<tool-name>, and results are untrusted. Starting a stdio server runs its code as you, so give it only the credentials and files it needs.
Servers bundled in an extension
Section titled “Servers bundled in an extension”An extension can bundle MCP servers, so one reviewed install covers them. Declare them in extension.json under "0": { "mcp": { ... } }, or ship a Claude-style .mcp.json. The shape is the same as .mcp.json:
- A
commandandargsfor a local server, or aurl(with"type": "http"or"sse") for a remote one. - The names of environment variables the server needs, under
env. - An optional one-line
description.
The extension never stores values. The install prompt lists every server, command, argument, URL and variable name, and changing any of them asks again.
Commands and network: starting a local server is a process command, and connecting to a URL is a network command. Both go through beforeCommand with your “Ask before running commands” setting, and a deny keeps the server from starting. Local servers run in the extension’s folder with only their declared variable names plus a small base set. 0 does not pass model provider keys unless the server declares them and you approve.
Pinned tools: the first time a server connects, 0 asks you to approve its tools. It records a sha256 of each tool’s name, description, input schema and annotations, and compares the hashes on every later connection. If any tool changes, appears or disappears, 0 blocks the whole server. Nothing from it is advertised or callable, and the Thread shows a line such as changed: echo; blocked until you approve them again. Approve again in the Thread, or review it on the Extensions page, which shows Changed, New and Removed. With no approval channel, the server stays blocked.
Pinned packages: a server started with npx, bunx, pnpm dlx, npm exec, uvx, uv tool run, pipx run or pip install downloads code on every start. Its arguments must pin an exact version: [email protected], pkg==1.2.3 or a full git commit. Otherwise 0 refuses it and says what to change. The install prompt lists what it fetches and from where.
Remote servers: HTTPS only. Plain http works only for localhost, 127.0.0.1 or [::1]. 0 resolves the host name before connecting and before each request, and refuses a name that points to a private, loopback, link-local or cloud-metadata address, and connects to the address it checked, so a name that changes its answer between the check and the connection cannot redirect the request. It refuses redirects. 0 declares no sampling, elicitation or roots capability, so a server cannot ask the model or you for anything.
Secrets: a server receives a connector’s stored token only for a variable name that its extension declared and you approved (the connector’s env). The value comes from the connection store, never the model’s environment, and 0 masks it if the server echoes it back. Commands that change approvals or connections refuse to run from inside a server or from any Thread.
Sandboxing
Section titled “Sandboxing”A sandbox limits what an extension’s scripts and MCP servers can touch at the operating system level. It is off for an extension until the extension declares a sandbox block, and you approve it in the install prompt.
Declare the block in extension.json, next to connector (or under "0" when you use that object):
{ "name": "docs-search", "version": "1.0.0", "sandbox": { "network": false, "process": false, "readPaths": ["data"], "writePaths": [] }}| Field | Default | Meaning |
|---|---|---|
network |
false |
Allow network connections. |
process |
false |
Allow starting programs from the system folders. By default only interpreters (sh, bash, zsh, python, python3, node, bun) and the extension’s own files can start. |
programs |
[] |
Names of programs that may start in addition to the interpreters, such as ["jq", "curl"]. 0 finds each in PATH when the run starts and refuses the run if one is missing. Use it instead of process when you know which programs are needed. |
readPaths |
[] |
Extra read-only paths, relative to the extension folder. $WORKSPACE adds the folder you run the extension in. |
writePaths |
[] |
Extra writable paths, in the same form. |
An unknown key, an absolute path, ~ or .. makes the manifest invalid. A program name must be a bare name, not a path. A host list for network (for example "network": ["example.com"]) is refused, because the operating system layers cannot enforce it. A path must exist inside the extension folder. A symlink that leaves the folder is refused.
Inside the sandbox a process can read the system, its own folder and the extension’s declared paths. It can write only to a scratch folder (its TMPDIR) and to declared writePaths. It cannot read your home folder, ~/.0, ~/.ssh, ~/.aws, other repositories or the scanned folder, and it has no network. The scratch folder is deleted when the run ends. Its working folder is the extension folder, or the workspace when $WORKSPACE is declared.
The block is part of what you approve. Adding network access, widening a path list, naming another program or turning on process in a new revision asks again.
When 0 starts an MCP server, it checks the extension folder against its approved hash again. If a file changed since the extension loaded, the server does not start. The check and the start are separate steps, so it does not stop a change made in between.
Choose when it applies
Section titled “Choose when it applies”Set ZERO_SANDBOX to auto, require or off:
env ZERO_SANDBOX=require 0autois the default. A script or server of an extension with asandboxblock runs in the sandbox when this computer has one. Otherwise it runs as before and 0 says so. An extension without a block runs as before.requiresandboxes every extension script and server. An extension without a block gets the defaults above, with no network. If no sandbox works on this computer, 0 refuses to run it.offnever uses the sandbox.
Every script run starts its output with a line such as [sandbox: applied (seatbelt, network off, ...)] or [sandbox: not applied (...)]. A server’s load result carries the same line. Run 0security doctor to see what this computer offers.
When a sandboxed run fails because it needs something it did not declare, the error is the operating system’s, for example Operation not permitted. Add the missing permission to the sandbox block, or set ZERO_SANDBOX=off to run without it.
Node scripts and servers
Section titled “Node scripts and servers”When the program is node and it supports the permission model (Node 20 or later), 0 also starts it with --permission. The process can read its own folder, declared paths and scratch, and write scratch and declared writePaths. It can start child programs only with process, and never starts workers. This layer runs inside the operating system sandbox when there is one.
It is the only layer on Windows and on Linux hosts where bubblewrap cannot start, such as a container without user namespaces. Node cannot block the network, so this layer does not. In that case the status line says the network is not restricted. require still refuses to run without an operating system sandbox, unless the extension declares network: true.
Set ZERO_SANDBOX_NODE_PERMISSION=off to leave the flags out, for example for a program that loads a native addon. This is also the way past a refusal described below.
Which launchers get the Node layer
Section titled “Which launchers get the Node layer”0 never skips the Node layer silently. A launcher either gets it or is refused with a message.
| Command | Result |
|---|---|
node script.js |
The layer is applied. |
env node script.js, /usr/bin/env node |
The layer is applied. |
env FOO=1 node script.js |
The layer is applied. The variables are kept. |
env -i node, env -u NAME node, env -- node |
The layer is applied. The environment changes as env would change it. |
env -S 'node script.js' |
The layer is applied. The string is split like GNU env does, with quotes and backslash escapes. |
env with -C, -0, --chdir, any other option, a $ variable or # comment in -S, or a quote that is not closed |
Refused. 0 cannot read the call completely. |
env with a PATH that has a relative or empty entry, or a program it cannot find in PATH |
Refused. 0 cannot tell which program env would start. When PATH is unset, 0 searches /usr/local/bin:/usr/bin:/bin. |
command, exec, nice, nohup, timeout, sudo, doas, setsid, stdbuf, xargs, arch and similar, when an argument is node, a shell, another launcher or names node, or gives an interpreter inline code |
Refused. They start another program that 0 does not parse. |
Any shell (sh, bash, zsh, dash, ash, ksh, fish, csh, tcsh, nu, xonsh, elvish and similar) given a command string: -c, -lc, -ec, --command |
Refused, whatever the string says. A shell string can hide node. |
python, perl, ruby, php, lua, bun, deno eval or osascript given inline code (-c, -e, -E, -r) |
Refused. The code could start node. node -e is not refused: it is node, so it gets the layer, and starting a child program still needs process. |
cmd, powershell and pwsh with any argument (/c, /k, -Command, -EncodedCommand) |
Refused. 0 does not read their command syntax. |
A shell script file, python script.py or another program that is not given a command or code string |
No Node layer. The operating system sandbox still applies, and 0 says so when there is none. |
To run a refused form, start node directly, for example with an absolute path, or set ZERO_SANDBOX_NODE_PERMISSION=off.
Flags and variables that would change node’s own permissions are refused too. They are --allow-*, --no-permission, --env-file and the config file options, whether they come from the arguments, NODE_OPTIONS, or a variable set with env. Variable names are matched without regard to case, because Windows ignores case. LD_* and DYLD_* variables are refused too, because they load code before node starts. --import and --require are allowed, because node applies its permissions before it loads them. Only the node binary that 0 found is covered. A program that starts a second node itself needs process, and the child gets no layer of its own.
Scripts started by sh or python get no Node layer. A Linux host without a working sandbox runs them unsandboxed, and 0 says so. Windows has no operating system backend.
Optional limits apply to sandboxed runs: ZERO_SANDBOX_CPU_SECONDS (macOS and Linux) and ZERO_SANDBOX_MEMORY_MB (Linux only; macOS does not enforce it). The timeout of the bash tool still applies.
Sandbox your own MCP servers
Section titled “Sandbox your own MCP servers”Servers you configure in ZERO_MCP run as before. Add "sandbox": true to one to run it in the sandbox with the defaults, or a declaration with the fields above:
[{ "id": "notes", "command": "node", "args": ["server.js"], "cwd": "/path/to/notes-server", "sandbox": true }]A sandboxed entry needs cwd, which becomes its read-only folder. Paths in a declaration are relative to cwd. This setting applies whatever ZERO_SANDBOX says, and the server does not start if no sandbox works. A server that downloads packages at start, such as one run with npx, needs network and cannot write its package cache, so it does not fit.
What the sandbox does not do
Section titled “What the sandbox does not do”- It is not a container or a virtual machine. It does not hide the system, other users’ public files or the kernel.
- On macOS it uses
sandbox-exec(Seatbelt). Apple marks it deprecated. It works today, and a future macOS can remove it. Reads under your home folder are denied, including whether a file exists. Outside it, a process can see that a file exists but cannot read it. - On Linux it uses
bwrap(bubblewrap) and needs user namespaces. Withoutprocess, only the allowed program files are mounted, so nothing else can start. Withprocess, the system program folders are mounted read-only, so any program there can start. - On macOS,
processallows programs from/bin,/usr/bin,/usr/localand/opt/homebrew. The macOS profile always lets a process read/opt/homebrewand/usr/local, because interpreters from Homebrew load libraries from there. - Windows has no sandbox backend.
ZERO_SANDBOX=requirerefuses to run extensions there. - Network is all or nothing. 0 does not filter by host.
programsis enforced by the macOS and Linux sandboxes only. Where node’s own permission layer is the only layer, such as on Windows, a run that declaresprogramsis refused. Tested on macOS: a named program starts and another one is denied. Not tested on Linux.- The sandbox does not stop a script from misusing what you declared: a script with network access can send out anything it can read.
- The sandbox covers the scripts an extension ships and the MCP servers it declares. It does not cover commands the model writes itself.
- Tested: macOS Seatbelt (reads, writes, program starts and loopback network, with
curlandnode) and Linux bubblewrap inside a privileged Linux container. Not tested: other Linux distributions, kernels with user namespaces disabled, and Windows.
Connect a service
Section titled “Connect a service”A connection links 0 to a service such as GitHub. Connections belong to extensions. GitHub is built in, and other services come as connector extensions you install.
Connect GitHub
Section titled “Connect GitHub”- Run
0securityand open Extensions. GitHub is the first row. - Press Connect and pick one way:
- Sign in with GitHub shows a one-time code to enter at github.com/login/device.
- Use a token links to GitHub’s token page with the permissions pull requests need. Paste the token.
GitHub cannot be removed, because pull request Sentinels use it. Turning it off pauses them and asks you to confirm.
GitHub stores the credential in gh’s own store. 0 never reads it, and no script receives it. The card lists what the connection can do: read pull requests, pull request diffs, repository contents and the repository list, and write comments on pull requests.
Connect another service
Section titled “Connect another service”Install the connector extension with 0security skills add <source> or Add in the browser app. The install prompt shows the connector’s declared read and write list, the hosts it can reach and the variable its token fills. After you approve, its card appears on Extensions with one Connect button.
Paste the token. If the connector declares a health URL, 0 checks the token against it. 0 stores the token on this computer in ~/.0/extensions/connections.json, readable only by you. Disconnect deletes it.
A script in the extension receives the token only if the extension declared that variable name and you approved the prompt. When the bash tool runs a command that names a file inside an enabled extension’s folder, 0 adds the declared and approved variables, the stored token included, to the command’s environment and masks the value in the output. An extension whose approval does not cover a variable it declares does not run. Its MCP servers get the token the same way. Model provider keys and every other secret stay out. The script’s environment is built from scratch: a short list of basics (PATH, HOME, USER, SHELL, locale and TERM, TMPDIR, TZ) plus the approved variables. It does not get the bash tool’s environment, the scan target, or target-auth variables such as TARGET and AUTH_HEADER, so a script that needs one must declare it and be approved.
Connector reference
Section titled “Connector reference”The connector block of an extension manifest (extension.json, or the "0" object of plugin.json):
| Field | Meaning |
|---|---|
service |
Short lower-case id, such as github or chat. |
title, description, category |
Shown on the card. title defaults to service. |
auth |
The default way to connect: token, oauth-device (one-time code), cli-login (a program already signed in, such as gh) or none. cli is accepted as cli-login. |
methods |
Every way to connect. The first is preselected. Defaults to [auth] and must include auth. |
env |
Variable names the connection fills for the extension’s scripts, for example ["CHAT_TOKEN"]. A token connector must declare one. The name must be an allowed credential name (upper case, ending _TOKEN, _KEY and similar). Loader variables are never allowed. |
hosts |
Hosts it can reach. A health URL must be https on one of them. |
access.read, access.write |
What it can read and write, in plain words. Shown in the install prompt and on the card. Changing them asks again. |
health |
{"type": "none"} (default), {"type": "adapter"} (ask the sign-in adapter, as GitHub does) or {"type": "http", "url": "https://..."} (GET with the token as a bearer token; 401 or 403 means rejected). |
connectLabel |
Text of the Connect button. Defaults to Connect. |
Example:
{ "name": "chat-notify", "version": "1.0.0", "connector": { "service": "chat", "title": "Chat", "auth": "token", "env": ["CHAT_NOTIFY_TOKEN"], "hosts": ["chat.example.com"], "access": { "read": ["channels"], "write": ["messages"] }, "health": { "type": "http", "url": "https://chat.example.com/api/auth.test" } }}A scripts/notify.sh in the same folder reads $CHAT_NOTIFY_TOKEN. Scripts run through bash under the usual approvals and sandbox.