Logo
My Crypto News AI

How a Layer-1 Blockchain's Own Code Let Attackers Mint Billions in Fake Tokens

On August 12, 2026, Harmony, a sharded Layer-1 blockchain, suffered a critical vulnerability in its core protocol that enabled unauthorized minting of its native ONE token through a cross-shard receipt replay flaw. The attack forged approximately 3.01 trillion ONE tokens, though the blockchain rolled back to a pre-attack checkpoint, discarding the forged state and preventing realized losses. This incident highlights a dangerous blind spot in blockchain security: vulnerabilities that live in the chain implementation itself, rather than in application-level smart contracts, can inflate the base asset of an entire network.

What Is a Cross-Shard Replay Attack?

Harmony uses a sharded architecture, meaning the blockchain splits into multiple independent shards, each maintaining its own state. To move value between shards, Harmony relies on an asynchronous, receipt-based system: a source shard debits the sender and emits a cross-shard receipt, and a destination shard later credits the recipient. The destination shard verifies this receipt using a cryptographic proof that includes a Merkle proof, the source block header, and the source committee's signature over that header.

The vulnerability emerged because the destination shard identified whether a receipt had already been consumed using two fields from the Merkle proof: ShardID and BlockNum. However, these fields were not covered by the source committee's signature. An attacker could take a genuine, already-processed receipt and replay it by mutating only these unauthenticated fields, tricking the destination shard into crediting the recipient again with no matching debit on the source shard. In essence, the same receipt could be spent multiple times by simply changing its identity markers.

How Did the Attack Unfold?

The attacker exploited a legacy fallback in Harmony's code. On July 13, 2026, Harmony deployed the Bloom hardfork, which strengthened replay protection by deriving the spent-marker key from the signed source header instead of the mutable Merkle proof fields. However, this fix was never applied retroactively to older proofs. For receipts whose source block predated the hardfork, the destination shard continued using the legacy, weaker keying mechanism. The attacker started from a genuine, already-processed cross-shard receipt from a pre-hardfork block, then replayed it by mutating only its unauthenticated proof identity. The forged ONE was minted into four exploiter wallets.

During the investigation, Harmony identified a second flaw in pre-staking quorum verification. The verification logic counted the full committee size instead of the validators that actually signed, meaning an empty signer bitmap could still clear the quorum threshold. Combined with an identity aggregate BLS signature, this could make a pre-staking-era source header appear to carry sufficient quorum. While Harmony has not confirmed whether the exploit relied on this second flaw, its discovery underscores how multiple weaknesses can compound in protocol-level code.

What Were the Broader Security Incidents That Week?

The Harmony exploit occurred during a week that saw five notable security incidents across the blockchain ecosystem, with approximately 47 million dollars in quantified losses. Three of these incidents involved private-key compromises that directly moved user funds: an unknown whale wallet lost approximately 25 million dollars, the Kite protocol lost approximately 14 million dollars, and Coinsbuy lost approximately 7.9 million dollars. A fifth incident involved a business logic flaw that resulted in approximately 117,000 dollars in losses. The Harmony incident stands apart because the flaw lived in the chain implementation itself, not in an application contract, making it an unusually high-impact failure mode.

How to Strengthen Chain-Level Security Defenses

  • Authenticate Every Field Used for State Identification: Any field that a blockchain uses to identify already-consumed state must be covered by a cryptographic signature or commitment from a trusted source. Mutable, unauthenticated fields should never be used as keys for replay-protection tracking, as they can be altered without detection.
  • Apply Security Fixes Retroactively Across All Epochs: When a protocol discovers a vulnerability in legacy code paths, the fix must be applied to all historical data and proof types, not just new ones. Leaving older proofs vulnerable to a known attack creates a window for exploitation, as attackers can target the weaker legacy mechanism.
  • Verify Quorum Against Actual Signers, Not Committee Size: Quorum checks must count only the validators that actually signed a message, as represented by the signer bitmap, not the full committee roster. An empty or minimal bitmap should fail quorum verification, even if the committee is large.
  • Validate Design, Code, and Business Logic Before Launch: Chain-level implementations require rigorous pre-launch auditing of protocol design, code correctness, and business logic. A flaw in the core settlement mechanism can affect every transaction on the network and every token holder.

The Harmony incident underscores a critical lesson for blockchain developers and auditors: chain-implementation flaws are fundamentally different from smart contract bugs. A vulnerability in a single DeFi application affects only that application's users; a vulnerability in the core protocol can compromise the entire network's base asset. This distinction demands a higher standard of scrutiny during code review and security auditing.

Harmony's response, rolling back the chain to a pre-attack checkpoint and discarding the forged state, prevented realized losses but also highlighted the trade-offs of blockchain immutability. While the rollback protected users, it required coordination and consensus from the network, a process that may not always be feasible or acceptable in decentralized systems. The incident serves as a reminder that even mature, established blockchains can harbor subtle vulnerabilities in their core protocols, and that security must be treated as an ongoing process rather than a one-time audit.