Bitcoin Core Fuzz Testing and Security Engineering
Overview
Bitcoin Core processes data received from untrusted peers and blocks. Security engineering therefore emphasizes strict validation, defensive parsing, resource limits and layered tests. Fuzz testing is one part of this work.
What fuzzing finds
Fuzzers exercise code with unexpected and malformed inputs to find crashes, memory safety issues, hangs or assertion failures. Effective fuzzing needs carefully chosen entry points and checks. Merely running a fuzzer for a long time does not prove correctness.
Testing beyond fuzzing
Unit tests check local invariants; functional tests check node workflows; integration tests can expose cross-component failures. Review and threat modeling are needed to catch logic errors that do not produce crashes.
Consensus-sensitive code
Bugs in block validation can cause disagreements between nodes. Changes to consensus-sensitive logic warrant particularly cautious review, reproducible tests and examination of historical edge cases.
Release assurance
Reproducible builds and signed releases help users verify what they install. Operators still need a secure environment and an update strategy. A release signature authenticates the signer, not the absence of all vulnerabilities.
Primary reading
Bitcoin Core test source
https://github.com/bitcoin/bitcoin/tree/master/src/test
Bitcoin Core fuzz source
https://github.com/bitcoin/bitcoin/tree/master/src/test/fuzz
Bitcoin Core release notes
https://bitcoincore.org/en/releases/
Related Bitcoin history
Explore the historical questions in the THAMER ASK archive:
https://thamer.org/ask
Related THAMER research
What is Bitcoin Core fuzz testing?
https://thamer.org/ask/what-is-bitcoin-core-fuzz-testing
What is Bitcoin Core functional testing?
https://thamer.org/ask/what-is-bitcoin-core-functional-testing
