Blog

Stablecoin and RWA Security: How One Exploit Crossed Three Layers

Stablecoin and RWA security covers three layers: the token contract, the off-chain services that tell it what to mint, and the keys that sign for it. A smart contract audit covers only the first.

By Published

In March 2026, attackers minted 80 million USR, Resolv’s stablecoin, and walked away with about $25 million. They did not need a contract bug. They got in through a contractor’s GitHub credential and signed the mints with Resolv’s own key.

Stablecoins and real-world asset (RWA) tokens, such as tokenized stocks, bonds, and fund shares, live on a blockchain, but their value depends on things the chain cannot see: a bank or broker account, a bond at a custodian, a price, a list of sanctioned wallets.

A smart contract audit is the obvious first step. But many of the ways a token can lose its backing sit outside the contract: in the services that tell the contract what to mint, and in the keys that sign those instructions.

In short

  • A token is only as safe as its contracts, the off-chain services that feed them, and the keys that sign.
  • Services and keys can break the token’s promise without a single contract bug.
  • Review all three, and make sure the contract limits the damage when one of them fails.

Start with what the token promises

What a token promises decides what the contract has to trust. Three common setups, often combined:

Backed one to one

Examples
Fiat-backed stablecoins, tokenized stocks, commodities
A token is
A claim on a fixed amount of an asset held off-chain
Supply changes when
The issuer receives cash or the asset and mints against it, sometimes gated by an attestor or proof of reserve
The contract trusts
The issuer’s mint instructions and any attested holdings

Priced at NAV

Examples
Tokenized money-market and bond funds, yield-bearing stablecoins
A token is
A share in a pool of assets, priced at NAV or held at $1 with yield paid as new tokens
Supply changes when
Investors subscribe or redeem, or yield is paid out as new tokens
The contract trusts
The NAV or yield feed, and whoever confirms the cash settled

Issued on-chain

Examples
Digitally issued bonds and shares on a regulated ledger
A token is
The legal record of ownership, where the law recognizes the ledger as the register
Supply changes when
The issuer or transfer agent issues, redeems, or runs a corporate action
The contract trusts
The issuer’s instructions and the investor allowlist

Three layers behind one token

A simple way to map a tokenization platform. The boundaries blur, but each layer needs its own review. Each layer below uses public incidents where they exist, plus a labeled hypothetical for a tokenized security or fund.

On-chainRecords who holds what, and enforces the rules
  • Token contract
  • Mint and burn
  • Pause and freeze
  • Transfer restrictions
  • Settlement

reports backing, NAV, prices, and blocked wallets

CoordinationDecides what the contract is told
  • Attestor
  • Broker or custodian API
  • Order runtime
  • Quote service
  • NAV feed
  • Screening
  • Monitoring
  • Cloud and CI/CD

authorizes mints and attestations

CustodyHolds the keys and the underlying asset
  • Owner, issuer, and attestor keys
  • MPC or HSM
  • Fireblocks or similar
  • Safe multisig
  • Bank, broker, or custodian account
A typical mint path. Each hand-off is a place to break it.

On-chain

Layer 1The token contract and anything that settles against it.

This is the layer smart contract audits are built for. For tokenized assets, the weak points sit where the contract meets the rest of the system: limits on trusted inputs, pauses and freezes, upgrade and admin roles, and copies of the token on other chains.

Mint limits

A cap per call, not per period

A cap that applies only per call lets a trusted key split a large mint into many small ones. Cap the total over a time window too, sized to what you can afford to lose.

Pause and freeze

A paused transfer the venue ignores

A paused token refuses transfers. If a venue or bridge debits the holder first and ignores that refusal instead of reverting, the holder loses the balance.

Compliance checks

A freeze that misses a code path

