Skip to main content
← Security & Trust
SECURITY CHANGELOG

Security changelog

A running log of security improvements we ship. We publish fixes, not exploits. Entries are append-only and stay published permanently.

2026-11-19Latest
Second factor from the last 10 minutes for organization actions that grant access or delete data
  • Recent second factor for sensitive organization actions: organization actions that grant access or delete data (invitations, promotion to admin or auditor, policy publish, organization and installation tokens, organization settings, organization deletion) now require a second factor completed within the last 10 minutes, not just a session that used one. Billing actions are unchanged. Sensitive organization actions
2026-11-19
zn-gate 1.17.0: GnuPG keys protected, stricter command checks, a stricter Team policy, clearer errors

zn-gate 1.17.0 protects GnuPG keys, makes the destructive-command check read more of what a shell runs, and refuses in more places where it used to let something through. Update with npm install -g zn-gate@1.17.0. The Python package is 1.17.0 too (pip install -U zn-gate). If you use the Claude Code plugin, note that it does not update by itself. To move it to a new release, run claude plugin marketplace remove usezn, claude plugin marketplace add usezn/zn, claude plugin install zn-gate@usezn.

  • GnuPG keys: the files in ~/.gnupg and the folder itself are protected like ~/.ssh keys. Reading them is refused, and so is a command that names the folder, except read-only gpg calls such as gpg --list-keys. Exporting a secret key is refused for every gpg program and keyring.
  • Command checks: a variable set by a conditional assignment holds every value it may have, and the worst one decides, so D=/usr; [ -n "$X" ] && D=./build; rm -rf "$D" is blocked. An env -S string that holds another -S is split again. A find that starts at the filesystem root and deletes is refused even with a filter, and a find that deletes over paths from -files0-from is refused anywhere. A trailing shell comment no longer hides a download piped into a shell, and a command that names more than 64 files asks instead of passing.
  • Hooks and tool calls: the GitHub Copilot and ZCode hooks block a tool call whose arguments cannot be read, also on a tool zn does not know, and look for commands and file paths in nested arguments. Copilot and VS Code tasks are checked in every platform override and in a custom shell.
  • Teams and the MCP shield: in zn Team, a stored policy that does not verify now puts the machine in strict mode instead of being ignored. The MCP shield no longer forwards a line from the agent that is not valid JSON to the server unchecked.
  • Clearer errors and parity: unreadable JSON configs, full disks and quotas, and an empty passphrase on standard input now say what happened in one sentence. The Python package gets scan --code and --all, rejects abbreviated long options and masks personal values like Node.js, and both packages write the same evidence record. A last evidence record that was cut off is reported as such, never as harmless.
2026-11-19
Usage details in the dashboard: your own account only

The usage page now shows your calls by hour, day and month, split by endpoint, model and channel, with 429s, errors, latency and the projected day your quota runs out, plus a CSV export.

  • Your own account only: the account comes from your sign-in or API key, never from the request. Team members see their own calls and the organization's shared quota, not the calls of other members.
  • Counts only: no prompt text, IP addresses or evidence records, and CSV cells are escaped so a spreadsheet never runs them as formulas.
  • Retention and key: hourly counters are kept for 400 days and daily and monthly counters for 730 days, then deleted. They are stored under a keyed hash of your account (HMAC with a secret), not your email.
2026-11-18
Staff access to evidence records: only with a reason, always logged

zn staff do not open individual evidence records without a recorded reason, except Contributor Mode samples and checks whose content was stored. The admin tools show aggregate counts per account (calls, allow and block verdicts, latency, quota); apart from those samples and checks, they never show input text, IP addresses or evidence records.

  • Only with a reason: staff can open the evidence records of one account only after giving a reason from a fixed list (a support request or usage question of that customer, with their consent; or an investigation of abuse or a security incident) and its ticket or incident reference.
  • Always logged: every access is logged before anything is shown, with who, when, why and which account, and the log is kept for 400 days. If the log cannot be written, nothing is shown.
2026-11-16
zn-gate 1.16.0: check --hooks and check --json, zn why, secrets in agent history, a package audit, stricter command checks

