CounterProof performed a Bitcoin red-teaming review of Lightning Labs’ Wavelength at pinned commit 6d7d971, building deterministic reproductions against the unmodified production code. The objective was not to defend every candidate finding. It was to establish which claims survived testing, which did not, and what evidence each conclusion actually carried.
The challenge
In vulnerability management, a security finding is most useful when a maintainer can evaluate it without first reconstructing the reporter’s setup. CounterProof’s review separated reproduced behaviour from source-only analysis, checked the report against current upstream work, and recorded honest refutations alongside confirmations.
What CounterProof delivered
- 13 findings and six transport-surface items, each assigned an evidence rung and checked against the project’s existing tracker.
- A purpose-built malicious-operator harness driving Wavelength’s real compiled state machines, policy leaves, and database layers at the pinned revision.
- A proof suite run with
go test -race -count=3against unmodified code. - Four fuzz targets, with crashing inputs kept private and offered to the maintainers’ test corpus rather than published.
- Explicit credit to related tracker issues and a record of candidates that did not survive testing.
Maintainer response
Lightning Labs’ email response was positive about the report’s per-finding evidence rungs, honest labelling of reproduced versus source-analysed claims, deterministic harness at a pinned commit, and staleness check against current upstream development. Lightning Labs said most findings were confirmed, individually tracked internally, and undergoing remediation.
Two exceptions were handled as part of the method rather than hidden:
- F8 was not confirmed. CounterProof accepted the maintainer’s economic reasoning.
- F7 was reclassified as non-security under Lightning Labs’ taxonomy. CounterProof accepted the correction; the underlying hardening work still had a useful home.
A CounterProof reorganisation reproduction also matched work already underway and was attached to the project’s existing issue #62 instead of being presented as new.
Why this engagement matters
This was Bitcoin red teaming in the practical sense: adversarial code review applied to the real state machines, with deterministic evidence, stated limits, and corrections when the maintainer supplies better evidence.
The deliverable was not a scanner tally or a claim of comprehensive coverage. It was an evidence-graded report at one pinned commit, with deterministic reproductions, explicit limitations, and a willingness to withdraw or reclassify claims when the maintainers supplied better evidence.
That is the CounterProof model: make security findings easier to verify, easier to triage, and harder to overstate.
Need to validate a finding or review a release at a pinned commit? Start a confidential conversation at counterproof.io.