chore(core): drop MetaMask EIP-7702 support
What changed, and why it matters
This commit removes built-in support for MetaMask's EIP-7702 smart-contract wallet delegation address from Trezor firmware. After this change, Trezor will no longer recognize MetaMask's specific delegation contract as a trusted/known delegate, so any EIP-7702 authorization using that MetaMask address will be rejected with an 'Unknown EIP-7702 delegate address' error instead of being signed. This is a deliberate feature removal, not a code vulnerability fix. It reduces the attack surface by no longer blessing a third-party contract as a known delegate, but it does not patch an exploitable bug.
No immediate security response is required. Treat this as a product/feature change. Users relying on MetaMask EIP-7702 authorization through Trezor should be informed that this workflow is no longer supported and will produce 'Unknown EIP-7702 delegate address' errors. If a security concern motivated the removal, the vendor should publish an advisory explaining the rationale.
Security signals we found
Removal of a known/trusted third-party delegate address from an allowlist-style lookup
Change causes previously accepted MetaMask EIP-7702 authorizations to be rejected
No vulnerability description, CVE, or security advisory referenced in commit or changelog
No code change to signing flow, parsing, or access control beyond deleting address entries
Evidence from the diff
The patch deletes the MetaMask entry (0x63c0c19a282a1b52b07dd5a65b58948a07dae32b) from the EIP-7702 known-delegate lookup tables in core/src/apps/ethereum/sc_constants.py and its mako template, across Ethereum mainnet, Gnosis, Base, and Arbitrum. Corresponding test fixtures are updated: positive signing tests for MetaMask are removed, and error fixtures now expect ‘Unknown EIP-7702 delegate address’ for MetaMask authorizations. The changelog entry explicitly states ‘Ethereum: Drop MetaMask EIP-7702 support.’ No runtime signing logic, parsing, or cryptographic code is changed.
Changed components
core/src/apps/ethereum/sc_constants.pycore/src/apps/ethereum/sc_constants.py.makocommon/tests/fixtures/ethereum/sign_auth_eip7702.jsoncommon/tests/fixtures/ethereum/sign_auth_eip7702_errors.jsoncommon/tests/fixtures/ethereum/sign_tx_eip7702_mainnet.jsontests/ui_tests/fixtures.jsoncore/.changelog.d/8205.removedInspect captured patch +259 / −325
### common/tests/fixtures/ethereum/sign_auth_eip7702.json
@@ -18,20 +18,6 @@
"sig_s": "7938228fd841d148463bb080ace6a580309dbf94a165b3c885db984609123ffd"
}
},
- {
- "name": "metamask_nonce_1_chainid_1_mainnet",
- "parameters": {
- "path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
- "tuple_nonce": 1,
- "chain_id": 1
- },
- "result": {
- "sig_v": 0,
- "sig_r": "c9d939488d895963635118cdb92d4956370e8ee8ce3a3180dcce66057f365dae",
- "sig_s": "694b9ddb1caf5c2bee62fedd557a02a744da1e4cc32c0dcd3a0e7532cf5f546e"
- }
- },
{
"name": "simple_nonce_1_chainid_1_mainnet",
"parameters": {
### common/tests/fixtures/ethereum/sign_auth_eip7702_errors.json
@@ -20,18 +20,18 @@
}
},
{
- "name": "metamask_nonce_1_chainid_0_all_networks",
+ "name": "metamask_nonce_1_chainid_1_mainnet",
"parameters": {
"path": "m/44'/60'/0'/0/0",
"delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
"tuple_nonce": 1,
- "chain_id": 0,
+ "chain_id": 1,
"to_address": "0x73d0385F4d8E00C5e6504C6030F47BF6212736A8",
"value": 0,
"data": ""
},
"result": {
- "error": "DataError: Chain ID out of bounds"
+ "error": "Unknown EIP-7702 delegate address"
}
},
{
@@ -65,10 +65,10 @@
}
},
{
- "name": "metamask_nonce_1_chainid_200901_unknown",
+ "name": "ambire_nonce_1_chainid_200901_unknown",
"parameters": {
"path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
+ "delegate": "0x5A7FC11397E9a8AD41BF10bf13F22B0a63f96f6d",
"tuple_nonce": 1,
"chain_id": 200901,
"to_address": "0x73d0385F4d8E00C5e6504C6030F47BF6212736A8",
@@ -80,10 +80,10 @@
}
},
{
- "name": "metamask_invalid_nonce_chainid_1_mainnet",
+ "name": "ambire_invalid_nonce_chainid_1_mainnet",
"parameters": {
"path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
+ "delegate": "0x5A7FC11397E9a8AD41BF10bf13F22B0a63f96f6d",
"tuple_nonce": 18446744073709551615,
"chain_id": 1,
"to_address": "0x73d0385F4d8E00C5e6504C6030F47BF6212736A8",
@@ -95,10 +95,10 @@
}
},
{
- "name": "metamask_payment_request_chainid_1_mainnet",
+ "name": "ambire_payment_request_chainid_1_mainnet",
"parameters": {
"path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
+ "delegate": "0x5A7FC11397E9a8AD41BF10bf13F22B0a63f96f6d",
"tuple_nonce": 1,
"chain_id": 1,
"to_address": "0x73d0385F4d8E00C5e6504C6030F47BF6212736A8",
@@ -111,10 +111,10 @@
}
},
{
- "name": "metamask_nonzero_value_chainid_1_mainnet",
+ "name": "ambire_nonzero_value_chainid_1_mainnet",
"parameters": {
"path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
+ "delegate": "0x5A7FC11397E9a8AD41BF10bf13F22B0a63f96f6d",
"tuple_nonce": 1,
"chain_id": 1,
"to_address": "0x73d0385F4d8E00C5e6504C6030F47BF6212736A8",
@@ -126,10 +126,10 @@
}
},
{
- "name": "metamask_nonempty_data_chainid_1_mainnet",
+ "name": "ambire_nonempty_data_chainid_1_mainnet",
"parameters": {
"path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
+ "delegate": "0x5A7FC11397E9a8AD41BF10bf13F22B0a63f96f6d",
"tuple_nonce": 1,
"chain_id": 1,
"to_address": "0x73d0385F4d8E00C5e6504C6030F47BF6212736A8",
@@ -141,10 +141,10 @@
}
},
{
- "name": "metamask_empty_dest_chainid_1_mainnet",
+ "name": "ambire_empty_dest_chainid_1_mainnet",
"parameters": {
"path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
+ "delegate": "0x5A7FC11397E9a8AD41BF10bf13F22B0a63f96f6d",
"tuple_nonce": 1,
"chain_id": 1,
"to_address": "",
@@ -154,6 +154,25 @@
"result": {
"error": "DataError: EIP-7702: empty destination"
}
+ },
+ {
+ "name": "metamask_authorize",
+ "parameters": {
+ "comment": "txid=0x876aaa1c0ebd442b54e3d5aa1b789fae6257d6b425e0bccba3d8de7aa0027bd7",
+ "path": "m/44'/60'/0'/0/0",
+ "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
+ "tuple_nonce": 1,
+ "chain_id": 1,
+ "to_address": "0x14495E5EF84823170B62176913d798B26a1a1A69",
+ "value": 0,
+ "data": "",
+ "gas_limit": 69573,
+ "max_gas_fee": 132809059,
+ "max_priority_fee": 100000
+ },
+ "result": {
+ "error": "DataError: Unknown EIP-7702 delegate address"
+ }
}
]
}
### common/tests/fixtures/ethereum/sign_tx_eip7702_mainnet.json
@@ -4,34 +4,6 @@
"passphrase": ""
},
"tests": [
- {
- "name": "metamask_authorize",
- "parameters": {
- "comment": "txid=0x876aaa1c0ebd442b54e3d5aa1b789fae6257d6b425e0bccba3d8de7aa0027bd7",
- "path": "m/44'/60'/0'/0/0",
- "delegate": "0x63c0c19a282a1b52b07dd5a65b58948a07dae32b",
- "chain_id": 1,
- "to_address": "0x14495E5EF84823170B62176913d798B26a1a1A69",
- "nonce": 0,
- "value": 0,
- "gas_limit": 69573,
- "max_gas_fee": 132809059,
- "max_priority_fee": 100000
- },
- "result": {
- "auth7702_list_hex": [
- [
- "01",
- "63c0c19a282a1b52b07dd5a65b58948a07dae32b",
- "01",
- "01",
- "d426d296c73c62e5d5528e1cea701dd55060cc34264f33412ef2ea7c5007d380",
- "7f83c40c1080483ecb8ba26a91f1408a2d3186f2577c4f563c2b95b467f78ed7"
- ]
- ],
- "tx_bytes_hex": "04f8c80180830186a08407ea816383010fc59414495e5ef84823170b62176913d798b26a1a1a698080c0f85cf85a019463c0c19a282a1b52b07dd5a65b58948a07dae32b0101a0d426d296c73c62e5d5528e1cea701dd55060cc34264f33412ef2ea7c5007d380a07f83c40c1080483ecb8ba26a91f1408a2d3186f2577c4f563c2b95b467f78ed780a00ebf86aed4ee9b2a9fc8c1e39d91ebcb19a8cf54449a5f823d63c3cfc428ffada028c2eb4d75d2d78844a8521bbbffc26fdcab7e670ad768b28031532b9e488022"
- }
- },
{
"name": "metamask_revoke",
"parameters": {
### core/.changelog.d/8205.removed
@@ -0,0 +1 @@
+Ethereum: Drop MetaMask EIP-7702 support.
### core/src/apps/ethereum/sc_constants.py
@@ -51,8 +51,6 @@ def lookup_eip7702_address(chain_id: int, address: bytes) -> str | None:
if chain_id == 1:
if address == b"\x5a\x7f\xc1\x13\x97\xe9\xa8\xad\x41\xbf\x10\xbf\x13\xf2\x2b\x0a\x63\xf9\x6f\x6d":
return "Ambire"
- if address == b"\x63\xc0\xc1\x9a\x28\x2a\x1b\x52\xb0\x7d\xd5\xa6\x5b\x58\x94\x8a\x07\xda\xe3\x2b":
- return "MetaMask"
if address == b"\x4c\xd2\x41\xe8\xd1\x51\x0e\x30\xb2\x07\x63\x97\xaf\xc7\x50\x8a\xe5\x9c\x66\xc9":
return "Simple7702Account"
return None
@@ -75,24 +73,18 @@ def lookup_eip7702_address(chain_id: int, address: bytes) -> str | None:
if chain_id == 100:
if address == b"\x5a\x7f\xc1\x13\x97\xe9\xa8\xad\x41\xbf\x10\xbf\x13\xf2\x2b\x0a\x63\xf9\x6f\x6d":
return "Ambire"
- if address == b"\x63\xc0\xc1\x9a\x28\x2a\x1b\x52\xb0\x7d\xd5\xa6\x5b\x58\x94\x8a\x07\xda\xe3\x2b":
- return "MetaMask"
return None
if chain_id == 8453:
if address == b"\x5a\x7f\xc1\x13\x97\xe9\xa8\xad\x41\xbf\x10\xbf\x13\xf2\x2b\x0a\x63\xf9\x6f\x6d":
return "Ambire"
- if address == b"\x63\xc0\xc1\x9a\x28\x2a\x1b\x52\xb0\x7d\xd5\xa6\x5b\x58\x94\x8a\x07\xda\xe3\x2b":
- return "MetaMask"
if address == b"\x4c\xd2\x41\xe8\xd1\x51\x0e\x30\xb2\x07\x63\x97\xaf\xc7\x50\x8a\xe5\x9c\x66\xc9":
return "Simple7702Account"
return None
if chain_id == 42161:
if address == b"\x5a\x7f\xc1\x13\x97\xe9\xa8\xad\x41\xbf\x10\xbf\x13\xf2\x2b\x0a\x63\xf9\x6f\x6d":
return "Ambire"
- if address == b"\x63\xc0\xc1\x9a\x28\x2a\x1b\x52\xb0\x7d\xd5\xa6\x5b\x58\x94\x8a\x07\xda\xe3\x2b":
- return "MetaMask"
if address == b"\x4c\xd2\x41\xe8\xd1\x51\x0e\x30\xb2\x07\x63\x97\xaf\xc7\x50\x8a\xe5\x9c\x66\xc9":
return "Simple7702Account"
return None
### core/src/apps/ethereum/sc_constants.py.mako
@@ -95,8 +95,6 @@ _EIP7702_ADDRESSES = {
1: [ # Ethereum
# https://etherscan.io/address/0x5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d
("5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d", "Ambire"),
- # https://etherscan.io/address/0x63c0c19a282a1b52b07dd5a65b58948a07dae32b
- ("63c0c19a282a1b52b07dd5a65b58948a07dae32b", "MetaMask"),
# https://etherscan.io/address/0x4Cd241E8d1510e30b2076397afc7508Ae59C66c9
("4Cd241E8d1510e30b2076397afc7508Ae59C66c9", "Simple7702Account")
],
@@ -115,22 +113,16 @@ _EIP7702_ADDRESSES = {
100: [ # Gnosis
# https://gnosisscan.io/address/0x5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d
("5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d", "Ambire"),
- # https://gnosisscan.io/address/0x63c0c19a282a1b52b07dd5a65b58948a07dae32b
- ("63c0c19a282a1b52b07dd5a65b58948a07dae32b", "MetaMask"),
],
8453: [ # Base
# https://basescan.org/address/0x5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d
("5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d", "Ambire"),
- # https://basescan.org/address/0x63c0c19a282a1b52b07dd5a65b58948a07dae32b
- ("63c0c19a282a1b52b07dd5a65b58948a07dae32b", "MetaMask"),
# https://basescan.org/address/0x4Cd241E8d1510e30b2076397afc7508Ae59C66c9
("4Cd241E8d1510e30b2076397afc7508Ae59C66c9", "Simple7702Account")
],
42161: [ # Arbitum
# https://arbiscan.io/address/0x5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d
("5a7fc11397e9a8ad41bf10bf13f22b0a63f96f6d", "Ambire"),
- # https://arbiscan.io/address/0x63c0c19a282a1b52b07dd5a65b58948a07dae32b
- ("63c0c19a282a1b52b07dd5a65b58948a07dae32b", "MetaMask"),
# https://arbiscan.io/address/0x4Cd241E8d1510e30b2076397afc7508Ae59C66c9
("4Cd241E8d1510e30b2076397afc7508Ae59C66c9", "Simple7702Account")
],
### tests/ui_tests/fixtures.json
[binary or diff unavailable]Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.