AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 62 Bitcoin

Merge bitcoin/bitcoin#36293: contrib: exclude inactive keys from the binary quorum by default

Public commit record

What the developer wrote

Authored by Ava Chow

96/100 · Strong
Merge bitcoin/bitcoin#36293: contrib: exclude inactive keys from the binary quorum by default

034271d4e1739347a31c64dbc4bfef8aa133ad1d doc: explain inactive binary signature handling (Lőrinc)
eff64984f5994347f8e28aa57e0394f80c87129b contrib: allow expired keys for old releases (Lőrinc)
02939e424d3834c1db94c3fbd8ce731ec6e28e41 contrib: exclude and report expired signatures (Lőrinc)
20e15a5fdc5dea8ffc18c91a0d088dba8de2215c contrib: exclude revoked keys from binary quorum (Lőrinc)
431cac72734c267e9722f31667a05c7ce8c6ae91 test: characterize inactive signature quorum (Lőrinc)

Pull request description:

**Problem:** The binary verifier counts signatures from expired and revoked keys toward `--min-good-sigs`.
Enough of these signatures can satisfy the threshold without any active signing key, and they are returned as good signatures.

**Fix:** Warn about expired and revoked signatures and exclude them from threshold counting by default.
For historical verification, expired signatures can count toward the threshold with `--allow-expired` or `BINVERIFY_ALLOW_EXPIRED`, including signatures created after key expiry. Revoked signatures remain excluded.
Expired signatures are reported separately, including in the `expired_sigs` field in successful JSON output.

The decision uses GnuPG’s current key status from the local keyring, even if the signature was created while the key was active.

This was found and disclosed responsibly by the Red Team 🟥.

ACKs for top commit:
achow101:
ACK 034271d4e1739347a31c64dbc4bfef8aa133ad1d
willcl-ark:
ACK 034271d4e1739347a31c64dbc4bfef8aa133ad1d
sedited:
ACK 034271d4e1739347a31c64dbc4bfef8aa133ad1d
enessubass:
ACK 034271d4e1739347a31c64dbc4bfef8aa133ad1d

Tree-SHA512: 5ad6ad2066515857901b1d1ed825f03c4ab6dbe79097c79b9a13c8303cdb0d804ed3715059d2563cd09d95241b655b8aec901925b8013da9170ac66a7a616226
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This change fixes a flaw in Bitcoin Core's release-binary verification helper script. Previously, signatures made with expired or revoked developer keys were counted as valid toward the required number of 'good' signatures. That meant an attacker who had obtained old, expired, or revoked signing keys could potentially make a fake release look properly signed. The patch stops counting revoked signatures entirely and stops counting expired signatures by default, while adding a warning and an optional override for verifying older releases.

Recommended action

Users who verify Bitcoin Core releases with contrib/verify-binaries/verify.py should update to the patched version. They should refresh their GPG keyring before verifying releases and avoid using --allow-expired unless intentionally verifying an older release. Developers should review local keyring hygiene and keyserver privacy considerations noted in the updated README.

Security signals we found

01

Logic flaw in trust threshold counting

02

Expired/revoked signatures previously treated as good signatures

03

Responsible disclosure by external Red Team

04

Fix excludes revoked signatures unconditionally

05

Fix excludes expired signatures by default with opt-in override

06

Adds warnings and JSON reporting for expired/revoked signatures

Risk score

Why this scored 62/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 9/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.