# ERC-5192 Soulbound NFTs: KYC Badges & Wrapper Bypass Audits

> Implement ERC-5192 minimal Soulbound locking (0xb45a3c0e), MiCA/VARA accredited-investor KYC credentials, ERC-6551/Safe wrapper traps, and issuer revocation.

Canonical: https://nftvenueledger.com/protocols/erc-5192-soulbound-attestation-locking-compliance-badges
Last updated: 2026-11-14T19:51:30.044Z

**Publication:** NFTVenue Ledger
**Category:** Erc721 Erc1155 Eip712 Permit Security
**Published:** 2026-11-13T20:15:25.915Z
**Author:** Dr. Devon Kurosawa, PhD (PhD in Distributed Systems & Cryptographic Protocol Verification)
**Reviewer:** Not recorded

## Answer-first summary

ERC-5192 standardizes minimal Soulbound NFTs via locked(tokenId) and Locked/Unlocked events, powering on-chain KYC/KYB gating—provided auditors block smart-wallet ownership transfers.

## Key takeaways

- ERC-5192 (interfaceId 0xb45a3c0e) adds locked(tokenId) and Locked/Unlocked events to ERC-721 so marketplaces like Seaport automatically suppress listing prompts.
- Storing zero personal data on-chain—recording only credential tier, uint64 expiration, and issuer revocability—satisfies EU GDPR Article 17 right-to-erasure alongside MiCA/VARA KYC rules.
- Blocking ERC-721 transferFrom alone fails if a user mints an SBT to a 1-of-1 Safe or ERC-6551 account and sells control of that account via swapOwner.
- Recording a controller fingerprint (codehash + Safe owner list hash) at mint time automatically invalidates Soulbound credentials if account ownership or EIP-7702 delegation changes.

## Related financial entities

- **ERC-3643 Tokenized Securities Standard (T-REX)** (ERC-3643) — product: Suite of open-source smart contracts enabling the compliant issuance, management, and transfer of permissioned security tokens using on-chain identity.
- **ERC-5192 Minimal Soulbound Token Standard** (ERC-5192) — product: Standard interface for non-transferable NFTs implementing locking status indicators and transfer-rejection event triggers.
- **Seaport Marketplace Protocol Standard** (SEAPORT) — product: Open-source, highly optimized marketplace contract suite for efficiently buying and selling fungible and non-fungible tokens.

## Analysis

Permissioned liquidity pools (`Uniswap v4 KYC hooks, Aave Arc, tokenized T-bill vaults`) and regulated RWA venues under [ESMA](/frameworks/esma), [Dubai VARA](/frameworks/vara), and [MAS](/frameworks/mas) frequently issue **non-transferable on-chain compliance credentials** without leaking raw PII onto public blockchains. Rather than reinventing incompatible token interfaces, the **[ERC-5192 Minimal Soulbound NFT Standard](/tokens/erc-5192-soulbound-standard)** extends standard ERC-721 with a tiny 1-function, 2-event locking interface (`IERC5192`, EIP-165 ID `0xb45a3c0e`) so wallets and indexers like the [Seaport marketplace protocol](/tokens/seaport-marketplace-protocol) immediately know **never to allow listing or transferring locked tokens**!

Anchored in our [EIP-712, Permit2 & proxy security master guide](/protocols/eip712-permit2-erc721-royalty-proxy-timelock-security-2026), naive Soulbound ("SBT") deployments suffer from a glaring **Smart-Account / Wrapper Ownership Sale Bypass** unless paired with continuous signer-state or [ERC-3643](/tokens/erc-3643-rwa-standard) identity-registry verification!

## ERC-5192 Specification & OpenZeppelin v5 `_update` Hook Implementation

ERC-5192 adds exactly three elements on top of `ERC721`:
- `function locked(uint256 tokenId) external view returns (bool)` (reverts if `tokenId` corresponds to zero owner / nonexistent token!).
- `event Locked(uint256 tokenId)` (emitted upon Soulbound minting or administrative freeze) and `event Unlocked(uint256 tokenId)`.
- Inside OpenZeppelin v5's unified `_update(address to, uint256 tokenId, address auth)` hook, any movement where `from != address(0) && to != address(0)` (`i.e., neither minting nor issuer revocation/burn!`) reverts with `ErrTokenLocked(tokenId)` whenever `_locked[tokenId] == true`!