A freeze or KYC check on transfer alone leaves other ways to move a balance: a spender’s transferFrom, burns, and cross-chain mints and burns. Each path needs its intended check, with no way around it. Standards such as ERC-3643 and ERC-1400 build these checks in, then add forced transfers that skip some of them by design. An ERC-3643 agent can also mint, burn, and freeze wallets, so its key needs the same protection as a minting key.

Hypothetical · Tokenized bond

An allowlisted pool that lets anyone in

The bond token only moves between verified investors. The issuer allowlists a lending pool so holders can borrow against their bonds. The receipt tokens the pool issues for deposited bonds move freely, so anyone can buy the exposure the allowlist was meant to restrict. And when a loan is liquidated, the seized bonds can only go to a verified liquidator. If none steps in, the pool is left with bad debt.

Zoth · March 2025

An upgrade key can empty the vault

Zoth, a restaking protocol built on tokenized treasuries, left upgrade rights over a vault proxy on its deployer wallet. An attacker with that key upgraded the proxy to a malicious contract and withdrew about 8.85 million USD0++ tokens, worth about $8.4 million according to Cointelegraph. Put upgrades behind a timelock and a multisig, and keep admin roles off deployer keys.

KelpDAO · April 2026

A second chain that trusts one verifier

Kelp’s rsETH bridge required a single verifier. Attackers poisoned the RPC nodes that verifier read from, so it attested a forged message. The bridge released 116,500 rsETH, about $292 million, according to LayerZero. Each extra chain adds a minting path to secure.

The contract cannot tell whether an attestation is true, but it can reject implausible ones and cap the damage from the rest. It can pause when a NAV moves beyond a set band from the last one, refuse a mint that would push supply above attested reserves, and limit how much can be minted in a window. When the layers below fail, those checks decide whether you lose a little or everything.

Coordination

Layer 2Everything off-chain that tells the contract what to do, and where it runs.

These services turn trades, holdings, and prices into the numbers the contract enforces, often through an oracle that posts them on-chain. They run on backends, cloud accounts, and CI/CD pipelines, and whoever controls those controls the services. None of the failures below is a contract bug, so they need a review of the off-chain code and a penetration test of the infrastructure it runs on:

Broker API

A read-only job with a trading key

An attestor only needs to read the share count, but some broker APIs grant reading and trading under one permission. Whoever compromises the attestor can sell the backing.

Attestor

A purchase reversed after attestation

If the broker busts or corrects a fill, or the trade fails to settle, after the attestor has reported it, the tokens minted against it stay in circulation with nothing behind them.

Proof of reserve

A reserve check that reads the issuer’s own number

A proof-of-reserve feed is only as good as its source. If it reads the issuer’s own API, or a list of addresses the issuer says it owns, it confirms what the issuer reports. Chainlink’s docs flag both as self-reported.

Transfer agent

Two registers that drift apart

Where the transfer agent’s register is the legal record and the chain mirrors it, every forced transfer, wallet recovery, and corporate action has to land in both. If one side updates and the other does not, they disagree on who owns what, and a redemption can pay the wrong holder.

Hypothetical · Tokenized bond fund

A NAV that stopped updating

Subscriptions and redemptions settle at a NAV that an oracle posts once a day. The job that posts it fails without an alert, and the fund then marks its holdings down. Investors who notice can redeem at yesterday’s higher price, and the loss falls on everyone who stays. The contract should refuse a NAV whose as-of date is older than its update window, even if the feed reposts the old value with a new timestamp. It should also pause redemptions when a new NAV moves more than a set band from the last one, until a person confirms it.

Paxos · October 2025

An extra 300 trillion PYUSD

During an internal transfer, Paxos minted excess PYUSD: 300 trillion tokens, which on-chain records show it burned 22 minutes later. The contract did what it was built to do: an authorized key asked it to mint, and it minted.

Custody

Layer 3The keys that sign, and the account that holds the underlying asset.

Keys authorize mints and attestations. Here are four common ways to hold them. In each, the setup can fail even when the cryptography is sound, which is why a signing and custody review covers the policy around a key as well as the key:

