ZKSync Unauthorized Airdrop Minting Private Key Leakage

From Quadriga Initiative Cryptocurrency Hacks, Scams, and Frauds Repository
Revision as of 12:16, 23 May 2025 by Azoundria (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Notice: This page is a freshly imported case study from an original repository. While the original content had a similar format, some sections may not have been fully completed. Please help fill in any empty sections or any missing information you can find. If you are new here, please read General Tutorial on Wikis or Anatomy of a Case Study for help getting started.

Notice: This page contains sources which are not attributed to any text. The unattributed sources follow the initial description. Please assist by visiting each source, reviewing the content, and placing that reference next to any text it can be used to support. Feel free to add any information that you come across which isn't present already. Sources which don't contain any relevant information can be removed. Broken links can be replaced with versions from the Internet Archive. See General Tutorial on Wikis, Anatomy of a Case Study, and/or Citing Your Sources Guide for additional information. Thanks for your help!

ZkSync Logo/Homepage

ZKsync is a scalable, cryptographically secure blockchain network composed of high-performance ZK chains—modular rollups and validiums—that enable seamless, trustless interoperability across an expanding ecosystem. A misconfigured admin key on legacy airdrop contracts from June 2024 allowed an attacker to mint $5 million in unclaimed tokens due to poor post-deployment controls. Though the attacker returned 90% of the funds under a safe harbor deal, the incident exposed gaps in contract governance and auditing. In response, ZKsync is implementing key security reforms and reaffirming its commitment to trust-minimized, decentralized infrastructure.[1][2][3][4][5][6][7][8][9]

About ZKSync

"ZKsync is an ever expanding verifiable blockchain network, secured by math."

"ZK chains are high performance, verifiable, modular rollups and validiums powered by ZKsync. United in an elastic network, ZK chains can be added or expanded to handle increased transaction volume without affecting costs or hardware requirements for verification."

"ZK chains provide native, frictionless interoperability presented in a consistent and easy-to-use interface. This enables trustless communication and asset transfers between chains leveraging the full range of users and liquidity across the entire ZK chain ecosystem. Unlike traditional, centralized solutions, this protocol relies solely on cryptography for security."

"ZKsync offers secure one-tap onboarding via FaceID/Passkeys, eliminating the need for seed phrases and reducing the risk of hacks. By automatically creating modular smart accounts at the protocol level, ZKsync enables a delightful, customizable UX, allowing users to seamlessly access all ZK chains with what feels like a single account directly from their application."

The Reality

The smart contracts related to airdrop distribution, intended for governance use post-airdrop, were not classified as high risk and therefore were excluded from comprehensive security audits. The multisig admin had never been transitioned to the ZKsync Token Governor as intended. Notably, the admin multisig was created by a former ZKsync contributor no longer affiliated with the project.

There was a failure to reconfigure the admin permissions post-deployment. While the sweepUnclaimed() function was originally included to support potential future governance decisions, it became an attack vector due to the insecure admin setup. As of now, the exact method by which the attacker obtained access to the multisig signer’s private key remains unknown.

What Happened

A compromised admin key on outdated ZK token distributor contracts allowed an attacker to mint over 111 million unclaimed tokens without governance approval.

Key Event Timeline - ZKSync Unauthorized Airdrop Minting Private Key Leakage
Date Event Description
June 17th, 2024 ZKSync Airdrop Conducted ZKSync conducts an airdrop of tokens. This left three specific ZK token Merkle distributor contracts from the airdrop with remaining unclaimed tokens, which could be minted in the future. The minting function did not have any multi-signature protection, and only a single private key protected them.
April 13th, 2025 6:18:03 AM MDT Unauthorized Airdrop Minting The breach occurred on April 13, 2025, when the attacker exploited a misconfigured 1/1 multisig admin key associated with the distributor contracts and triggered the sweepUnclaimed() function.
April 15th, 2025 6:05:00 AM MDT Matter Labs Add Filter The attack was detected and transaction filtering were applied by Matter Labs on April 15th after community alerts, prompting immediate investigation and mitigation efforts, including blocking the hacker’s account via transaction filtering.
April 21st, 2025 9:03:59 AM MDT Security Council Safe Harbour Deal The ZKsync Security Council offers the exploiter a safe harbor deal, granting the hacker a 10% bounty in exchange for the return of 90% of the stolen funds. The hacker is granted 72 hours to "resolve this matter amicably in the spirit of safe harbor". Specific details were provided of what funds to send where for the 90%. The message is also shared on Twitter/X 17 minutes later.
April 23rd, 2025 8:53:35 AM MDT Hacker Returns Funds The hacker complied on April 23rd, returning both ZK tokens and ETH, and thereby avoiding legal action.
April 24th, 2025 7:42:00 AM MDT Transaction Filtering Lifted Matter Labs lifts the temporary transaction filtering which had been originally applied.
April 25th, 2025 7:55:41 AM MDT Final Incident Report Published ZKSync publishes the final incident report for the compromised admin key that allowed a hacker to mint and steal over 111 million unclaimed ZK tokens (worth approximately $5 million) from three Merkle distributor contracts linked to its June 2024 airdrop.

Technical Details

The abnormal activity in the ZKsync network was traced back to three Merkle distributor contracts used during the June 2024 ZK token airdrop. These contracts—each responsible for distributing a portion of the airdrop—were administered by a single-signature (1/1) multisig wallet. This setup deviated from the standard 3/5 multisig configuration typically used across ZKsync’s smart contracts and was never updated to transfer control to the Token Governor, as originally intended.

Matter Labs discovered that the admin key controlling these contracts had been compromised. This admin had access to a single function, sweepUnclaimed(), which became executable only after the airdrop claim period ended on January 3, 2025. On April 13, 2025, the attacker exploited this function to mint 111,881,122 unclaimed ZK tokens, bypassing governance approval. The transaction was unauthorized and directly violated the intended role of the Token Assembly, which was supposed to determine the fate of unclaimed tokens.

Total Amount Lost

The attacker minted 111 million unclaimed ZK tokens (worth approximately $5 million).

The total amount lost has been estimated at $5,000,000 USD.

Immediate Reactions

In response, the ZKsync Security Council offered a safe harbor deal, granting the hacker a 10% bounty in exchange for the return of 90% of the stolen funds.

Ultimate Outcome

The hacker complied on April 23rd, returning both ZK tokens and ETH, and thereby avoiding legal action. With the funds now in Security Council custody, governance will determine their future use. ZKsync has since taken several preventative steps, including improved key rotation policies, real-time contract monitoring, and governance process upgrades to prevent similar incidents.

Total Amount Recovered

Following a safe harbor offer from the ZKsync Security Council, the attacker returned 90% of the stolen funds—both ZK tokens and ETH—before the deadline, avoiding legal action. The recovered assets are now in the custody of the Security Council, and a governance process will determine how they are ultimately handled.

There do not appear to have been any funds recovered in this case.

Ongoing Developments

No malicious intent has been established. The exact method of the key compromise remains unknown.

No further ZK tokens can be minted from any of the distributor contracts, as each has already reached its maximum capped supply. As a result, this admin key can no longer be used to exploit these contracts.

No other ZKsync protocol components are believe to have been affected. ZKSync is reportedly implementing robust changes to ensure enhanced security and transparency going forward.

Individual Prevention Policies

No specific policies for individual prevention have yet been identified in this case.

For the full list of how to protect your funds as an individual, check our Prevention Policies for Individuals guide.

Platform Prevention Policies

Policies for platforms to take to prevent this situation have not yet been selected in this case.

For the full list of how to protect your funds as a financial service, check our Prevention Policies for Platforms guide.

Regulatory Prevention Policies

No specific regulatory policies have yet been identified in this case.

For the full list of regulatory policies that can prevent loss, check our Prevention Policies for Regulators guide.

References