# Nft Fraud Security Review

> 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.

- Skill: `mizazhaider-ceh/nft-fraud-security-review` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/nft-fraud-security-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/nft-fraud-security-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/nft-fraud-security-review

---


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

1. Define the scope: the collection contract, the mint contract, the marketplace, or the suspicious activity, and the time window under review.
2. Pull on chain data: transfers, sales, mints, and approvals for the collection, with transaction hashes as evidence.
3. Detect wash trading: self dealing, circular rings, and volume without economic substance, and quantify how much reported volume is wash.
4. Review the mint: randomness source, allowlist handling, per wallet caps, insider advantage, and whether rare items can be selected rather than drawn.
5. Check metadata: on chain, pinned IPFS, or a mutable server, and who can change it after sale.
6. Review marketplace logic: order matching, price and fee handling, royalty enforcement, delisting, and order expiry.
7. Map the phishing surface: fake mints, malicious approvals, and signature scams targeting holders, and check what the wallet shows before signing.
8. 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

```python
#!/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")
```

```bash
# 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

```bash
# 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
```

```bash
# 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

```solidity
// 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.
}
```

```bash
# 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

- ERC-721 and ERC-1155 token standards: https://eips.ethereum.org/EIPS/eip-721 and https://eips.ethereum.org/EIPS/eip-1155
- OpenZeppelin Contracts, ERC-721 and access control: https://docs.openzeppelin.com/contracts/
- IPFS documentation, content addressing and pinning: https://docs.ipfs.tech/
- Ethereum documentation, NFT concepts: https://ethereum.org/en/nft/
- Slither documentation and detectors: https://github.com/crytic/slither