zn-gate 1.16.0 makes the check easier to read and to script, and explains blocks in plain words. check --hooks lists every installed hook as OK, stale or broken, check ends with a hook summary and the decision time per tool call, check --json gives the result to scripts and CI, and zn why explains the last block. Four features are new and off unless you ask for them, the command checks read more of what a shell runs, and the hook launcher checks every zn-gate file the hook loads. Update with npm install -g zn-gate@1.16.0. The Python package is 1.16.0 too (pip install -U zn-gate). If you set ZN_HOME before, move evidence.jsonl and requests.jsonl into that folder and copy the hooks part of config.json there too. If check reports a stale hook, run zn hooks install <agent> again.

  • A clearer check: zn-gate check --hooks lists every installed hook with its agent, settings file, event and command, and says whether it is OK, stale (written by an older zn-gate) or broken, with the command that fixes it. Plain check ends with a one-line hook summary and with the p50 and p95 decision time of the last 100 tool calls on your machine. check --json prints the same result as one JSON object. Nothing is run, changed or sent.
  • zn why: zn why explains the last block in your decision log, or the record with the id you give it, in plain words: what was stopped, which rule fired, why it matters and the command you can run to go on. It only reads the log. Six block messages now name the rule, say why it matters and give the one command to run.
  • New, and off unless you ask: zn-gate reach --history shows which kinds of secret your coding agents kept in their local session history, never a value. zn-gate scan --package audits an npm MCP server or skill before you add it, and lists the install scripts npm would run. An optional check asks before your agent installs a name that looks like a well-known package. zn run --egress-allow limits the hosts a command can reach over HTTP(S).
  • Command checks: the destructive-command check follows cd, pushd, env -C and sudo -D earlier on the line, and reads the commands inside shell keywords and backticks. The download-and-run check reads more ways of feeding a shell. A .env read with a path prefix, in a PowerShell list or spelled through cmd.exe is blocked.
  • Hook launcher: at install, the launcher records the SHA-256 of the code and data under lib/, of package.json and of bin/cli.js, and stops the hook if one of those files was edited, is not in the list or is a link. After an update that skips install scripts, or with sudo, run zn hooks install <agent> again.
  • Teams and audit: zn team status --rules prints the active signed policy in plain words. zn team join - reads the join token from standard input. zn audit --approve records a project's executable configuration, and later audits report a change as ZNA023. GitHub Copilot is no longer marked experimental.
  • Python, and what may break: a local check in the Python package starts in less than half the time, and the package redacts the same secret shapes as the Node.js package. Most commands now exit with 2 on an option they do not know, and a misspelt setting in the security or audit section of zn.json is an error.
2026-11-06
zn-gate 1.15.0: the ZCode plugin protects tool calls on Windows, hook timeouts, a temp folder fix in zn run

zn-gate 1.15.0 makes the ZCode plugin protect tool calls on Windows. In earlier versions its hooks could not start there, so ZCode ran every tool call without zn. The Windows hook now starts Node.js directly, gives its hooks 5 minutes in ZCode and blocks a call itself after 2 minutes. The release also hardens how the hooks start, how zn run chooses temp folders and what the command check reads. Update with npm install -g zn-gate@1.15.0. Then install the ZCode plugin again in ZCode (Settings, Plugins), and run zn hooks install zcode again to refresh an existing install. The Python package is 1.15.0 too (pip install -U zn-gate).

  • ZCode on Windows: the ZCode plugin protects tool calls on Windows. Its Windows hook starts Node.js directly (about three times faster on the first call), works from user folders whose names hold a space, &, parentheses, ^ or %, and always runs the plugin's own scripts, never a file of the same name in the project.
  • Hook timeouts: ZCode lets a call run when its hook times out, so the plugin now gives its hooks 5 minutes instead of 30 seconds, and the hook blocks the call itself 2 minutes after ZCode started it. In our tests on a 2-CPU Windows machine with every CPU busy, an ordinary check took up to 131 seconds and a stuck zn-gate was blocked after at most 154 seconds. zn hooks install zcode writes the same timeout and deadline.
  • Temp folders in zn run: zn run now refuses a program planted in a temp folder in two cases it missed. The system temp folders are always checked, whatever TMPDIR, TEMP and TMP say, and on Windows a temp folder named in one form and a PATH entry in another (long name, short 8.3 name, subst drive or verbatim path) now match.
  • Hook launcher: on macOS and Linux, and for Claude Code on Windows, zn's hook launcher runs zn-gate's hook runner only while that file matches the SHA-256 recorded at install time, and no longer falls back to a zn found on the PATH. After an update with pnpm, bun or --ignore-scripts, run zn hooks install <agent> again.
  • Command and identity checks: the destructive-command check reads one-liners given to python -c, node -e, perl -e and ruby -e, ANSI-C quoting and PowerShell 7 line continuation. The identity-request rules catch more variants of instructions in tool results, and API documentation that asks for an email address in every request is no longer reported.
  • Python: ZN_STRICT and ZN_BLOCK_TRUNCATED warn when they are set to a value other than 1, a LangChain or LlamaIndex guard with on_block="ignore" logs what it lets through, and a tool result that holds the same object many times is no longer blocked by size:items.
  • Dependencies: the Rust gateway builds with zip 9.3.0 and wasmtime 48.0.8, which fix RUSTSEC-2026-0429, RUSTSEC-2026-0422, RUSTSEC-2026-0423 and RUSTSEC-2026-0424. The Python package is published with pypa/gh-action-pypi-publish 1.14.3, which no longer trusts the emSign root certificate reported as compromised.
2026-10-28
zn-gate 1.14.1: the first 1.14 release on npm, Windows fixes for the vault and PowerShell, a dual-use declaration

