security

Security disclosure.

Found a vulnerability in opchain? Thank you. This page is the contract for how to report it, what's in scope, and what to expect from us in return.

Report a vulnerability

Report vulnerabilities through GitHub's private vulnerability reporting — it opens a draft security advisory only you and the maintainers can see, and the whole lifecycle (triage, discussion, fix, credit) is tracked there as a GitHub security incident. We acknowledge within 3 business days.

Please don't open a public GitHub issue, file feedback through the on-site widget, or post on social before we've had a chance to triage and patch.

Open a private security advisory on GitHub

Visible only to you and the maintainers until a fix ships. Confirmed reports are published as GHSA advisories with credit to the reporter.

Alternative channels

No GitHub account, need PGP before sharing details, or does the report include user PII? Reach out directly:

  • Email security@opchain.dev — ask for our PGP key in the first message; we'll exchange before you share details. Confirmed reports are mirrored into a GitHub advisory so tracking stays in one place.

Scope

In scope
  • opchain.dev and staging.opchain.dev (Cloudflare Worker + Astro site)
  • The opchain skill catalog under skills/ in the GitHub repo
  • The /mcp, /api/health, /api/feedback, /api/notify, /api/votes, and /api/flags/public endpoints
  • Build / supply-chain integrity of opchain-skills.zip
Out of scope
  • Vulnerabilities in Claude Code, Claude.ai, or Anthropic infrastructure — report those to Anthropic
  • Third-party services we link to (Linear, PostHog, Cloudflare) — report directly to the vendor
  • Denial-of-service or load testing — Cloudflare handles edge protection, please don't probe
  • Social engineering, physical attacks, or anything requiring privileged access
  • Self-XSS, missing security headers without an exploit, theoretical CSRF on unauthenticated endpoints

Safe harbor

Research conducted under this policy — good-faith, in-scope, non-destructive — is authorised. We won't pursue legal action against you for testing in line with this page, and we'll do our best to extend that protection if a third party intercedes.

If you're uncertain whether something is in scope or whether your plan is non-destructive, ask first.

What we ship in return

opchain is a small open-source project. We don't have a paid bug bounty, but every confirmed report earns public credit and our gratitude.

security.txt

Machine-readable disclosure metadata per RFC 9116, served at /.well-known/security.txt.

Contact: https://github.com/ainatx/opchain/security/advisories/new
Contact: mailto:security@opchain.dev
Expires: 2027-08-26T00:00:00.000Z
Preferred-Languages: en
Canonical: https://opchain.dev/.well-known/security.txt
Policy: https://opchain.dev/security
Acknowledgments: https://github.com/ainatx/opchain/security/advisories
Acknowledgments: https://github.com/asfbay-bit/opchain-skills/security/advisories

Posture & hardening

Quick facts for anyone evaluating opchain for a regulated environment:

Transport
HTTPS only · HSTS preloaded · TLS 1.3 via Cloudflare
Headers
Strict CSP with per-response nonce · X-Frame-Options DENY · Referrer-Policy strict-origin-when-cross-origin · Permissions-Policy locked down
Auth surface
No user accounts. Hosted MCP checkpoints use private signed server-issued tokens and strict Origin validation rather than account authentication
Data collected
Optional browser analytics, limited server-side operational events, email capture, roadmap votes, and 30-day hosted MCP checkpoints. See privacy
Skill supply chain
Every SKILL.md is plain Markdown, Apache-2.0-licensed, validated at build time, and published on the GitHub repo. No binaries, no runtime deps
Plugin hooks
Dependency-free Node scripts run by Claude Code and Git on your machine. One optional hook, the skill router experimental preview, shadow by default, live opt-in since GO (2026-11-05), sends prompts to a third party (api.typesafe.ai), and only with your own key. What they record and what they send: below
Infra
Cloudflare Workers · static assets via ASSETS binding · KV for lead capture, abuse controls, roadmap votes, and hosted MCP checkpoints · no user database or origin servers

The plugin on your machine

The opchain plugin runs hooks locally: Git hooks after /oc-enroll, and Claude Code session hooks. This is what they keep, what they send, and what they cannot promise. Rows marked New in 2.1 describe the 2.1 release; 2.0.4 installs the pre-commit hook only.

Bypass accountability New in 2.1
  • A commit with no PASS receipt, including one made with git commit --no-verify, gets a bypass record from the post-commit hook, which Git runs even when pre-commit was skipped.
  • The pre-push hook refuses to push such a commit until it carries an Opchain-Bypass: trailer saying who approved it and why. The trailer travels with the commit to the pull request, where the PR evidence check lists it before merge; the local record never leaves the machine.
  • Local hooks are not a trust boundary. Anyone with the clone can delete them or push with OPCHAIN_PUSH_BYPASS=1; both leave a commit with no receipt, which the /oc-enroll --ci workflow re-verifies and reports. Treat CI as the check, and the local hooks as the early warning.
Stays local
Receipts, their logs and bypass records live under .git/opchain/ in your clone. Checkpoints live in .checkpoints/. Nothing from the commit, post-commit or pre-push hooks is sent anywhere.
Leaves the machine
  • Session start: up to three gh pr view calls to GitHub, through your own gh login, to check whether pull requests named in a checkpoint have merged. OPCHAIN_GH_BIN=0 turns them off. The release check runs without network access.
  • Skill router experimental preview, shadow by default, live opt-in since GO (2026-11-05): only if you opt in; see the next row.
Skill router New in 2.1 experimental preview, shadow by default, live opt-in since GO (2026-11-05)
  • With TYPESAFE_API_KEY set, the hook sends the redacted prompt and a repo summary to api.typesafe.ai. The summary covers the branch name, ahead/behind, dirty count, open PR, enrollment, and the active checkpoint's skill, phase and first next action (up to 200 characters). Credential-shaped text is redacted; names in the branch or that next action are sent as written.
  • The previous prompt and the end of the last assistant message are sent only with OPCHAIN_ROUTE_CONTEXT=1.
  • Nothing is sent without a key, for slash commands, outside opchain projects, or for a typed /oc-* mention.
  • Decisions are logged locally to $TMPDIR/opchain-route-log.jsonl.
  • Unsetting the key or setting OPCHAIN_ROUTE=0 turns it off.

Redaction. Before a prompt is sent, logged or cached, text that looks like a credential is replaced with [REDACTED]: private keys, provider API keys and tokens (Anthropic, OpenAI, GitHub, Slack, AWS), JWTs, bearer headers, long hex strings, and *_KEY, *_TOKEN, *_SECRET and *_PASSWORD assignments. If the redactor fails to load, the prompt is treated as empty and nothing is sent. Pattern matching is a net, not a guarantee: keep secrets out of prompts.

Shadow mode, the default, sends the same request and adds nothing to the conversation. Live mode is supported as an opt-in since the shadow-period go/no-go recorded a GO on 2026-11-05. The request goes to TypeSafe under your own key and account; opchain.dev receives none of it. The local log and the 24-hour cache ($TMPDIR/opchain-route-cache/) can be deleted at any time.

For a deeper threat model and infrastructure hardening review on your own systems, run the oc-security-auditor skill. How opchain.dev is built documents the stack this page describes.