Privacy Policy
Last updated: 20 November 2026
Changes in this version: what Contributor Mode stores (the deciding window, up to 2,000 characters, and the first 300 characters, both fully scrubbed), who can turn it on, and how to opt out per account or per request.
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 showprints 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=offstops 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
By default zn stores no input text. An analysis leaves a record with the verdict, scores, a SHA-256 digest of the input and its size, never the text itself.
Contributor mode is an opt-in that helps improve the detector. Only the account owner can turn it on, from the dashboard (Settings, Contributor mode). Accounts that belong to an organization (Team plan) cannot turn it on, so no text is ever stored for them. Nothing else turns it on: not a plan change, not an API key. If your grant agreement includes contributor mode, the setting shows as on by agreement and cannot be turned off from the dashboard while the agreement lasts; you can still opt out of single requests (see below) and ask support.
What is stored when it is on
- The part of the input that decided the verdict (the deciding window, up to 2,000 characters) and the first 300 characters of the input. Short inputs are stored whole.
- Both excerpts go through the same secret and personal-data scrubber that zn-gate ships, before anything is written. Secrets (API keys, tokens, private keys, connection strings), email addresses, phone numbers, payment card and bank account numbers, national identifiers and public IP addresses are replaced by placeholders such as
[REDACTED_EMAIL]. A secret that crosses the edge of an excerpt is removed whole. Scrubbing is pattern-based and does not catch every piece of personal data written in free prose, so do not send regulated data to an account that has contributor mode on. If scrubbing fails, nothing is stored and your request is still answered. - Labels that make the excerpt a usable example: the position of the deciding window and the number of windows, its approximate character range in your input, the verdict, the score, the detector model and the scrubber version.
- The usual record fields: verdict, scores, time, key id.
- A label, if you report one with the feedback endpoint (only the label leaves your record for training; never the note).
Nothing else from the input is stored, and nothing is stored for requests made while contributor mode is off.
Retention
Records, with their stored text, are deleted automatically 90 days after the analysis. Deleting your account deletes them earlier. Deletion after 90 days is best-effort: it usually happens within a few days after the date. Deleted records can still be restored from a point-in-time backup for up to 35 more days, after which they are gone. Text stored for training is used only to train and evaluate zn's own detectors. It is not sold or shared.
Opting out
- Account: turn the setting off in the dashboard (unless it is on by agreement, see above). New requests stop storing text immediately. Text already stored expires on its 90-day schedule, or is removed when you delete your account.
- Request: send the header
X-Zn-No-Store: 1on an analyze call. That request keeps the usual record (verdict, digest, size) and no text, even when the account is opted in. The header accepts 1, true or yes (any case); it can only turn storage off, never on. The request field"contribute": falsedoes the same.
If you are on a paid plan and never opted in, nothing changes: no text is stored.
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 joinconnects 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 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 or reach out on X @use_zn.
For security reports, safe harbor, and our compliance roadmap see the Security Policy. For subprocessors and data processing terms see DPA & Subprocessors.