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.
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
opchain.devandstaging.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/publicendpoints - Build / supply-chain integrity of
opchain-skills.zip
- 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
- Acknowledgment in the GitHub Security Advisory and on this page (if you want it)
- A fix. Critical issues patched within 7 days; high within 30
- A CVE when the finding warrants one
- opchain swag for unique, high-impact findings — once we have swag
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:
api.typesafe.ai), and only with your own key. What they record and what they send: belowThe 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.
- A commit with no PASS receipt, including one made with
git commit --no-verify, gets a bypass record from thepost-commithook, which Git runs even whenpre-commitwas skipped. - The
pre-pushhook refuses to push such a commit until it carries anOpchain-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 --ciworkflow re-verifies and reports. Treat CI as the check, and the local hooks as the early warning.
.git/opchain/ in your clone. Checkpoints live in .checkpoints/. Nothing from the commit, post-commit or pre-push hooks is sent anywhere.- Session start: up to three
gh pr viewcalls to GitHub, through your ownghlogin, to check whether pull requests named in a checkpoint have merged.OPCHAIN_GH_BIN=0turns 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.
- With
TYPESAFE_API_KEYset, the hook sends the redacted prompt and a repo summary toapi.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=0turns 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.