THORChain Exploit Report: The Three-Part Attack
A malicious node operator exploited three cryptographic flaws in THORChain's GG20 threshold signature scheme to gradually leak and reconstruct a vault's private key, stealing $10.8 million across multiple chains. The flaws involved insufficient validation of Paillier keys, weak randomness in masks, and acceptance of degenerate zero-knowledge proof commitments.
medium.com
Published on medium.com
Defi
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
THORChain is a permissionless cross-chain protocol whose validators collectively control vaults on several chains. To move funds out of a vault, a committee of validators has to produce a threshold signature, and the protocol uses the GG20 Threshold Signature Scheme (TSS) for that purpose. A vault's private key is never assembled in one place: each validator holds a share, and signing is a multi-round protocol in which validators exchange encrypted values and zero-knowledge proofs about them.
On 15 May 2026 the protocol suffered a $10.8 million exploit across multiple chains, including Bitcoin, Ethereum, BSC and Base. The attacker was a malicious node operator who had churned into the network two days earlier and exploited a vulnerability in the GG20 TSS implementation to gradually leak and reconstruct a vault's private key.

The write-up describes the incident as the combination of three critical bugs that together created a severe vulnerability.
Setup
The attacker's position was that of a validator inside a TSS committee. The report states that a committee has 18 validators, and that the attacker needed only 16 keysign rounds to extract enough information. No tooling, versions or specific accounts are given beyond that.
Two properties of the protocol made the attack practical:
- THORChain signs thousands of transactions during each 3-day churn period, so a committee member gets a very large number of signing ceremonies to observe and influence.
- The attacker could deliberately fail one signature round to force retries, which produces multiple MtA calculations over the same signature.
Finding it
The report frames the issue as a cryptographic flaw in the TSS implementation rather than a conventional application bug. Three separate weaknesses in the key generation and signing protocol combined into what the author calls a perfect storm: insufficient validation of the Paillier key used during key generation, masks in the MtA phase that did not hide the underlying values, and a zero-knowledge proof system that accepted a degenerate commitment value.
Exploitation
Step 1: the multi-prime modulus
The attacker acted as a validator with a malicious Paillier key composed of 17 small primes (17 bits each) and one large prime. Because key generation did not validate the modulus sufficiently, the attacker could use the Chinese Remainder Theorem to "peek" into other validators' encrypted secrets. The weakness is in the insufficient validation checks during key generation, not in the mathematics of the scheme itself.
Step 2: the leaky mask
During the MtA signature computation phase, the attacker exploited how masks were chosen and proved. The randomness was not enough to hide the actual values, which allowed the attacker to extract information about other validators' secrets from the masked values exchanged in the protocol.
Step 3: the degenerate commitment
In the zero-knowledge proof system, when the commitment term Z = 1, a value that should not occur, the proof became meaningless. The attacker could then brute force other values to fit the proof constraints, because the proof no longer constrained anything meaningful.
Step 4: forcing retries
The attacker deliberately failed one signature round to force retries, producing multiple MtA calculations on the same signature. Combined with the volume of signing during a churn period, this gave enough samples to extract enough information over 16 keysign rounds.
Root cause
The root cause is a set of missing or insufficient checks in the GG20 implementation: key generation accepted a Paillier modulus with many small factors, the mask selection and proof in MtA did not provide adequate randomness, and the verifier accepted the degenerate commitment Z = 1. Each of these is a violated assumption that the rest of the protocol relied on. The report does not describe the code itself, so the exact location of each check is not stated.
Impact
The result was the theft of $10.8 million across Bitcoin, Ethereum, BSC and Base. The attacker was a committee member and deliberately failed a round to force retries. Forensic analysis by firms including Chainalysis and ZachXBT linked the stolen funds to wallets pre-staged weeks in advance, which the report reads as evidence of a planned operation rather than a random exploit.
Fix
THORChain migrated to a patched version, with code changes from Binance and SodaLabs. The patch adds:
- additional cryptographic checks, including verification mechanisms for multi-prime moduli;
- revised masks and gamma ranges in the proof system;
- explicit rejection of degenerate proof values (Z = 1);
- multiple layers of defence against future exploits.
The author's broader point is that "sufficient" validation is not enough: every mathematical operation in a threshold signature scheme has to be scrutinised, and security is an ongoing process rather than a one-off achievement.

