# Privacy Policy

Markdown twin of <https://usezn.com/privacy/>. Last updated: 18 November 2026.

*Changes in this version: who at zn can open your evidence records, and when (only with a recorded reason, every access logged for 400 days), and how long we keep the usage counters (hourly 400 days, daily and monthly 730 days) and under which key.*

## Overview

zn ("we", "our", or "us") is committed to protecting your privacy. This Privacy Policy explains what data reaches us and how we use and safeguard it when you use zn-gate, our optional cloud API and dashboard, the Team plan, and this website.

## zn-gate: What Leaves Your Machine

zn-gate is open-source software (MIT) that runs on your machine. **By default it sends nothing to us or to anyone else.** It has no account and no telemetry by default: from 1.7.0 you can choose to share pseudonymous daily counts (below); versions 1.4.1 to 1.6.x never send any.

**Never sent, in any configuration:** tool output, tool-call arguments, and MCP tool and parameter descriptions. They are evaluated locally only.

**Optional cloud check:** only if you set both `ZN_CLOUD=1` and an API key, the text of prompts you analyze with `analyze_prompt` or `zn-gate analyze` is sent to our cloud API. Secrets (API keys, tokens, private keys and similar credentials) are redacted on your machine before the request is built. zn-gate does not redact other personal data from that prompt text, so do not enable the cloud check for prompts that contain personal data you do not want to send. `ZN_LOCAL_ONLY=true` overrides `ZN_CLOUD=1`, and `zn-gate status` prints what your configuration sends.

**Claude Code plugin:** the zn-gate plugin for Claude Code has one optional setting, a zn API key. If you enter one, the `analyze_prompt` tool also sends the text it checks, with secrets redacted first, to api.usezn.com, as in the cloud check above. Leave it empty and everything stays on your machine. For the plugin's `analyze_prompt` tool this setting is the only switch: the `ZN_CLOUD`, `ZN_API_KEY` and `ZN_LOCAL_ONLY` environment variables do not change it.

**Optional pseudonymous daily counts (zn-gate 1.7.0 and later):** counts only, with a random ID that is not linked to your account; we do not claim they are fully anonymous.

- **Off by default.** You turn it on with `zn-gate stats share on`; zn-gate asks you to confirm in an interactive terminal, and its agent hooks block AI agents from turning it on.
- **What is sent.** When you run `zn-gate stats`, it sends one report to api.usezn.com for each complete day since you turned sharing on that was not sent yet (at most the last 3). The report has a random installation ID (new each time you turn sharing on), the day, the zn-gate version, the Node.js major version and the operating system, the agent and the protection layer used most that day, and how many times each built-in secret type was found.
- **What is never sent.** Secret values, prompts, file names or paths, hosts, project names, or names you gave your secrets (they are counted as "other").
- **Before it is sent.** `zn-gate stats share show` prints exactly what would be sent.
- **Retention.** We keep each report for 400 days. Like every request to our API, the request's IP address is in our access logs for 30 days; it is not stored with the report.
- **Turning it off.** `zn-gate stats share off`. `ZN_STATS=off` stops the local counts in `~/.zn/stats.json`, so there is nothing new to share; those counts never leave your machine unless sharing is on.

The local evidence dashboard of zn-gate is served on `localhost` and its log stays on your machine.

## Information We Collect

**Account Information:** Email address, company name (optional), and billing information when you subscribe to a paid plan (processed by Polar, our Merchant of Record).

**Usage Data:** API call counts, latency metrics, and aggregate statistics about your usage patterns.

**Evidence Data:** When our cloud API analyzes input for prompt injection, we generate evidence records for audit purposes, as described below.

**Team plan data:** If your organization is on the Team plan, the organization, membership and audit metadata described in the Team plan section below.

**Contact for more than 50 seats or SSO:** if you use that form, your email address, the page you came from, and any seats or SSO answers you give.

## AI Processing and Retention

**Evidence Only:** We store evidence records: verdict, confidence, rule, rules and model versions, latency, timestamps, and request metadata (a SHA-256 hash of the input, its size in bytes and characters, which API key was used, shown as its 12-character prefix plus a one-way identifier, and where the call came from: the endpoint, the host of the Origin header, and the client family, such as zn-gate npm/PyPI with its version, browser, curl or other). We never store the raw User-Agent or your IP address in evidence records. Outside Contributor Mode described below, we do NOT retain the original prompt content after analysis.

**No Input Retention (all plans):** On every plan (Free, Pro, Scale and Team), your input text is processed in memory and discarded immediately after analysis. We never store, log, or train on that content. (Contributor Mode is the documented exception below.)

**No input copies:** Outside Contributor Mode, evidence records never contain your input. Records created from October 12, 2026, 12:24 UTC include a SHA-256 hash of the input, so you can prove which exact text a verdict refers to: hash the same text on your side and compare. A hash cannot be reversed, but a very short or predictable input (for example "hello") can be guessed by hashing candidates, so treat the hash as part of the record, not as anonymous. Earlier records carry no hash. Each record also has a random evidence ID you can cite in audits.

**Retention Period:** Evidence records expire automatically after 90 days, whichever endpoint created them. You can request deletion of any record at any time.

**Encryption:** Evidence records and account data are encrypted at rest (AES-256, AWS-managed encryption). API keys are stored hashed and encrypted with AWS KMS.

**Exportable:** Evidence records can be exported as CSV or JSON from your dashboard at any time.

