Skip to content
Ylabator

Private Accounting Agents With Human Approval

Accounting agents can extract, classify and reconcile. A changed bank detail goes to independent verification, and money moves only after two people approve and a tamper-evident receipt is written.

Topics
Private Multi-Agent Applications
Level
Founder / builder
Read
4 min
Published
2026-11-12
Reviewed
2026-11-12
Post-launch queue

The problem

In May 2024, CNN reported that Arup was the company behind a deepfake fraud in Hong Kong. A finance employee joined a video call with people who looked and sounded like the chief financial officer and colleagues. All of them were generated. He made 15 transfers totaling HK$200 million, about US$25.6 million [1]. Arup said none of its internal systems were compromised [1].

No password was stolen and no server was breached. A payment process that trusted what a person saw and heard was enough. The FBI's 2025 report shows how common the pattern is: 24,768 business email compromise complaints and about US$3.05 billion in losses, with BEC now defined to include compromised phone numbers and virtual meeting applications [2]. IBM found that 16% of breaches it studied in 2025 involved attackers using AI [3].

Accounting agents add a new path into the same process. An invoice agent reads a PDF from a vendor's email. The PDF contains new bank details and a line asking for urgency and discretion. In an illustrative setup where one agent extracts, decides and pays, that text becomes a wire instruction. The agent did what it was told. The person who should have checked was never asked.

How it works

Split the work into bounded stages, and give no single agent the ability to move funds.

  • Extraction, read-only connector. Reads invoices, statements and remittance advice. It cannot write to the ledger or the bank.
  • Classification. A model proposes general ledger codes and vendor matches. Proposals are data until a rule or a person accepts them.
  • Reconciliation, deterministic balancing. Ordinary code checks that lines sum to totals, that a purchase order exists, and that vendor, invoice number and amount are not a duplicate.
  • Policy check, vendor verified independently. Bank details are compared with the vendor master. Any change is a new payee: it goes on hold and someone calls the vendor on a number already on file, never one from the invoice.
  • Dual approval, tamper-evident receipt. Two different people approve, neither of them the requester. Each decision is appended to a hash-chained log.

Separation of duties is an old control with a NIST name, AC-5 [4]. The agent era changes who the duties are separated from: the model is one more party that may propose but never approve. FinCEN's deepfake alert adds two warning signs for the callback itself: the other party tries to switch communication channels mid-check, or reports repeated technical glitches during live verification [5].

A model may draft, match and flag a payment. Releasing money takes two people and a callback on a number you already had.

Bounded stages; no single agent moves funds

Fig. 22
  1. ExtractionRead-only connector
  2. Classification
  3. ReconciliationDeterministic balancing
  4. Policy checkVendor verified independently
  5. Dual approvalTamper-evident receipt
A new account number is flagged for independent verification, never treated as authorized. Payment requires dual approval and leaves a tamper-evident receipt.

By the numbers

sent in 15 transfers after a deepfake video call at Arup [1]
US$25.6M
in business email compromise losses reported to the FBI in 2025 [2]
US$3.05B
frozen by the FBI's Recovery Asset Team in 2025, a 58% success rate [2]
US$679M
of 2025 breaches in IBM's study involved attackers using AI [3]
16%
of single-family offices reported a cyberattack in the prior 12 to 24 months [6]
43%
EventControlEvidence kept
New payee or changed bank detailsHold, callback to number on file, second person confirmsCall record, who called, number used
Request for secrecy or urgencyStop and escalate, never expediteEscalation ticket
Request to switch channel mid-verificationTreat as a red flag, restart on a channel you startNote in vendor file
Duplicate vendor, invoice and amountReject in reconciliationRejection receipt
Payment releaseTwo approvers, neither the requesterHash-chained approval receipts
Suspected fraud after releaseCall the bank and file with IC3 at onceCase number and timestamps
Payment events and the control each requires, drawing on FinCEN and FBI guidance [2][5]

The FBI recovery figures explain the last row. Its Recovery Asset Team froze about US$679 million in 2025 across 3,900 incidents, 58% of the attempted theft it handled [2]. Speed after the fact matters. Prevention before the release matters more, because 42% of the attempted theft it handled was not frozen. Deloitte's survey of 354 single-family offices shows how lean finance teams sit against this: 43% attacked recently, and 93% of those through phishing [6].

Implementation

The release gate is ordinary code. It accepts proposals from agents, enforces the vendor check and dual approval, and writes a receipt chain anyone can verify.

payment_gate.pypython
import hashlib, json, time
from dataclasses import dataclass, field

class Hold(Exception):
    pass

