Herencia Artifex Hack

TOTAL LOST $29.6M
High #176 All-Time Other

Summarize with AI

Affected Chain 2023 Incident surface
Recovered - No recovery reported
All-Time Rank #176 By amount stolen
Protocol Type Exploit/Other Target category

Incident Overview

HerenciaArtifex NFT project exploited, losing 29,586,973 USD worth of HXA tokens due to a vulnerable code in ThirdWeb development kit.

HerenciaArtifex, an NFT project with native token HXA, was exploited on December 7, 2023. The attacker compromised a signature and gained approval of a large number of tokens from a 0x..dead address, which was used to burn HXA tokens. This allowed the attacker to freely transfer over 450 billion HXA tokens to themselves.

The exploit was related to a vulnerable code in the ThirdWeb development kit, specifically the msgSender parameter in the multiCall function. The stolen funds were transferred through several EOA addresses, distributed, and part of the stolen funds were deposited into various centralized exchanges. The funds lost were calculated based on the current price of the token, and the actual lost amount might be much lower due to liquidity issues in various exchanges.

Attacker Addresses:

https://etherscan.io/address/0x00000000…CE2436

https://etherscan.io/address/0x396E753a…052619

Malicious Transaction:

https://etherscan.io/tx/0x71f0c8f7…e4208c

Assets Acquire Transaction:

https://etherscan.io/tx/0x4f534c08…7c5c1f

Malicious Contract Address:

https://etherscan.io/address/0x00000000…eFd4F8

Funding Transaction:

https://etherscan.io/tx/0x71f0c8f7…e4208c

XT.com Deposit Transaction:

https://etherscan.io/tx/0xe67a20f1…1427f6

Gate.io Deposit Transaction:

https://etherscan.io/tx/0xad453b12db924c9a091bfec15f0f601241f470383c4fd03bc4424c9866690309Quick Summary

HerenciaArtifex's HXA token exploited via ERC2771Context vulnerability, leading to a loss of 29,586,973 USD worth of HXA tokens.

HerenciaArtifex is an NFT project with HXA as its native token. On Dec 07, 2023, the attacker exploited a vulnerability in the ERC2771Context implementation from OpenZeppelin, compromising the Forwarder contract on HXA. This allowed the attacker to gain approval for a massive amount of HXA tokens from the 0x..dead burn address and freely transfer over 450 billion HXA tokens to themselves.

The stolen funds were transferred through several EOA addresses, distributed, and partially deposited into various centralized exchanges. It's worth noting that the actual loss might be lower due to the token's liquidity on exchanges. OpenZeppelin fixed the issue on December 8, 2023.

Attacker Addresses:

https://etherscan.io/address/0x00000000…CE2436

https://etherscan.io/address/0x396E753a…052619

Malicious Transaction:

https://etherscan.io/tx/0x71f0c8f7…e4208c

Assets Acquire Transaction:

https://etherscan.io/tx/0x4f534c08…7c5c1f

Malicious Contract Address:

https://etherscan.io/address/0x00000000…eFd4F8

Funding Transaction:

https://etherscan.io/tx/0x71f0c8f7…e4208c

XT.com Deposit Transaction:

https://etherscan.io/tx/0xe67a20f1…1427f6

Gate.io Deposit Transaction:

https://etherscan.io/tx/0xad453b12…690309

Incident Report

Protocol / Project Herencia Artifex
Date of Incident
Attack Technique Other
Classification NFT,Token
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exploit/Other
Affected Token HXA
Protocol Twitter/X @HerenciaArtifex
Team Anonymous
Source Code Verified On-Chain

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Deep understanding of other and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Herencia Artifex's contract logic - root cause: nft,token
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely — with a thorough Other audit checklist and test coverage

If you're auditing a protocol with similar architecture to Herencia Artifex, these are the critical security checks that could have prevented this incident (December 2023).

  • Verify all logic paths related to Other are guarded by proper access controls and input validation
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Sources & References

Learn to Prevent the Next Herencia Artifex

The Herencia Artifex hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial