ATM Token's custom `_transfer` auto-swapped 20 percent of every sell into USDT inside the transfer path itself, and an attacker's helper contract replayed that path against the ATM/USDT PancakeSwap pair. DeFiHackLabs reconstructs a drain of approximately $243,543 USDT, independently reported at about $243,500 by CryptoNews, citing TenArmor and CertiK alerts.
Security ·
Logged as “2026-06-04: Hidden Transferfrom Auto Swap Drain on ATM Token”.
ATM Token is an unlisted BEP-20 token on BNB Smart Chain with no public website, whitepaper or roadmap, trading only against USDT on a single PancakeSwap pair. Its contract carries a custom _transfer with a sell-side auto-swap: a numTokensSellRate of 20 means that on a sell, once the contract's own ATM balance exceeds swapAtAmount (200e18), the token sells an amount equal to 20 percent of the sell size (capped at its own balance) from its own holdings through PancakeRouter. That auto-swap runs inside the token's own transfer path rather than as a separate, caller-initiated trade, and nothing in the path re-checks that the USDT paid out corresponds to ATM actually given up by the caller rather than ATM already sitting in the contract's own fee balance.
The attacker, at 0x7e7C1f0D567c0483f85e1d016718E44414CdBAFE, set up the drain with a funding buy against the ATM/USDT pair (0x659b44D603052132Fd36cf048D9e0BA1e307AE3a) at block 102,070,707, then ran the attack through a helper contract at 0xeCe23b485c38110b7a50B5067B7D4B644f897Dc9 in a single drain transaction at block 102,072,357. The helper sold ATM from 30 pre-funded clone addresses into a pair whose price had been about doubled by a prior 132-transaction burn-on-buy pump. Each sell also fired the token's own 20% auto-dump of its ATM holdings to its fee wallets (about $57,597), a separate leak that did not go to the attacker. DeFiHackLabs' reconstruction puts the gross drain at approximately $243,543 USDT. CryptoNews, citing security alerts from TenArmor and CertiK, reported the incident on June 5, 2026 with a loss of "approximately $243,500," describing, per CertiK's analysis, the root cause as a transferFrom path that "automatically triggered a swap of 20% of the transferred ATM amount into BSC-USD" and that could be replayed by "repeatedly initiating transfers" rather than through a flash loan or reentrancy. As of June 5, 2026, CryptoNews noted the ATM team had issued no public statement on the incident, had not confirmed whether the contract was paused, and gave no word on liquidity status or recovery.
ATM's bug fits a broader category of risk rather than an isolated flaw. DTXT's PancakeSwap pair was separately drained of 35,041.11 USDT by a different bug in the same category: a transaction-type check in DTXT's contract that compared its own USDT balance against the amount deposited to decide whether a call was a swap or a liquidity addition, letting an attacker skew that comparison with a one-wei transfer and sell without paying the fee. BOSS separately lost 10,207.54 USDT to a helper contract driving mint/burn and transfer-tax pool skew. Three BNB Smart Chain tokens, each running its own hand-written transfer-tax or auto-swap logic, were drained through three distinct flaws. The common thread is not a shared exploit or a shared attacker but a shared category of risk: homemade token contracts that fold a DEX trade into the transfer path invite exactly this kind of bug, because every added branch is a place where the accounting can disagree with the pool's real reserves.
The ATM token's source is verified on Sourcify, and DeFiHackLabs' proof of concept quotes the _transfer sell branch from it; no audit or public documentation has been found. What would have prevented it is removing the DEX trade from the transfer path entirely, or if an auto-swap is a deliberate design choice, pricing it strictly against the tokens the current call actually moves rather than against the contract's standing balance, so that no sequence of calls can extract more than was deposited.
Query every incident yourself — free, no signup
Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.