{
  "title": "One six-call Safe batch, three versions: what the device shows and what the decoded batch shows",
  "command": "pnpm --filter @guard/site exec tsx scripts/run-review-example.ts",
  "reproduce": "Each variant carries its full outer fields, including data. Hash them with any EIP-712 tool, or with the offline cast recipe in /resources/safe-device-hash-example.json (gasToken and refundReceiver are the zero address), and compare with hardwareWalletFields.",
  "executedAt": "2026-11-16T07:22:30.129Z",
  "sourceRevision": "3013cbb8bfb688ec78a33c4e61cc338d09c9edd2",
  "environment": "Node.js script, offline. No RPC, no Safe Transaction Service, no simulation, no signing, no broadcast. Network access stubbed to fail.",
  "networkLookupsBlocked": 4,
  "networkLookupsNote": "Guard's decoder tried public selector and Safe decoder lookups for the unknown helper selector; the stub refused them, so that call stayed undecoded by name.",
  "setup": {
    "chainId": 1,
    "safe": "0x00000000000000000000000000000000000000a1 (synthetic, not a deployed Safe)",
    "syntheticAddresses": {
      "stablecoin": "0x00000000000000000000000000000000000000b1",
      "wrappedAsset": "0x00000000000000000000000000000000000000b2",
      "router": "0x00000000000000000000000000000000000000c1",
      "lendingPool": "0x00000000000000000000000000000000000000c2",
      "payroll": "0x00000000000000000000000000000000000000d1",
      "helper": "0x00000000000000000000000000000000000000e1"
    },
    "nonce": 42
  },
  "method": "Encoded six inner calls with viem and packed them into a MultiSend v1.4.1 call. Computed the EIP-712 domain hash, message hash and SafeTxHash with Guard's implementation and cross-checked the SafeTxHash with viem's hashTypedData. Decoded the batch with Guard's decodeTransaction, then ran Guard's top-level delegatecall check, inner delegatecall check and infinite-approval check on every call, with every address unknown to Guard. Classified the resulting flags with Guard's computeVerdict and computeOperatorRecommendation.",
  "bytesDifferingBetweenAandB": 1,
  "variants": [
    {
      "id": "A",
      "title": "Reference batch: call 5 is a normal CALL to the helper",
      "outerTransaction": {
        "to": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
        "toLabel": "Safe MultiSend v1.4.1 (canonical)",
        "value": "0",
        "operation": "1 (DELEGATECALL)",
        "nonce": 42,
        "dataBytes": 1220,
        "safeTxGas": "0",
        "baseGas": "0",
        "gasPrice": "0",
        "gasToken": "zero address",
        "refundReceiver": "zero address",
        "dataKeccak": "0x6c818d730b0cfd39f8e4bddce7e44e8fa54f04dd53de292e36ca8bed9293213a",
        "data": "0x8d80ff0a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004760000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000ba43b74000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010438ed17390000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000000000713fb300000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000b20000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000000000000000000000000000000000000000000c2000000000000000000000000000000000000000000000000d02ab486cedc00000000000000000000000000000000000000000000c200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084617ba03700000000000000000000000000000000000000000000000000000000000000b2000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024ef5cfb8c00000000000000000000000000000000000000000000000000000000000000a10000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb00000000000000000000000000000000000000000000000000000000000000d100000000000000000000000000000000000000000000000000000002cb41780000000000000000000000"
      },
      "hardwareWalletFields": {
        "domainHash": "0x2876acb9e3053361e432c7b0a8becf9003595bb44f691899c3ade8b8bf6edd6f",
        "messageHash": "0xc11acd4903d319d622965cda9a200609a10810f212d5e1d35924c96d6ad30201",
        "safeTxHash": "0x4665039a8f7a20df2b026ba66c7a3c82327b36685c7ae16b432e082ae62f257c",
        "hashImplementationsAgree": true
      },
      "call5OperationByte": {
        "byteOffsetInCalldata": 936,
        "value": "00"
      },
      "innerCalls": [
        {
          "index": 1,
          "intendedLabel": "Approve the router to spend 50,000 stablecoin",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b1",
          "decodedFunction": "approve",
          "decodeConfidence": "full"
        },
        {
          "index": 2,
          "intendedLabel": "Swap 50,000 stablecoin for at least 15 wrapped asset, to the Safe",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000c1",
          "decodedFunction": "swapExactTokensForTokens",
          "decodeConfidence": "full"
        },
        {
          "index": 3,
          "intendedLabel": "Approve the lending pool to spend 15 wrapped asset",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b2",
          "decodedFunction": "approve",
          "decodeConfidence": "full"
        },
        {
          "index": 4,
          "intendedLabel": "Supply 15 wrapped asset to the pool, on behalf of the Safe",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000c2",
          "decodedFunction": "supply",
          "decodeConfidence": "full"
        },
        {
          "index": 5,
          "intendedLabel": "Claim rewards through a helper contract (CALL)",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000e1",
          "decodedFunction": null,
          "decodeConfidence": "unknown"
        },
        {
          "index": 6,
          "intendedLabel": "Pay 12,000 stablecoin to the payroll address",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b1",
          "decodedFunction": "transfer",
          "decodeConfidence": "full"
        }
      ],
      "guardChecksRun": [
        {
          "check": "delegatecall",
          "severity": "critical",
          "passed": true,
          "detail": "DelegateCall to whitelisted MultiSend"
        }
      ],
      "failedChecks": [],
      "classification": {
        "verdict": null,
        "operatorRecommendation": null,
        "note": "Not classified. Only a subset of checks ran, so a verdict here would overstate what was established. The unknown helper contract would still need review in a full analysis."
      }
    },
    {
      "id": "B",
      "title": "Same batch, call 5 is a DELEGATECALL to the same helper",
      "outerTransaction": {
        "to": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
        "toLabel": "Safe MultiSend v1.4.1 (canonical)",
        "value": "0",
        "operation": "1 (DELEGATECALL)",
        "nonce": 42,
        "dataBytes": 1220,
        "safeTxGas": "0",
        "baseGas": "0",
        "gasPrice": "0",
        "gasToken": "zero address",
        "refundReceiver": "zero address",
        "dataKeccak": "0x56db5b65015dafb60713588b7c71dca8360f464e83d09a17f1209951f900c2ea",
        "data": "0x8d80ff0a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004760000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000ba43b74000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010438ed17390000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000000000713fb300000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000b20000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000000000000000000000000000000000000000000c2000000000000000000000000000000000000000000000000d02ab486cedc00000000000000000000000000000000000000000000c200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084617ba03700000000000000000000000000000000000000000000000000000000000000b2000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024ef5cfb8c00000000000000000000000000000000000000000000000000000000000000a10000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb00000000000000000000000000000000000000000000000000000000000000d100000000000000000000000000000000000000000000000000000002cb41780000000000000000000000"
      },
      "hardwareWalletFields": {
        "domainHash": "0x2876acb9e3053361e432c7b0a8becf9003595bb44f691899c3ade8b8bf6edd6f",
        "messageHash": "0x28e2680d9b2f79c65305dce95563735dd9bb321174b75cdc669fcffc5b810d4f",
        "safeTxHash": "0x1581ecb81376e9dadc10775187b9098b62847906165419db4c443a38442b9ec2",
        "hashImplementationsAgree": true
      },
      "call5OperationByte": {
        "byteOffsetInCalldata": 936,
        "value": "01"
      },
      "innerCalls": [
        {
          "index": 1,
          "intendedLabel": "Approve the router to spend 50,000 stablecoin",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b1",
          "decodedFunction": "approve",
          "decodeConfidence": "full"
        },
        {
          "index": 2,
          "intendedLabel": "Swap 50,000 stablecoin for at least 15 wrapped asset, to the Safe",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000c1",
          "decodedFunction": "swapExactTokensForTokens",
          "decodeConfidence": "full"
        },
        {
          "index": 3,
          "intendedLabel": "Approve the lending pool to spend 15 wrapped asset",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b2",
          "decodedFunction": "approve",
          "decodeConfidence": "full"
        },
        {
          "index": 4,
          "intendedLabel": "Supply 15 wrapped asset to the pool, on behalf of the Safe",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000c2",
          "decodedFunction": "supply",
          "decodeConfidence": "full"
        },
        {
          "index": 5,
          "intendedLabel": "Same claimRewards call, sent as DELEGATECALL",
          "operation": "DELEGATECALL",
          "target": "0x00000000000000000000000000000000000000e1",
          "decodedFunction": null,
          "decodeConfidence": "unknown"
        },
        {
          "index": 6,
          "intendedLabel": "Pay 12,000 stablecoin to the payroll address",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b1",
          "decodedFunction": "transfer",
          "decodeConfidence": "full"
        }
      ],
      "guardChecksRun": [
        {
          "check": "delegatecall",
          "severity": "critical",
          "passed": true,
          "detail": "DelegateCall to whitelisted MultiSend"
        },
        {
          "check": "hidden_delegatecall",
          "severity": "critical",
          "passed": false,
          "detail": "Hidden delegatecall in inner call to 0x00000000000000000000000000000000000000e1; not the canonical Safe MultiSend"
        }
      ],
      "failedChecks": [
        "hidden_delegatecall"
      ],
      "classification": {
        "verdict": "RED",
        "operatorRecommendation": "BLACK",
        "note": "Classification of the flags above only, with assurance forced to HIGH. A failed hard-refusal check yields BLACK whatever the other checks say."
      }
    },
    {
      "id": "C",
      "title": "Same batch, call 5 is an unlimited stablecoin approval to the helper",
      "outerTransaction": {
        "to": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
        "toLabel": "Safe MultiSend v1.4.1 (canonical)",
        "value": "0",
        "operation": "1 (DELEGATECALL)",
        "nonce": 42,
        "dataBytes": 1252,
        "safeTxGas": "0",
        "baseGas": "0",
        "gasPrice": "0",
        "gasToken": "zero address",
        "refundReceiver": "zero address",
        "dataKeccak": "0x9d9ab84625c7273194a9e997e1943ca0858b68e55409705e14ceb317d6604b65",
        "data": "0x8d80ff0a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004960000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000ba43b74000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010438ed17390000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000000000713fb300000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000b20000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000000000000000000000000000000000000000000c2000000000000000000000000000000000000000000000000d02ab486cedc00000000000000000000000000000000000000000000c200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084617ba03700000000000000000000000000000000000000000000000000000000000000b2000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000000000000000000000000000000000000000000e1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000b100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb00000000000000000000000000000000000000000000000000000000000000d100000000000000000000000000000000000000000000000000000002cb41780000000000000000000000"
      },
      "hardwareWalletFields": {
        "domainHash": "0x2876acb9e3053361e432c7b0a8becf9003595bb44f691899c3ade8b8bf6edd6f",
        "messageHash": "0xc368541ae5e5ac107da6ffb341ecb87fc51a0b38c97c8b27e7dc1272297833c0",
        "safeTxHash": "0x90eb9cbe9a23189b06c3119dc72839cb180edae33d3f3bb508b4ce95d9edcbd9",
        "hashImplementationsAgree": true
      },
      "call5OperationByte": {
        "byteOffsetInCalldata": 936,
        "value": "00"
      },
      "innerCalls": [
        {
          "index": 1,
          "intendedLabel": "Approve the router to spend 50,000 stablecoin",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b1",
          "decodedFunction": "approve",
          "decodeConfidence": "full"
        },
        {
          "index": 2,
          "intendedLabel": "Swap 50,000 stablecoin for at least 15 wrapped asset, to the Safe",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000c1",
          "decodedFunction": "swapExactTokensForTokens",
          "decodeConfidence": "full"
        },
        {
          "index": 3,
          "intendedLabel": "Approve the lending pool to spend 15 wrapped asset",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b2",
          "decodedFunction": "approve",
          "decodeConfidence": "full"
        },
        {
          "index": 4,
          "intendedLabel": "Supply 15 wrapped asset to the pool, on behalf of the Safe",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000c2",
          "decodedFunction": "supply",
          "decodeConfidence": "full"
        },
        {
          "index": 5,
          "intendedLabel": "Approve the helper for an unlimited stablecoin amount",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b1",
          "decodedFunction": "approve",
          "decodeConfidence": "full"
        },
        {
          "index": 6,
          "intendedLabel": "Pay 12,000 stablecoin to the payroll address",
          "operation": "CALL",
          "target": "0x00000000000000000000000000000000000000b1",
          "decodedFunction": "transfer",
          "decodeConfidence": "full"
        }
      ],
      "guardChecksRun": [
        {
          "check": "delegatecall",
          "severity": "critical",
          "passed": true,
          "detail": "DelegateCall to whitelisted MultiSend"
        },
        {
          "check": "infinite_approval_unknown",
          "severity": "critical",
          "passed": false,
          "detail": "Infinite allowance to unknown address: 0x00000000000000000000000000000000000000e1 via approve"
        }
      ],
      "failedChecks": [
        "infinite_approval_unknown"
      ],
      "classification": {
        "verdict": "RED",
        "operatorRecommendation": "BLACK",
        "note": "Classification of the flags above only, with assurance forced to HIGH. A failed hard-refusal check yields BLACK whatever the other checks say."
      }
    }
  ],
  "limits": [
    "Synthetic addresses and calldata only. Nothing was deployed, simulated, signed or broadcast.",
    "Only three of Guard's checks ran. This example was not produced by the hosted Guard service.",
    "No hardware wallet was used. The hashes are the values a device that blind-signs Safe typed data is documented to show; actual screens vary by device and firmware.",
    "The reference batch is not certified safe: it was not classified, and its unknown helper would still need review."
  ]
}
