Security fixes go into the latest minor release (see Releases). Upgrade to it to get them; older releases are not patched.
Please do not open a public issue. Report privately:
- Email
security@divmora.com, or - open a private advisory at github.com/divmora/zenith/security/advisories/new.
Include a description, impact, reproduction steps and any suggested fix. We acknowledge within 48 hours, triage within 5 business days, and coordinate disclosure with you.
- Run it in a sandbox. Zenith edits files and runs commands chosen by a model. Use a disposable container or VM with only the repository mounted, and restrict network access to your model provider and package registries.
- Repository content is untrusted. Treat everything the agent produces as a proposal: review the branch before merging.
- What leaves your network: files the agent reads and command output are sent to the configured model provider. Pick a provider and data-retention terms that fit your code's sensitivity, or run a local model.
- Credentials: pass API keys and git tokens as environment variables only. Zenith keeps them out of the environment of commands the model runs (an allowlist; add more with
--pass-env), and its own git calls disable hooks, fsmonitor and filters the model could plant. After every run zenith restores the repository's.git/config,info/attributesand hooks to what they were at the start (and says so in a warning event), so nothing planted runs later in your own git. - Publishing:
zenith publishis the only command that uses a code-host token, and no model runs in it. Run it outside the agent's sandbox, with a token scoped to the one repository (contents and pull requests). It sends the token to git as an HTTP header scoped to the push host, through the environment rather than the command line, and does not follow redirects. - zenith's own environment: on Linux, zenith marks its process non-dumpable, so commands run as the same user can't read its environment (and the API keys in it) from
/proc/<pid>/environor attach a debugger to it. - Known limit: files in
$HOME. Commands run as the same OS user as zenith, so they can read files it can, such as~/.aws. In a container, pass credentials as environment variables and don't mount your home directory. Prefer short-lived credentials, or route model calls through a proxy outside the sandbox (the console will do this). - Commits: zenith leaves common build artefacts (
__pycache__,node_modules, ...) out of its commit, scans the added lines for credentials, and lists any findings in the result;publishrefuses to push them without--allow-secrets. - Output files may contain repository secrets. Events, results and pull request text have known secret formats and values assigned to secret-looking names replaced with
[REDACTED], including later uses of a value already seen. That is best effort: treat--events,--resultand checkpoint files (which keep the full conversation forresume) as sensitive, and use--events-level summaryto leave tool output out of the events.