Skip to content

Security: inzinity/pazz-cli

SECURITY.md

Security

pazz keeps credentials away from AI agents: agents use secrets without seeing them, on your machine, in dev containers and in deployments. This page is how to report a vulnerability, a one-screen summary of what pazz protects and where it stops, and its known limitations. The full threat model, with every control in detail, is docs/spec/threat-model.md.

Warning

pazz is an early pre-release, provided as is, without warranty of any kind, and has not been independently audited (No warranty, no liability). Don't use it for production credentials, and do your own security review before relying on it.

Reporting

Please report vulnerabilities privately through GitHub's private vulnerability reporting on this repository, never in a public issue. Never include real secrets.

Please include:

  • what the issue is and which part of pazz it affects (command, module, platform);
  • the steps or proof of concept to reproduce it;
  • the version or commit, the OS, and the agent and its version (Claude Code, Codex, nono) if one is involved;
  • the impact you have established, especially anything in the list below.

In scope, roughly in order of priority:

  • a secret value, the age identity or the passphrase reaching anyone the trust boundaries say it shouldn't: an agent in a sandboxed session, another OS user, a cloned project, the git remote, logs, transcripts, error messages;
  • an agent in a sandboxed session reaching another scope, a protected environment, the vault, key or config, or a placeholder's real value, or widening its own sandbox without your answer in a dialog;
  • a cloned or untrusted project choosing a vault, scope or environment, or steering where a command sends its credentials;
  • a git remote injecting, altering, rolling back or deleting entries, readers or signers without detection on a machine that has synced;
  • a deployment token or sidecar reaching beyond its one folder, or working after pazz deploy rm;
  • anything in Known limitations that turns out to be wider than it says.

Out of scope:

  • malware or an unsandboxed agent running as your own user while a vault is unlocked (trust boundaries rate this "none" and "weak" on purpose);
  • bugs in Claude Code's, Codex's or nono's own sandbox, unless pazz configures it wrongly: report those to their vendors;
  • a backend store, or whoever can write to it, changing values (it is trusted by design);
  • native Windows, which is unsupported for security purposes;
  • scanner output without a demonstrated path to one of the in-scope outcomes.

Supported versions: pazz is pre-1.0. Fixes land on main and in the next release; there are no long-term branches.

The maintainer aims to acknowledge reports within 7 days and to publish a fix and advisory within 90 days, sooner when a fix is ready. These are goals, not promises. Reporters are credited in the advisory unless they ask not to be.

Safe harbour. Good-faith security research on pazz is welcome. If you test only your own installation and data, report privately, and give a reasonable time to fix before disclosing, the maintainer will not pursue or support legal action against you for that research.

The model in brief

What it protects: secret values; the age identity that decrypts a git vault (wrapped with your passphrase, in the repo and your config); and the vault's integrity: which entries exist, what they hold, who can read them and who signs them. Names, keywords, descriptions, host tags, sizes and commit times are not secret.

