StableMagnet hack — June 2021
Incident facts
| Date of incident | |
|---|---|
| Publicly disclosed | June 23, 2021 |
| Target type | Decentralised exchange |
| Loss | $27,000,000Published estimates range $25,000,000 to $27,000,000Price at time of incident |
| Recovered | $22,250,000 |
| Method | Rug pull or exit scamThe deployed SwapUtils linked library did not match the verified source code, because block explorers do not verify linked library bytecode. The substituted library contained a backdoor letting the operators withdraw the pooled stablecoins directly and also pull tokens from any wallet that had granted StableMagnet an ERC-20 spending approval. |
| Chains | BNB Chain |
| Audited beforehand | Yes |
| Attributed to | StableMagnet operators; two suspects arrested by Greater Manchester Police and not publicly namedAlleged |
| Outcome | Arrests or charges |
What happened
StableMagnet was a stablecoin automated market maker on BNB Chain. On 23 June 2021 its operators drained it.
The contract's published source code referenced a linked library called SwapUtils, but neither Etherscan nor BscScan verifies linked library code when verifying a contract's source. The deployed library was not the audited one: it contained a backdoor that let the operators withdraw the pooled stablecoins directly, and also let them pull tokens out of any wallet that had granted StableMagnet a spending approval. A prior audit missed this because the auditors reviewed the project's GitHub repository rather than the deployed library bytecode. The technique was flagged publicly by the account rugdocio.
Reported totals differ. Halborn's analysis puts the loss at $27 million; Cointelegraph reported approximately $25 million taken from more than a thousand users. Greater Manchester Police later seized $22.25 million, which reporting at the time described as roughly 90 per cent of the stolen funds.
An anonymous investor who had been about to put money into the protocol traced the operators himself, identifying them as Hong Kong residents who had moved to the Manchester area, and took what he had to Greater Manchester Police. In July 2021 the force's Economic Crime Unit recovered an encrypted USB stick holding $9.5 million in ether, arrested a 23-year-old man and a 25-year-old woman on suspicion of fraud and money laundering, and days later found a further $12.7 million in a cryptographic safety deposit box. Both were released under investigation. By February 2022 police had returned more than four million pounds to 23 verified victims, with 127 further claims from the UK, US, Europe, China, Australia and Hong Kong being validated.
Law enforcement
Greater Manchester Police Economic Crime Unit (UK): $22.25m seized July–August 2021, two arrests for fraud and money laundering, both released under investigation; over £4m returned to 23 victims by February 2022 with 127 further claims under validation.
Sources
- HalbornSecondary · retrieved 2026-08-01
- CointelegraphSecondary · retrieved 2026-08-01
- The Manc (quoting Greater Manchester Police)Secondary · retrieved 2026-08-01
- DecryptSecondary · retrieved 2026-08-01
- BitdefenderSecondary · retrieved 2026-08-01
Cite this
This data is published under CC BY 4.0. You may reuse it, including commercially, as long as you credit iTokenly and link back.
iTokenly Hack Registry, "StableMagnet hack — June 2021", iTokenly, accessed 2026-08-01, https://itokenly.com/hacks/stablemagnethttps://itokenly.com/hacks/stablemagnetPermalinks never change. If an entry is renamed, the old address keeps working.
Spotted an error? Write to [email protected]. Corrections to published figures are logged on this page. See the methodology for how entries are checked.