In-house MPC

Libraries with rules attached

MPC libraries assume the app follows their rules, such as refusing to sign again with a party the library has flagged. An app that breaks one of those rules can leak a key share to a single compromised signer.

HSM or cloud KMS

A safe key that signs anything

An HSM keeps the key from being extracted, but by default it signs whatever an authorized caller sends. Security moves to the service in front of it: who can call it, what it checks, and who can change its access policy.

Fireblocks and similar

A sound platform, a loose policy

One stolen API credential can move funds anywhere if no person has to approve the transfer, the co-signer signs automatically without a callback check, and the policy allows any destination.

Safe multisig

What the threshold does not cover

Modules can execute without owner signatures. A delegatecall transaction or an altered signing interface can get a full threshold to approve something the signers never meant to.

Three public cases show the pattern: an MPC wallet built on an audited library, a Safe multisig whose signers were deceived, and a minting multisig with too low a threshold.

Vultisig · patched August 2026

An audited library, an unsafe retry

The MPC library flagged a malicious co-signer with LIB_ABORT_PROTOCOL_AND_BAN_PARTY. The app showed a generic failure and retried. That left it open to the selective-abort attacks the library’s audit describes, where a compromised device can learn the other device’s protocol secrets. The fix stops on that error and warns the user.

Bybit · February 2025

Real keys, disguised transaction

Attackers compromised a developer machine at Safe{Wallet}, the multisig interface Bybit’s signers used. The signers approved what looked like a routine transfer. It was a delegatecall that handed the wallet to the attackers, and about $1.5 billion left.

StablR · May 2026

A minting multisig one key could control

StablR, an issuer of euro and dollar stablecoins that was licensed under MiCA, says an outside party reached part of its infrastructure and minted EURR and USDR with no payment behind them. About 6.41 million EURR and 14.33 million USDR of those unauthorized tokens were still in circulation as of late August. Blockaid attributed it to one compromised signer on a minting multisig that needed only 1 of 3 signatures: the attacker added themselves as an administrator, replaced the existing owners, and sold the new tokens on decentralized exchanges, as reported by The Block. StablR has not confirmed those details.

Key separation also has to survive deployment. If the contract keeps the attestor’s and issuer’s powers apart but both keys run on one host, or sit under one cloud account, admin role, or deploy pipeline, one compromise can report false backing and mint against it. Resolv’s attackers never touched a signing host: a CI pipeline and a cloud role were enough.

The accounts behind the underlying asset need the same controls as the keys:

Hypothetical · Tokenized private credit

A bank account one person can empty

The tokens represent notes issued by a special-purpose vehicle that holds the loans and their cash. Minting needs 3 of 5 signers, but the vehicle’s bank mandate lets a single director approve payments. That one person can move whatever cash the vehicle holds, including each repayment as it arrives, and nothing on-chain shows it until the next attestation.

The layers fail together

The Resolv incident from the top of this post crossed all three layers. USR was backed by a hedged crypto portfolio held through custodians. Users deposited collateral, and an off-chain service with its own key confirmed how much USR to mint. From Resolv’s postmortem, published while its investigation continued:

  1. Coordination

    Attackers reached Resolv’s repositories through a credential tied to a contractor’s GitHub account, left over from a third-party project that had been compromised.

  2. Coordination

    They exploited the organization’s repository settings to run a malicious CI workflow that exfiltrated credentials for Resolv’s cloud.

  3. Custody

    Access controls blocked several attempts to reach the minting service’s KMS key. Then the attackers used a higher-privileged role to rewrite the key’s access policy and signed mint completions themselves.

  4. On-chain

    The minting contract had no independent cap. It minted 80 million USR in two transactions, and the attackers extracted about $25 million.

“No single issue in this chain would have been sufficient to execute the attack on its own.”

Resolv postmortem, April 2026

An audited contract does not protect a token whose minting key can be reached from a CI pipeline. That is why we review all three layers together.

