{"eip":8259,"title":"AI Agent Identity \u0026 Threat Registry","description":"Decentralized identity, reputation, and threat intelligence sharing for AI agents","authors":["Ibonon (@ibonon)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2026-05-07","discussionsTo":"https://ethereum-magicians.org/t/erc-8259-ai-agent-identity-threat-registry/28473","repo":"ERCs","label":"ERC-8259","officialUrl":"https://eips.ethereum.org/EIPS/eip-8259","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8259.md","url":"https://eips.huatuo.xyz/eip-8259/","tldr":{"en":"A draft set of registry interfaces giving AI agents a portable on-chain identity (did:agent), a verification tier and a 0-1000 reputation score, plus a shared registry where protocols report attacks and threat patterns.","ja":"AI エージェントに、持ち運び可能なオンチェーンのアイデンティティ（did:agent）、検証ティア、0〜1000 の評判スコアを与えるレジストリインターフェース群のドラフト。さらに、プロトコルが攻撃や脅威パターンを報告する共有レジストリも含む。","ko":"AI 에이전트에게 이식 가능한 온체인 신원(did:agent), 검증 등급, 0~1000 평판 점수를 부여하는 레지스트리 인터페이스 초안. 프로토콜이 공격과 위협 패턴을 보고하는 공유 레지스트리도 포함한다.","zh":"一组草案注册表接口，为 AI 智能体提供可移植的链上身份（did:agent）、验证等级和 0-1000 的声誉评分，并提供一个共享注册表，供各协议上报攻击和威胁模式。"},"tags":["ai-agents","identity","reputation","security","registry"],"explainers":{"en":{"lang":"en","tldr":"A draft set of registry interfaces giving AI agents a portable on-chain identity (did:agent), a verification tier and a 0-1000 reputation score, plus a shared registry where protocols report attacks and threat patterns.","tags":["ai-agents","identity","reputation","security","registry"],"related":[8004,8199],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8259/","markdown":"## What problem does it solve?\n\nAutonomous AI agents increasingly trade, lend and call contracts on their own. The spec points out several gaps:\n\n- **No portable identity.** Each protocol identifies agents its own way.\n- **Reputation silos.** Good or bad history in one app is invisible to others.\n- **No shared threat intelligence.** An exploit blocked by one protocol can be replayed against another, often from a fresh, disposable address.\n- **No common way to tell an unverified bot from a vetted agent.**\n\nERC-8259 proposes standard interfaces so that identity, reputation and threat reports can be read across protocols.\n\n## How it works\n\nIt defines two required interfaces and one optional one.\n\n**`IAgentIdentityRegistry`**\n- Agents are registered with a DID of the form `did:agent:\u003cchainId\u003e:\u003caddress\u003e`, a public key, a metadata URI and an initial **verification tier**: 0 None, 1 Bronze, 2 Silver, 3 Gold, 4 Platinum.\n- Each agent has a **reputation score** from 0 to 1000 (1000 = 100 %). New agents start at 500 unless local governance says otherwise.\n- Only authorized parties (oracles, verification contracts, governance multisigs) may change scores or tiers. Scores above 1000 must revert.\n- Reads: `getAgentIdentity`, `getAgentByDID`, `isVerified` (tier \u003e 0) and `calculateTrustScore`, which combines reputation and tier into 0-1000.\n\n**`IThreatRegistry`**\n- Authorized monitors call `recordAttack(agent, pattern, amountUSDC6, riskMilli, layer)`, which stores the incident and emits `AttackBlocked`.\n- Anyone can `shareThreatPattern`. Patterns are `keccak256(abi.encodePacked(actionType, destination, amountBucket))`.\n- Protocols query `isKnownAttacker`, `getAgentAttackHistory` and `assessTransactionRisk`.\n\n**`IRiskAssessment`** (optional) returns an allow/deny decision with a score, reason and matched patterns for a planned transaction, singly or in batches.\n\nThe spec also says identity and reputation must stay distinct: a reputation update must never change an agent's identity binding or key, and neither score nor tier counts as authorization by itself.\n\n## Sample code\n\nA protocol gating agent access on the two registries (illustrative thresholds):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IAgentIdentityRegistry {\n    function isVerified(address agent) external view returns (bool);\n    function calculateTrustScore(address agent) external view returns (uint16);\n}\ninterface IThreatRegistry {\n    function isKnownAttacker(address agent) external view returns (bool);\n}\n\ncontract AgentGate {\n    IAgentIdentityRegistry public immutable ids;\n    IThreatRegistry public immutable threats;\n    uint16 public constant MIN_TRUST = 700; // policy choice, not from the spec\n\n    constructor(IAgentIdentityRegistry _ids, IThreatRegistry _threats) {\n        ids = _ids; threats = _threats;\n    }\n\n    modifier onlyTrustedAgent() {\n        require(!threats.isKnownAttacker(msg.sender), \"known attacker\");\n        require(ids.isVerified(msg.sender), \"unverified agent\");\n        require(ids.calculateTrustScore(msg.sender) \u003e= MIN_TRUST, \"low trust\");\n        _;\n    }\n\n    function agentAction() external onlyTrustedAgent { /* ... */ }\n}\n```\n\n## Things to know\n\n- **Status: Draft.** Interfaces, tier names and scoring rules may change. The spec does not say how `calculateTrustScore` combines tier and reputation, so results will differ between registries.\n- Everything hinges on access control. An unprotected `updateReputationScore` lets attackers inflate bad agents or zero out rivals; an unprotected `recordAttack` lets them falsely flag honest addresses. The spec asks for multisigs, timelocks, multiple independent reporters or slashable bonds.\n- Tier 0 identities are free to create (Sybil risk). The spec advises against granting any privileges on tier 0 alone and suggests Silver or higher for high-trust operations.\n- Check `lastUpdate`: a once-reputable agent may be compromised.\n- Threat reports sent through the public mempool can be front-run; private mempools or commit-reveal are recommended.\n- For a related, broader approach that separates identity, reputation and validation registries, see [ERC-8004](/eip-8004/).\n"},"ja":{"lang":"ja","tldr":"AI エージェントに、持ち運び可能なオンチェーンのアイデンティティ（did:agent）、検証ティア、0〜1000 の評判スコアを与えるレジストリインターフェース群のドラフト。さらに、プロトコルが攻撃や脅威パターンを報告する共有レジストリも含む。","tags":["ai-agents","identity","reputation","security","registry"],"related":[8004,8199],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8259/","markdown":"## 何を解決するのか\n\n自律的な AI エージェントが、自分でトレードし、貸し付け、コントラクトを呼び出すことが増えています。仕様はいくつかの欠落を指摘しています。\n\n- **持ち運べるアイデンティティがない。** プロトコルごとにエージェントの識別方法が異なります。\n- **評判のサイロ化。** あるアプリでの良い履歴や悪い履歴は、他のアプリからは見えません。\n- **共有された脅威インテリジェンスがない。** あるプロトコルで阻止されたエクスプロイトが、多くは使い捨ての新しいアドレスから、別のプロトコルに対して再実行される可能性があります。\n- **未検証のボットと審査済みのエージェントを区別する共通の方法がない。**\n\nERC-8259 は、アイデンティティ、評判、脅威レポートをプロトコル間で読み取れるようにする標準インターフェースを提案します。\n\n## 仕組み\n\n必須のインターフェース 2 つと、任意のインターフェース 1 つを定義します。\n\n**`IAgentIdentityRegistry`**\n- エージェントは、`did:agent:\u003cchainId\u003e:\u003caddress\u003e` 形式の DID、公開鍵、メタデータ URI、そして初期の**検証ティア**とともに登録されます。ティアは 0 None、1 Bronze、2 Silver、3 Gold、4 Platinum です。\n- 各エージェントには 0 から 1000（1000 = 100 %）の**評判スコア**があります。新しいエージェントは、ローカルのガバナンスが別に定めない限り 500 から始まります。\n- スコアやティアを変更できるのは、権限を与えられた主体（オラクル、検証コントラクト、ガバナンスのマルチシグ）だけです。1000 を超えるスコアは revert しなければなりません。\n- 読み取り: `getAgentIdentity`、`getAgentByDID`、`isVerified`（ティア \u003e 0）、そして評判とティアを組み合わせて 0〜1000 にする `calculateTrustScore`。\n\n**`IThreatRegistry`**\n- 権限を与えられたモニターが `recordAttack(agent, pattern, amountUSDC6, riskMilli, layer)` を呼び出すと、インシデントが保存され、`AttackBlocked` が emit されます。\n- 誰でも `shareThreatPattern` できます。パターンは `keccak256(abi.encodePacked(actionType, destination, amountBucket))` です。\n- プロトコルは `isKnownAttacker`、`getAgentAttackHistory`、`assessTransactionRisk` を問い合わせます。\n\n**`IRiskAssessment`**（任意）は、予定されているトランザクションに対して、スコア、理由、一致したパターンを添えた許可/拒否の判断を、単発またはバッチで返します。\n\n仕様はまた、アイデンティティと評判は別々に保たなければならないと述べています。評判の更新がエージェントのアイデンティティの紐づけや鍵を変えてはならず、スコアもティアもそれ自体が認可になるわけではありません。\n\n## サンプルコード\n\n2 つのレジストリに基づいてエージェントのアクセスを制限するプロトコル（しきい値は説明用）:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IAgentIdentityRegistry {\n    function isVerified(address agent) external view returns (bool);\n    function calculateTrustScore(address agent) external view returns (uint16);\n}\ninterface IThreatRegistry {\n    function isKnownAttacker(address agent) external view returns (bool);\n}\n\ncontract AgentGate {\n    IAgentIdentityRegistry public immutable ids;\n    IThreatRegistry public immutable threats;\n    uint16 public constant MIN_TRUST = 700; // policy choice, not from the spec\n\n    constructor(IAgentIdentityRegistry _ids, IThreatRegistry _threats) {\n        ids = _ids; threats = _threats;\n    }\n\n    modifier onlyTrustedAgent() {\n        require(!threats.isKnownAttacker(msg.sender), \"known attacker\");\n        require(ids.isVerified(msg.sender), \"unverified agent\");\n        require(ids.calculateTrustScore(msg.sender) \u003e= MIN_TRUST, \"low trust\");\n        _;\n    }\n\n    function agentAction() external onlyTrustedAgent { /* ... */ }\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** インターフェース、ティア名、スコアリングのルールは変わる可能性があります。仕様は `calculateTrustScore` がティアと評判をどう組み合わせるかを定めていないため、結果はレジストリごとに異なります。\n- すべてはアクセス制御にかかっています。保護されていない `updateReputationScore` では、攻撃者が悪質なエージェントのスコアを水増ししたり、競合相手のスコアをゼロにしたりできます。保護されていない `recordAttack` では、誠実なアドレスに誤ってフラグを立てられます。仕様は、マルチシグ、タイムロック、複数の独立した報告者、またはスラッシング可能なボンドを求めています。\n- ティア 0 のアイデンティティは無料で作成できます（シビルのリスク）。仕様は、ティア 0 だけでは一切の特権を与えないよう助言し、信頼性の高い操作には Silver 以上を推奨しています。\n- `lastUpdate` を確認してください。かつて評判の良かったエージェントが侵害されている可能性があります。\n- 公開 mempool 経由で送られた脅威レポートはフロントランされる可能性があります。プライベート mempool や commit-reveal が推奨されます。\n- アイデンティティ、評判、検証のレジストリを分離する、関連するより広範なアプローチについては [ERC-8004](/eip-8004/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"AI 에이전트에게 이식 가능한 온체인 신원(did:agent), 검증 등급, 0~1000 평판 점수를 부여하는 레지스트리 인터페이스 초안. 프로토콜이 공격과 위협 패턴을 보고하는 공유 레지스트리도 포함한다.","tags":["ai-agents","identity","reputation","security","registry"],"related":[8004,8199],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8259/","markdown":"## 어떤 문제를 해결하나요?\n\n자율 AI 에이전트가 스스로 거래하고, 대출하고, 컨트랙트를 호출하는 일이 점점 늘고 있습니다. 명세는 몇 가지 빈틈을 지적합니다.\n\n- **이식 가능한 신원이 없습니다.** 프로토콜마다 에이전트를 자기 방식으로 식별합니다.\n- **평판의 사일로.** 한 앱에서의 좋은 이력이나 나쁜 이력은 다른 앱에서 보이지 않습니다.\n- **공유된 위협 인텔리전스가 없습니다.** 한 프로토콜에서 막힌 익스플로잇이 다른 프로토콜에 대해 재현될 수 있으며, 흔히 새로 만든 일회용 주소에서 시도됩니다.\n- **검증되지 않은 봇과 심사를 거친 에이전트를 구별하는 공통된 방법이 없습니다.**\n\nERC-8259는 신원, 평판, 위협 보고를 프로토콜 간에 읽을 수 있도록 표준 인터페이스를 제안합니다.\n\n## 어떻게 동작하나요?\n\n필수 인터페이스 두 개와 선택 인터페이스 하나를 정의합니다.\n\n**`IAgentIdentityRegistry`**\n- 에이전트는 `did:agent:\u003cchainId\u003e:\u003caddress\u003e` 형식의 DID, 공개 키, 메타데이터 URI, 초기 **검증 등급**과 함께 등록됩니다. 등급은 0 None, 1 Bronze, 2 Silver, 3 Gold, 4 Platinum입니다.\n- 각 에이전트는 0에서 1000까지의 **평판 점수**(1000 = 100 %)를 가집니다. 새 에이전트는 로컬 거버넌스가 달리 정하지 않는 한 500에서 시작합니다.\n- 권한이 있는 주체(오라클, 검증 컨트랙트, 거버넌스 멀티시그)만 점수나 등급을 바꿀 수 있습니다. 1000을 넘는 점수는 revert되어야 합니다.\n- 읽기: `getAgentIdentity`, `getAgentByDID`, `isVerified`(등급 \u003e 0), 그리고 평판과 등급을 합쳐 0~1000으로 만드는 `calculateTrustScore`.\n\n**`IThreatRegistry`**\n- 권한이 있는 모니터가 `recordAttack(agent, pattern, amountUSDC6, riskMilli, layer)`를 호출하면 사건이 저장되고 `AttackBlocked`가 emit됩니다.\n- 누구나 `shareThreatPattern`을 할 수 있습니다. 패턴은 `keccak256(abi.encodePacked(actionType, destination, amountBucket))`입니다.\n- 프로토콜은 `isKnownAttacker`, `getAgentAttackHistory`, `assessTransactionRisk`를 조회합니다.\n\n**`IRiskAssessment`**(선택)는 예정된 트랜잭션에 대해 점수, 사유, 일치한 패턴과 함께 허용/거부 결정을 단건 또는 배치로 반환합니다.\n\n명세는 또한 신원과 평판이 구별된 상태를 유지해야 한다고 말합니다. 평판 업데이트가 에이전트의 신원 바인딩이나 키를 바꿔서는 안 되며, 점수나 등급 자체가 곧 권한 부여가 되는 것도 아닙니다.\n\n## 샘플 코드\n\n두 레지스트리를 기반으로 에이전트의 접근을 제어하는 프로토콜(임계값은 설명용):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IAgentIdentityRegistry {\n    function isVerified(address agent) external view returns (bool);\n    function calculateTrustScore(address agent) external view returns (uint16);\n}\ninterface IThreatRegistry {\n    function isKnownAttacker(address agent) external view returns (bool);\n}\n\ncontract AgentGate {\n    IAgentIdentityRegistry public immutable ids;\n    IThreatRegistry public immutable threats;\n    uint16 public constant MIN_TRUST = 700; // policy choice, not from the spec\n\n    constructor(IAgentIdentityRegistry _ids, IThreatRegistry _threats) {\n        ids = _ids; threats = _threats;\n    }\n\n    modifier onlyTrustedAgent() {\n        require(!threats.isKnownAttacker(msg.sender), \"known attacker\");\n        require(ids.isVerified(msg.sender), \"unverified agent\");\n        require(ids.calculateTrustScore(msg.sender) \u003e= MIN_TRUST, \"low trust\");\n        _;\n    }\n\n    function agentAction() external onlyTrustedAgent { /* ... */ }\n}\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 인터페이스, 등급 이름, 점수 규칙은 바뀔 수 있습니다. 명세는 `calculateTrustScore`가 등급과 평판을 어떻게 합치는지 정하지 않으므로 레지스트리마다 결과가 다를 것입니다.\n- 모든 것은 접근 제어에 달려 있습니다. 보호되지 않은 `updateReputationScore`는 공격자가 나쁜 에이전트의 점수를 부풀리거나 경쟁자의 점수를 0으로 만들게 하고, 보호되지 않은 `recordAttack`은 정직한 주소를 거짓으로 표시하게 합니다. 명세는 멀티시그, 타임락, 여러 독립 보고자, 또는 슬래싱 가능한 본드를 요구합니다.\n- 등급 0 신원은 무료로 만들 수 있습니다(시빌 위험). 명세는 등급 0만으로는 어떤 권한도 부여하지 말 것을 권고하며, 신뢰도가 높은 작업에는 Silver 이상을 제안합니다.\n- `lastUpdate`를 확인하세요. 한때 평판이 좋았던 에이전트도 침해되었을 수 있습니다.\n- 공개 mempool로 보낸 위협 보고는 프런트러닝될 수 있으므로 프라이빗 mempool이나 commit-reveal을 권장합니다.\n- 신원, 평판, 검증 레지스트리를 분리하는 관련된 더 넓은 접근 방식은 [ERC-8004](/eip-8004/)를 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一组草案注册表接口，为 AI 智能体提供可移植的链上身份（did:agent）、验证等级和 0-1000 的声誉评分，并提供一个共享注册表，供各协议上报攻击和威胁模式。","tags":["ai-agents","identity","reputation","security","registry"],"related":[8004,8199],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8259/","markdown":"## 它解决什么问题？\n\n自主 AI 智能体越来越多地自行交易、借贷和调用合约。规范指出了几处缺口：\n\n- **没有可移植的身份。**每个协议都以自己的方式识别智能体。\n- **声誉孤岛。**一个应用中的良好或不良记录，其他应用看不到。\n- **没有共享的威胁情报。**被某个协议拦截的攻击可以针对另一个协议重放，往往来自一个全新的一次性地址。\n- **没有通用方法区分未经验证的机器人和经过审查的智能体。**\n\nERC-8259 提出了标准接口，使身份、声誉和威胁报告可以跨协议读取。\n\n## 它如何运作\n\n它定义了两个必需接口和一个可选接口。\n\n**`IAgentIdentityRegistry`**\n- 智能体以 `did:agent:\u003cchainId\u003e:\u003caddress\u003e` 形式的 DID、公钥、元数据 URI 和初始**验证等级**进行注册：0 None、1 Bronze、2 Silver、3 Gold、4 Platinum。\n- 每个智能体有一个 0 到 1000 的**声誉评分**（1000 = 100 %）。新智能体从 500 开始，除非本地治理另有规定。\n- 只有获得授权的各方（预言机、验证合约、治理多签）才能更改评分或等级。超过 1000 的评分必须 revert。\n- 读取：`getAgentIdentity`、`getAgentByDID`、`isVerified`（等级 \u003e 0）和 `calculateTrustScore`，后者把声誉和等级合并为 0-1000 的分数。\n\n**`IThreatRegistry`**\n- 获授权的监控方调用 `recordAttack(agent, pattern, amountUSDC6, riskMilli, layer)`，它会存储该事件并发出 `AttackBlocked`。\n- 任何人都可以 `shareThreatPattern`。模式为 `keccak256(abi.encodePacked(actionType, destination, amountBucket))`。\n- 各协议查询 `isKnownAttacker`、`getAgentAttackHistory` 和 `assessTransactionRisk`。\n\n**`IRiskAssessment`**（可选）针对一笔计划中的交易，单笔或批量地返回允许/拒绝的决定，并附带评分、原因和匹配的模式。\n\n规范还指出，身份和声誉必须保持区分：声誉更新绝不能改变智能体的身份绑定或密钥，评分和等级本身都不构成授权。\n\n## 示例代码\n\n一个基于这两个注册表对智能体访问进行把关的协议（阈值仅作演示）：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IAgentIdentityRegistry {\n    function isVerified(address agent) external view returns (bool);\n    function calculateTrustScore(address agent) external view returns (uint16);\n}\ninterface IThreatRegistry {\n    function isKnownAttacker(address agent) external view returns (bool);\n}\n\ncontract AgentGate {\n    IAgentIdentityRegistry public immutable ids;\n    IThreatRegistry public immutable threats;\n    uint16 public constant MIN_TRUST = 700; // policy choice, not from the spec\n\n    constructor(IAgentIdentityRegistry _ids, IThreatRegistry _threats) {\n        ids = _ids; threats = _threats;\n    }\n\n    modifier onlyTrustedAgent() {\n        require(!threats.isKnownAttacker(msg.sender), \"known attacker\");\n        require(ids.isVerified(msg.sender), \"unverified agent\");\n        require(ids.calculateTrustScore(msg.sender) \u003e= MIN_TRUST, \"low trust\");\n        _;\n    }\n\n    function agentAction() external onlyTrustedAgent { /* ... */ }\n}\n```\n\n## 需要注意\n\n- **状态：Draft。**接口、等级名称和评分规则可能变化。规范没有说明 `calculateTrustScore` 如何将等级和声誉合并，因此不同注册表的结果会有差异。\n- 一切都取决于访问控制。没有保护的 `updateReputationScore` 会让攻击者抬高恶意智能体的评分，或把对手的评分清零；没有保护的 `recordAttack` 会让他们错误地标记诚实地址。规范要求使用多签、时间锁、多个独立的上报方或可被罚没的保证金。\n- 等级 0 的身份可以免费创建（女巫攻击风险）。规范建议不要仅凭等级 0 授予任何特权，并建议高信任操作要求 Silver 或更高等级。\n- 请检查 `lastUpdate`：曾经声誉良好的智能体可能已被攻破。\n- 通过公共 mempool 发送的威胁报告可能被抢跑；建议使用私有 mempool 或 commit-reveal。\n- 关于另一种相关的、更宽泛的、将身份、声誉和验证注册表分开的方案，见 [ERC-8004](/eip-8004/)。\n"}}}
