{"eip":8126,"title":"AI Agent Verification","description":"Specialized multi-layer verification for AI Agent security","authors":["Leigh Cronian (@cybercentry) \u003cleigh.cronian@cybercentry.co.uk\u003e","Chris Johnson \u003cchris@virtuals.io\u003e"],"status":"Final","type":"Standards Track","category":"ERC","created":"2026-01-15","requires":[155,191,712,721,3009,8004],"discussionsTo":"https://ethereum-magicians.org/t/erc-8126-ai-agent-verification/27445","repo":"ERCs","label":"ERC-8126","officialUrl":"https://eips.ethereum.org/EIPS/eip-8126","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8126.md","url":"https://eips.huatuo.xyz/eip-8126/","tldr":{"en":"A mostly off-chain standard for security-checking AI agents registered under ERC-8004: providers run five verification types on the agent's metadata and return a 0–100 risk score with zero-knowledge proof IDs.","ja":"ERC-8004 に登録された AI エージェントをセキュリティ検査する、ほぼオフチェーンの標準。プロバイダーがエージェントのメタデータに対して 5 種類の検証を実行し、ゼロ知識証明 ID とともに 0〜100 のリスクスコアを返す。","ko":"ERC-8004에 등록된 AI 에이전트를 보안 점검하는 대부분 오프체인 표준. 제공자가 에이전트의 메타데이터에 대해 다섯 가지 검증을 수행하고 영지식 증명 ID와 함께 0–100 위험 점수를 반환한다.","zh":"一个主要在链下进行的标准，用于对在 ERC-8004 下注册的 AI agent 做安全检查：提供方对 agent 的元数据执行五类验证，并返回 0–100 的风险评分以及零知识证明 ID。"},"tags":["agents","ai","verification","security","risk-score"],"explainers":{"en":{"lang":"en","tldr":"A mostly off-chain standard for security-checking AI agents registered under ERC-8004: providers run five verification types on the agent's metadata and return a 0–100 risk score with zero-knowledge proof IDs.","tags":["agents","ai","verification","security","risk-score"],"related":[8004,721,712,3009,8183],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8126/","markdown":"## What problem does it solve?\n\n[ERC-8004](/eip-8004/) gives AI agents an on-chain identity: each agent is an [ERC-721](/eip-721/) token whose `tokenURI` points to a registration file listing its wallet, contracts, web endpoints and image. That says *who* an agent claims to be, but not whether it is safe to interact with. Before ERC-8126, every service that wanted to vet agents invented its own checks.\n\nERC-8126 defines a common verification process: what a verification provider must check, how results are scored, which error codes to use, and an optional on-chain record of the outcome. Any number of competing providers can implement it.\n\n## How it works\n\nA request names only an ERC-8004 `agentId`. The provider calls `tokenURI(agentId)` on the Identity Registry, fetches the JSON, and verifies what it finds there. Submitting raw addresses or URLs without an `agentId` is not allowed.\n\nCompliant providers must implement all five checks, each applied when the relevant metadata field is present and each yielding a 0–100 risk score:\n\n| Type | Checks |\n| --- | --- |\n| **ETV** – Ethereum Token Verification | `contractAddress` has code on the given chain and no known vulnerability patterns (OWASP SCSVS suggested) |\n| **MCV** – Media Content Verification | the agent image's provenance, tampering and watermarks (C2PA suggested) |\n| **SCV** – Solidity Code Verification | the provided Solidity code is deployed and free of common bugs such as reentrancy |\n| **WAV** – Web Application Verification | the HTTPS endpoint responds, has a valid certificate, and no common vulnerabilities |\n| **WV** – Wallet Verification | the agent wallet has history and is not on threat databases |\n\nThe overall score is the mean of the applicable scores, mapped to tiers: 0–20 Low, 21–40 Moderate, 41–60 Elevated, 61–80 High, 81–100 Critical. Results go through **PDV** (Private Data Verification), which issues zero-knowledge proof IDs instead of exposing raw data; **QCV** optionally encrypts stored records (the spec cites AES-256-GCM).\n\nProviders may charge fees, should accept stablecoins, and should use [ERC-3009](/eip-3009/) `transferWithAuthorization` for gasless payment. Requests are signed with [EIP-712](/eip-712/) typed data.\n\n## Sample code\n\nThe optional on-chain interface from the spec:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.0;\n\ninterface IERC8126 {\n    event AgentVerified(\n        uint256 indexed agentId,   // ERC-8004 Identity Registry token id\n        uint8 overallRiskScore,\n        bytes32 etvProofId,\n        bytes32 mcvProofId,\n        bytes32 scvProofId,\n        bytes32 wavProofId,\n        bytes32 wvProofId,\n        bytes32 summaryProofId\n    );\n    event AttestationPosted(uint256 indexed agentId, uint8 riskScore, bytes32 proofId);\n\n    function getLatestRiskScore(uint256 agentId) external view returns (uint8);\n}\n```\n\nGating an interaction on a provider's latest score:\n\n```solidity\nrequire(IERC8126(verifier).getLatestRiskScore(agentId) \u003c= 40, \"agent risk too high\");\n```\n\n## Things to know\n\n- **Status: Final**, but it builds on ERC-8004, which is still a Draft, so the registration format it reads from can still change.\n- It is primarily an **off-chain** standard. No contract is needed to request or run checks; the on-chain interface is optional, and results can also be posted to the ERC-8004 Validation Registry.\n- A risk score is only as good as the provider producing it. The standard fixes the categories and scale, not the detection methods, so scores from different providers are not necessarily comparable.\n- It defines 13 standard error codes (`0x01` `InvalidAddress` to `0x0D` `MediaVerificationFailed`) that implementations must use.\n- Payments for agent work itself are a separate concern; see [ERC-8183](/eip-8183/) for job escrow.\n"},"ja":{"lang":"ja","tldr":"ERC-8004 に登録された AI エージェントをセキュリティ検査する、ほぼオフチェーンの標準。プロバイダーがエージェントのメタデータに対して 5 種類の検証を実行し、ゼロ知識証明 ID とともに 0〜100 のリスクスコアを返す。","tags":["agents","ai","verification","security","risk-score"],"related":[8004,721,712,3009,8183],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8126/","markdown":"## 何を解決するのか\n\n[ERC-8004](/eip-8004/) は AI エージェントにオンチェーンの ID を与えます。各エージェントは [ERC-721](/eip-721/) トークンで、その `tokenURI` は、ウォレット、コントラクト、Web エンドポイント、画像を列挙した登録ファイルを指します。これはエージェントが*誰*を名乗っているかを示しますが、やり取りして安全かどうかは示しません。ERC-8126 以前は、エージェントを審査したいサービスがそれぞれ独自のチェックを考案していました。\n\nERC-8126 は共通の検証プロセスを定義します。検証プロバイダーが何をチェックしなければならないか、結果をどうスコアリングするか、どのエラーコードを使うか、結果の任意のオンチェーン記録などです。競合する複数のプロバイダーが、これを実装できます。\n\n## 仕組み\n\nリクエストが指定するのは ERC-8004 の `agentId` だけです。プロバイダーは Identity Registry の `tokenURI(agentId)` を呼び、JSON を取得して、そこにあるものを検証します。`agentId` なしで生のアドレスや URL を送ることは許されません。\n\n準拠するプロバイダーは 5 つのチェックをすべて実装しなければならず、各チェックは該当するメタデータフィールドがある場合に適用され、それぞれ 0〜100 のリスクスコアを出します。\n\n| タイプ | チェック内容 |\n| --- | --- |\n| **ETV** – Ethereum Token Verification | `contractAddress` が指定チェーン上でコードを持ち、既知の脆弱性パターンがないこと（OWASP SCSVS を推奨） |\n| **MCV** – Media Content Verification | エージェント画像の出所、改ざん、ウォーターマーク（C2PA を推奨） |\n| **SCV** – Solidity Code Verification | 提供された Solidity コードがデプロイされており、リエントランシーなどの一般的なバグがないこと |\n| **WAV** – Web Application Verification | HTTPS エンドポイントが応答し、有効な証明書を持ち、一般的な脆弱性がないこと |\n| **WV** – Wallet Verification | エージェントのウォレットに履歴があり、脅威データベースに載っていないこと |\n\n総合スコアは該当するスコアの平均で、ティアに対応付けられます。0〜20 は Low、21〜40 は Moderate、41〜60 は Elevated、61〜80 は High、81〜100 は Critical。結果は **PDV**（Private Data Verification）を通り、生データを公開する代わりにゼロ知識証明 ID が発行されます。**QCV** は保存された記録を任意で暗号化します（仕様は AES-256-GCM を挙げています）。\n\nプロバイダーは手数料を課してもよく、ステーブルコインを受け付けるべきで、ガスレスな支払いには [ERC-3009](/eip-3009/) の `transferWithAuthorization` を使うべきです。リクエストは [EIP-712](/eip-712/) の型付きデータで署名されます。\n\n## サンプルコード\n\n仕様にある任意のオンチェーンインターフェース:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.0;\n\ninterface IERC8126 {\n    event AgentVerified(\n        uint256 indexed agentId,   // ERC-8004 Identity Registry token id\n        uint8 overallRiskScore,\n        bytes32 etvProofId,\n        bytes32 mcvProofId,\n        bytes32 scvProofId,\n        bytes32 wavProofId,\n        bytes32 wvProofId,\n        bytes32 summaryProofId\n    );\n    event AttestationPosted(uint256 indexed agentId, uint8 riskScore, bytes32 proofId);\n\n    function getLatestRiskScore(uint256 agentId) external view returns (uint8);\n}\n```\n\nプロバイダーの最新スコアでやり取りを制限する:\n\n```solidity\nrequire(IERC8126(verifier).getLatestRiskScore(agentId) \u003c= 40, \"agent risk too high\");\n```\n\n## 知っておくべきこと\n\n- **ステータス: Final**。ただし、まだ Draft である ERC-8004 の上に構築されているため、読み取る登録フォーマットは今後変わる可能性があります。\n- 主に**オフチェーン**の標準です。チェックを依頼・実行するのにコントラクトは不要で、オンチェーンインターフェースは任意であり、結果は ERC-8004 の Validation Registry にも投稿できます。\n- リスクスコアの質は、それを出すプロバイダーの質次第です。標準が定めるのはカテゴリとスケールであって検出方法ではないため、異なるプロバイダーのスコアは必ずしも比較できません。\n- 実装が使わなければならない 13 個の標準エラーコード（`0x01` `InvalidAddress` から `0x0D` `MediaVerificationFailed` まで）を定義しています。\n- エージェントの作業自体への支払いは別の関心事です。ジョブのエスクローについては [ERC-8183](/eip-8183/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"ERC-8004에 등록된 AI 에이전트를 보안 점검하는 대부분 오프체인 표준. 제공자가 에이전트의 메타데이터에 대해 다섯 가지 검증을 수행하고 영지식 증명 ID와 함께 0–100 위험 점수를 반환한다.","tags":["agents","ai","verification","security","risk-score"],"related":[8004,721,712,3009,8183],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8126/","markdown":"## 어떤 문제를 해결하나요?\n\n[ERC-8004](/eip-8004/)는 AI 에이전트에 온체인 신원을 부여합니다. 각 에이전트는 [ERC-721](/eip-721/) 토큰이며, 그 `tokenURI`는 지갑, 컨트랙트, 웹 엔드포인트, 이미지를 나열한 등록 파일을 가리킵니다. 이는 에이전트가 *누구*라고 주장하는지는 알려주지만, 상호작용해도 안전한지는 알려주지 않습니다. ERC-8126 이전에는 에이전트를 심사하려는 서비스마다 자체 점검 방식을 만들어야 했습니다.\n\nERC-8126은 공통 검증 절차를 정의합니다. 검증 제공자가 무엇을 확인해야 하는지, 결과를 어떻게 점수화하는지, 어떤 오류 코드를 쓰는지, 그리고 결과의 선택적 온체인 기록입니다. 경쟁하는 여러 제공자가 이를 구현할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n요청은 ERC-8004 `agentId`만 지정합니다. 제공자는 Identity Registry에서 `tokenURI(agentId)`를 호출해 JSON을 가져오고 거기에 있는 내용을 검증합니다. `agentId` 없이 원시 주소나 URL을 제출하는 것은 허용되지 않습니다.\n\n규격을 준수하는 제공자는 다섯 가지 점검을 모두 구현해야 하며, 각 점검은 관련 메타데이터 필드가 있을 때 적용되고 각각 0–100 위험 점수를 냅니다.\n\n| 유형 | 점검 내용 |\n| --- | --- |\n| **ETV** – Ethereum Token Verification | `contractAddress`가 지정된 체인에 코드가 있고 알려진 취약점 패턴이 없는지(OWASP SCSVS 권장) |\n| **MCV** – Media Content Verification | 에이전트 이미지의 출처, 변조, 워터마크(C2PA 권장) |\n| **SCV** – Solidity Code Verification | 제공된 Solidity 코드가 배포되어 있고 재진입 같은 흔한 버그가 없는지 |\n| **WAV** – Web Application Verification | HTTPS 엔드포인트가 응답하고, 유효한 인증서가 있으며, 흔한 취약점이 없는지 |\n| **WV** – Wallet Verification | 에이전트 지갑에 이력이 있고 위협 데이터베이스에 올라 있지 않은지 |\n\n종합 점수는 해당하는 점수의 평균이며 등급으로 매핑됩니다. 0–20 Low, 21–40 Moderate, 41–60 Elevated, 61–80 High, 81–100 Critical. 결과는 **PDV**(Private Data Verification)를 거치며, 원시 데이터를 노출하는 대신 영지식 증명 ID를 발급합니다. **QCV**는 저장된 기록을 선택적으로 암호화합니다(명세는 AES-256-GCM을 언급합니다).\n\n제공자는 수수료를 부과할 수 있고, 스테이블코인을 받아야 하며, 가스리스 결제에는 [ERC-3009](/eip-3009/) `transferWithAuthorization`을 사용해야 합니다. 요청은 [EIP-712](/eip-712/) 타입 데이터로 서명됩니다.\n\n## 샘플 코드\n\n명세의 선택적 온체인 인터페이스:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.0;\n\ninterface IERC8126 {\n    event AgentVerified(\n        uint256 indexed agentId,   // ERC-8004 Identity Registry token id\n        uint8 overallRiskScore,\n        bytes32 etvProofId,\n        bytes32 mcvProofId,\n        bytes32 scvProofId,\n        bytes32 wavProofId,\n        bytes32 wvProofId,\n        bytes32 summaryProofId\n    );\n    event AttestationPosted(uint256 indexed agentId, uint8 riskScore, bytes32 proofId);\n\n    function getLatestRiskScore(uint256 agentId) external view returns (uint8);\n}\n```\n\n제공자의 최신 점수로 상호작용을 제한하기:\n\n```solidity\nrequire(IERC8126(verifier).getLatestRiskScore(agentId) \u003c= 40, \"agent risk too high\");\n```\n\n## 알아둘 점\n\n- **상태: Final**이지만, 아직 Draft인 ERC-8004 위에 구축되어 있으므로 읽어 들이는 등록 형식은 여전히 바뀔 수 있습니다.\n- 주로 **오프체인** 표준입니다. 점검을 요청하거나 실행하는 데 컨트랙트가 필요하지 않으며, 온체인 인터페이스는 선택 사항이고 결과는 ERC-8004 Validation Registry에 게시할 수도 있습니다.\n- 위험 점수는 이를 산출하는 제공자만큼만 좋습니다. 표준은 범주와 척도를 정할 뿐 탐지 방법을 정하지 않으므로, 서로 다른 제공자의 점수는 반드시 비교 가능하지는 않습니다.\n- 구현이 반드시 사용해야 하는 13개의 표준 오류 코드(`0x01` `InvalidAddress`부터 `0x0D` `MediaVerificationFailed`까지)를 정의합니다.\n- 에이전트 작업 자체에 대한 결제는 별개의 문제입니다. 작업 에스크로는 [ERC-8183](/eip-8183/)을 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一个主要在链下进行的标准，用于对在 ERC-8004 下注册的 AI agent 做安全检查：提供方对 agent 的元数据执行五类验证，并返回 0–100 的风险评分以及零知识证明 ID。","tags":["agents","ai","verification","security","risk-score"],"related":[8004,721,712,3009,8183],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8126/","markdown":"## 它解决什么问题？\n\n[ERC-8004](/eip-8004/) 为 AI agent 提供链上身份：每个 agent 是一个 [ERC-721](/eip-721/) 代币，其 `tokenURI` 指向一个注册文件，列出它的钱包、合约、Web 端点和图像。这说明了 agent 自称是*谁*，但无法说明与它交互是否安全。在 ERC-8126 之前，每个想要审查 agent 的服务都要自创一套检查。\n\nERC-8126 定义了一个通用的验证流程：验证提供方必须检查什么、如何给结果打分、使用哪些错误码，以及可选的结果链上记录。任意数量相互竞争的提供方都可以实现它。\n\n## 它如何运作\n\n请求只指定一个 ERC-8004 的 `agentId`。提供方在 Identity Registry 上调用 `tokenURI(agentId)`，获取 JSON，并验证其中的内容。不允许在没有 `agentId` 的情况下提交原始地址或 URL。\n\n合规的提供方必须实现全部五项检查，每项检查在相关元数据字段存在时执行，并各自给出 0–100 的风险评分：\n\n| 类型 | 检查内容 |\n| --- | --- |\n| **ETV** – Ethereum Token Verification | `contractAddress` 在指定链上有代码，且没有已知的漏洞模式（建议使用 OWASP SCSVS） |\n| **MCV** – Media Content Verification | agent 图像的来源、篡改情况和水印（建议使用 C2PA） |\n| **SCV** – Solidity Code Verification | 所提供的 Solidity 代码已部署，且没有重入等常见错误 |\n| **WAV** – Web Application Verification | HTTPS 端点能响应，证书有效，且没有常见漏洞 |\n| **WV** – Wallet Verification | agent 钱包有历史记录，且不在威胁数据库中 |\n\n总体评分是各适用评分的平均值，并映射到不同等级：0–20 为 Low，21–40 为 Moderate，41–60 为 Elevated，61–80 为 High，81–100 为 Critical。结果会经过 **PDV**（Private Data Verification），它签发零知识证明 ID 而不是暴露原始数据；**QCV** 可选地加密存储的记录（规范提到 AES-256-GCM）。\n\n提供方可以收费，应当接受稳定币，并且应使用 [ERC-3009](/eip-3009/) 的 `transferWithAuthorization` 进行无 gas 支付。请求使用 [EIP-712](/eip-712/) 类型化数据签名。\n\n## 示例代码\n\n规范中的可选链上接口：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.0;\n\ninterface IERC8126 {\n    event AgentVerified(\n        uint256 indexed agentId,   // ERC-8004 Identity Registry token id\n        uint8 overallRiskScore,\n        bytes32 etvProofId,\n        bytes32 mcvProofId,\n        bytes32 scvProofId,\n        bytes32 wavProofId,\n        bytes32 wvProofId,\n        bytes32 summaryProofId\n    );\n    event AttestationPosted(uint256 indexed agentId, uint8 riskScore, bytes32 proofId);\n\n    function getLatestRiskScore(uint256 agentId) external view returns (uint8);\n}\n```\n\n根据提供方的最新评分来限制交互：\n\n```solidity\nrequire(IERC8126(verifier).getLatestRiskScore(agentId) \u003c= 40, \"agent risk too high\");\n```\n\n## 需要注意\n\n- **状态：Final**，但它建立在仍为 Draft 的 ERC-8004 之上，因此它所读取的注册格式仍可能变化。\n- 它主要是一个**链下**标准。请求或运行检查不需要任何合约；链上接口是可选的，结果也可以发布到 ERC-8004 的 Validation Registry。\n- 风险评分的好坏取决于产出它的提供方。该标准固定了类别和刻度，而不是检测方法，因此不同提供方的评分不一定可比。\n- 它定义了 13 个实现必须使用的标准错误码（从 `0x01` `InvalidAddress` 到 `0x0D` `MediaVerificationFailed`）。\n- 为 agent 工作本身付款是另一个问题；关于任务托管，请参见 [ERC-8183](/eip-8183/)。\n"}},"requiredBy":[8196]}
