Book Image

Hands-On Cybersecurity with Blockchain

By : Rajneesh Gupta
Book Image

Hands-On Cybersecurity with Blockchain

By: Rajneesh Gupta

Overview of this book

Blockchain technology is being welcomed as one of the most revolutionary and impactful innovations of today. Blockchain technology was first identified in the world’s most popular digital currency, Bitcoin, but has now changed the outlook of several organizations and empowered them to use it even for storage and transfer of value. This book will start by introducing you to the common cyberthreat landscape and common attacks such as malware, phishing, insider threats, and DDoS. The next set of chapters will help you to understand the workings of Blockchain technology, Ethereum and Hyperledger architecture and how they fit into the cybersecurity ecosystem. These chapters will also help you to write your first distributed application on Ethereum Blockchain and the Hyperledger Fabric framework. Later, you will learn about the security triad and its adaptation with Blockchain. The last set of chapters will take you through the core concepts of cybersecurity, such as DDoS protection, PKI-based identity, 2FA, and DNS security. You will learn how Blockchain plays a crucial role in transforming cybersecurity solutions. Toward the end of the book, you will also encounter some real-world deployment examples of Blockchain in security cases, and also understand the short-term challenges and future of cybersecurity with Blockchain.
Table of Contents (17 chapters)
Title Page
About Packt
Contributors
Preface
Index

Lab


In order to deploy the blockchain-based DDoS protection platform, we must prepare the test environment with Node.js and Truffle with Ethereum blockchain. We will be using an existing blockchain project to defend a network from a DDoS attack. The project link can be found at https://github.com/gladiusio/gladius-contracts.

We need to follow these steps to prepare the infrastructure for the Gladius project:

  1. First, we will install Node.js in our environment at https://nodejs.org/uk/download/package-manager/#arch-linux.
  2. We need to install truffle in test the environment:
npm install -g truffle
  1. Run the following command in the Terminal:
npm install -g ganache-cli
  1. Now, we can start the test network with this command in the Terminal:
ganache-cli

The following screenshot shows the output of running the preceding command:

  1. In this Terminal window, we can see all transactions in the test blockchain network. Now, we have to open a new Terminal window and need to jump into the working directory.

To set up the...