@dataclass
class Gate:
    vendor_master: dict[str, str]                 # vendor_id -> verified IBAN
    seen: set[tuple] = field(default_factory=set)
    receipts: list[dict] = field(default_factory=list)

    def _append(self, event: dict) -> None:
        prev = self.receipts[-1]["hash"] if self.receipts else "genesis"
        body = {**event, "ts": time.time(), "prev": prev}
        body["hash"] = hashlib.sha256(json.dumps(body, sort_keys=True).encode()).hexdigest()
        self.receipts.append(body)

    def propose(self, p: dict) -> str:            # called by the agent pipeline
        key = (p["vendor_id"], p["invoice_no"], p["amount_cents"])
        if key in self.seen:
            self._append({"event": "rejected_duplicate", **p}); raise Hold("duplicate invoice")
        if self.vendor_master.get(p["vendor_id"]) != p["iban"]:
            self._append({"event": "hold_bank_change", **p}); raise Hold("bank details differ from vendor master")
        self.seen.add(key)
        self._append({"event": "proposed", **p})
        return self.receipts[-1]["hash"]

    def release(self, proposal_hash: str, requester: str, approvers: list[str]) -> None:
        if len(set(approvers)) < 2 or requester in approvers:
            raise Hold("needs two approvers, neither the requester")
        self._append({"event": "released", "proposal": proposal_hash, "approvers": sorted(set(approvers))})

def verify_chain(receipts: list[dict]) -> bool:
    prev = "genesis"
    for r in receipts:
        body = {k: v for k, v in r.items() if k != "hash"}
        if r["prev"] != prev or hashlib.sha256(json.dumps(body, sort_keys=True).encode()).hexdigest() != r["hash"]:
            return False
        prev = r["hash"]
    return True

Updating the vendor master is its own workflow: a callback to the number on file, a second person's confirmation, and a receipt. Only then does a new IBAN pass propose. The bank credential sits with the release service. The agents never see it, and the extraction connector has read scopes only.

Ship the receipt chain to storage the payment team cannot edit, such as an object store with retention lock, so the evidence survives an insider.

Test it

Feed the pipeline the invoices a fraudster would send. Every one must stop before release.

test_payment_gate.pypython
import pytest
from payment_gate import Gate, Hold, verify_chain

INV = {"vendor_id": "v-17", "invoice_no": "INV-2291", "amount_cents": 4_850_000,
       "iban": "GB33BUKB20201555555555"}

@pytest.fixture
def gate():
    return Gate(vendor_master={"v-17": "GB33BUKB20201555555555"})

def test_changed_bank_details_are_held(gate):
    with pytest.raises(Hold, match="vendor master"):
        gate.propose({**INV, "iban": "GB94BARC10201530093459",
                      "note": "Urgent and confidential: use our new account"})

def test_duplicate_invoice_rejected(gate):
    gate.propose(INV)
    with pytest.raises(Hold, match="duplicate"):
        gate.propose(INV)

@pytest.mark.parametrize("approvers", [["ana"], ["ana", "ana"], ["requester", "ana"]])
def test_release_needs_two_independent_people(gate, approvers):
    h = gate.propose(INV)
    with pytest.raises(Hold):
        gate.release(h, requester="requester", approvers=approvers)

def test_receipts_are_tamper_evident(gate):
    h = gate.propose(INV)
    gate.release(h, requester="requester", approvers=["ana", "ben"])
    assert verify_chain(gate.receipts)
    gate.receipts[0]["amount_cents"] = 1
    assert not verify_chain(gate.receipts)

Expected result: all cases pass, and every hold leaves a receipt. Add to the release checklist:

  • A lost network response during release does not produce a second payment (idempotency key per proposal).
  • The agent's service account cannot call the release endpoint at all.
  • Callback records name the number dialed and show it came from the vendor master.
  • A drill with a fake changed-details email ends in a hold and an escalation, not a payment.

Decision

Automate the reading and matching. Keep release as a human control with two people, and treat any change in bank details as a new vendor.

  • Agents may: extract invoices, propose codes, reconcile, match payments to commitments, flag changes and draft the callback note.
  • Agents may not: change vendor bank details, hold payment credentials, or release funds.
  • Build: a release gate in ordinary code, a hash-chained receipt log on locked storage, and read-only connectors for ingestion.
  • Rehearse: a quarterly drill with a synthetic fraud email, and a written bank and IC3 contact path for the first hour after a bad release.

The cost is a slower release for changed vendors, often a day. That delay is the control.

Sources

  1. [1]Arup revealed as victim of $25 million deepfake scam involving Hong Kong employee (opens in a new tab)CNN, May 2024
  2. [2]2025 IC3 Annual Report (opens in a new tab)FBI Internet Crime Complaint Center, April 2026
  3. [3]IBM Report: 13% of Organizations Reported Breaches of AI Models or Applications, 97% of Which Reported Lacking Proper AI Access Controls (opens in a new tab)IBM Newsroom, July 2025
  4. [4]SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations (opens in a new tab)NIST, December 2020
  5. [5]FinCEN Alert on Fraud Schemes Involving Deepfake Media Targeting Financial Institutions, FIN-2024-Alert004 (opens in a new tab)FinCEN, November 2024
  6. [6]The Family Office Cybersecurity Report 2024 (opens in a new tab)Deloitte Private, October 2024

Technical guidance, not security certification or legal advice.

All Private AI articles