Variants to test
- Paillier key validation. Submit a modulus built from many small primes plus one large prime during key generation. A positive result is that the protocol accepts it and other participants' encrypted values become recoverable via the Chinese Remainder Theorem.
- Mask entropy in MtA. Inspect the range and distribution of masks and the proofs about them. A positive result is that the masked value leaks information about the secret, for example because the mask space is too small or the proof does not bind the mask.
- Degenerate commitments. Try commitment values such as Z = 1 in the zero-knowledge proof. A positive result is that the verifier accepts a proof that no longer constrains the prover.
- Retry handling. Fail a signing round deliberately and observe whether retries reuse the same inputs. A positive result is multiple MtA calculations over the same signature, giving more samples to attack.
What happened, in plain words
THORChain is a system that lets people move digital money between different blockchains. Think of it as a set of shared safes, one on each blockchain, and a group of guards who together are allowed to open those safes. No single guard can open a safe alone: a whole committee has to cooperate, and the system uses a mathematical procedure called a threshold signature to make that happen. The private key that opens a safe is never put together in one place. Each guard holds a piece of it, and they run a back-and-forth conversation to sign transactions.
On 15 May 2026, someone stole $10.8 million from those safes across several blockchains, including Bitcoin, Ethereum, BSC and Base. The thief was not an outsider breaking in from the internet. It was one of the guards: a malicious node operator who had joined the network two days earlier. Over a series of signing conversations, this guard slowly collected enough information to rebuild a safe's private key, and then took the money.
The write-up describes the incident as three separate bugs that combined into one serious weakness.
The pieces you need to know first
Before the three bugs make sense, here are the ideas they rely on, explained from zero.
- Blockchain: a shared record book that many computers keep copies of. Nobody can quietly rewrite old entries, because everyone would notice.
- Protocol: a set of rules that computers follow to work together. THORChain is a protocol.
- Permissionless: anyone can join and take part without asking a company for approval. That freedom is also the risk: a bad actor can join too.
- Validator / node operator: a computer (and the person running it) that takes part in the protocol, checks what happens and helps approve transactions. In this story, validators are the guards.
- Vault: the shared safe that holds funds on a particular blockchain.
- Private key: the secret number that lets you spend funds from a wallet or vault. Whoever knows it controls the money. Think of it as the only key to a safe.
- Threshold signature: a way for a group to sign something together so that no single member ever holds the full key. It is like a safe that needs several different keys turned at the same time; each guard has one piece, and the pieces are combined only during the signing.
- TSS (Threshold Signature Scheme): the general name for that kind of group signing. THORChain uses a specific version called GG20.
- Signing ceremony / keysign round: one run of the group signing conversation. The guards exchange messages until a signature comes out.
- Churn period: a window in which the set of validators is reshuffled. The report says each churn period lasts 3 days, and that THORChain signs thousands of transactions during one.
- Committee: the subset of validators assigned to a particular vault and signing task. The report says a committee has 18 validators.
- Encrypted value: a number scrambled so that only the intended reader can unscramble it. Guards exchange these during signing so that nobody sees another guard's secret directly.
- Zero-knowledge proof: a way to prove that you followed the rules without revealing the secret behind the proof. It is like showing a locked box and proving you know the combination, without saying the combination out loud.
- Paillier key: a kind of encryption key used inside this signing scheme. It is built from large numbers, and its structure matters for security.
- Prime number: a number divisible only by 1 and itself, such as 2, 3, 5, 7, 11. Large primes are the building blocks of much of modern cryptography.
- Modulus: the number that defines how a particular encryption scheme wraps values around. In the Paillier scheme, the modulus is the product of two large primes.
- Chinese Remainder Theorem (CRT): a classic mathematical result. If you know how a number behaves when divided by several small numbers, you can often work out the number itself. It is normally a helpful tool; here it became a way to peek at secrets.
- MtA (Multiplication-to-Addition): a step inside the signing conversation where guards multiply secret values without either side learning the other's secret. It uses masks, covered below.
- Mask: a random number added to a secret to hide it, the way a noisy crowd hides a single voice. If the mask is random enough, the hidden value stays hidden.
- Commitment: a value published in advance that locks in a choice without revealing it, like sealing a guess in an envelope. Later you can prove the guess was the one in the envelope.
- Brute force: trying every possible value until one works.
- Forensic analysis: the work of tracing money and activity after a crime, done here by firms including Chainalysis and ZachXBT.

