Permissionless blockchains are decentralized consensus systems. The most prominent example of a permissionless blockchain is the electronic payment system Bitcoin that achieves consensus on financial transactions issued by participants. While distributed consensus has been a subject of research for decades, Bitcoin was the first system to achieve consensus in the permissionless model, i.e., without prior establishment of identities of participants.
The participants of a permissionless blockchain communicate over an unstructured peer-to-peer (P2P) network. As the consensus protocol of permissionless blockchains relies on data transmitted through that P2P network, vulnerabilities in the network layer can also affect the establishment of consensus and, therefore, the intended function of the system. While unstructured P2P networks have been extensively analyzed in the past, their deployment in permissionless blockchains leads to different security requirements and adversary models that existing work has not considered yet. Furthermore, although a number of attacks on the network layer of permissionless blockchains have been analyzed, no general notion of the desired security properties of the network layer of permissionless blockchains exists. This motivates the first research question addressed in this dissertation: How to research requirements and tradeoffs present in the network layer mechanisms of permissionless blockchains? First, we provide a systematization of attacks on the network layer of Bitcoin regarding the exploited network layer mechanisms and the effects of the attacks on the application and consensus layers of Bitcoin. Based on this systematization, we derive five requirements for the network layer of permissionless blockchains: performance, low cost of participation, anonymity, denial-of-service resistance, and topology hiding. Furthermore, we systematize the design space of the network layer and qualitatively show the effect of design decisions on the fulfillment of requirements. Our systematizations indicate inherent tradeoffs, point out research possibilities, and guide developers of permissionless blockchains.
Secondly, based on measurements performed since 2015 we provide a characterization of the Bitcoin P2P network. The characterization enables the parametrization and validation of simulation models and the assessment of the reliability of real-world experiments. Furthermore, the network characterization provides insights into the behavior of peers and their operators. For instance, we provide evidence that Sybil events happened in the past in the Bitcoin P2P network. Additionally, our measurements show that the performance and anonymity of transaction and block propagation has been improved by implementation and protocol changes.
Thirdly, research of the network layer of permissionless blockchains can be performed by employing network simulations. Based on the network characterization, we present two discrete-event simulation models of the Bitcoin P2P network that can be used for performing simulations at the full scale of the Bitcoin network. We validate our models by comparison of the simulated information propagation delay to the observed one in the real-world network. As the comparison shows a high correspondence, the presented simulation models enable the simulation of the Bitcoin network with a precision sufficient for the analysis of attacks.
Our simulation models and our systematization of attacks highlight the importance of knowledge of the network topology as a basis for research and as a prerequisite for certain attacks, such as network-based deanonymization attacks. Therefore, we address topology inference and deanonymization in the second research question of this dissertation: Under which assumptions and to which degree are network-based topology inference and deanonymization (im-)possible in Bitcoin? We answer this question by building on the results of the first research question, i.e., by applying a combination of measurements and experiments, and by using the presented simulation models.
We evaluate four different topology inference methods using real-world experiments and simulations. Using real-world experiments we show that an adversary that is able to connect to all peers of the network can infer the direct neighbors of a peer with high recall and precision (87% recall, 71% precision) at low costs by actively publishing conflicting transactions on the network. Furthermore, for a passive adversary that is able to connect to all reachable peers, inference of the neighbors of a peer was possible in 2016 with a recall of 40% at a precision of 40% by observing at least 8 transactions originating from that peer. Additionally, network topology information can be inferred at low costs by exploiting the client behavior transaction accumulation, however, the expected real-world inference quality remains unclear, because a ground-truth validation is inherently hard to perform for the proposed method. Subsequently, we show in simulations that a P2P network's peer discovery mechanism can be exploited for topology inference for certain parametrizations of the peer discovery mechanism.
Finally, we assess the possibility of network-based deanonymization by analyzing whether a correlation between the IP address of the peer announcing a transaction first and the suspected creator of the transaction can be detected. Our dataset is based on our network characterization and consists of almost 10 million transactions with associated IP addresses. We show that transactions of 5% to 8.3% of users were conspicuously often published by individual peers, potentially making these users susceptible to network-based deanonymization attacks.
| Related KIT institutions | Institute of Telematics (TM) Competence Center for Applied Security Technology (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000089033 |
| Keywords | Bitcoin, blockchain, network, peer-to-peer, security, anonymity |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Size | XIII, 176 p. |
| Faculty | Department of Informatics (INFORMATIK) |
| Institute | Institute of Telematics (TM) |
| Exam date | Nov 30, 2018 |
| Supervisor | H. Hartenstein |
| Referenced in | OpenAlex |
| Project | KASTEL_IoE (BMFTR, 16KIS0346) |