NFT fraud is mostly market manipulation and theft, not chain breaks: wash trading to fake volume, minting bugs that let insiders grab rare items, metadata that can be swapped after sale, and phishing that steals tokens through approvals. This sub-skill belongs to nft-fraud, which owns NFT fraud patterns and marketplace logic, and it supplies the security review for a collection, a mint, or a marketplace before launch or before a client trusts its volume.
Quick Workflow
- Define the scope: the collection contract, the mint contract, the marketplace, or the suspicious activity, and the time window under review.
- Pull on chain data: transfers, sales, mints, and approvals for the collection, with transaction hashes as evidence.
- Detect wash trading: self dealing, circular rings, and volume without economic substance, and quantify how much reported volume is wash.
- Review the mint: randomness source, allowlist handling, per wallet caps, insider advantage, and whether rare items can be selected rather than drawn.
- Check metadata: on chain, pinned IPFS, or a mutable server, and who can change it after sale.
- Review marketplace logic: order matching, price and fee handling, royalty enforcement, delisting, and order expiry.
- Map the phishing surface: fake mints, malicious approvals, and signature scams targeting holders, and check what the wallet shows before signing.
- Report with numbers: wash share of volume, mint fairness findings, metadata mutability, and marketplace logic flaws, each tied to a transaction or a code location.
1. Wash trading detection
#!/usr/bin/env python3
"""Wash trade heuristics on NFT transfer data from public chain data."""
import json, collections
transfers = [json.loads(l) for l in open("/tmp/nft/transfers.jsonl")]
self_deals = [t for t in transfers if t["buyer"] == t["seller"]]
print("self deals:", len(self_deals))
by_token = collections.defaultdict(list)
for t in transfers:
by_token[t["token_id"]].append(t)
rings = 0
for token, ts in by_token.items():
seen = set()
for t in ts:
if t["buyer"] in seen and t["seller"] != t["buyer"]:
rings += 1
break
seen.add(t["seller"])
print("tokens with possible circular trading:", rings)
print("wash share:", round(100 * len(self_deals) / max(1, len(transfers)), 1), "percent")
# Pull transfers for a collection with an explorer API, then inspect
# repeat buyers and sellers before trusting any volume figure
jq -r '[.token_id, .seller, .buyer, .price] | @tsv' /tmp/nft/transfers.jsonl \
| sort | uniq -c | sort -rn | head -20
2. Mint fairness and metadata review
# Mint logic checks in code: randomness, allowlist, caps, and reveal
grep -rn "random\|keccak\|block.timestamp\|blockhash\|allowlist\|merkle\|maxMint\|reveal" \
nft-contracts/contracts --include="*.sol" | head -40
# Red flags: rarity decided by a predictable on chain value, an
# allowlist root that the deployer can replace mid mint, or no cap
# per wallet while insiders hold the minting key
# Metadata check: fetch the token URI and see what controls it
cast call $COLLECTION "tokenURI(uint256)" 1 --rpc-url $RPC_URL
cast call $COLLECTION "baseURI()" --rpc-url $RPC_URL
# If the URI points to a server the team controls, the art can change
# after sale. Pinned IPFS or on chain metadata removes that rug vector.
3. Marketplace order logic
// Review points for any fill function, checked by reading the code.
// 1. Does the fill verify the order signer, price, token, and expiry?
// 2. Can a stale order be filled after delisting or after a price change?
// 3. Are fees and royalties computed on the filled price, not a caller value?
// 4. Is the payment token the one the seller expected, or any token?
function fillOrder(Order calldata order, bytes calldata sig) external payable {
require(block.timestamp <= order.expiry, "order expired");
require(verify(order, sig), "bad signature");
// Missing checks here are the findings, not the happy path itself.
}
# Approval risk for holders: an old setApprovalForAll to a marketplace
# or a phishing contract lets that contract move every token at once
cast call $COLLECTION "isApprovedForAll(address,address)" $HOLDER $OPERATOR --rpc-url $RPC_URL
# Holders should revoke approvals they no longer use, and marketplaces
# should never ask for approval to an address the user did not verify
Edge cases
- Wash trading through fresh wallets looks like new demand; cluster by funding source and timing, not just by address equality.
- A fair mint can still be front run if the reveal transaction is public; check whether rarity is committed before minting starts.
- Royalties are a marketplace policy, not a chain guarantee, on most standards; do not promise royalty enforcement the contracts cannot deliver.
- Lazy minting shifts the mint cost and the signature risk to the first buyer; review the voucher signature and its expiry.
- A collection with mutable metadata is not automatically a scam, but the mutability, who holds the key, and whether holders were told must all be in the report.
- Floor price can be manipulated by a single wash sale; report volume, unique buyers, and holder count together, never volume alone.
Key references
1---2name: nft-fraud-security-review3description: Use when reviewing NFT collection, marketplace, or mint security for wash trading, minting abuse, metadata rug risk, royalty bypass, and malicious approval phishing. Use when vetting a launch, investigating suspicious volume, or checking whether a marketplace order can be filled at an unintended price.4version: "1.0.0"5domain: blockchain6lifecycle: stable7last_verified: "2026-10-27"8parent: nft-fraud9requires: [nft-fraud]10extends: []11relates: [smart-contract-audit, blockchain-forensics, wallet-security]12tools:13 - name: Python14 version: "3.12"15 - name: Slither16 version: "0.11.0"17 - name: jq18 version: "1.7"19metadata:20 source: https://skillmd.com/skills/mizazhaider-ceh/nft-fraud-security-review21---2223NFT fraud is mostly market manipulation and theft, not chain breaks: wash trading to fake volume, minting bugs that let insiders grab rare items, metadata that can be swapped after sale, and phishing that steals tokens through approvals. This sub-skill belongs to nft-fraud, which owns NFT fraud patterns and marketplace logic, and it supplies the security review for a collection, a mint, or a marketplace before launch or before a client trusts its volume.2425## Quick Workflow26271. Define the scope: the collection contract, the mint contract, the marketplace, or the suspicious activity, and the time window under review.282. Pull on chain data: transfers, sales, mints, and approvals for the collection, with transaction hashes as evidence.293. Detect wash trading: self dealing, circular rings, and volume without economic substance, and quantify how much reported volume is wash.304. Review the mint: randomness source, allowlist handling, per wallet caps, insider advantage, and whether rare items can be selected rather than drawn.315. Check metadata: on chain, pinned IPFS, or a mutable server, and who can change it after sale.326. Review marketplace logic: order matching, price and fee handling, royalty enforcement, delisting, and order expiry.337. Map the phishing surface: fake mints, malicious approvals, and signature scams targeting holders, and check what the wallet shows before signing.348. Report with numbers: wash share of volume, mint fairness findings, metadata mutability, and marketplace logic flaws, each tied to a transaction or a code location.3536## 1. Wash trading detection3738```python39#!/usr/bin/env python340"""Wash trade heuristics on NFT transfer data from public chain data."""41import json, collections42transfers = [json.loads(l) for l in open("/tmp/nft/transfers.jsonl")]43self_deals = [t for t in transfers if t["buyer"] == t["seller"]]44print("self deals:", len(self_deals))45by_token = collections.defaultdict(list)46for t in transfers:47 by_token[t["token_id"]].append(t)48rings = 049for token, ts in by_token.items():50 seen = set()51 for t in ts:52 if t["buyer"] in seen and t["seller"] != t["buyer"]:53 rings += 154 break55 seen.add(t["seller"])56print("tokens with possible circular trading:", rings)57print("wash share:", round(100 * len(self_deals) / max(1, len(transfers)), 1), "percent")58```5960```bash61# Pull transfers for a collection with an explorer API, then inspect62# repeat buyers and sellers before trusting any volume figure63jq -r '[.token_id, .seller, .buyer, .price] | @tsv' /tmp/nft/transfers.jsonl \64 | sort | uniq -c | sort -rn | head -2065```6667## 2. Mint fairness and metadata review6869```bash70# Mint logic checks in code: randomness, allowlist, caps, and reveal71grep -rn "random\|keccak\|block.timestamp\|blockhash\|allowlist\|merkle\|maxMint\|reveal" \72 nft-contracts/contracts --include="*.sol" | head -4073# Red flags: rarity decided by a predictable on chain value, an74# allowlist root that the deployer can replace mid mint, or no cap75# per wallet while insiders hold the minting key76```7778```bash79# Metadata check: fetch the token URI and see what controls it80cast call $COLLECTION "tokenURI(uint256)" 1 --rpc-url $RPC_URL81cast call $COLLECTION "baseURI()" --rpc-url $RPC_URL82# If the URI points to a server the team controls, the art can change83# after sale. Pinned IPFS or on chain metadata removes that rug vector.84```8586## 3. Marketplace order logic8788```solidity89// Review points for any fill function, checked by reading the code.90// 1. Does the fill verify the order signer, price, token, and expiry?91// 2. Can a stale order be filled after delisting or after a price change?92// 3. Are fees and royalties computed on the filled price, not a caller value?93// 4. Is the payment token the one the seller expected, or any token?94function fillOrder(Order calldata order, bytes calldata sig) external payable {95 require(block.timestamp <= order.expiry, "order expired");96 require(verify(order, sig), "bad signature");97 // Missing checks here are the findings, not the happy path itself.98}99```100101```bash102# Approval risk for holders: an old setApprovalForAll to a marketplace103# or a phishing contract lets that contract move every token at once104cast call $COLLECTION "isApprovedForAll(address,address)" $HOLDER $OPERATOR --rpc-url $RPC_URL105# Holders should revoke approvals they no longer use, and marketplaces106# should never ask for approval to an address the user did not verify107```108109## Edge cases110111- Wash trading through fresh wallets looks like new demand; cluster by funding source and timing, not just by address equality.112- A fair mint can still be front run if the reveal transaction is public; check whether rarity is committed before minting starts.113- Royalties are a marketplace policy, not a chain guarantee, on most standards; do not promise royalty enforcement the contracts cannot deliver.114- Lazy minting shifts the mint cost and the signature risk to the first buyer; review the voucher signature and its expiry.115- A collection with mutable metadata is not automatically a scam, but the mutability, who holds the key, and whether holders were told must all be in the report.116- Floor price can be manipulated by a single wash sale; report volume, unique buyers, and holder count together, never volume alone.117118## Key references119120- ERC-721 and ERC-1155 token standards: https://eips.ethereum.org/EIPS/eip-721 and https://eips.ethereum.org/EIPS/eip-1155121- OpenZeppelin Contracts, ERC-721 and access control: https://docs.openzeppelin.com/contracts/122- IPFS documentation, content addressing and pinning: https://docs.ipfs.tech/123- Ethereum documentation, NFT concepts: https://ethereum.org/en/nft/124- Slither documentation and detectors: https://github.com/crytic/slither