Skip to content

Security and scams · Explainer

DeFi Flash Loan Attacks: What Happened and What to Do

A flash loan is a large, uncollateralized loan that must be repaid in one blockchain transaction. Attacks exploit flaws in the protocols that handle the borrowed funds—not the loan feature alone.

By the SkyBitcoins editorial team · Updated

What just happened—and was there one new attack?

A flash-loan attack is an exploit that uses a large loan taken and repaid within one blockchain transaction to magnify a weakness in a DeFi protocol. The loan itself is not necessarily the flaw: the target may have faulty price data, accounting, governance rules or contract logic.

A report dated October 6, 2026, describes a study estimating that flash-loan attacks drained about $1.211 billion from DeFi platforms in total. That figure is cumulative, not the loss from one newly identified attack. The headline does not identify a single incident for you to investigate.

Beanstalk Farms is a prominent historical example. In April 2022, an attacker used flash-borrowed funds to influence the project’s governance and pass a proposal that transferred treasury assets. Contemporary headlines gave different loss figures, so don’t treat one headline amount as a definitive account of user losses.

If you saw a new alert, first identify the protocol and chain named in it. A broad post about flash loans does not prove that your own wallet or a protocol you use was affected.

How can a loan be used without collateral?

A flash loan lets a user borrow assets without posting collateral, on the condition that the loan and fee are repaid before the same transaction finishes. The lender’s contract checks repayment. If the borrower cannot repay, the transaction reverts, generally undoing its on-chain steps as if they had not happened.

That all-or-nothing structure makes flash loans useful for certain trades and refinancings. It also lets an attacker temporarily control far more capital than they own. The borrowed funds can be routed through several contracts in a single transaction, then returned to the lender if the exploit succeeds.

What you see What it means
A very large loan Temporary capital, not necessarily stolen funds
A loan repaid in the same transaction The flash-loan condition was met
A protocol balance or price changes Possible exploit impact; investigate the protocol

A large loan, by itself, is not evidence of an attack. The key question is whether a protocol relied on a value or permission that the borrower could manipulate during that transaction.

What does an attack usually exploit?

The attacker looks for a weakness in a protocol that can be influenced using temporary capital. One common pattern is a protocol relying on a manipulable on-chain price: a large trade shifts the price in a thin-liquidity pool, and another contract treats that temporary price as reliable. The attacker may then borrow too much, mint too many tokens or withdraw assets against the distorted value.

Other exploits have involved accounting that can be changed through token donations or deposits, contract interactions that were not safely handled, and governance systems that let a temporary token balance carry voting power. The details vary. A flash loan is the amplifier; the exploitable design is the underlying problem.

At a high level, a typical sequence is:

  1. Borrow assets in a flash loan.
  2. Use them to affect a vulnerable price, balance or vote.
  3. Make the protocol release value or approve an action.
  4. Repay the loan and keep any extracted value.

This is a defensive explanation, not a recipe. If you are assessing an incident, focus on the protocol’s confirmed statement about the faulty mechanism and affected contracts rather than trying to reproduce the transaction.

What should you do if you may be affected?

If you may have funds in an affected protocol, pause before signing anything. Do not approve a transaction just because a social post or message claims it will protect, unlock or return your assets. Attackers often imitate incident-response teams and target worried users with malicious links or requests for seed phrases.

Use this checklist:

  • Identify the exact protocol, network and asset named in the incident notice.
  • Check the protocol’s established official channels for a confirmed incident update. Do not rely on a direct message or an unfamiliar account.
  • Review your wallet’s positions and recent transactions using your usual wallet or a trusted block explorer. A displayed balance does not guarantee that withdrawals are available.
  • Follow only a clearly confirmed pause, withdrawal or recovery procedure. Read the transaction details and contract permissions before signing.
  • If you granted a suspicious token approval, revoke it using a reputable tool and verify the network and contract address first.

Never share your recovery phrase or private key. If a protocol pauses withdrawals, repeated transactions may waste gas without helping. Wait for verified instructions rather than making rushed moves based on rumors.

How do you verify an incident without falling for a second scam?

A transaction explorer can help you confirm that a transaction occurred, which contracts it interacted with and whether assets moved. It cannot, on its own, establish the full financial impact, the protocol’s recovery plan or whether a promised reimbursement is genuine. A transaction that repays a flash loan does not mean the protocol avoided losses; the attacker may have extracted assets before repayment.

For an incident update, look for specifics: the affected chain and contracts, which markets or tokens are involved, whether deposits or withdrawals are paused, and what users should do next. Treat vague assurances such as “funds are safe” cautiously if they do not identify what was checked. A security firm’s or protocol’s postmortem may take time; early estimates can change.

Be especially wary of unsolicited recovery offers, “compensation claim” forms and support accounts asking you to connect your wallet or sign an unexplained message. A legitimate protocol should not need your seed phrase. Don’t pay an advance fee to recover funds based only on a private message or an unverified website.

How can you reduce your exposure before depositing?