The setup: where the attacker stood
The attacker's position was that of a validator inside a TSS committee. That is the key fact: the attacker was not an outsider trying to break the encryption from afar. They were one of the guards in the room, receiving every message the other guards sent.
The report states that a committee has 18 validators, and that the attacker needed only 16 keysign rounds to extract enough information. No tooling, versions or specific accounts are given beyond that.
Two properties of the protocol made the attack practical:
- THORChain signs thousands of transactions during each 3-day churn period, so a committee member gets a very large number of signing ceremonies to observe and influence. More ceremonies means more samples to learn from.
- The attacker could deliberately fail one signature round to force retries, which produces multiple MtA calculations over the same signature. Each retry is another chance to collect information about the same secret.
Finding it
The report frames the issue as a cryptographic flaw in the TSS implementation rather than a conventional application bug. In other words, the problem was not a broken login page or a missing password; it was in the mathematics of how the guards talk to each other while signing.
Three separate weaknesses in the key generation and signing protocol combined into what the author calls a perfect storm:
- insufficient validation of the Paillier key used during key generation;
- masks in the MtA phase that did not hide the underlying values;
- a zero-knowledge proof system that accepted a degenerate commitment value.
Exploitation
Step 1: the multi-prime modulus
The attacker acted as a validator with a malicious Paillier key composed of 17 small primes (17 bits each) and one large prime. Because key generation did not validate the modulus sufficiently, the attacker could use the Chinese Remainder Theorem to "peek" into other validators' encrypted secrets. The weakness is in the insufficient validation checks during key generation, not in the mathematics of the scheme itself.
In plain words: when a new guard joins, they hand over their encryption key so the others can send them scrambled messages. The system is supposed to check that this key is built the normal way, from two large primes. Here it did not check properly, so the attacker handed over a strange key built from many small primes plus one large one. That strange shape let the attacker use the Chinese Remainder Theorem, a standard piece of mathematics, to work out information about the scrambled messages other guards sent. The maths was not broken; the check that should have rejected the odd key was missing.
Step 2: the leaky mask
During the MtA signature computation phase, the attacker exploited how masks were chosen and proved. The randomness was not enough to hide the actual values, which allowed the attacker to extract information about other validators' secrets from the masked values exchanged in the protocol.
In plain words: the guards hide their secrets behind random masks before sending them. If the mask is truly random and large enough, the hidden value cannot be guessed. Here the randomness was too weak, so the masked values still carried a hint of the secret underneath. Collect enough hints and the secret starts to come into focus.
Step 3: the degenerate commitment
In the zero-knowledge proof system, when the commitment term Z = 1, a value that should not occur, the proof became meaningless. The attacker could then brute force other values to fit the proof constraints, because the proof no longer constrained anything meaningful.
In plain words: a zero-knowledge proof is supposed to force the sender to be honest. When the commitment term Z equals 1, a case that should never happen, the proof stops proving anything. It is like a sealed envelope that turns out to be empty: anyone can claim whatever they like and still pass the check. The attacker could then try values until one fitted the empty proof.
Step 4: forcing retries
The attacker deliberately failed one signature round to force retries, producing multiple MtA calculations on the same signature. Combined with the volume of signing during a churn period, this gave enough samples to extract enough information over 16 keysign rounds.
In plain words: if a signing conversation fails, the guards start again. The attacker made one round fail on purpose, so the same signature was computed several times. Each repeat produced fresh masked values about the same secret, and each one leaked a little. Sixteen keysign rounds of this gave enough information to rebuild the vault's private key.
Root cause
The root cause is a set of missing or insufficient checks in the GG20 implementation:
- key generation accepted a Paillier modulus with many small factors;
- the mask selection and proof in MtA did not provide adequate randomness;
- the verifier accepted the degenerate commitment Z = 1.
Each of these is a violated assumption that the rest of the protocol relied on. The whole design assumes that keys are built a certain way, that masks really hide values, and that proofs really prove something. Each assumption was quietly broken. The report does not describe the code itself, so the exact location of each check is not stated.
Impact
The result was the theft of $10.8 million across Bitcoin, Ethereum, BSC and Base. The attacker was a committee member and deliberately failed a round to force retries.
Forensic analysis by firms including Chainalysis and ZachXBT linked the stolen funds to wallets pre-staged weeks in advance, which the report reads as evidence of a planned operation rather than a random exploit. Pre-staging wallets means the receiving addresses were prepared long before the theft, the way a burglar might rent a storage unit before a robbery.
Fix
THORChain migrated to a patched version, with code changes from Binance and SodaLabs. The patch adds:
- additional cryptographic checks, including verification mechanisms for multi-prime moduli;
- revised masks and gamma ranges in the proof system;
- explicit rejection of degenerate proof values (Z = 1);
- multiple layers of defence against future exploits.
In plain words: the system now checks that a guard's key is built the normal way and rejects odd shapes. It uses stronger randomness for masks, so they really hide the values. It refuses the empty-envelope case outright. And it adds several independent checks, so one mistake does not open the door on its own.
The author's broader point is that "sufficient" validation is not enough: every mathematical operation in a threshold signature scheme has to be scrutinised, and security is an ongoing process rather than a one-off achievement.

