A Security Enhancement Scheme For Raft Consensus Algorithm Against Term Forgery Attacks

Yichuan Wang, Mengjie Tian, Yaling Zhang, Xiaoxue Liu, Yeqiu Xiao, Xinhong Hei · 2022

The consensus algorithm is the core component of blockchain technology and a key link to maintaining the security of the blockchain network. In the Raft consensus algorithm, since the term growth range is not specified in the algorithm, malicious nodes can obtain the leader status by increasing their term value, and the fairness of the Raft cluster leader election is damaged. To solve the above problems, in this paper, we restore the attack experiment, which is a malicious node gaining leader status by increasing its term value. Identify malicious nodes by dynamically adjusting the growth range of the term, thus achieving a defensive effect. The optimized algorithm resists malicious node attacks with a 79.4% probability and reduces the election time by 11.4% compared to the Raft consensus algorithm in the presence of malicious nodes. On the premise of ensuring high efficiency, the fault tolerance and security of the algorithm have also been significantly improved.

Read the paper · More papers on PaperTik