How to Stop a Sweeper Bot From Draining Your Compromised Wallet
0
0

A sweeper bot is a program that watches a hacked wallet and moves out anything that lands in it. It reacts in seconds. When a wallet owner sends ETH to pay for gas, the bot usually takes that ETH first, and the tokens stay stuck.
That is why a compromised wallet is so hard to save. This guide explains how a sweeper bot works, how to spot one, which rescue methods exist, and what to do afterward. The honest answer is that the owner cannot switch the bot off. The goal is to move assets out before it can react.
What Is a Sweeper Bot?
A sweeper bot is software run by an attacker who already has the wallet's private key or seed phrase. It watches the address all the time. When ETH or tokens appear, it sends them to the attacker's own address.
It is a cousin of the wallet drainer, but the two work differently. A drainer tricks a user into signing a harmful request. A sweeper bot needs no signature from the owner at all, because the key is already stolen.
How It Catches the Gas
Every transfer on Ethereum needs ETH for gas. A compromised wallet that holds tokens but no ETH is stuck. When the owner sends a little ETH to cover the fee, the bot sees it arrive and sweeps it out before the owner can use it.
Why the Bot Usually Wins the Race
A normal transaction waits in the public mempool, where anyone can read it. The bot sees the owner's deposit and acts first. The owner is sending small, public steps, while the bot is already running a script that watches every block.
How Can the Owner Tell a Sweeper Bot Is Active?
No single sign proves it, but several clues point the same way.
-
ETH vanishes fast. ENS support notes that if ETH sent to the wallet disappears within seconds, a bot is likely active. If the wallet keeps holding its ETH, a bot is less likely.
-
Unplanned outgoing transfers. Moves the owner never signed show that someone else holds the key.
-
Unknown approvals. Token approvals to contracts the owner does not recognize can mean a drainer is also in play.
-
A strange delegation. Since the Pectra upgrade, a wallet can point to contract code through EIP-7702. A delegated account shows code that starts with 0xef0100 followed by an address. If the owner never set it, that is a red flag.
What Should the Owner Do in the First Minutes?
Speed matters, but panic costs money. The order below keeps the damage small.
-
Stop funding the wallet. Every ETH deposit is likely lost to the sweeper bot.
-
Stop using the seed phrase. Every wallet made from the same seed is at risk.
-
Clean the device. The leak often came from malware, so a rescue should run from a clean computer or phone.
-
List the assets by value. Tokens, NFTs, staked positions, and domain names may each need a different move.
-
Check approvals and delegation. Look for unknown approvals and any EIP-7702 delegation.
-
Prepare a new wallet. Create it on a clean device, ideally a hardware wallet, and keep it offline from the old one.
-
Choose a rescue method. The options are in the next section.
Which Rescue Options Exist?
| Option | How it works | Main limit |
| Atomic private bundle | A clean wallet pays gas, assets move and leftover ETH returns, all in one block | Needs the key and technical care; may not be included |
| Sponsored batch with EIP-7702 | A sponsor wallet pays gas, so no ETH enters the compromised wallet | Only works on chains that support it, and the account must allow it |
| Professional incident responder | A security firm plans and runs the rescue | Costs money; scams imitate this service |
| Leave the assets | The owner accepts that nothing more can be done | Assets stay exposed |
How Can an Atomic Bundle Beat a Sweeper Bot?
An atomic bundle sends several transactions together. They either all land in the same block or none do. That removes the gap the sweeper bot depends on.
The Idea
The bundle goes to a private channel instead of the public mempool. The Flashbots docs describe this as a private mempool that hides transactions from front-running bots. Because the bot never sees the steps early, it has nothing to react to.
What Goes in One Block
A typical rescue bundle has three parts. First, a clean wallet sends just enough ETH to the compromised one for gas. Second, the compromised wallet moves the tokens or NFTs to a safe address. Third, any leftover ETH returns to the clean wallet. Since all three land together, the sweeper bot has no time to step in.
Why It Can Still Fail
The attacker holds the same key. They can change the account's nonce or move assets first. Block builders may also decline the bundle. Rules differ on each chain, and some chains offer no private path at all.
Open-source rescue tools exist. Owners should read the code, test with small amounts and never type a seed phrase into a website.
What Is EIP-7702, and Why Does It Matter Here?
EIP-7702 lets a normal wallet take on smart contract code. The Ethereum Foundation's Pectra overview explains that an owner can always sign a new authorization that revokes or replaces the existing delegation.
Why a Delegation Is a Risk
If an attacker sets a delegation on a stolen account, the wallet can behave like an automated sweeper. It may batch transfers or block the owner's normal moves.
Clearing a Bad Delegation
A bad delegation can be replaced or cleared. But the attacker holds the same key, so this is another race. Some rescue tools handle it first inside a sponsored bundle, which keeps ETH out of the old wallet. A wallet owner who is unsure should seek expert help instead of guessing.
Conclusion: Can a Sweeper Bot Be Stopped?
A sweeper bot cannot be switched off while the attacker holds the key. It can be outpaced. An atomic bundle through a private channel is the best-known way to move assets before the bot reacts, and it works only when conditions line up.
The safest plan is to stop sending gas, secure a fresh wallet, move what can be moved, and treat the old wallet as lost. Rescue services need care, since scammers copy them.
Disclaimer: This article is for information and education only. It is not financial, legal or security advice. Rescue methods can fail and can cost the remaining funds. Rules differ by chain and change over time. Readers should do their own research before making any decision.
0
0
Securely connect the portfolio you’re using to start.
Live Polymarket and Kalshi odds on Ethereum price targets, compared side by side.
See Ethereum price odds