You usually cannot stop a protocol-level exploit from your wallet, but you can reduce your exposure and make better decisions about where to deposit. DeFi deposits are not insured bank deposits. Smart-contract audits can help identify problems, but an audit is not a guarantee that a protocol is safe or that every later change was reviewed.

Before supplying assets, check:

  • Which contracts and chains hold or manage the deposit.
  • Whether the protocol publishes audits and whether they cover the version currently in use.
  • How the protocol obtains prices, and whether it relies on a single thin-liquidity market.
  • Whether governance votes or accounting balances can be affected by temporary capital.
  • What pause, withdrawal and incident-disclosure procedures exist.

Keep only the amount you can afford to have exposed to contract and market risk. Recheck positions when a protocol changes its contracts or risk parameters. For lending platforms such as Aave, review the specific market and terms; a familiar protocol name does not remove smart-contract, oracle or liquidation risks.

Which mistakes should you avoid after an exploit?

A common mistake is to blame the flash loan rather than the weakness it enabled. Blocking a loan source may not fix an unsafe oracle, flawed accounting or a governance design that can be manipulated. Protocol teams need controls suited to the actual failure, such as robust price feeds, limits on instantaneous borrowing or voting power, and careful checks around contract interactions.

As a user, avoid these mistakes:

  • Assuming every large flash loan is malicious—or that a repaid loan means no damage occurred.
  • Treating an audit badge, high deposit total or familiar brand as a promise of safety.
  • Signing a “recovery” transaction you have not independently verified.
  • Rushing to withdraw without checking whether the protocol has paused activity or whether the route itself is safe.
  • Assuming a loss estimate in an early headline is final or applies equally to every depositor.

Use confirmed incident notices to decide whether to wait, withdraw or take another action. If the protocol has not published clear instructions, do not guess at a contract interaction. In DeFi, a mistaken approval or transaction can create a separate, irreversible loss.

Frequently asked questions

Are flash loans themselves a hack?

Usually, no. A flash loan must be repaid, with its fee, before the transaction ends; otherwise the transaction reverts. The danger is that borrowed funds can briefly amplify an attack on a vulnerable protocol.

Can I tell from a blockchain explorer whether my funds are safe?

Not automatically. A transaction explorer can show whether funds moved, but it may not explain which contract flaw was exploited or whether a protocol will reimburse users. Check the affected protocol’s verified announcements and avoid acting on unverified claims.

Will a DeFi protocol reimburse users after a flash-loan attack?

It depends on the protocol, which assets you supplied and how the exploit affected its contracts. Don’t assume your balance is recoverable or that a recovery plan is legitimate; wait for confirmed instructions from the protocol’s official channels.

Do legitimate DeFi users use flash loans?

Yes. Flash loans have legitimate uses, including arbitrage and refinancing, because they let a borrower access capital within one transaction. Their speed and size can also magnify weaknesses in oracles, accounting or governance.

Mentioned in this guide

dApps in this guide

Flash Loans logoScore 4.2 out of 10

Flash Loans offers a flash-loan builder on Ethereum and BNB Chain, but undisclosed fees and security checks warrant caution.

Ethereum · BNB Chain

Aave

Lending

Score 7.7 out of 10

Aave offers open crypto lending and borrowing, but variable rates, gas costs and liquidation risk make it best for informed DeFi users.

Ethereum

Keep reading

Related guides

All security and scams guides

Security and scams · How-to

How to Avoid Getting Rekt in DeFi in 2026

You can’t remove DeFi risk, but you can reduce your exposure before connecting a wallet, signing a transaction or depositing funds. Use this checklist to protect your keys, assess protocols and plan what to do if something goes wrong.

DeFi · Explainer

What Is ACryptoS? A Simple DeFi Guide for 2026

ACryptoS is a DeFi strategy protocol designed to automate liquidity and lending vaults. Here’s how those vaults may work, what to check before depositing, and why token names need careful verification.

DeFi · Best list

Best DeFi Apps in 2026: How to Choose

The best DeFi app depends on what you want to do: swap tokens, lend or borrow, stake crypto, or trade derivatives. Compare the risks and costs of each route before connecting your wallet or approving a transaction.

DeFi · Best list

Best DeFi Platforms in 2026: How to Choose

The best DeFi platform depends on what you want to do: swap tokens, lend, borrow, or stake. Compare the right tools for your task, then check fees, network, liquidity and risks before connecting your wallet.

Security and scams · Explainer

DeFi Kingdoms Exploit: What JEWEL Holders Should Do

A reported exploit can trigger selling and uncertainty around DeFi Kingdoms’ JEWEL token, but a price drop alone does not prove what was compromised. Verify the incident, check your wallet’s exposure and avoid rushed transactions while details are unclear.

Security and scams · Explainer

How to Assess the DecentraWorld Rug Pull

DecentraWorld was reported to have suffered a rug pull in May 2022 after its founders drained a BNB treasury, with losses valued at more than $1 million. Here’s what the incident means, how to check your exposure and how to avoid recovery scams.