Aichi Inu Honeypot
What happened
Aichi Inu (AICHI) is a BNB Chain token deployed on 24 April 2021 at 0xc10af996…a79154 by 0x5Ff40570…aBc23A. Its transferFrom only works when the sending holder is on an allow list, which at deployment contains only the deployer. PancakeSwap sales pull tokens from the seller with transferFrom, so they revert for every holder the controlling address has not added, while buys, which the pair pays out with a plain transfer, go through.
The onlyOwner modifier does not check the owner variable: it is hard-wired to 0x11BD86c5…8dE247, which can edit the allow list and overwrite any address's balance with mint, and transferOwnership cannot hand those powers to anyone else. De.Fi's REKT database lists Aichi Inu as an exit scam/honeypot.
How it happened
- The constructor sets
owner = msg.sender, gives the deployer the wholetotalSupply(1,000,000,000,000,000 AICHI read on-chain) and runsallow[msg.sender] = true. No other holder starts on the list. transferhas no list check, so buys work: the PancakeSwap pair sends tokens to the buyer withtransfer.transferFromrunsrequire(allow[_from] == true). The check is on_from, the holder whose tokens move, so a router sale, which callstransferFrom(seller, pair, amount), reverts for any seller not on the list.modifier onlyOwner() {require(msg.sender == address(0x11BD86c5a4C8a484edc0404bc10507D7B28dE247));_;}ignores theownervariable. That hard-coded address alone can calladdAllow(holder, bool)to let chosen wallets sell or to remove them.- The same address can call
mint(miner, _value), which runsbalances[miner] = _value: it overwrites any balance, up or down, without changingtotalSupply. transferOwnershiponly rewritesowner, whichonlyOwnernever reads, so the powers above cannot be transferred or given up.
Protocol details
Evidence
- report Token Sniffer post 1373698524961906691 (seed link) twitter.com
- transaction Aichi Inu contract creation transaction bscscan.com
- address Aichi Inu (AICHI) verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0xc10af996c92c9396a6d59f940f4bbfb2caa79154 on BNB Chain repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.