Blockchain technology has been one of the biggest disruptive technologies of our time. It utilizes a decentralized model, meaning that control and data storage is done through a distributed ledger network instead of a centralized entity.

Under this model, information is validated through a distributed consensus that compares blocks of data stored in parallel on multiple nodes across the network. This makes it incredibly difficult to tamper with the information stored on the blockchain because any changes must be validated by all the distributed nodes on the network to achieve a consensus.  In other words, if you have access to a single block in a blockchain, you cannot edit it without affecting the entire chain, and because of the consensus mechanism that compares blocks stored on different nodes then changing one block won't achieve anything.

However, even though blockchains are inherently secure by virtue of decentralization, the projects that interact with blockchains are still subject to a certain number of cybersecurity risks, and some of these attack vectors will be covered in this article.

Platform-Based Attacks

Platform-based attacks against the ecosystem of the blockchain-based DeFi ecosystem are becoming more common today. These kinds of attacks make use of flaws in the various web-based content or their frameworks to exploit sensitive data, such as financial or personal information. Hackers are always looking for new methods to take advantage of websites and the visitors to those services. An assault on the domain name server of a website is one of the most prevalent ways.

The Domain Name System (DNS) system converts domain names into IP addresses. When a user enters a URL, their browser queries their Internet Service Provider (a.k.a. ISP) for the site's IP address. When you try to browse a website, your browser automatically goes to its IP address, but the website doesn't know what it's called because it can't connect directly to it. The DNS server looks up which website name is associated with this IP address and returns that information to your browser, allowing it to connect directly to the website without going through your ISP.

Illustration of how DNS works

DNS is a hierarchical naming scheme used on the Internet for computers and other Internet-connected devices. It translates human-readable names into the numerical IP addresses that computers use to communicate over the network. A malicious actor attempts to manipulate the domain name system settings on your computer to gain your IP address by modifying what should be displayed when someone types in, say, "" instead of "" into their preferred browser.

When a user requests "" via a web browser, the text will be forwarded to this lookup database, which will then determine whether or not "" exists. If it does, the database will return its associated IP address, which will be used by the web browser to locate the server hosting the content.

If a hacker manages to break into the system, they may alter the DNS records in such a way that legitimate websites' addresses are redirected to malicious domains or their content is scrubbed from search engine results. Domain name hijacking is one of the common tactics used by hackers to divert users away from their intended target. This form of assault is known as a "front-end attack," since it happens when hackers obtain access to the area of your website that allows users to interact with it. In such a scenario, your content could be hacked and replaced with someone else's, or it could be completely removed!

Cream Finance and PancakeSwap both reported that DNS spoofers had compromised their websites in March 2021. As a result of the attack, the front-end websites for both protocols requested users to enter their seed phrase. If the phrase is entered, the attacker will be able to take control of the users' wallets and drain their funds.

In another scenario, BadgerDAO users lost approximately $120 million in a front-end attack in December of the same year when their API key for Cloudflare, a website security service, was compromised. The attacker injected a malicious script into Badger's front-end, intercepting transactions and requesting users to approve contracts controlled by the hacker.

List of lost funds due to front end attacks, DNS hijacking, and other DNS based attacks

These attack vectors can be briefly described under the some of the following headings:

DNS Spoofing:

DNS spoofing, also known as DNS cache poisoning, involves redirecting visitors to a fake website that impersonates the intended destination by using altered DNS records. When users arrive at the fraudulent site, they are prompted to log in to their account, which allows the threat actor to steal access credentials as well as any sensitive information entered into the bogus login form. Furthermore, these malicious websites are frequently infected with viruses or worms on end users' computers, granting the threat actor full access to the machine and its contents.

Illustration of DNS poisoning
Illustration of DNS spoofing

DNS Tunneling:

A DNS tunnel can be created by embedding other programs or protocol data in DNS queries and responses. In most cases, the malware comes with data payloads that can compromise a DNS server and grant attackers administrative access to the remote server and any programs running on it. DNS tunneling often relies on the external network connectivity of a compromised system, which provides a way into an internal DNS server with network access.

NX-Domain Attack:

A DNS NXDOMAIN flood DDoS attack tries to overload the DNS server by sending a large number of requests for invalid or non-existent records. DNS proxy servers typically respond to these attacks by repeatedly querying the DNS authoritative server. As a result, both the DNS authoritative server and the DNS proxy server are occupied with invalid requests, causing the response time for valid requests to slow down until it eventually stops altogether.

Illustration of NXdomain attack


  • Web3 users should double-check the addresses associated with every crypto transaction they conduct. Users' interfaces are being compromised even on reputable websites, resulting in invalid token approvals.
  • The team behind the project can protect their network from cache poisoning by enabling security settings in their DNS.
  • DNS Revolver can be kept private and secure by restricting its use to authorized internal users only, rather than the entire network.
  • Securely manage your DNS servers by hosting them in-house, through a service provider, or with the help of a domain registrar.

Our security team at Neptune Mutual can validate your platform for DNS and web-based security, as well as frontend and backend security. We can offer you a solution to scan your platform for known and unknown vulnerabilities that have the potential to have catastrophic long-term effects. Subtle remediation strategies will be outlined in our guidelines, and changes to your existing platform can be adjusted instantly.

About Us

Neptune Mutual project safeguards the Ethereum community from cyber threats. The protocol uses parametric cover as opposed to discretionary insurance. It has an easy and reliable on-chain claim process. This means that when incidents are confirmed by our community, resolution is fast.

Join us in our mission to cover, protect, and secure on-chain digital assets.

Official Website: