Skip to content

Security: BTCDecoded/blvm-protocol

Security

SECURITY.md

Security policy

BLVM validates Bitcoin. A consensus bug, a remote crash, and a memory-safety bug are the reports we want first.

Report in private

Do not open a public GitHub issue for a vulnerability.

  1. GitHub private vulnerability reporting on the repository that contains the bug: https://github.com/BTCDecoded/<repo>/security/advisories/new.
  2. Email security@thebitcoincommons.org.

The encrypted channel is that mailbox. The key fingerprint is 338B 0CE4 AE55 6EBD A677 2C51 DE34 66C3 CA36 3748. Encrypt to security@thebitcoincommons.org. GitHub private reporting stays available. Do not send a live mainnet exploit to a public list.

-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEavpigRYJKwYBBAHaRw8BAQdAulfJNxkQbBZdBCnzw5dmM5z+r4HxVfTjc7no
N8Pt0PO0NEJUQ0RlY29kZWQgU2VjdXJpdHkgPHNlY3VyaXR5QHRoZWJpdGNvaW5j
b21tb25zLm9yZz6IkAQTFgoAOBYhBDOLDOSuVW69pncsUd40ZsPKNjdIBQJq+mKB
AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEN40ZsPKNjdI3y4BAKaPYH5+
NF2nvWJ7aU3zDIwHy2Do1Z/IyKUs5X6mvhxYAP4nUtFjWUM9YB4vCTV7dgv3Ef7m
cNj0nmYE8yY++dd2AA==
=643R
-----END PGP PUBLIC KEY BLOCK-----

Include what you can: the crate, the commit, the network, whether you think it splits the chain or only crashes one process, and a minimal reproduction. A patch is welcome and not required.

Scope

In scope:

  • Consensus and validation in blvm-consensus, blvm-spec, blvm-spec-lock, and the frozen paths in blvm-protocol and blvm-node.
  • Remote crash, denial of service, and memory safety in the node, the RPC server, and the P2P stack.
  • Authentication bypass on RPC.
  • Chainstate corruption after a crash or a reorg.

Out of scope:

  • A third-party module you installed yourself, unless the node failed to confine it.
  • Social engineering of operators.
  • Issues that require a local account and do not cross into chainstate or keys, unless they are memory safety.

The node does not custody keys in the default build. Wallet-key bugs in a separate module are in scope for that module's repository and out of scope for consensus.

Response targets

These are targets, not a claim about past performance. The advisory record is the evidence.

Step Target
Acknowledgement 2 days
Triage, with a severity label 7 days
Fix for consensus, remote crash, or memory safety 14 days after triage
Fix for resource exhaustion 30 days after triage
Fix for local-only and informational 90 days after triage
Disclosure When the fix is in a release, or sooner if the bug is being exploited. The default embargo after a fix is released is none: the release is the disclosure. A reporter can ask for a coordinated date up to 90 days after the fix.

Severity labels, tied to node impact: chain split or consensus divergence, remote crash, resource exhaustion, local-only, and informational.

Embargo and credit

We keep the report private until the fix is released, unless the bug is already public or actively exploited. We credit the reporter in the advisory when they agree in writing. Silence is not consent. The reconstructed November entries leave the reporter blank and set reporter_consent to pending.

Advisories

The append-only record is one OSV JSON file per advisory id, plus a generated index. A correction is a new id that references the old one. Do not edit a published file. Public counts are generated from that record.

Advisory files are signed with the same key as release tags, once a signing key exists. They are unsigned until that key is configured.

Dependency advisories that affect a shipped build get an entry in the same record. cargo audit and cargo deny run in CI. Ignore entries belong in .cargo/audit.toml with a reason, not only in a workflow flag.

Supported versions

Security fixes target the current beta line once 0.2.0-beta.1 is published. Until that tag exists, the supported line is the highest published 0.1.x tag of the affected crate. Older 0.1 tags are not maintained as a second line.

The reporting policy above is the one in force. Older timelines, bounty language, and an "all 0.1.x supported" table are not restored. The notes below are this repository's existing boundary text.

Critical (P0)

  • Protocol variant confusion attacks
  • Network parameter manipulation
  • Validation rule bypasses
  • Genesis block spoofing
  • Magic number conflicts

High (P1)

  • Denial of service through protocol parameters
  • Resource exhaustion via network constants
  • Input validation bypasses
  • Logic errors in protocol selection

Security Considerations

Protocol Abstraction

  • All protocol variants must be clearly separated
  • No cross-contamination between networks
  • Network parameters must be immutable
  • Protocol selection must be secure

Network Parameters

  • Magic bytes must be unique per network
  • Genesis blocks must be cryptographically verified
  • Network constants must be tamper-proof
  • Protocol versions must be clearly defined

Validation Rules

  • Protocol-specific rules must be enforced
  • No rule bypassing through protocol switching
  • All validation must be deterministic
  • Edge cases must be handled correctly

There aren't any published security advisories