Variants to test
These are the things a security tester would try, in the same order as the attack. Each one describes what to submit and what a positive result looks like.
- Paillier key validation. Submit a modulus built from many small primes plus one large prime during key generation. A positive result is that the protocol accepts it and other participants' encrypted values become recoverable via the Chinese Remainder Theorem.
- Mask entropy in MtA. Inspect the range and distribution of masks and the proofs about them. A positive result is that the masked value leaks information about the secret, for example because the mask space is too small or the proof does not bind the mask.
- Degenerate commitments. Try commitment values such as Z = 1 in the zero-knowledge proof. A positive result is that the verifier accepts a proof that no longer constrains the prover.
- Retry handling. Fail a signing round deliberately and observe whether retries reuse the same inputs. A positive result is multiple MtA calculations over the same signature, giving more samples to attack.
Glossary
- Blockchain: a shared record book kept by many computers, where old entries cannot be quietly rewritten.
- Chinese Remainder Theorem (CRT): a mathematical result that lets you reconstruct a number from how it behaves when divided by several smaller numbers.
- Churn period: a window in which the set of validators is reshuffled; the report says each lasts 3 days.
- Commitment: a published value that locks in a choice without revealing it, so it can be checked later.
- Committee: the subset of validators assigned to a particular vault and signing task; the report says it has 18 validators.
- Degenerate commitment: a commitment value that should never occur, here Z = 1, which makes the proof meaningless.
- Encrypted value: a number scrambled so only the intended reader can unscramble it.
- Forensic analysis: tracing money and activity after a crime to work out what happened.
- GG20: the specific threshold signature scheme THORChain uses.
- Keysign round: one run of the group signing conversation.
- Mask: a random number added to a secret to hide it.
- Modulus: the number that defines how an encryption scheme wraps values around.
- MtA (Multiplication-to-Addition): a step in signing where guards multiply secret values without learning each other's secrets.
- Node operator: the person or organisation running a validator computer.
- Paillier key: an encryption key used inside the signing scheme, built from large numbers whose structure matters.
- Permissionless: open to anyone to join without approval.
- Prime number: a number divisible only by 1 and itself.
- Private key: the secret number that controls funds; whoever knows it can spend them.
- Protocol: a set of rules computers follow to work together.
- Signing ceremony: one complete group signing conversation.
- Threshold signature: a signature produced by a group so that no single member ever holds the full key.
- TSS (Threshold Signature Scheme): the general name for group signing of this kind.
- Validator: a computer and operator that take part in the protocol and help approve transactions.
- Vault: the shared safe holding funds on a blockchain.
- Zero-knowledge proof: a way to prove you followed the rules without revealing the secret behind the proof.