Skip to content

Security: DevAnimecx/jiro

Security

SECURITY.md

Security Policy

Supported versions

Version Supported
0.6.x Yes
< 0.6 No

Security fixes land on the latest minor release. There is no hosted service.

Reporting a vulnerability

Do not open a public issue. Report privately:

  • GitHub Security Advisories: "Security" tab -> "Report a vulnerability"
  • Email: security@blackvault.dev (PGP optional)

We acknowledge within 48 hours, aim to fix critical issues within 7 days, and coordinate disclosure after a patch ships.

Scope

The Jiro Search API and CLI (jirosearch on PyPI, the ghcr.io/devanimecx/jiro container). There is no hosted endpoint, account system or license server to report against.

Security model

Jiro is local-first. The default bind is 127.0.0.1 with authentication off, because loopback is the only place that is safe without configuration. Binding a non-loopback address without auth requires JIRO_SERVER__INSECURE=true, which is an explicit acknowledgment, not a default.

Before exposing the API:

export JIRO_AUTH__ENABLED=true
export JIRO_AUTH__JWT_SECRET="$(openssl rand -hex 32)"
export JIRO_ADMIN_KEY="jsk_$(openssl rand -hex 32)"   # first boot only
jiro serve --host 0.0.0.0

Terminate TLS in front of it. See docs/deployment.md for a hardening checklist.

Controls

Control What it does
API keys, JWT, OIDC Identity for HTTP and MCP calls; keys carry scopes and roles
RBAC Admin, writer, reader roles with per-route enforcement
Rate limiting Per-identity counters in SQLite or memory; off by default
SSRF protection /scrape and page fetch reject private and link-local addresses unless explicitly allowed
Audit chain Hash-chained log of mutations, key use and MCP app actions (GET /audit)
Encryption Secrets at rest and field-level encryption for stored provider keys
Secret redaction Logs redact API keys, tokens and authorization headers
No telemetry No analytics, license check or phone-home; only the requests you make leave the machine

0.6 surfaces

Stateless MCP (2026-07-28). No handshake and no Mcp-Session-Id, so there is no server-side session to hijack. Every request carries MCP-Protocol-Version and params._meta; they must agree, and Mcp-Method / Mcp-Name must match the JSON-RPC method. Mismatches are rejected rather than guessed at. OAuth 2.1, CIMD and the EMA/ID-JAG path are supported; tool calls enforce the same scopes as the HTTP routes. Legacy sessions remain available to older clients and carry the same auth checks.

MCP Apps dashboard. The panel is HTML served from ui://jiro/dashboard.html. Every button is a tools/call that goes through the normal auth and audit path. The host, not Jiro, decides what to render; Jiro does not inject scripts into the host outside the declared resource.

Code Mode sandbox. Generated Python/JS stubs call a narrow JSON-RPC bridge. The sandbox is language-level: an AST allowlist, no imports, no filesystem, no dunder access, step and time budgets. It is not kernel isolation, a container, or a defense against a determined attacker with code execution in the host process. Do not run Code Mode on behalf of untrusted principals, and do not treat it as a substitute for OS-level isolation.

Agent-to-agent delegation. The peer registry is operator-controlled config. A delegated task is restricted to a hard role allowlist (researcher, scraper, verifier, summarizer), and every result carries provenance that the caller verifies against the peer it called. Peer URLs are trusted configuration; Jiro does not treat a registered peer as an SSRF boundary. Register only peers you control.

Memory. Identity comes from the authenticated key, never a request parameter. POST /memory/forget hard-deletes memories, trust, snapshots, engine statistics and vectors, then returns a verification block. Deleting db.path removes all state.

Self-healing scrapers. A proposed patch is data, not code. It is validated against stored sample pages and rolled back when validation fails; it cannot execute arbitrary Python.

Deployment checklist

  1. Auth on, >=32-byte JWT secret, TLS terminated by a proxy you control.
  2. Bind 127.0.0.1 unless the proxy is on the same host.
  3. No JIRO_SERVER__INSECURE=true outside a trusted single-user box.
  4. Database and /data on local disk, backed up with sqlite3 .backup.
  5. Rate limit at the proxy if the endpoint is reachable from the internet.
  6. Rotate keys with jiro keys revoke; the audit chain records use.

Responsible use

Jiro scrapes public web pages. Operators are responsible for complying with each engine's Terms of Service, robots.txt, and applicable law (GDPR/CCPA and similar). Jiro ships a compliance layer (robots.txt parsing, ToS tracking, audit logging) to help; compliance remains the operator's responsibility.

Supply chain

  • Dependencies are pinned in pyproject.toml; gitleaks runs in CI.
  • The image is Alpine, built in two stages, runs as uid 10001 (jiro), ships no compiler and no browser in the runtime layer, and is gated under 500 MB.
  • The test suite fails if firebase_admin, stripe, supabase, jiro.cloud or jiro_cloud reappears in the package.
  • SBOM generation and image signing are not implemented yet.

Data handling

The database is the product state: memory, trust, threads, watches, cache, API key hashes. It stays where you put it. If you configure a model provider, prompts go to that provider; local Ollama keeps them local. Nothing else leaves the machine.

There aren't any published security advisories