zn-gate 1.14.1 is the first 1.14 release on npm. 1.14.0 was published on PyPI but never reached npm, and npm does not let a version number be used again, so npm users get everything in the 1.14.0 entry below together with this release. The npm package now declares that it is a dual-use security tool and ships a DISCLOSURE file that explains what it does to other programs' configuration, to Windows file permissions and to the vault. On Windows, the vault no longer starts whoami.exe and icacls.exe, and zn-gate no longer passes an execution policy argument to PowerShell. A program from the node_modules folder of your home folder is no longer started, and in Claude Code a user-scope secrets server entry that sets NODE_OPTIONS or NODE_PATH is no longer taken as zn's. Update with npm install -g zn-gate@1.14.1. The Python package changes only in its version number (pip install -U zn-gate).

  • Program lookup: a program found on the PATH whose real file is in the node_modules folder of your home folder is not started either, also when zn-gate runs in the home folder. The Claude Code installer and uninstaller no longer run a claude that links into the project, and real paths are compared in their canonical spelling (letter case on macOS).
  • Claude Code secrets server: the user-scope secrets server is no longer taken as zn's when its entry sets NODE_OPTIONS or NODE_PATH, or a folder inside the project to run in. The MCP server names of the zn-gate plugin are no longer trusted either: the plugin registers no MCP server since 1.14.0, and an older plugin started its servers with node from the PATH.
  • Windows vault: the vault reads your account's SID and makes its folders, files and session key private to you with .NET calls in the system PowerShell, as the hook folder already did, instead of starting whoami.exe and icacls.exe. The result is the same: a list that does not inherit from the parent folder, with one full-control entry for your account, read back and checked before the vault starts.
  • Windows PowerShell: zn no longer passes -ExecutionPolicy Bypass to the system PowerShell it starts (the hook folder's permissions, the vault keychain entry and the confirmation dialog). These run inline commands, which the execution policy does not cover, and they were tested with the AllSigned and Restricted policies.
  • npm package: the npm package declares that it is a dual-use security tool (contentPolicy in package.json) and ships a DISCLOSURE file that says what the package does to other programs' configuration, to Windows file permissions and to the vault, and when. Nothing about how zn-gate behaves changes.
2026-10-27
zn-gate 1.14.0: Antigravity and ZCode desktop app support, Gemini CLI and Copilot CLI hooks, Codex checks, MCP config secrets, vault and Team fixes, Python guard fix

zn-gate 1.14.0 adds hooks for Google Antigravity and ZCode desktop app, now supported agents, and experimental hooks for Gemini CLI and GitHub Copilot CLI, more checks for Codex CLI, and a scan for plain-text keys in MCP server configs. It also hardens the vault and zn Team and closes a gap in the Python tool guard. Update with npm install -g zn-gate@1.14.1. On npm, this version is published as 1.14.1 (see the entry above). On PyPI it is 1.14.0, and pip install -U zn-gate installs the latest.

Starting with 1.14, zn-gate ships one larger release every week. A release candidate goes out a few days earlier, so you can try it early. We only ship outside this schedule for a high or critical security fix or a broken install.

  • Hooks fail closed: hooks for Claude Code, Codex, Cursor and Gemini CLI no longer let tool calls run unchecked when the Node.js they were installed with disappears or the hook crashes; they block the call instead. In Claude Code and Codex they also block when the hook times out. Run zn hooks install <agent> again to switch an existing install over. For the Claude Code plugin, run claude plugin update zn-gate@usezn and start a new session; it needs Claude Code 2.1.295 or later.
  • Python tool guard: tool arguments or results nested more than about eight levels deep were passed through without being checked, so a value hidden that deep skipped every rule. They are now blocked with the reason "nested too deeply to check". This affects 1.13.1 and earlier of the Python package.
  • Codex CLI: zn-gate checks MCP tool calls before they run, answers Codex's permission request with a deny when its check would deny the call, and reports Codex as not fully protected when another tool's hook could change a command after zn-gate checked it. Run zn-gate hooks install codex again, then review the hook with /hooks.
  • Hooks: malformed file names and text (such as unpaired surrogates) are refused instead of stopping the hook on some Windows systems, and the key-protection rule also recognises zn-gate's key module when its name is built inside the command.
  • Scan output: zn-gate scan shows control characters in file and folder names as escapes (for example \x1b), so a name in a repository cannot write terminal sequences. This covers both packages.
  • Audit: zn audit hides the value after more credential flags, such as --passphrase, --bearer and --jwt. In the experimental gateway, encrypted audit records are tied to their own id and namespace and the audit log refuses to open with the wrong passphrase.
  • Experimental gateway: the default origin check accepts only loopback origins, and an uploaded policy is verified before it is saved. Upgrading cleans old request text from the audit database and the vector memory files, and a data/ref.key that is a link or is open to other users is refused at start.
  • Command rules: a command with several Base64 pipes (echo ... | base64 -d) was decoded only at the first pipe, so a harmless first pipe could hide a blocked command in a later one. Every pipe is now decoded and checked with the same rules. More than 16 pipes, or more than 128 KiB of decoded data, is blocked.
  • MCP shield: the keys of structured content from a server are checked like its values, so an instruction placed in a key can no longer reach the agent.
  • MCP and network calls: Claude Code now checks MCP tool calls before they run (a secret in the arguments is blocked, personal data asks you), and the hooks ask before a network request whose headers, query string or body hold personal data or a literal secret.
  • Tool output: in Claude Code, the output of web fetches, MCP tools and shell commands is checked with the local rules, and the agent is told to treat flagged text as data and to tell you. It never blocks. New rules also flag text that tells the agent to identify its user or to put the user's details in a header, URL, cookie or form field: advisory by default, blocking in strict mode.
  • Command spellings: the destructive-command and protected-file rules now read words split by a backslash, brace lists, quoted, printf and here-string Base64 payloads, redirects glued to the word before them and NTFS alternate data streams, so these forms are blocked like the plain ones. By default the hooks also refuse a recursive delete of the home folder, the filesystem root or a system folder, and a write to a disk device.
  • MCP server text: the shield checks tool results in full up to 32 MB (before, only the start and end of a larger one), and also the notifications and requests that servers send, resource and prompt contents and every string in tool schemas. A tool output that is mostly invisible characters no longer lets a secret through. In the SDK, a tool result over 4 MB is blocked by default.
  • Secret redaction: secrets split across several lines, used as property names in a tool output, in OpenPGP private keys, nested in LangChain results or in more connection URL forms are now redacted, in both the npm and Python packages.
  • Python guard: the tool guard now reads the strings inside dataclasses, pydantic models and other objects, blocks values it cannot read in full, decodes Base64 without padding and checks the message of an error raised by a tool before it reaches the model. The LangChain integration needs langchain-core 1.3.3 or later.
  • Antigravity: the hook blocks writes to a .env file that holds plain-text secrets and asks before a recursive shell search over a folder that holds one.
  • Audit, vault and setup: the audit log encryption draws each nonce from a random generator seeded by the operating system, existing encrypted records are upgraded the first time the audit vault opens, a vault error no longer quotes decrypted text, zn-gate init --revert restores only the newest backup and skips links, and agents can no longer run zn-gate uninstall on their own. The experimental gateway updates rustls-webpki, webpki-root-certs and wasmtime (RUSTSEC-2026-0378, -0379, -0382 and -0383).
  • ZCode: zn hooks install zcode adds hooks for ZCode (z.ai) that block reads and writes of secret files, shell commands that handle secrets, MCP calls that would send a secret and a prompt that holds one. ZCode hooks cannot rewrite tool output, so zn only adds a notice when an output holds a secret, and ZCode ignores the hooks of a project. Install and uninstall are atomic, and the launcher has its own 28-second deadline, two seconds under the 30-second timeout zn sets on its hooks, so a hook that hangs while starting blocks the call. Tested end to end on the official ZCode desktop app 3.16.3 on Linux x64 (October 2026). The same checks passed on Windows x64 (Windows Server 2022, same app version, October 2026), for an administrator and for a standard user, through the agent the app ships; the Windows app window itself was not driven. macOS was not tested. zn-gate check on Windows now recognises the hook that zn hooks install zcode writes. A ZCode plugin build exists for Linux; its install steps will be published with its plugin repository.
  • Vault: zn run and the agent hooks no longer fill in a secret marker written in a command's arguments, because arguments show in the process list; pass the secret as an environment variable with zn run --secrets NAME instead. A first-use approval now belongs to the value it was given for, so after updating each secret asks once more. The unlocked vault now checks the whole audit log before it shows, exports or uploads it, and keeps a warning until you accept the log with zn vault verify --acknowledge in your own terminal if a record was changed, cut or replaced. The vault refuses new values under 8 characters, checks every request for a value against a destination or purpose, sets owner-only permissions on Windows, and zn vault purge deletes a vault for good after you confirm. When the vault unlocks after an unclean shutdown and takes over audit records that were not yet checkpointed, it writes a warn record, so every crash shows in zn vault log.
  • zn Team: zn team sync refuses a second policy with the same version but different content, and a sync that started before you left a team can no longer apply its answer. zn team join no longer uploads audit records written before you joined unless you pass --include-history. When a new policy version loosens a restriction, zn team status lists what changed and the audit log records it. The organization's custom detectors are restored from the vault if their local copy is deleted. zn team join stops, with nothing sent, when the local audit log cannot be read.
  • Project hooks: a project install (zn hooks install <agent> --project) used to write a bare zn hook command. Where zn or Node.js could not start, for example on another machine, the command failed and the agent ran the call unchecked. The project hook now runs inside a start guard that blocks the call when zn or Node.js is missing or the hook fails (or only warns, on events that cannot block). The guard trusts zn and Node.js only from absolute PATH entries, works with every sh, including the one on macOS, and has a PowerShell form on Windows. zn-gate check reports a bare project hook as not protected and a changed guard as modified; run zn hooks install <agent> --project again to replace it.
  • Hook launchers: the launcher scripts of the hooks never run a program found in a relative PATH entry such as ., so a program placed in a project folder is never run, and they remove their private files after every call. On Windows, zn.cmd can no longer start a node.exe or node.bat from the current folder. If you tried a 1.14.0 release candidate, run zn hooks install again (and zn hooks install --project in each project with a project hook) so the hooks it wrote get these fixes.
  • Hook output: a hook that could not write its whole answer to the agent (for example because the agent closed the pipe) used to exit as if it had worked, so a block could be lost. A failed write now fails the hook, and the launchers accept a hook only when it confirms it wrote its whole answer; otherwise they block the action, or warn for events that cannot be blocked.
  • Hook time limits: a hook whose input never ends, or whose check never finishes, now blocks the call before the agent's own time limit, instead of leaving the agent with no answer, which lets the call run. Gemini CLI and Copilot CLI, which let a call through when a hook times out (zn sets their hook timeout to 15 seconds), get the block at 11 seconds. A SIGTERM, SIGHUP or SIGINT during a check also answers with the block.
  • Agents that cannot ask: Codex CLI, Cursor, OpenCode and Gemini CLI cannot show a question, and zn used to drop the ones it wanted to ask (an instruction-file write, personal data in an MCP call, a search over a folder with a plain-text .env), so the call ran. zn now blocks such a call and the reason says what was held back and how to approve it. Claude Code, Copilot CLI, Antigravity and ZCode keep asking. A tool call that cannot be read is now blocked in every agent.
  • Invisible marks: the rules now ignore the left-to-right, right-to-left and Arabic letter marks, the Mongolian vowel separator and the Hangul filler characters when they match text, so these characters can no longer split a trigger phrase. The check for tool output that is mostly invisible characters counts them too. Normal Arabic and Hebrew text is not blocked.
  • Instruction files: the agent hooks ask before an agent writes to its own memory and instruction files (MEMORY.md, AGENTS.md, CLAUDE.md, .cursorrules and similar); strict mode refuses the write.
  • More command spellings: a download piped into a shell or into Invoke-Expression is now also caught when it is written with ANSI-C quoting or with PowerShell backtick escapes.
2026-10-20
zn-gate 1.13.1: the Python LangChain guard stops blocked runs

zn-gate 1.13.1 fixes the Python LangChain and LlamaIndex integrations. The agent hooks, the plugin and the Node.js package were not affected. Update the Python package with pip install -U zn-gate. The npm package moves to 1.13.1 too, with no changes: npm install -g zn-gate@1.13.1.

  • LangChain blocking: ZnGuardCallbackHandler now stops the run when it blocks a prompt, a tool call or a tool output. Before, LangChain caught the block and only logged a warning, so a blocked tool call still ran and blocked text still reached the model. Advisory
  • Secrets in tool output: LangChain ignores what a callback returns, so the handler could not hide a secret in a tool output. With mask_secrets=True (the default) a tool output that contains a secret now stops the run. The new guard_langchain_tool(tool) wraps a LangChain tool: it checks the arguments before the tool runs and the output before the model reads it, and hides secrets in that output. If you wrap your tools with guard_langchain_tool, create the handler with mask_secrets=False so the wrapper hides the secret and the run goes on.
  • Block message: ZnGuardCallbackHandler(on_block="return") let blocked calls through, like "ignore". It now raises ValueError. Use guard_langchain_tool(tool, on_block="return") to give the model a block message instead.
  • LlamaIndex: ZnLlamaGuard(on_block="return") let a blocked query through. check_query and on_query_start now return a short block message, or your fallback, in place of the query, and sanitize_response also hides secrets in a LlamaIndex Response object.
2026-10-19
zn-gate 1.13.0: connect and disconnect, report, typed skills checked

zn-gate 1.13.0 adds `zn-gate connect` and `zn-gate disconnect` for the optional cloud check, and `zn-gate report`, a local summary of what zn-gate did. The Claude Code hooks now also check what a typed skill or command expands into. Update with npm install -g zn-gate@1.13.0. The Python package moves to 1.13.0 too.

  • Connect and disconnect: zn-gate connect turns on the optional cloud check with an analysis-only API key kept in your system keychain or the zn vault, never in a file. A full-access key is refused. zn-gate disconnect removes the key and, only if you answer yes (or pass --revoke), revokes it on usezn.com. Both run only in your own terminal. zn-gate still needs no account and sends nothing by default.
  • Typed skills and commands: in Claude Code, a new UserPromptExpansion hook blocks a typed skill or command when it would show the model a secret value, a private key or the lines of a .env file. Run zn-gate hooks install claude-code again to add it; the plugin has it already.
  • The saved key: the hooks refuse commands that ask the system keychain for the entries zn keeps, and a saved key is only ever sent to https://api.usezn.com. The cloud check turns on only with your own opt-in. A program running as you can still ask the keychain, as for any entry.
  • Hooks: the code a shell or wrapper runs from a string (sh -c, bash -lc, sudo sh -c, eval, pwsh -Command and others) is checked as a command of its own, so every rule applies inside it, including reading a .env, credential or key file from git history. A .env reached through a Windows root, a network share or an extended-length path is refused.
  • Audit: a damaged audit log is reported instead of crashing and is never used to start a new chain. Writes from several programs at once keep one chain through a short lock, and a log that cannot be written is skipped with a warning. zn audit hides the value after a credential flag in more argument lists, in its text, JSON and SARIF reports.
  • Redaction: some provider token formats were not redacted by the library API, the MCP tool checks, the text sent to the cloud analysis and the local evidence preview. They are now redacted the same way as in the Python package. The agent hooks were not affected. Update to zn-gate 1.13.0. Advisory
2026-10-18
zn-gate 1.12.0: reach report, SLSA Build Level 3 builds, signed tags

zn-gate 1.12.0 adds `zn-gate reach`, a read-only report of what the coding agents on this machine can reach, and closes two ways audit output could show a secret value. Update with npm install -g zn-gate@1.12.0. The Python package moves to 1.12.0 too.

  • Reach: zn-gate reach shows which agents zn protects, the names of the secrets in the .env files of a folder, the credential files in your home folder (checked only for whether they exist) and the environment variables that hold a secret. Each finding has the command that fixes it. It sends nothing and never shows a value. --sarif for code scanning, --json for scripts.
  • Audit hides more secrets: zn audit no longer shows a secret value in a format it does not know when it follows a credential flag, an auth header or a name such as API_TOKEN=, and hides the value that follows a credential flag in an MCP server argument list. Rotate any secret that a finding showed in an earlier version.
  • Signed releases: releases are built and attested by a separate workflow (SLSA Build Level 3), and release tags are signed with gitsign. From 1.12.0 on, the signer workflow of the GitHub attestations and Sigstore signatures is build-release.yml (npm provenance and PyPI attestations still name release.yml); see the release verification docs.
  • Hooks: a long shell patch (apply_patch in Codex) is refused in a fraction of a second again. The decision does not change.
  • Agent hooks: protected files: a protected file could be read or run without being checked when a command reached it indirectly, or when a command was too long or too slow to check. Fixed in zn-gate 1.12.0. Advisory
2026-10-17
zn-gate 1.11.0: 26 more secret formats, clearer refusals

zn-gate 1.11.0 finds 26 more kinds of provider tokens, says which file a refused command touched, and closes two more ways an AI agent could act in your place. Update with npm install -g zn-gate@1.11.0. The Python package moves to 1.11.0 too: its scan finds the same new formats.

  • More secret formats: zn-gate scan, the agent hooks and the Python package find 24 provider token formats taken from gitleaks (1Password, Cloudflare, Grafana, Notion, Sentry, Terraform Cloud and others), plus Square tokens and Discord bot tokens. Only formats with a fixed provider prefix, each checked to look random.
  • Clearer refusals: when a command is refused because of a secret file, the message names the file (.env), and a patch sent as a shell command (apply_patch in Codex) is refused with the file it writes or the reason. What is blocked does not change.
  • Your own commands: zn-gate pins approve now refuses to run under an AI agent, like the other commands that only you may run.
  • Windows: the vault's approval dialog and the Credential Manager backend start the system PowerShell, found in a way an AI agent cannot redirect. If it is missing, approvals are refused; with Credential Manager, use zn unlock --backend passphrase.
2026-10-16
zn-gate 1.10.0: audit mode for the GitHub Action, stronger guard on your own commands

zn-gate 1.10.0 adds an audit mode with SARIF output to the GitHub Action, makes the commands that only you may run harder for an AI agent to start, and checks long shell commands much faster. Update with npm install -g zn-gate@1.10.0. The Python package moves to 1.10.0 too.

  • Your own commands: zn secret set and the other secret commands, zn unlock and the guided zn-gate init now also check whether an AI agent's command-line program (claude, codex, opencode, cursor-agent) started them, even when the agent removed its environment variables. This makes it harder, not impossible.
  • zn unlock: with the system keychain it now needs an interactive terminal, since that unlock asks nothing. With a passphrase, --passphrase-stdin still works from a pipe.
  • GitHub Action: mode: audit reviews agent configs, hooks, MCP servers, plugins and skills, and format: sarif sends the findings to GitHub code scanning. mode: scan, the default, works as before.
  • Long commands: the agent hooks check a long shell command much faster, so long commands stay checked instead of running out of time.
  • Fewer false alarms: a database URL whose password is only a reference, such as ${PGPASSWORD}, is no longer reported as a secret.
2026-10-16
zn-gate 1.9.1: scan names leaked secrets and the next step

zn-gate 1.9.1 finds more leaked secrets, says what to do with each one, and closes a way an AI agent could start the guided setup. Update with npm install -g zn-gate@1.9.1. The Python package moves to 1.9.1 too: its scan finds the same new secret types.

  • Guided setup: an AI agent could start the guided zn-gate init with a backslash or other characters the shell joins into one word, an option in capital letters, or npm exec. These are refused now, and the guided zn-gate init stops with an error when it gets any argument. An agent variable such as CLAUDECODE that is set but empty also counts as an agent.
  • More secrets found: zn-gate scan finds secrets passed as command-line flags (--token=...), machine-generated values assigned to names such as password or api_key, opaque Authorization: Bearer tokens and passwords in URLs such as git remotes. The Node.js scan also reports the provider token formats (Slack, Stripe, Google, Hugging Face and others) that the Python scan already reported. zn’s agent hooks block a Bearer token or replace it, as for the other secret formats.
  • Secret found: the scan reports a secret as Secret found, with its next steps (zn-gate env shadow for a .env file, zn-gate secret set for any other value, rotating anything that was ever committed or shared), and never prints the value. A CI job that fails on findings can start failing on files that passed before.
  • Uninstall: zn hooks uninstall claude-code removed any MCP server called secrets, also one that was not zn’s. It now removes only zn’s own server.
  • Node.js 18: with an older Node.js, the zn-gate and zn commands you run stop and say how to install Node.js 18 or later. Hooks keep running and print a warning.
2026-10-16
zn-gate 1.9.0: one command to set up your coding agents

zn-gate 1.9.0 makes npx -y zn-gate init the one command that sets up zn for the coding agents on your machine, and adds zn-gate check to show that zn stops your agent from reading a secret. Update with npm install -g zn-gate@1.9.0. The Python package has no code changes and moves to 1.9.0 to keep the versions in step.

  • Guided setup: zn-gate init finds Claude Code, Codex CLI, Cursor and OpenCode, shows the setup for each one that is not protected yet, runs each step after you confirm it in your own terminal, and ends with a check. When an AI agent or a script runs it, it only prints the steps.
  • zn-gate check: for each agent set up for your user, it asks zn’s hook to let the agent read a .env file with a fake key and an ordinary file. An agent counts as protected only when the first is blocked and the second allowed. Nothing is sent over the network and no setting changes.
  • Claude Code settings: zn hooks install claude-code and zn-gate status warn when a Claude Code setting or an organization policy stops zn’s hooks or its secrets MCP server from running.
  • Block messages: zn commands that only you may run now say what the command does and give the exact command to run yourself.
  • Breaking for scripts: zn-gate init without options no longer wraps the MCP servers in your agent configs. Use zn-gate init --wrap-mcp.
2026-10-16
Account deletion: second factor and security emails

Requesting the deletion of your account is now treated like other sensitive actions.

  • Second factor: if you have two-factor authentication, requesting deletion asks for it; otherwise it needs a sign-in from the last 10 minutes. Cancelling a request does not.
  • Security emails: we email you when a deletion is requested and when it is cancelled, whatever your notification settings, with the date the account will be deleted and how to cancel.
2026-10-15
zn-gate 1.8.2: MCP tool annotations

zn-gate 1.8.2 adds MCP tool annotations and changes nothing else. It includes the 1.8.1 security fixes below, so if you are on 1.8.0 or older, update now with npm install -g zn-gate@1.8.2. The Python package moves to 1.8.2 to keep the versions in step (pip install -U zn-gate).

  • MCP tool annotations: every tool of the zn-gate and secrets MCP servers now has a title and says whether it is read-only, destructive, idempotent and reaches the outside world (readOnlyHint, destructiveHint, idempotentHint, openWorldHint), so MCP clients can show it and ask before the tools that change things. analyze_prompt reaches the outside world only with the optional cloud check on. No change in what the tools do.
2026-10-15
zn-gate 1.8.1: agent hook checks in linear time

If you use the zn-gate agent hooks with Claude Code, Codex CLI, Cursor or OpenCode, update with npm install -g zn-gate@1.8.1. The Python package has no code changes and moves to 1.8.1 to keep the versions in step (pip install -U zn-gate). If your vault is unlocked, run zn lock, then zn unlock, so it runs 1.8.1.

  • Secret scrubber and audit checks in linear time: values in .env, .npmrc and .znrules files, the vault audit log and a few zn audit checks are now read in linear time, so these checks finish within the time the agent waits for the hook. Fixed in zn-gate 1.8.1. Advisory
  • Codex and OpenCode patches: file names in a Codex or OpenCode patch (apply_patch) are read in linear time and the way each agent reads them. A patch that zn cannot read safely is blocked. Fixed in zn-gate 1.8.1. Advisory
  • Large patches blocked: in Codex and OpenCode, a patch over 100 KB is blocked, like shell commands over 100 KB, because zn could not check it within the time the agent waits for the hook.
2026-10-15
Team is open

Team is now available to every team, with a 14-day trial. It adds the shared parts on top of zn-gate, which stays free and keeps running on each machine:

  • One signed policy that every zn-gate in your organization downloads, verifies and applies. Each rule can block or warn (zn-gate 1.8.0 or later). In this first version the policy is tested and supported for Claude Code and Codex; Cursor and OpenCode follow in a later release.
  • An audit trail of the decisions zn-gate takes on each machine, with metadata only: the secret's name, the agent, the tool, the host and the decision. Never secret values, prompts, file contents or tool output.
  • Exports of that trail as CSV, JSON or OpenTelemetry logs, for reviews and auditors.
  • A shared quota: 50,000 calls per seat each month for the whole organization.
  • Roles for owners, admins, members and auditors. Sensitive actions ask owners and admins for a second factor.

$19 per seat per month, or $15 billed annually, from 2 to 50 seats. More than 50 seats or SSO: sales@usezn.com. Start at usezn.com/pricing; the guide is at usezn.com/docs/team.

2026-10-15
zn-gate 1.7.1: hook checks that finish in time, scan output without secrets
  • Agent hooks finish in time: glob and brace matching no longer backtracks and paths resolve in linear time, so a crafted shell command cannot push the hook past its time limit. Words too complex to check are refused. Fixed in zn-gate 1.7.1. Advisory
  • Scan output without secret values: zn-gate scan no longer prints matched values and honors --format text, json and github. Fixed in zn-gate 1.7.1. Advisory
2026-10-14
Long inputs scored in windows, billed by size
  • Long inputs in windows: the analyze API scores inputs of more than 2,000 characters in up to 20 overlapping windows, always including the end of the text, instead of only the first 512 tokens, so an instruction hidden later in a long tool result or file is no longer outside what the model reads. Shorter inputs can ask for it with "long_input": "windows". API reference
  • Billing by size: a call covers up to 2,000 characters; each extra 1,000 characters, or part of them, is one more call (20,000 characters are 19 calls). Every response reports input_chars and billed_calls. Inputs of up to 2,000 characters are billed as before. Quotas
2026-10-13
Two-factor authentication and verified email addresses
  • Two-factor authentication and passkeys: accounts can add an authenticator app or a security key, and a passkey sign-in counts as a second factor. It is optional for personal accounts and required for organization members and for anyone who turns it on. Creating or showing an API key needs a recent sign-in, plus the second factor when it applies. Account security
  • Verified email addresses only: an address is an identity only once it is verified. API keys, billing, usage, evidence and organizations refuse a session with an unverified address, and the dashboard asks to verify it instead of signing the user out. Sign-up on a legacy database connection that no app used for sign-ups was closed.
  • Verification emails from our own domain: account emails now come from security@usezn.com and their links point to auth.usezn.com.
  • Faster revocation: revoking an API key or an organization token needs only a recent sign-in, not a second factor, so a leaked key or a lost laptop can be cut off at once.
  • Organization tokens cannot be locked out: wrong secrets sent with a token's public id no longer suspend that token; they raise an alert and appear in the organization activity log.
  • Billing changes ask for a second factor: the owner of an organization needs two-factor authentication to open the billing portal, change seats or the pay-as-you-go cap, or make someone an admin or an auditor.
  • Galvanize 2 in the cloud check: since 12 October the optional cloud check uses Galvanize 2; Galvanize-60M remains the automatic fallback. Details
  • zn-gate 1.6.0: the agent hooks also deny zn admin commands written as a versioned package call (npx, pnpm dlx, bunx with zn-gate@<version>), which they let through before. Advisory
  • zn-gate 1.5.1: on Windows, zn run starts batch files only through the system cmd.exe, so a program chosen through the environment can no longer receive secret values. On every platform, it no longer passes interpreter start-up settings from the caller's environment, such as NODE_OPTIONS, to a program that receives secrets. Advisory
2026-10-09
Session security hardening
  • Instant server-side revocation: a per-user revocation epoch now invalidates previously issued tokens the moment a password is changed or reset, or the user chooses "Sign out of every device" — no waiting for token expiry.
  • Shorter token lifetimes: access tokens reduced from 24 hours to 15 minutes, with refresh-token rotation and reuse detection (a reused copied token revokes the whole chain).
  • Logout hardens the session: a normal logout now forces a refresh-token rotation, so a previously captured refresh token becomes useless.
  • Automatic sign-out on rejection: clients immediately sign out when a session is rejected server-side.
  • First-party authentication domain: sign-in and sign-out now run on auth.usezn.com instead of exposing the underlying identity-provider tenant.
  • Branded error handling: identity errors now show a usezn-branded page, and expired sessions land on the login page with a clear "session expired" notice instead of a broken redirect.

Thanks to the independent researchers credited in our Security Hall of Fame — reports like theirs are how these improvements happen. Found something? Contact security@usezn.com.