BIP 14 introduced the user agent ("vanity-plate") for client identification, not as a protocol or security requirement. In a recent Peers Census, it was trivial to list vulnerable nodes straight from MAJOR.MINOR.BUILD.
This came up before in #21492 (closed with no change). Even though changing it won't stop brute-forcing, recent vulnerability disclosures make it worth discussing this again:
- Point-release targeting: An attacker targeting a bug fixed in e.g.
31.1.0can filter for30.0.0and skip patched nodes and monitoring nodes that aren't running the vulnerable version. If both look the same, exploit attempts hit patched nodes too and show up in logs, raising the attack scope to network-wide cost in the worst case. - Targeted attacks: If a target node is deanonymized, its user agent reveals which bugs may work against it. Keeping the attacker blind to the target's patch level can also buy defenders time: blind exploit attempts can trigger anomaly detection, letting the node spot and ban the peer before the operator upgrades instantly.
It's worth investigating whether the trade-off this and what user agent provides still makes sense. Two options come to mind:
- Major version only: Hide point-release patches on the wire (keeping the full version locally). This still exposes EOL nodes, but helps nodes that haven't upgraded quickly to a point release. e.g just
/Satoshi:33.0.0/no minor. - Empty string (
""):user_agentis a required field inversion, so send empty. Future releases look the same (though handshake features still hint at rough versions).
The main question is whether hiding patch status is worth losing point-release stats (1) or all version stats (2). Also, do we actually use BIP 14 data as a signal when deciding to disclose critical vulnerabilities? It isn't clear from https://bitcoincore.org/en/security-advisories/. Thoughts?