DOCS
Security and privacy
On the machine
balerx scan reads agent configuration and looks for poisoned files in the working directory. It does not start MCP servers. It does not send the report anywhere.
Secrets in findings are redacted before they are written to JSON, SARIF, or HTML. Credentials in MCP server URLs (userinfo and sensitive query parameters) are redacted in those reports, including unpinned and latest-tag finding titles and evidence, in lockfile command, args, and package name/version, in drift messages, and again on upload. Lockfile command and args also redact credential-like long flags, -H / --header values that carry Authorization, Cookie, X-Api-Key, or X-Auth*, and inline shell -c strings. Userinfo is taken from the @ in the authority only, so a path such as /pkg@latest stays. A / inside what looks like userinfo ends the authority, so that value is a path and is not redacted. Values that appear only in a URL path are not redacted.
The API repeats the URL credential redaction when it receives a scan, whatever scanner version sent it, before anything is stored. Hostnames and paths stay readable. Home-directory paths and the device hostname are stored as sent.
Guard writes decisions to a local activity log. That log stays local until upload.
When you opt in
balerx upload sends the scan JSON, drift from a lockfile you name, and activity-log metadata. Tool arguments are removed from the activity log before the request is sent. Plain http:// is refused unless the host is loopback or you pass --allow-insecure, so a typo in --api-url does not send the ingest key in the clear. Connect times out after 10 seconds and reads after 20 seconds.
balerx policy pull downloads the organization policy. It runs only when you pass an API URL and key. The same HTTP and timeout rules apply.
balerx setup, balerx policy show, and balerx policy edit write or read ~/.balerx/policy.yaml on the machine. They do not use the network. balerx policy edit keeps global.fail_open and timeout_ms. balerx doctor parses the file and exits 1 when it is empty or invalid. An empty or unreadable file fails closed in the hook: the decision is ask, not allow. An agent cannot read or write that policy file, the Claude Code or Cursor hook file, or the activity log. Guard is a guardrail, not a sandbox.
balerx version --check and balerx self-update --check look up the latest public GitHub release. They send one HTTPS GET, with no account or machine data, and they do not run unless you pass --check. balerx --version and doctor stay offline.
OTLP ingest stores span metadata for the project. Prompt and tool-argument attributes are dropped unless an owner or admin turns on content capture. While capture is off, argument summaries keep keys and sizes only; unsalted hashes of argument values are not stored. Redaction still runs when capture is on, including Stripe, Google, GitHub fine-grained, npm, HTTP Authorization, and URL userinfo shapes. Settings warns while capture is on. Redaction can miss a secret. Span timestamps outside a 7-day past / 10-minute future window are rejected. Monthly event counts use server receive time. Agent name, host, and reported cost are client-asserted. Ingest, sign-in, and authenticated-write rate limits share Postgres counters across API instances. Sign-in also keys on email and account. Client IP still uses X-Real-IP when the reverse proxy set it, otherwise the Nth X-Forwarded-For address from the right. See Monitor trust model and keys.
Ingest keys and session tokens are stored as hashes. Each ingest key has scopes. The server rejects a request that needs a scope the key does not have (HTTP 403). The audit log records who created a key, not the key itself.
Project Settings sets retention days. A daily job deletes traces, endpoint scans, fleet snapshots, findings, reports, usage rows, and resolved incidents older than that window. Open and acknowledged incidents stay until they are resolved or dismissed, then the same window starts. A resolved incident or stale machine is not deleted while newer child rows still fall inside the window. Expired sessions, sign-in links, password resets, and organization invites are removed after they expire or are used. Audit events older than the organization's longest project window are removed. Billing events older than seven years are removed. The daily job deletes only when BALERX_PURGE_ENABLED is set.
Changing the account email in Settings requires the current password. Until an email provider is configured, the change is immediate and the new address is unverified. The audit log stores the old domain and the new domain only. Passwords and session tokens are not written there. Other sessions are signed out.
Changing the password also requires the current password. Other sessions are signed out, this browser stays signed in, and the current session token is rotated. Settings includes Sign out everywhere, which ends every other session without changing the password. The audit log records auth.password_changed and auth.sessions_revoked with no passwords or session tokens. Session cookies still last seven days from sign-in; a password change does not extend that remaining time. A password reset still signs out every session, including this browser.
The hosted Privacy Policy, Terms of Service, and Subprocessors pages are the legal text. Contact is admin@balerxgate.com.
Report a vulnerability
Use a private GitHub security advisory:
https://github.com/wrjewski/balerx/security/advisories/new
Do not open a public issue for a vulnerability.