![ERC-5192 Soulbound KYC credential minting, Seaport EIP-165 listing block, v4 hook check, and issuer revocation](/api/figure?type=flow&title=ERC-5192%20Soulbound%20Compliance%20Credential%20Lifecycle&subtitle=Zero-PII%20on-chain%20attestation%20gating%20DeFi%20hooks%20while%20supporting%20instant%20sanctions%20revocation&steps=1.%20Off-Chain%20KYB%2FKYC%3A%3AVASP%20verifies%20investor%20under%20MiCA%20%2F%20VARA%20%26%20signs%20EIP-712%20claim%7C2.%20Mint%20%2B%20Locked%28%29%3A%3AMint%20ERC-721%20SBT%20to%20wallet%20%26%20emit%20Locked%28tokenId%29%20%280xb45a3c0e%29%7C3.%20Hook%20%2F%20Pool%20Gate%3A%3AUniswap%20v4%20beforeSwap%20checks%20sbt.balanceOf%28trader%29%20%3E%200%20%26%20expiry%7C4.%20Sanctions%20Burn%3A%3AIssuer%20revokes%20via%20_burn%28tokenId%29%20if%20sanctions%20or%20KYC%20expires!&metrics=EIP-165%20ID%3A%3A0xb45a3c0e%3A%3AAuto-disables%20Seaport%20%22List%22%20UI%20button%7CON-CHAIN%20PII%3A%3A0%20Bytes%3A%3AGDPR%20Art.%2017%20erasure%20compliant!%7CTRANSFER%20GAS%3A%3AReverts%20Early%3A%3ABlocked%20in%20_update%28%29%20%2B%20approve%28%29%7CREVOCATION%20PATH%3A%3AIssuer%20Burn%3A%3Afrom%20!%3D%200%20%26%26%20to%20%3D%3D%200%20allowed)

## The Fatal Soulbound Wrapper Trap: Selling the Safe or ERC-6551 Account!

Watch how sanctioned actors bypass naive Soulbound KYC badges across DeFi and NFT venues in our [marketplaces directory](/marketplaces) (from RWA launchpads to gated drops like [Admit One](/marketplaces/admit-one) and [Art Blocks X Bright Moments](/marketplaces/art-blocks-x-bright-moments)):
1. Verified KYC user Mallory deploys a **1-of-1 Safe smart-contract wallet** (`or an ERC-6551 Token-Bound Account owned by an unlocked wrapper NFT!`) and completes KYC so the issuer mints `KYC_SBT #402` to `address(Safe)`.
2. `KYC_SBT #402` can never leave `address(Safe)` (`ERC-5192 reverts transferFrom!`).
3. Instead of transferring `KYC_SBT #402`, **Mallory calls `Safe.swapOwner(Mallory, Buyer)` (or sells the parent NFT of the ERC-6551 account on Seaport)**! `address(Safe)` never changed, yet a completely un-KYC'd Buyer now controls `address(Safe)` and trades freely in the "KYC-gated" pool!

**Mandatory Institutional Mitigations**:
- **EOA-Only or Monitored Safe Guard Minting**: Either restrict SBT recipients to verified keys/custodians, or attach an immutable **Safe `Guard`** / **ERC-3643 `ONCHAINID` claim topic check** that invalidates the credential the instant `Safe.getOwners` or EIP-7702 `codehash` changes!
- **Rolling Time-to-Live (`expirationTimestamp`)**: Store `uint64 validUntil` per `tokenId` requiring periodic zero-cost off-chain refresh attestations (`e.g., 90–180 days`).

## On-Chain Identity & Credential Architecture Comparison

| Credential Standard | Token / Storage Layer | Marketplace UI Auto-Detection | Wrapper / Safe Sale Defense | Best Institutional Use Case |
| :--- | :--- | :--- | :--- | :--- |
| **ERC-5192 Soulbound NFT** | ERC-721 + `locked(id)` (`0xb45a3c0e`) | **100% Native** (OpenSea/Blur hide List) | Requires `extcodesize` / Safe owner hash check | Accredited-investor & Reputation badges |
| **EAS (Ethereum Attestation Service)** | Singleton registry (`Attestation` struct) | Non-NFT (Custom indexer required) | Binds `recipient` + revocable `expirationTime` | High-volume off-chain/on-chain KYC claims |
| **[ERC-3643 (`T-REX`)](/tokens/erc-3643-rwa-standard)** | Security Token + `IdentityRegistry` | Built into token `transfer` hook | Verifies `ONCHAINID` cryptographic claim sigs | Regulated tokenized funds & bonds |
| **ERC-5484 Consensual SBT** | ERC-721 + `BurnAuth` enum | Partial EIP-165 support | Defines `IssuerOnly` vs `Both` burn rights | University degrees, credit-default flags |

