AK47 Honeypot
What happened
AK47 (AK47) is a BNB Chain token deployed on 1 March 2021 at 0x9f594956…beadd3, with its entire supply minted to the deployer. Every transfer runs through calculateFeesBeforeSend, which reverts with "Error: Can not sell this token" whenever the recipient is flagged in the PanCakeSwapReciever mapping, and only the owner can set that flag through setPanCakeSwapReciever. If the PancakeSwap pair is flagged, any transfer into the pair, which is how a sale works, fails, while purchases paid out by the pair to buyers still succeed.
Unlike the fee whitelist, this flag is not frozen by renounceWhitelist, so it stays under owner control until ownership is renounced. De.Fi's REKT database lists AK47 as an exit scam/honeypot, stating that the contract owner could disable transfers and so stop holders from selling.
How it happened
- The constructor mints 76,797,868,786,544,352 AK47 to the deployer through
_transferTO, which also makes the deployer thefeeDistributor; the deployer is theOwnableowner. - The owner can call
setPanCakeSwapReciever(address, true)for any address, including the PancakeSwap pair. The function has nocanWhitelistcheck, sorenounceWhitelistdoes not lock it. _transfercallscalculateFeesBeforeSend(sender, recipient, amount)on everytransferandtransferFrom. That function reverts with "Error: Can not sell this token" whenPanCakeSwapReciever[recipient]is true.- A sale sends tokens from the holder to the pair, so once the pair is flagged every sale reverts. A purchase sends tokens from the pair to the buyer, whose address is not flagged, so buying keeps working.
- The owner can clear the flag at any time with
setPanCakeSwapReciever(pair, false), so the owner alone decides when the pair accepts tokens.
Protocol details
Evidence
- report De.Fi REKT database listing for AK47 (proof link: Token Sniffer X post 1386163504470659074) twitter.com
- transaction AK47 contract creation transaction bscscan.com
- address AK47 verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0x9f5949566a13369f0f8cd956dc7632ae88beadd3 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.