How: an agent in a sandboxed session reaches secrets only through a broker outside its sandbox, which serves one project and its allowed environments and returns values only into the environment of a command pazz run starts. Host-tagged API keys and Postgres URLs reach it only as placeholders. Opening a protected environment, and changing access rules, host tags (in a git vault; a backend store's writers control its own), backends or deployments, needs a human. A git vault is plain age files under a signed manifest with rollback detection and a locally pinned list of readers and signers; since vault format 2 the manifest also signs those lists, the vault's id and an expiry.

Trust boundaries

Boundary Strength What remains
Another OS user on the machine Strong.
  • Agent sockets are 0600 in a 0700 directory, and both sides verify ownership and mode.
  • The broker authenticates peers by the uid the kernel reports.
  • Every pazz directory (store, config, per-vault state) is kept 0700, so files git checks out as 0644 stay unreadable to other users.
Root, and anyone who can act as your user.
The git remote (GitHub, or anyone with push access) Strong for confidentiality, integrity, deletion and rollback of states this machine has synced. No protection for availability. A fresh clone trusts what it receives (trust on first use). A first clone without --fingerprint; a machine offline during an attack has no earlier state to compare with; names, structure and commit times are visible.
A cloned or untrusted project directory Strong. Nothing inside a project can select a vault or a scope. Bindings and scope aliases live only in your config. Its pazz.toml settings reach a direct pazz run, and runs in its dev container, once you accept the content shown; its .claude settings reach pazz claude once you confirm them.
A coding agent in a sandboxed session (pazz claude, pazz codex, or another sandbox reaching pazz broker) As strong as the agent's sandbox, except for the scopes you allow. Commands get those scopes' values; host-tagged API keys only as placeholders. The vault, key, config and other scopes stay out of reach. See docs/sandboxed-agents.md. Bugs in the agent's sandbox; values of the allowed scopes (its commands use them); data sent to granted hosts, and around the allowlist with tls-compat or local-ports; masking that misses a transformed value.
A coding agent running as a separate OS user through pazz broker Strong for everything except the scopes you allow. It can obtain the values of those scopes, because its code uses them. It cannot obtain anything else. See docs/agent-isolation.md. Values of the allowed scopes; anything the other account can reach on its own.
A coding agent running as your own OS user Weak, by design. Without a sandboxed session, layered guards stop only accidents and prompt-injected commands. An agent that deliberately evades them can read any secret in an unlocked vault, for example by talking to the agent socket directly. Everything in an unlocked vault. Use a sandboxed session.
Malware running as your OS user None while a vault is unlocked. Everything; while locked, the passphrase as you type it.
A backend store and whoever can write to it Trusted for values and their integrity; pazz's manifest checks don't apply. Whoever can write to the store can change values, and the hosts a tagged key is sent to.

Guards inside an agent session that isn't sandboxed (reveal gate, scope confinement, masking, the tool-call hook) stop accidents and prompt injection, not an agent set on evading them. Every control, what it defends against and what it does not: threat-model.md §4.

Known limitations

  • Trust on first use, unless you give a fingerprint. The fingerprint (v2: and 8 groups of 4 hex digits) covers every .age-recipients and .pazz-signers file, the root .gitattributes and .pazz-protected, and the vault's public key, with line endings normalised. init --remote trusts the signers and the manifest it clones; in a format 2 vault the manifest then vouches for the recipients and the wrapped key. A fingerprint without v2:, from an earlier release, is still checked the old way for this release. With --fingerprint (from pazz trust fingerprint on a machine you trust) it refuses a vault whose readers or signers differ, so someone who can push to the remote can't add their own first. Without it, compare the fingerprint it prints yourself.
  • Rollback detection needs history. A machine detects only replays older than the state it last synced. A machine that was offline while the attacker acted has nothing to compare against.
  • Metadata is visible to anyone with the repo. Names, directory structure, keywords, descriptions, file sizes and commit times are plaintext.
  • Not post-quantum yet. Vault entries are encrypted to age X25519 keys, manifests are signed with Ed25519, and TLS to tagged hosts and databases uses X25519 key exchange. Someone who keeps a copy of the vault repo or records that traffic could decrypt it if those algorithms are broken later. Keep vault repos private and rotate long-lived secrets. Hybrid ML-KEM is planned for TLS, and for the vault once the Rust age crate supports it (#103).
  • Revoking a recipient doesn't hide old secrets from them. Rotate the values. Until every writer has synced the revocation, a writer with a stale copy can still encrypt a new value to the removed key, and sync accepts it: have writers sync before writing after a revocation, and rotate after.
  • A git vault records changes, not reads. Values are decrypted on each reader's machine, and pazz log covers only agents' requests there. Where reads must be logged, keep those values in a backend store that logs them.
  • Signers are all-powerful. Anyone listed in .pazz-signers can rewrite or delete any entry in the vault, including entries they cannot decrypt. Only add signers you would give full write access.
  • Masking is not complete. It skips values shorter than 4 characters and cannot catch arbitrary transformations, such as ${VAR%?} or a value embedded inside other encoded data. The environment variables of a running child process are readable by processes of the same user.
  • Dependencies. age brings in about 70% of pazz's dependency tree, much of it for features pazz never uses.
    • age 0.12 always compiles P-256 support, which pulls in crypto-bigint 0.5 (RUSTSEC-2026-0387, timing side channels). pazz never uses P-256 recipients, so that arithmetic is unreachable from pazz.
    • Its build-time translation macro uses the unmaintained basic-toml (RUSTSEC-2026-0374).
    • Both advisories are ignored in deny.toml, each with its reason, until age updates. CI runs cargo deny check for advisories, licences and sources.
    • The vault format is plain age. tests/interop.rs proves that the reference age tool can decrypt both the wrapped key and the entries, so pazz is never required for recovery.
  • Agents in sandboxed sessions can overwrite (-f) and remove this project's unprotected secrets (environment values only, where a protected environment would inherit shared ones). This is by design, so they can work unattended. Git history keeps earlier versions.
  • Sandboxed sessions inherit the agent's sandbox. A bug in Claude Code's or Codex's sandbox is a bug in this boundary. Codex must enable sandbox networking to reach the broker socket, and has no setting like Claude Code's failIfUnavailable, so pazz tests Codex's sandbox before every launch (a command run with codex sandbox must fail to read a denied path) and refuses the session if it doesn't hold; it can't stop Codex from running a later command outside it. A server that reflects request headers returns a token masked by Claude Code's proxy into the sandbox; pazz's own proxy masks such an echo, best effort: a partial or otherwise transformed echo, or a value shorter than 4 characters, can still come back.
  • Placeholders cover HTTP credentials and Postgres logins. A token is swapped in the URL path and query string, headers and Basic credentials, not in request bodies, for clients that honour HTTPS_PROXY or use NAME_BASE_URL. So an agent can have the tagged host store the real value where it can read it back unmasked from another host: as a file name in a public repo, say, or as message text sent in a query parameter. Only the tagged host's responses are masked. Authorization must carry the placeholder alone, so the value can't be paired with someone else's credentials there; other headers and query parameters aren't checked, because APIs send a second, public key beside the real one, so an agent can still pair the value with an account of its own through them. Tag hosts whose API can't publish what it stores, or don't give such secrets to agents. Other databases, AWS keys outside Claude Code, and other secrets reach the command as values. Cancelling a running Postgres query from the client isn't relayed. A secret tagged only with wildcard hosts can't be a placeholder (the proxy dials one named host), so its run is refused until it is tagged with an exact host.
  • Native Windows builds in CI and is checked by hand (compatibility.md), but has no automated tests and no security review, and has no OS sandbox for agents. Treat it as unsupported for security purposes.
  • Deployments can be rolled back, within limits, by whoever pushes to the vault repo. Its token records the vault's version when it was made, and it records the newest version it has used in its config directory. A deployment that starts without that record (a fresh container or CI runner) accepts any signed state since the token was made that hasn't expired: in a format 2 vault, one signed within the window (14 days by default), which can still be from before a rotation inside that window. Keep the config directory on persistent storage, shorten the window (pazz trust window), restrict push access, or pin the checkout to a commit.
  • Expiry needs someone to sync. If no unlocked machine syncs the vault for a whole window, deployments stop starting (running sidecars keep serving). Autosync on a machine that is regularly unlocked keeps it fresh.
  • Mixed versions. A machine on a release before format 2 reads and syncs a format 2 vault, but its own seal writes format 1 (no expiry, id or signed trust files). Upgraded machines accept that state and upgrade it again at their next sync; format 2 deployment tokens refuse it until then. Upgrade every machine that writes to a vault.
  • Token expiry is enforced by pazz, not by cryptography. A token stops working in pazz deploy after its date (90 days by default), but its key still decrypts the folder with the plain age tool. Revoking means pazz deploy rm, which re-encrypts.
  • AI-assisted development. pazz was designed and written with substantial help from AI coding agents, directed and checked by a human. This is one more reason for the independent audit that docs/AUDIT.md prepares.
  • No independent third-party audit has been performed. The maintainer's own review rounds, and what they fixed, are in docs/security-reviews.md.

Further reading

Document What's in it
threat-model.md Assets, actors, trust boundaries, every control in detail, invariants, and the new boundary between core and plugins
core-policy.md Who may do what, per operation and caller, and the rules still open
age-git-format.md, broker-protocol.md The vault format and the broker's wire protocol, exactly
AUDIT.md The package for an external review: scope, modules, questions
security-reviews.md The maintainer's own review rounds and what they fixed

There aren't any published security advisories