Solutions

Company

Resources

Blog

Contact

Login

    • Assurance

      Smart Contract Assessment

      Securing code integrity, protecting digital assets

      Blockchain Layer 1 Assessment

      Assessing protocols, securing blockchain foundations

      Code Security Audit

      Uncovering flaws, strengthening software integrity

      Web Application Penetration Testing

      Exposing weaknesses, fortifying digital defenses

      Cloud Infrastructure Penetration Testing

      Securing configurations, protecting critical environments

      Red Team Exercise

      Simulating real-world attacks, strengthening defenses

      AI Red Teaming

      Testing AI systems against real threats

      AI Security Assessment

      Securing AI models, data, and pipelines

    • Advisory

      AI Advisory

      Guiding secure, strategic AI adoption forward

      Risk Assessment

      From unknown threats to actionable insights

      Blockchain Architecture Assessment

      Optimizing architecture for tomorrow’s networks

      Compliance Readiness

      Stay ready as regulations evolve

      Custody and Key Management Assessment

      Securing the heart of digital custody

      Technical Due Diligence

      See the risks before you invest

      Technical Training

      Empower your teams to secure what matters

    • Who We Are

      The best security engineers in the world

      Careers

      Work with the elite

      Who Trusts Us

      The trusted security advisor for blockchain and financial services industries

      Brand

      Access official logos, fonts, and guidelines

      Service Commitments

      Committed to Protecting Your Data

    • Audits

      In-depth evaluations of smart contracts and blockchain infrastructures

      BVSS

      Blockchain Vulnerability Scoring System

      Disclosures

      All the latest vulnerabilities discovered by Halborn

      Case Studies

      How Halborn’s solutions have empowered clients to overcome security issues

      Reports

      Comprehensive reports and data

  • Blog

  • Contact

  • Login

STAY CURRENT WITH HALBORN

Subscribe to the monthly Halborn Digest for our top blogs and videos, major company announcements, new whitepapers, webinar and event invites, and one exclusive interview.

ADVISORY SERVICES

AI AdvisoryRisk AssessmentBlockchain Architecture AssessmentCompliance ReadinessCustody and Key Management AssessmentTechnical Due DiligenceTechnical Training

ASSURANCE SERVICES

AI Security AssessmentAI Red TeamingSmart Contract AssessmentBlockchain Layer 1 AssessmentCode Security AuditWeb Application Penetration TestingCloud Infrastructure Penetration TestingRed Team Exercise

COMPANY

Who We AreWho Trusts UsService CommitmentsCareersBrandBlogContact

RESOURCES

AuditsDisclosuresReportsBVSSCase Studies
Halborn Logo
Privacy PolicyTerms of UseVulnerability Disclosure Policy

© Halborn 2026. All rights reserved.

Smart Contract Assessment

Securing code integrity, protecting digital assets

Blockchain Layer 1 Assessment

Assessing protocols, securing blockchain foundations

Code Security Audit

Uncovering flaws, strengthening software integrity

Web Application Penetration Testing

Exposing weaknesses, fortifying digital defenses

Cloud Infrastructure Penetration Testing

Securing configurations, protecting critical environments

Red Team Exercise

Simulating real-world attacks, strengthening defenses

AI Red Teaming

Testing AI systems against real threats

AI Security Assessment

Securing AI models, data, and pipelines

AI Advisory

Guiding secure, strategic AI adoption forward

Risk Assessment

From unknown threats to actionable insights

Blockchain Architecture Assessment

Optimizing architecture for tomorrow’s networks

Compliance Readiness

Stay ready as regulations evolve

Custody and Key Management Assessment

Securing the heart of digital custody

Technical Due Diligence

See the risks before you invest

Technical Training

Empower your teams to secure what matters

Who We Are

The best security engineers in the world

Careers

Work with the elite

Who Trusts Us

The trusted security advisor for blockchain and financial services industries

Brand

Access official logos, fonts, and guidelines

Service Commitments

Committed to Protecting Your Data

Audits

In-depth evaluations of smart contracts and blockchain infrastructures

BVSS

Blockchain Vulnerability Scoring System

Disclosures

All the latest vulnerabilities discovered by Halborn

Case Studies

How Halborn’s solutions have empowered clients to overcome security issues

Reports

Comprehensive reports and data

THIS WEBSITE USES COOKIES

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you've provided to them or that they've collected from your use of their services. You consent to our cookies if you continue to use our website. Learn More.

blog

Explained: The THORChain Hack (July 2021)

Category: Explained: Hacks

Explained: The THORChain Hack (July 2021)

POSTED BY: Rob Behnke

07.20.2021

  • Inside the attack
  • After the attack
  • Thorchain teams up with halborn

THORChain is a decentralized exchange allowing cross-chain token swaps. In July 2021, it was the victim of a hack that allowed the attacker to steal about $4.9M in tokens from the protocol’s liquidity pools.

Inside the Attack

The attacker exploited a bug in Bifrost, which is THORChain’s bridge to the Ethereum network.  The code has an override loop (designed only to be used in a vault transfer incident), which was manipulated in this hack. The hacker wrapped the router with their own contract and used the override function to set a transaction msg.value of 200. When Bifrost processed the transaction, it only read the msg.value and believed that the attacker had deposited 200 tokens, but the actual deposit was for 0. This hack was repeated in a loop, extracting value from various liquidity pools.

After the Attack

Despite the severity of the attack, the THORChain community was quick to act and intervene, with the following plan:

1) Release the patch and restart the network, restoring solvency

2) Donate funds back into the ETH pool to restore the lost funds to ETH LPs

3) Release the automatic-solvency checker

4) Work with security firms to audit

The THORChain network is designed to enable the network to halt operations if needed.  If one-third of the nodes use the “make halt” command to halt their nodes’ operations, then the entire network halts.  Once the incident was detected, the network voluntarily activated this failsafe.

THORChain Teams Up with Halborn

THORChain has been taking action to improve the security of its protocol in the future. Less than a week before this incident, the THORChain community approved a proposal for blockchain security firm Halborn to perform a penetration test of the THORnode and other layer 1 assets. 


In the wake of this latest hack, Halborn is developing a proposal for an “always-on” comprehensive approach to test all of THORChain’s assets and updates. The Halborn team of white hat, ethical hackers shall perform continual, constant auditing on every update to ensure the best security before its deployment on the network.

Related Blog Posts

blog

Explained: The Sentiment Hack (March 2023)

04.11.2023

blog

Explained: The PancakeBunny Protocol Hack (May 2021)

05.21.2021

blog

Blockchain vs Web Hacks: How Blockchain and Web Security Differ

03.23.2021

Disclaimer

The information in this blog is for general educational and informational purposes only and does not constitute legal, financial, or professional advice. Halborn makes no representations as to the accuracy or completeness of the content, which may be updated or changed without notice.

blog

Explained: The Sentiment Hack (March 2023)

04.11.2023

blog

Explained: The PancakeBunny Protocol Hack (May 2021)

05.21.2021

blog

Blockchain vs Web Hacks: How Blockchain and Web Security Differ

03.23.2021