spendbound-bench / dev_bench.json
NagaYu's picture
Add SpendBound dev bench: cases+labels, Part B audit, dataset card
b747005 verified
Raw History Blame Contribute Delete
116 kB
{ "clean_cases": [ { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "id": "cdp_clean_single", "schema": "v2", "vendor": "cdp" }, { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "prepareUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "solAddress" }, { "programId": "Token", "type": "solData" } ], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" }, { "rules": [ { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" } ], "scope": "account" } ] }, "id": "cdp_clean_layered", "schema": "v2", "vendor": "cdp" }, { "artifacts": { "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-simple", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "abi": "[...transfer...]", "field": "transfer._to", "field_source": "ethereum_calldata", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] } ], "method": "eth_sendTransaction", "name": "send to allowlist, method-constrained" }, { "action": "DENY", "conditions": [], "method": "personal_sign", "name": "deny personal_sign" } ], "version": "1.0" } } ] }, "id": "privy_clean_simple", "schema": "1.0", "vendor": "privy" }, { "artifacts": { "aggregations": [ { "id": "AGG1", "method": "eth_signTransaction", "metric": { "field": "value", "field_source": "ethereum_transaction", "function": "sum" }, "window": { "seconds": 86400, "type": "rolling" } } ], "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-agg", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "abi": "[...transfer...]", "field": "transfer._to", "field_source": "ethereum_calldata", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "field": "value", "field_source": "ethereum_transaction", "operator": "lte", "value": "1000000000000000000" }, { "field": "aggregation.AGG1", "field_source": "reference", "operator": "lte", "value": "0x8AC7230489E80000" } ], "method": "eth_signTransaction", "name": "send under per-tx and rolling caps" } ], "version": "1.0" } }, { "kind": "override", "policy": { "chain_type": "ethereum", "name": "override", "rules": [ { "action": "DENY", "conditions": [], "method": "signMessage", "name": "deny signMessage" } ], "version": "1.0" } } ] }, "id": "privy_clean_aggregate", "schema": "1.0", "vendor": "privy" }, { "artifacts": { "policies": [ { "condition": "eth.tx.to == '0x1111' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "allow eth.tx to allowlist" } ] }, "id": "turnkey_clean_allowlist", "schema": "v1", "vendor": "turnkey" }, { "artifacts": { "policies": [ { "condition": "(eth.tx.to == '0x0aaa' || eth.tx.to == '0x0bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-0" }, { "condition": "(eth.tx.to == '0x1aaa' || eth.tx.to == '0x1bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-1" }, { "condition": "(eth.tx.to == '0x2aaa' || eth.tx.to == '0x2bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-2" }, { "condition": "(eth.tx.to == '0x3aaa' || eth.tx.to == '0x3bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-3" }, { "condition": "(eth.tx.to == '0x4aaa' || eth.tx.to == '0x4bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-4" } ] }, "id": "turnkey_clean_paren", "schema": "v1", "vendor": "turnkey" } ], "description": "SpendBound dev bench (SPEC \u00a74): clean bases, hand-labelled mutation cases, and not-judgeable fixtures. Oracle labels are derived by hand from the pinned vendor semantics (SPEC \u00a72\u2013\u00a73). This is the DEV set only; no sealed holdout material is included.", "mutation_cases": [ { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s1_cdp_drop_prepareUserOperation", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "prepareUserOperation", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Delete the project-level reject rule for prepareUserOperation; CDP's open default then silently accepts it.", "operator": "M-drop-rule", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "prepareUserOperation", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s1_cdp_drop_sendUserOperation", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "sendUserOperation", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Delete the project-level reject rule for sendUserOperation; CDP's open default then silently accepts it.", "operator": "M-drop-rule", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "sendUserOperation", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s1_cdp_drop_signSolTransaction", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "signSolTransaction", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Delete the project-level reject rule for signSolTransaction; CDP's open default then silently accepts it.", "operator": "M-drop-rule", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "signSolTransaction", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s1_cdp_drop_sendSolTransaction", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "sendSolTransaction", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Delete the project-level reject rule for sendSolTransaction; CDP's open default then silently accepts it.", "operator": "M-drop-rule", "oracle": { "check": "S1", "region_kind": "operation", "region_value": "sendSolTransaction", "severity": "high" } }, { "case": { "artifacts": { "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-simple", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "abi": "[...transfer...]", "field": "transfer._to", "field_source": "ethereum_calldata", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] } ], "method": "eth_sendTransaction", "name": "send to allowlist, method-constrained" }, { "action": "DENY", "conditions": [], "method": "personal_sign", "name": "deny personal_sign" }, { "action": "ALLOW", "conditions": [], "method": "*", "name": "widen:allow-all" } ], "version": "1.0" } } ] }, "base": "privy_clean_simple", "id": "s1_privy_wildcard", "oracle": { "check": "S1", "region_kind": "rule", "region_value": "widen:allow-all", "severity": "medium" }, "schema": "1.0", "vendor": "privy" }, "description": "Add a method:'*' 'Allow all' rule that reopens the default-deny universe.", "operator": "M-widen-scope", "oracle": { "check": "S1", "region_kind": "rule", "region_value": "widen:allow-all", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "condition": "eth.tx.to == '0x1111' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "allow eth.tx to allowlist" }, { "condition": "", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "widen:allow-all" } ] }, "base": "turnkey_clean_allowlist", "id": "s1_turnkey_allowall", "oracle": { "check": "S1", "region_kind": "rule", "region_value": "widen:allow-all", "severity": "medium" }, "schema": "v1", "vendor": "turnkey" }, "description": "Add an EFFECT_ALLOW org policy with an empty condition (allow-all), reopening the implicit-deny universe.", "operator": "M-widen-scope", "oracle": { "check": "S1", "region_kind": "rule", "region_value": "widen:allow-all", "severity": "medium" } }, { "case": { "artifacts": { "aggregations": [ { "id": "AGG1", "method": "eth_signTransaction", "metric": { "field": "value", "field_source": "ethereum_transaction", "function": "sum" }, "window": { "seconds": 86400, "type": "rolling" } } ], "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-agg", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "abi": "[...transfer...]", "field": "transfer._to", "field_source": "ethereum_calldata", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "field": "value", "field_source": "ethereum_transaction", "operator": "lte", "value": "1000000000000000000" } ], "method": "eth_signTransaction", "name": "send under per-tx and rolling caps" } ], "version": "1.0" } }, { "kind": "override", "policy": { "chain_type": "ethereum", "name": "override", "rules": [ { "action": "DENY", "conditions": [], "method": "signMessage", "name": "deny signMessage" } ], "version": "1.0" } } ] }, "base": "privy_clean_aggregate", "id": "s2_privy_drop_ref", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth_signTransaction", "severity": "medium" }, "schema": "1.0", "vendor": "privy" }, "description": "Delete the reference->aggregation condition; the rolling cap no longer composes.", "operator": "M-drop-window", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth_signTransaction", "severity": "medium" } }, { "case": { "artifacts": { "aggregations": [], "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-agg", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "abi": "[...transfer...]", "field": "transfer._to", "field_source": "ethereum_calldata", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "field": "value", "field_source": "ethereum_transaction", "operator": "lte", "value": "1000000000000000000" }, { "field": "aggregation.AGG1", "field_source": "reference", "operator": "lte", "value": "0x8AC7230489E80000" } ], "method": "eth_signTransaction", "name": "send under per-tx and rolling caps" } ], "version": "1.0" } }, { "kind": "override", "policy": { "chain_type": "ethereum", "name": "override", "rules": [ { "action": "DENY", "conditions": [], "method": "signMessage", "name": "deny signMessage" } ], "version": "1.0" } } ] }, "base": "privy_clean_aggregate", "id": "s2_privy_drop_agg", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth_signTransaction", "severity": "medium" }, "schema": "1.0", "vendor": "privy" }, "description": "Delete the Aggregation object AGG1, leaving a dangling reference that no longer bounds cumulative spend.", "operator": "M-drop-window", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth_signTransaction", "severity": "medium" } }, { "case": { "artifacts": { "aggregations": [ { "id": "AGG1", "method": "eth_signTransaction", "metric": { "field": "value", "field_source": "ethereum_transaction", "function": "sum" }, "window": { "seconds": 86400, "type": "rolling" } } ], "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-agg", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "abi": "[...transfer...]", "field": "transfer._to", "field_source": "ethereum_calldata", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "field": "value", "field_source": "ethereum_transaction", "operator": "lte", "value": "1000000000000000000" }, { "field": "aggregation.AGG1", "field_source": "reference", "operator": "lte", "value": "0x8AC7230489E80000" } ], "method": "eth_sendTransaction", "name": "send under per-tx and rolling caps" } ], "version": "1.0" } }, { "kind": "override", "policy": { "chain_type": "ethereum", "name": "override", "rules": [ { "action": "DENY", "conditions": [], "method": "signMessage", "name": "deny signMessage" } ], "version": "1.0" } } ] }, "base": "privy_clean_aggregate", "id": "s2_privy_switch", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth_sendTransaction", "severity": "high" }, "schema": "1.0", "vendor": "privy" }, "description": "Repoint the capped rule to eth_sendTransaction, a method where no aggregate is available.", "operator": "M-switch-operation", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth_sendTransaction", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "changeCents": 10000, "operator": "<=", "type": "netUSDChange" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s2_cdp_valuecap", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "sendEvmTransaction", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Replace the allowlist+calldata guard with a bare per-request USD cap; CDP has no aggregate to compose it.", "operator": "M-widen-scope", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "sendEvmTransaction", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "condition": "eth.tx.value <= 1000000000000000000", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "allow eth.tx to allowlist" } ] }, "base": "turnkey_clean_allowlist", "id": "s2_turnkey_valuecap", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth.tx", "severity": "high" }, "schema": "v1", "vendor": "turnkey" }, "description": "Replace the destination allowlist with a bare per-tx value cap; Turnkey has no rolling construct.", "operator": "M-widen-scope", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth.tx", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "condition": "eth.tx.value <= 500000000000000000", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-0" }, { "condition": "(eth.tx.to == '0x1aaa' || eth.tx.to == '0x1bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-1" }, { "condition": "(eth.tx.to == '0x2aaa' || eth.tx.to == '0x2bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-2" }, { "condition": "(eth.tx.to == '0x3aaa' || eth.tx.to == '0x3bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-3" }, { "condition": "(eth.tx.to == '0x4aaa' || eth.tx.to == '0x4bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-4" } ] }, "base": "turnkey_clean_paren", "id": "s2_turnkey_valuecap2", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth.tx", "severity": "high" }, "schema": "v1", "vendor": "turnkey" }, "description": "Rewrite a policy to a bare per-tx value cap; no aggregate exists to bound cumulative spend.", "operator": "M-widen-scope", "oracle": { "check": "S2", "region_kind": "operation", "region_value": "eth.tx", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s3_cdp_drop_signEvmHash", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "signEvmHash", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Delete the reject rule closing signEvmHash; the raw-signing surface reopens under the open default.", "operator": "M-drop-rule", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "signEvmHash", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s3_cdp_drop_signEvmTypedData", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "signEvmTypedData", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Delete the reject rule closing signEvmTypedData; the raw-signing surface reopens under the open default.", "operator": "M-drop-rule", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "signEvmTypedData", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s3_cdp_drop_signEvmMessage", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "signEvmMessage", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Delete the reject rule closing signEvmMessage; the raw-signing surface reopens under the open default.", "operator": "M-drop-rule", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "signEvmMessage", "severity": "high" } }, { "case": { "artifacts": { "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-simple", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "abi": "[...transfer...]", "field": "transfer._to", "field_source": "ethereum_calldata", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] } ], "method": "eth_sendTransaction", "name": "send to allowlist, method-constrained" }, { "action": "ALLOW", "conditions": [], "method": "personal_sign", "name": "deny personal_sign" } ], "version": "1.0" } } ] }, "base": "privy_clean_simple", "id": "s3_privy_open_personal_sign", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "personal_sign", "severity": "high" }, "schema": "1.0", "vendor": "privy" }, "description": "Flip the personal_sign rule from DENY to ALLOW, permitting a raw-signing surface.", "operator": "M-widen-scope", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "personal_sign", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "condition": "eth.tx.to == '0x1111' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "allow eth.tx to allowlist" }, { "condition": "activity.type == 'ACTIVITY_TYPE_SIGN_RAW_PAYLOAD'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "widen:raw" } ] }, "base": "turnkey_clean_allowlist", "id": "s3_turnkey_raw", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "SIGN_RAW_PAYLOAD", "severity": "high" }, "schema": "v1", "vendor": "turnkey" }, "description": "Add an EFFECT_ALLOW policy for SIGN_RAW_PAYLOAD, permitting an opaque raw-payload surface.", "operator": "M-widen-scope", "oracle": { "check": "S3", "region_kind": "operation", "region_value": "SIGN_RAW_PAYLOAD", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s4_cdp_send_addronly", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "sendEvmTransaction", "severity": "medium" }, "schema": "v2", "vendor": "cdp" }, "description": "Remove the evmData (calldata) criterion, leaving an address-only allowlist on sendEvmTransaction.", "operator": "M-widen-scope", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "sendEvmTransaction", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" } ], "operation": "signEvmTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "prepareUserOperation" }, { "action": "reject", "criteria": [], "operation": "sendUserOperation" }, { "action": "reject", "criteria": [], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" } ] }, "base": "cdp_clean_single", "id": "s4_cdp_sign_addronly", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "signEvmTransaction", "severity": "medium" }, "schema": "v2", "vendor": "cdp" }, "description": "Remove the evmData (calldata) criterion, leaving an address-only allowlist on signEvmTransaction.", "operator": "M-widen-scope", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "signEvmTransaction", "severity": "medium" } }, { "case": { "artifacts": { "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-simple", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] } ], "method": "eth_sendTransaction", "name": "send to allowlist, method-constrained" }, { "action": "DENY", "conditions": [], "method": "personal_sign", "name": "deny personal_sign" } ], "version": "1.0" } } ] }, "base": "privy_clean_simple", "id": "s4_privy_addronly", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "eth_sendTransaction", "severity": "medium" }, "schema": "1.0", "vendor": "privy" }, "description": "Remove the ethereum_calldata constraint, leaving an address-only allowlist (any method on the target).", "operator": "M-widen-scope", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "eth_sendTransaction", "severity": "medium" } }, { "case": { "artifacts": { "aggregations": [ { "id": "AGG1", "method": "eth_signTransaction", "metric": { "field": "value", "field_source": "ethereum_transaction", "function": "sum" }, "window": { "seconds": 86400, "type": "rolling" } } ], "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "clean-agg", "rules": [ { "action": "ALLOW", "conditions": [ { "field": "to", "field_source": "ethereum_transaction", "operator": "in", "value": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ] }, { "field": "value", "field_source": "ethereum_transaction", "operator": "lte", "value": "1000000000000000000" }, { "field": "aggregation.AGG1", "field_source": "reference", "operator": "lte", "value": "0x8AC7230489E80000" } ], "method": "eth_signTransaction", "name": "send under per-tx and rolling caps" } ], "version": "1.0" } }, { "kind": "override", "policy": { "chain_type": "ethereum", "name": "override", "rules": [ { "action": "DENY", "conditions": [], "method": "signMessage", "name": "deny signMessage" } ], "version": "1.0" } } ] }, "base": "privy_clean_aggregate", "id": "s4_privy_agg_addronly", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "eth_signTransaction", "severity": "medium" }, "schema": "1.0", "vendor": "privy" }, "description": "Remove the ethereum_calldata constraint from the aggregate-bounded rule, leaving address-only.", "operator": "M-widen-scope", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "eth_signTransaction", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "condition": "eth.tx.to == '0x1111'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "allow eth.tx to allowlist" } ] }, "base": "turnkey_clean_allowlist", "id": "s4_turnkey_addronly", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "eth.tx", "severity": "medium" }, "schema": "v1", "vendor": "turnkey" }, "description": "Remove the contract_call_args constraint, leaving an address-only allowlist on eth.tx.", "operator": "M-widen-scope", "oracle": { "check": "S4", "region_kind": "operation", "region_value": "eth.tx", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "prepareUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "solAddress" }, { "programId": "Token", "type": "solData" } ], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" }, { "rules": [ { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [ { "addresses": [ "0xBAD0000000000000000000000000000000000BAD" ], "operator": "in", "type": "evmAddress" } ], "operation": "sendEvmTransaction" } ], "scope": "account" } ] }, "base": "cdp_clean_layered", "id": "s5_cdp_sendEvmTransaction", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "sendEvmTransaction", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Place a reject for sendEvmTransaction->0xBAD0000000000000000000000000000000000BAD at the account layer; the project's accept is final, so the denylist is silently void.", "operator": "M-remove-layer", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "sendEvmTransaction", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "prepareUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "solAddress" }, { "programId": "Token", "type": "solData" } ], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" }, { "rules": [ { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [ { "addresses": [ "0xBAD0000000000000000000000000000000000BAD" ], "operator": "in", "type": "evmAddress" } ], "operation": "signEvmTransaction" } ], "scope": "account" } ] }, "base": "cdp_clean_layered", "id": "s5_cdp_signEvmTransaction", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "signEvmTransaction", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Place a reject for signEvmTransaction->0xBAD0000000000000000000000000000000000BAD at the account layer; the project's accept is final, so the denylist is silently void.", "operator": "M-remove-layer", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "signEvmTransaction", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "prepareUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "solAddress" }, { "programId": "Token", "type": "solData" } ], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" }, { "rules": [ { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [ { "addresses": [ "0xBAD0000000000000000000000000000000000BAD" ], "operator": "in", "type": "evmAddress" } ], "operation": "sendUserOperation" } ], "scope": "account" } ] }, "base": "cdp_clean_layered", "id": "s5_cdp_sendUserOperation", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "sendUserOperation", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Place a reject for sendUserOperation->0xBAD0000000000000000000000000000000000BAD at the account layer; the project's accept is final, so the denylist is silently void.", "operator": "M-remove-layer", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "sendUserOperation", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "prepareUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "solAddress" }, { "programId": "Token", "type": "solData" } ], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" }, { "rules": [ { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [ { "addresses": [ "0xBAD0000000000000000000000000000000000BAD" ], "operator": "in", "type": "evmAddress" } ], "operation": "prepareUserOperation" } ], "scope": "account" } ] }, "base": "cdp_clean_layered", "id": "s5_cdp_prepareUserOperation", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "prepareUserOperation", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Place a reject for prepareUserOperation->0xBAD0000000000000000000000000000000000BAD at the account layer; the project's accept is final, so the denylist is silently void.", "operator": "M-remove-layer", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "prepareUserOperation", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "signEvmTransaction" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "sendUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "evmAddress" }, { "functionSelector": "0xa9059cbb", "type": "evmData" } ], "operation": "prepareUserOperation" }, { "action": "accept", "criteria": [ { "addresses": [ "0xA11CE0000000000000000000000000000000A11C", "0xB0B0000000000000000000000000000000000B0B" ], "operator": "in", "type": "solAddress" }, { "programId": "Token", "type": "solData" } ], "operation": "signSolTransaction" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [], "operation": "sendSolTransaction" } ], "scope": "project" }, { "rules": [ { "action": "reject", "criteria": [], "operation": "signEvmHash" }, { "action": "reject", "criteria": [], "operation": "signEvmMessage" }, { "action": "reject", "criteria": [], "operation": "signEvmTypedData" }, { "action": "reject", "criteria": [], "operation": "signSolMessage" }, { "action": "reject", "criteria": [ { "addresses": [ "0xBAD0000000000000000000000000000000000BAD" ], "operator": "in", "type": "evmAddress" } ], "operation": "signSolTransaction" } ], "scope": "account" } ] }, "base": "cdp_clean_layered", "id": "s5_cdp_signSolTransaction", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "signSolTransaction", "severity": "high" }, "schema": "v2", "vendor": "cdp" }, "description": "Place a reject for signSolTransaction->0xBAD0000000000000000000000000000000000BAD at the account layer; the project's accept is final, so the denylist is silently void.", "operator": "M-remove-layer", "oracle": { "check": "S5", "region_kind": "operation", "region_value": "signSolTransaction", "severity": "high" } }, { "case": { "artifacts": { "policies": [ { "condition": "eth.tx.to == '0x0aaa' || eth.tx.to == '0x0bbb' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-0" }, { "condition": "(eth.tx.to == '0x1aaa' || eth.tx.to == '0x1bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-1" }, { "condition": "(eth.tx.to == '0x2aaa' || eth.tx.to == '0x2bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-2" }, { "condition": "(eth.tx.to == '0x3aaa' || eth.tx.to == '0x3bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-3" }, { "condition": "(eth.tx.to == '0x4aaa' || eth.tx.to == '0x4bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-4" } ] }, "base": "turnkey_clean_paren", "id": "s6_turnkey_deparen_0", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-0", "severity": "medium" }, "schema": "v1", "vendor": "turnkey" }, "description": "Strip the parentheses from paren-mixed-0; && and || regroup left-to-right at equal precedence.", "operator": "M-deparen", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-0", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "condition": "(eth.tx.to == '0x0aaa' || eth.tx.to == '0x0bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-0" }, { "condition": "eth.tx.to == '0x1aaa' || eth.tx.to == '0x1bbb' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-1" }, { "condition": "(eth.tx.to == '0x2aaa' || eth.tx.to == '0x2bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-2" }, { "condition": "(eth.tx.to == '0x3aaa' || eth.tx.to == '0x3bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-3" }, { "condition": "(eth.tx.to == '0x4aaa' || eth.tx.to == '0x4bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-4" } ] }, "base": "turnkey_clean_paren", "id": "s6_turnkey_deparen_1", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-1", "severity": "medium" }, "schema": "v1", "vendor": "turnkey" }, "description": "Strip the parentheses from paren-mixed-1; && and || regroup left-to-right at equal precedence.", "operator": "M-deparen", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-1", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "condition": "(eth.tx.to == '0x0aaa' || eth.tx.to == '0x0bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-0" }, { "condition": "(eth.tx.to == '0x1aaa' || eth.tx.to == '0x1bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-1" }, { "condition": "eth.tx.to == '0x2aaa' || eth.tx.to == '0x2bbb' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-2" }, { "condition": "(eth.tx.to == '0x3aaa' || eth.tx.to == '0x3bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-3" }, { "condition": "(eth.tx.to == '0x4aaa' || eth.tx.to == '0x4bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-4" } ] }, "base": "turnkey_clean_paren", "id": "s6_turnkey_deparen_2", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-2", "severity": "medium" }, "schema": "v1", "vendor": "turnkey" }, "description": "Strip the parentheses from paren-mixed-2; && and || regroup left-to-right at equal precedence.", "operator": "M-deparen", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-2", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "condition": "(eth.tx.to == '0x0aaa' || eth.tx.to == '0x0bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-0" }, { "condition": "(eth.tx.to == '0x1aaa' || eth.tx.to == '0x1bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-1" }, { "condition": "(eth.tx.to == '0x2aaa' || eth.tx.to == '0x2bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-2" }, { "condition": "eth.tx.to == '0x3aaa' || eth.tx.to == '0x3bbb' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-3" }, { "condition": "(eth.tx.to == '0x4aaa' || eth.tx.to == '0x4bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-4" } ] }, "base": "turnkey_clean_paren", "id": "s6_turnkey_deparen_3", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-3", "severity": "medium" }, "schema": "v1", "vendor": "turnkey" }, "description": "Strip the parentheses from paren-mixed-3; && and || regroup left-to-right at equal precedence.", "operator": "M-deparen", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-3", "severity": "medium" } }, { "case": { "artifacts": { "policies": [ { "condition": "(eth.tx.to == '0x0aaa' || eth.tx.to == '0x0bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-0" }, { "condition": "(eth.tx.to == '0x1aaa' || eth.tx.to == '0x1bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-1" }, { "condition": "(eth.tx.to == '0x2aaa' || eth.tx.to == '0x2bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-2" }, { "condition": "(eth.tx.to == '0x3aaa' || eth.tx.to == '0x3bbb') && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-3" }, { "condition": "eth.tx.to == '0x4aaa' || eth.tx.to == '0x4bbb' && contract_call_args['method'] == 'transfer'", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "paren-mixed-4" } ] }, "base": "turnkey_clean_paren", "id": "s6_turnkey_deparen_4", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-4", "severity": "medium" }, "schema": "v1", "vendor": "turnkey" }, "description": "Strip the parentheses from paren-mixed-4; && and || regroup left-to-right at equal precedence.", "operator": "M-deparen", "oracle": { "check": "S6", "region_kind": "rule", "region_value": "paren-mixed-4", "severity": "medium" } } ], "not_judgeable_fixtures": [ { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [], "operation": "signEvmTransactionEndUser" } ], "scope": "project" } ] }, "expect_subject_contains": "EndUser", "id": "nj_cdp_enduser", "schema": "v2", "vendor": "cdp" }, { "artifacts": { "policies": [ { "rules": [ { "action": "accept", "criteria": [], "operation": "frobnicate" } ], "scope": "project" } ] }, "expect_subject_contains": "frobnicate", "id": "nj_cdp_unknown_op", "schema": "v2", "vendor": "cdp" }, { "artifacts": { "layers": [ { "kind": "wallet", "policy": { "chain_type": "ethereum", "name": "x", "rules": [ { "action": "ALLOW", "conditions": [], "method": "foo_method", "name": "r" } ], "version": "1.0" } } ] }, "expect_subject_contains": "foo_method", "id": "nj_privy_unknown_method", "schema": "1.0", "vendor": "privy" }, { "artifacts": { "policies": [ { "condition": "near.tx.value <= 1", "consensus": "", "effect": "EFFECT_ALLOW", "notes": "", "policyName": "foreign" } ] }, "expect_subject_contains": "near.tx", "id": "nj_turnkey_foreign_payload", "schema": "v1", "vendor": "turnkey" } ], "snapshot_date": "2026-11-19" }
{
"clean_cases": [
{
"artifacts": {
"policies": [
{
"rules": [
{
"action": "accept",
"criteria": [
{
"addresses": [
"0xA11CE0000000000000000000000000000000A11C",
"0xB0B0000000000000000000000000000000000B0B"
],
"operator": "in",
"type": "evmAddress"
},
{
"functionSelector": "0xa9059cbb",
"type": "evmData"
}
],
"operation": "sendEvmTransaction"
},
{
"action": "accept",
"criteria": [
{
"addresses": [
"0xA11CE0000000000000000000000000000000A11C",
"0xB0B0000000000000000000000000000000000B0B"
],
"operator": "in",
"type": "evmAddress"
},
{
"functionSelector": "0xa9059cbb",
"type": "evmData"
}
],
"operation": "signEvmTransaction"
},
{
"action": "reject",
"criteria": [],
"operation": "signEvmMessage"
},
{
"action": "reject",
"criteria": [],
"operation": "signEvmTypedData"
},
{
"action": "reject",
"criteria": [],
"operation": "signEvmHash"
},
{
"action": "reject",
"criteria": [],
"operation": "signSolMessage"
},
{
"action": "reject",
"criteria": [],
"operation": "prepareUserOperation"
},
{
"action": "reject",
"criteria": [],
"operation": "sendUserOperation"
},
{
"action": "reject",
"criteria": [],
"operation": "signSolTransaction"
},
{
"action": "reject",
"criteria": [],
"operation": "sendSolTransaction"
}
],
"scope": "project"
}
]
},
"id": "cdp_clean_single",
"schema": "v2",
"vendor": "cdp"
},
{
"artifacts": {
"policies": [
{
"rules": [
{
"action": "accept",
"criteria": [