![Verification gas overhead inside a Uniswap v4 beforeSwap KYC hook across ERC-5192, EAS, and ZK-proofs](/api/figure?type=bars&title=Swap-Time%20KYC%20Verification%20Gas%20Overhead%20%28EVM%29&subtitle=Incremental%20gas%20added%20to%20each%20permissioned%20pool%20swap%20by%20compliance%20verification%20method&steps=ERC-5192%20Packed%20Struct%3A%3A~2%2C800%20gas%20%281%20external%20STATICCALL%20reading%20owner%20%2B%20uint64%20expiry%29%7CEAS%20On-Chain%20Attestation%3A%3A~3%2C400%20gas%20%28reads%20Attestation%20UID%20revocation%20%2B%20expiry%20timestamp%29%7CERC-5192%20%2B%20OwnerHash%20Guard%3A%3A~6%2C100%20gas%20%28also%20hashes%20Safe.getOwners%28%29%20%2B%20codehash%20%3D%3D%20approved!%29%7CGroth16%20ZK-KYC%20Proof%3A%3A~215%2C000%20gas%20%28full%20privacy%2C%20usually%20verified%20once%20to%20mint%205192%20SBT!%29&metrics=GDPR%20COMPLIANCE%3A%3AZero%20On-Chain%20PII%3A%3AStore%20only%20salted%20claim%20type%20%2B%20expiry%7CAPPROVE%20REVERT%3A%3Aapprove%28%29%20Blocked%3A%3AAlso%20block%20setApprovalForAll%20on%20SBTs%7CSAFE%20SALE%20CHECK%3A%3Akeccak%28owners%5B%5D%29%3A%3AInvalidates%20SBT%20if%20Safe%20signers%20rotate!%7CSANCTIONS%20SLA%3A%3A1-Block%20Burn%3A%3AInstant%20OFAC%20%2F%20EU%20TFR%20revocation)

## Safe-Owner-Bound Soulbound Validity Invariant

To close the smart-account wrapper loophole mathematically, institutional ERC-5192 contracts record a cryptographic **Controller Fingerprint (`H_ctrl`)** at mint time and verify it inside `isValidCredential(address holder)`:

```formula
Wrapper-Proof ERC-5192 Credential Validity Function:
 At Mint Time t_0 for verified account A:
 H_ctrl(t_0) = (A.code.length == 0)
 ? keccak256(abi.encode("EOA", bytes32(0)))
 : keccak256(abi.encode(A.codehash, ISafe(A).getOwners, ISafe(A).getThreshold))

 Runtime Pool Hook Check at Swap Time t:
 Valid(A, t) = (ownerOf(id) == A)
 && (locked(id) == true)
 && (block.timestamp < expiry[id])
 && (H_ctrl_current(A) == H_ctrl_recorded[id])

Worked Wrapper-Bypass Foiled Test:
 Sanctioned actor buys Safe 0x99..BB via swapOwner(VerifiedAlice -> Actor):
 H_ctrl_current(0x99..BB) != H_ctrl_recorded[id] -> Valid(0x99..BB, t) evaluates FALSE instantly (0-second auto-freeze)!
```

## Inspecting ERC-6551 Token-Bound Accounts Next

The exact opposite of a non-transferable ERC-5192 badge is an **ERC-6551 Token-Bound Account (`TBA`)**—where transferring one parent NFT atomically transfers an entire smart-contract wallet full of tokens and child NFTs! Examine TBA frontrunning traps next in [ERC-6551 Token-Bound Account inventory frontrunning](/protocols/erc-6551-token-bound-accounts-nft-inventory-frontrunning) and [ERC-2981 vs transfer validators](/protocols/erc-2981-royaltyinfo-signaling-vs-transfer-validator-lists) inside our [EIP-712, Permit2 & Proxy Security hub](/topics/erc721-erc1155-eip712-permit-security).

## Frequently asked questions

### How can someone sell a Soulbound NFT if transferFrom always reverts?

If the issuer allows minting the Soulbound token to a smart-contract wallet (such as a Gnosis Safe or ERC-6551 Token-Bound Account), the recipient can transfer ownership of the wallet itself without ever calling transferFrom on the SBT.

### Does putting KYC Soulbound NFTs on Ethereum violate EU GDPR privacy laws?

Publishing names, passport hashes, or raw PII on an immutable blockchain violates GDPR; compliant ERC-5192 badges publish only an opaque revocable boolean/tier flag and expiry timestamp with zero PII.

### Should an ERC-5192 contract also revert on approve and setApprovalForAll?

Yes. Reverting inside approve and setApprovalForAll for permanently locked collections saves users wasted gas and prevents stale approvals if a token were ever conditionally unlocked.

### How does an issuer revoke an ERC-5192 KYC badge if a wallet is sanctioned?

In OpenZeppelin v5 ERC721._update, the lock guard checks (from != address(0) && to != address(0)), allowing an authorized REVOKER_ROLE to call _burn(tokenId) (where to == address(0)) in a single block.


## Source URLs

- https://eips.ethereum.org/EIPS/eip-5192
- https://eips.ethereum.org/EIPS/eip-5484
- https://docs.attest.org/docs/welcome

## Citation

- APA: Dr. Devon Kurosawa, PhD. (2026). ERC-5192 Minimal Soulbound NFTs: Non-Transferable KYC Badges, Wrapper Traps & Revocation. NFTVenue Ledger. https://nftvenueledger.com/protocols/erc-5192-soulbound-attestation-locking-compliance-badges
- Canonical article: [ERC-5192 Minimal Soulbound NFTs: Non-Transferable KYC Badges, Wrapper Traps & Revocation](https://nftvenueledger.com/protocols/erc-5192-soulbound-attestation-locking-compliance-badges)
- Site research index: [NFTVenue Ledger](https://nftvenueledger.com/llms-full.txt)