Before you scope a review

Answer these five questions first:

  • What exactly does the token promise its holders?
  • Which systems produce each number the contract trusts, such as backing, price, NAV, or allowlists?
  • Which keys can change supply or move the underlying asset, where do they run, and which policy approves their use?
  • When a number or a key is wrong, does the contract cap the damage?
  • Who reconciles on-chain supply and holder balances against the bank, custodian, and transfer agent records, how often, and which runbook follows a mismatch?

A smart contract audit covers the fourth. The rest need the same care for the services, the broker and custodian integrations, and the key setup. If any answer is “not sure yet,” that is where a tokenization security review should start.

Frequently asked questions

What is a stablecoin security audit?

A review of everything that can change a stablecoin’s supply or its backing: the token contract and its mint, burn, pause, and freeze rules; the off-chain service that decides what to mint and the reserve data it reads; and the keys and signing policy that authorize mints. A smart contract audit alone covers only the first.

What is RWA tokenization security?

Protecting the link between a token and the real-world asset behind it, such as a stock, bond, or fund share. It takes three things: a contract that enforces the right rules, services that report holdings or NAV accurately and resist tampering, and issuance keys that stay under the issuer’s control. If any one fails, tokens can stay in circulation with nothing behind them.

Is a smart contract audit enough for an RWA token?

No. A smart contract audit checks that the contract does what it is told. An RWA token or stablecoin can lose its backing when the service that tells the contract what to mint is wrong or compromised, or when a minting key is stolen. Resolv lost about $25 million in March 2026 without a contract bug. Review the contract, the off-chain services that feed it, and the keys that sign, and make sure the contract limits the damage when one of them fails.

Does proof of reserve make a stablecoin safe?

Only as far as its source. A proof-of-reserve feed that reads the issuer’s own API, or a list of addresses the issuer says it owns, confirms what the issuer reports, not what it holds. Chainlink’s documentation flags both as self-reported. Check where each reserve number comes from, who can change it, and what the contract does when the number is stale or wrong.

How was Resolv’s USR stablecoin exploited?

In March 2026, attackers used a leftover credential tied to a contractor’s GitHub account to run a malicious CI workflow, which exposed Resolv’s cloud credentials. They used a higher-privileged role to rewrite the access policy on the minting service’s KMS key, signed mints themselves, and minted 80 million USR. The minting contract had no independent cap, and the attackers extracted about $25 million.

How should a stablecoin issuer protect its minting key?

Whatever holds the key, whether in-house MPC, an HSM or cloud KMS, Fireblocks, or a Safe multisig, review who can call it, what it checks before signing, and who can change its policy. Keep the attestor’s and issuer’s keys in separate trust domains: separate hosts, cloud accounts, admin roles, and deploy pipelines. Then cap mints on-chain per time window, so a stolen key can only mint as much as you can afford to lose.

How should admin and upgrade keys be protected?

Treat them like minting keys, because an upgrade can replace the mint logic outright. Zoth lost about $8.4 million in March 2025 when an attacker used its deployer key to upgrade a vault proxy. Hold them in a multisig or MPC setup separate from the keys used day to day, put upgrades behind a timelock so holders and monitoring see a change before it takes effect, and remove any roles left on deployer keys. Check every role the deployment actually granted, not only the ones the documentation lists.

Does ERC-3643 make a token secure?

No. ERC-3643 checks on every transfer that the receiver is a verified investor and that the transfer meets the token’s compliance rules. It does not protect the keys, data, or integrations behind the token. Its agent role can mint, burn, freeze wallets, and force transfers, so a stolen agent key is as dangerous as a stolen minting key. The identity registry is also only as accurate as the process that adds investors to it.

Timur Güvenkaya

Written by

Timur Güvenkaya

Founder & Partner

About Timur

Tell us what you need to secure.

Describe your system, main concern, and deadline. We’ll reply with scoping questions and a proposed next step.

Discuss your scope