Contributions to Ethereum standards: ERC-8507 and Policy-Enforced Agent Accounts
We reviewed two draft Ethereum standards for agent-account security - from our angle: keeping an agent from draining funds. Some of our comments on ERC-8507 were incorporated into revision 0.2.0 (PR #2192). Our comments on Policy-Enforced Agent Accounts made it into the live version of the spec (PR #2196).
Context: agent accounts
An agent account is a wallet driven not only by a human but by automation or an agent. It is a new class with its own hazard: the agent can be tricked or compromised and sign a transfer. Two recent draft ERCs try to give this a frame. Our angle is the same as in drain-scan and wallet-harness - preventing a drain.
ERC-8507 (Agent Allowlist Framework)
The standard describes allow/deny lists: which agents and objects a party admits to an action, and with what result. Our comments, from a fund-safety angle:
- For fund-moving actions, bind the permission to the exact intent - target, value and the calldata hash - and make it single-use. Otherwise an ALLOW issued for one action can be presented for another ("authorization confusion" - a path to a drain).
- Code behind an address changes without the address changing (EIP-7702 re-delegation, upgradeable accounts, installed modules). We proposed pinning the hash of the code the account was assessed with, and returning UNDETERMINED instead of MATCH once the code changes.
- The PROCEED_RESTRICTED result is honest only if the restriction is a real on-chain limit; otherwise DEFER is the honest answer.
Incorporated into revision 0.2.0 (specification and reference implementation, PR #2192). Comment (1) was incorporated in part, and jointly with @Revinand: an ActionRule.reuse field (NONE / WHILE_CURRENT / ADMISSION) and passing an operation-commitment as context were added, but the authors chose not to add a register of single-use permissions inside the guard. Comments (2) and (3) were taken as proposed: EntryInput.codeHash with a CODE_CHANGED reason; PROCEED_RESTRICTED now requires a stated limit.
Policy-Enforced Agent Accounts (draft ERC)
This is a "read and prove" layer for accounts protected by an external policy signer: how an app, wallet or lender can tell that an account is protected, what the policy allows, and why something was refused. Our comments:
- Standing authority outside the policy path: token allowances and permits, operator approvals, installed modules, the 7702 delegation target - all of these can move funds without any policy change. We asked the layer to expose the live fund-moving surface, or to state plainly that the guarantee covers only actions routed through the policy signer.
- A signer change equals a loosening of policy: it should go through the same delay as a policy loosening; plus a type tag for the policySigner.
The authors agreed (Security Considerations now describe this, with a checklist and a type tag added), and our comments made it into the live version of the spec (PR #2196 in ethereum/ERCs).