This standard defines an on-chain framework for decentralized identity (DID) management, reputation scoring, and threat intelligence sharing for autonomous AI agents operating across Ethereum protocols. The specification defines interfaces for agent identity registration, multi-tier verification status, reputation tracking, and collaborative threat reporting.
Autonomous AI agents increasingly interact with smart contracts and decentralized finance (DeFi) protocols. This presents specific security and coordination challenges:
This standard addresses these challenges by establishing standardized interfaces for portable agent identity, verifiable trust scoring, and decentralized threat pattern sharing.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.
did:agent:<chainId>:<address>.0: None (unverified default)1: Bronze (basic identity confirmation)2: Silver (extended verification and operator attestation)3: Gold (comprehensive verification and collateral bond)4: Platinum (independently audited system and continuous monitoring)bytes32 cryptographic hash identifying a specific anomalous or malicious behavior pattern.IAgentIdentityRegistryCompliant identity registry contracts MUST implement the IAgentIdentityRegistry interface:
IThreatRegistryCompliant threat intelligence registries MUST implement the IThreatRegistry interface:
IRiskAssessment (Optional)Registries supporting pre-execution transaction risk assessment MAY implement IRiskAssessment:
Agent Registration:
registerAgent function MUST revert if the supplied did is empty or already registered to a different
address.AgentRegistered event upon successful creation of an identity.reputationScore = 500 (representing baseline neutral
standing) unless specified otherwise by local governance.Reputation Management:
updateReputationScore function MUST only be callable by authorized entities (such as designated oracle
addresses, audited verification contracts, or governance multi-signatures).updateReputationScore, the implementation MUST revert.newScore argument MUST NOT exceed 1000. Values above 1000 MUST cause the transaction to revert.ReputationScoreUpdated event.Threat Reporting:
recordAttack function MUST only be callable by authorized security oracles, monitoring contracts, or
whitelisted protocol adapters.recordAttack, the call MUST revert.AttackBlocked event.Threat Pattern Derivation:
Threat patterns MUST be derived using keccak256 hashing of the interaction parameters:
Ethereum smart contracts lack native floating-point math. Using an integer scale of 0 to 1000 provides fine-grained reputation measurement (0.1% resolution) without incurring fixed-point arithmetic overhead in consuming DeFi protocols.
Decoupling IAgentIdentityRegistry from IThreatRegistry allows protocols to adopt identity management without
mandating a specific threat database, and vice versa. It also enables modular upgrades where threat detection oracles
can evolve independently of long-lived identity attestations.
Adopting the generic scheme did:agent:<chainId>:<address> ensures cross-chain compatibility without binding the
standard to any proprietary vendor namespace.
This standard introduces new interfaces and does not conflict with existing token standards or registries. Protocols can integrate conformant registries alongside existing access-control modules without breaking changes.
The integrity of this standard relies heavily on restricting access to state-modifying functions:
updateReputationScore is left unprotected or guarded by an easily compromised key,
an adversary could inflate the reputation score of malicious agents to bypass protocol limits, or defame competitor
agents by setting their score to zero. Registries MUST implement strict access control, such as multi-signature
governance, timelocks, or decentralized consensus among multiple independent reporting nodes.recordAttack is publicly callable without verification or
stake, an attacker could falsely label benign addresses as known attackers, causing integrated protocols to block
legitimate users. Registries MUST restrict this function to authenticated monitors or require bonded stakes that are
slashed upon fraudulent reports.Because Ethereum accounts can be generated at negligible cost, malicious actors can create arbitrary numbers of tier 0 (unverified) agent identities. Consuming protocols SHOULD NOT grant permissions, borrowing capacity, or reduced collateral requirements to agents based solely on tier 0 registration. High-trust operations SHOULD require verification tier 2 (Silver) or higher and evaluate historical transaction depth.
An agent with historically high reputation can become compromised or undergo an intentional malicious exit strategy.
Protocols consuming IAgentIdentityRegistry SHOULD inspect the lastUpdate timestamp and reject evaluations whose
attestations exceed an acceptable staleness window.
When transaction risk evaluations or threat pattern hashes are broadcast to the public mempool, malicious agents could monitor incoming reports and attempt to front-run blocking transactions. Implementations SHOULD use private mempools, commit-reveal schemes, or batch updates when reporting critical threat incidents.
Copyright and related rights waived via CC0.