**Access by zn staff.** Your evidence records are shown in your dashboard. zn staff do not open individual records without a recorded reason, except Contributor Mode samples and checks whose content was stored. We use aggregate counts per account (calls, allow and block verdicts, latency, quota) to run the service, enforce plan limits and improve detection; apart from Contributor Mode samples and checks whose content was stored, staff tools show only these counts. Otherwise, staff may open the individual evidence records of your account only (a) to answer a support request or a usage question you raise, with your consent, or (b) to investigate abuse of the service or a security incident. Each such access is logged before anything is shown, with who, when and why (the reason and its ticket or incident reference), and that log is kept for 400 days. Outside Contributor Mode, evidence records never contain your input text. Contributor Mode excerpts are accessible only to the zn team, for model improvement.

**Usage counters.** To show you your usage and to enforce plan limits, we keep counts of your calls per hour, day and month: verdicts, endpoint, detector, latency and errors. They never contain your input text or IP address. Counters are stored under a keyed hash of your account (HMAC with a secret kept apart from the data), not under your email. Hourly counters are kept for 400 days; daily and monthly counters are kept for 730 days. They are then deleted automatically.

## Contributor Mode Telemetry

If you opt in to Contributor Mode (offered with some startup and research grants), a scrubbed excerpt of each input analyzed through the current API (the first 1,000 characters, with emails, bearer tokens, API keys and long hex strings redacted automatically) is stored with its evidence record for up to 90 days and used to improve zn detection models. Automatic redaction does not catch every piece of personal data in free text, so do not send sensitive personal data in this mode. Participation is voluntary and limited to Contributor Mode; moving to a paid plan stops collection for new requests, and you can ask us to delete stored excerpts at any time.

## Zero Data Retention for Paid Plans

All plans (Free, Pro, Scale and Team) run under Zero Data Retention for inputs outside Contributor Mode: inputs are evaluated in volatile memory and purged immediately after the verdict; only the evidence metadata described above is kept. Paid plans never train models on customer data.

## Team Plan

For each organization on the Team plan we process:

- **Organization data:** organization name, seats and subscription status, members' email addresses and roles, and pending invitations (which expire after 7 days).
- **Policies:** the policies your administrators publish, with their version history. Policies refer to secrets by name only, never by value.
- **Connected installations:** a random installation ID, the agent, operating system and zn-gate version, and when it was last seen. Each installation's audit key is stored encrypted with AWS KMS and used only to verify the integrity of its audit log.
- **Audit events (only if uploading is enabled):** metadata about each decision: timestamp, secret name, mode, agent, tool, command name, destination host, decision and a short reason, plus sequence and integrity fields. Never secret values, tool output, full command arguments, file paths or prompts. Audit events expire automatically after 180 days. Exports are logged with date, author, format, row count and hash, and that record is kept for 400 days.
- **Organization access and activity:** organization access tokens, change requests (kept for 30 days) and a log of actions taken in the organization (who did what and when, kept for 180 days).
- **Join preview:** before `zn team join` connects a machine, it shows, when api.usezn.com can confirm them, the organization's name and the display name of the person who created the join token (never their email address), so you can check the invitation. Anyone who holds a valid join token can see those two names, so share join tokens only with your members. To limit attempts, we count previews per IP address under a one-way hash, in a record set to expire after two minutes.

Team data is visible to the members of your organization according to their role. The owner and admins control it: they can remove members and revoke installations at any time, and owners, admins and auditors can export the audit trail. Organization data is kept while the organization exists, including after a subscription ends, so it can be renewed. The owner can ask support@usezn.com to delete it; audit events and the activity log expire after 180 days in any case. The data is used only to run the Team features and billing.

## Contact for More Than 50 Seats or SSO

If you contact us about more than 50 seats or SSO, we keep your email address, the page you came from, when, and any seats or SSO answers you give, only to answer you, and delete them on request. We do not share them with third-party marketing or tracking tools. Emails collected on the earlier Teams waitlist are kept only to contact you and deleted on request.

## Cookies and Local Storage

We do not use analytics, advertising or tracking cookies, and the site loads no third-party scripts. When you sign in, Auth0 sets two session cookies, and the dashboard keeps your session tokens in your browser's local storage. The visit counter stores no IP addresses or personal data. Our API's security logs keep IP addresses for 30 days.

## How We Use Your Information

- To provide and maintain our service
- To process your subscription and billing
- To send you service-related communications
- To run the Team plan and answer contact requests about it
- To improve our detection models (aggregate metrics, plus Contributor Mode excerpts as described above)
- To comply with legal obligations

## Data Security

We implement industry-standard security measures including encryption in transit (TLS 1.3) and encryption at rest (AES-256, AWS-managed); API keys are stored hashed and KMS-encrypted. Our infrastructure runs on AWS, whose data centers hold SOC 2 Type II and ISO 27001 certifications. zn itself is not yet SOC 2 or ISO 27001 certified; our compliance roadmap is published on the [Security Policy](https://usezn.com/security/) page.

## Your Rights

You have the right to:

- Access your personal data
- Correct inaccurate data
- Request deletion of your data
- Object to or restrict certain processing
- Export your data in a portable format
- Opt out of marketing communications
- Lodge a complaint with your data protection supervisory authority

## Contact

For privacy-related inquiries, contact us at [hello@usezn.com](mailto:hello@usezn.com) or reach out on X [@use_zn](https://x.com/use_zn).

For security reports, safe harbor, and our compliance roadmap see the [Security Policy](https://usezn.com/security/). For subprocessors and data processing terms see [DPA & Subprocessors](https://usezn.com/dpa/).
