Invoicing · 19 / 26

Threat Model

A STRIDE threat model of the receivables platform: data flow and trust boundaries, threat register, OWASP mapping, attack tree and residual risk.

Scope and method

This model covers the receivables platform, the AI (artificial intelligence) and tool gateways, the clause index and the telemetry path. It uses STRIDE to walk each element of the data flow diagram, and maps the results to the OWASP Top 10 for LLM Applications and to MITRE ATLAS techniques. Each threat has a control and a test in the evaluation plan.

AssetWhy it matters
Ledger integrityApplications, credits and write-offs change what customers owe and what the company reports
Cash and refund destinationsMisdirected money is lost money
Customer financial dataBank details, contacts and payment behaviour
Pricing and contract termsCommercially sensitive and the basis of every invoice
AvailabilityMonth-end close depends on cash being applied
Keys and credentialsProvider keys, project keys and backend credentials
Customer trustA wrong dunning notice or a misapplied payment damages a relationship

Data flow and trust boundaries

Data flow and trust boundaries Customers, banks and attackers reach the intake from the internet. The orchestrator and agents in the application zone call the AI gateway and models in the AI zone, the tool gateway and ERP in the enterprise zone, the clause index and the lakehouse, and hand exceptions to the review desk. Each boundary crossing is scanned or authorised. INTERNET Customer and bank remittances · files · email Attacker or compromised sender APPLICATION ZONE Intake auth · size limits · scan Orchestrator and agents pipeline · agents Clause index contracts AI ZONE AND DATA AI gateway Prisma AIRS scans Models providers Lakehouse traces · evals ENTERPRISE ZONE Tool gateway scopes · basis · audit ERP and ledger Review desk people Trust boundaries: internet to application, application to AI, application to enterprise. Every crossing is scanned or authorised.
Four zones and the arrows that cross between them. Each crossing carries a control.

The attacker is outside, but may also be a legitimate sender who goes beyond what they should do, or a compromised mailbox. Attacks arrive inside content: a remittance PDF (Portable Document Format), an email body, a retrieved contract or a customer-entered note.

Threat register

ID (identifier)ThreatSTRIDEControlsResidualVerified by
T1Hidden instructions in a remittance to redirect or misapply cashTamperingInput scan; structured extraction; apply_cash needs a basis and ownership checkLowAdversarial set A1 to A8
T2Indirect injection through a retrieved contract clause or a customer noteTamperingScan on retrieved text; strip notes from tool results; citation checksLowAdversarial set B1 to B6
T3Asking an agent for another customer's balance or payment historyInformation disclosureTopic guardrail; ownership check on every tool; no cross-customer toolLowPrivacy set P1 to P10
T4Bank detail change fraud: a forged email asking to change refund detailsSpoofingNo tool changes bank details; call-back verification by a person; alert on change requestsMediumProcess drills
T5Misapplication of cash through a crafted or mistaken referenceTamperingCustomer match before invoice match; threshold on scored matches; reversible entriesLowMatch evaluation set
T6Credit issued by persuasion or manipulationTamperingCredits need approval above the limit; evidence from tools; credit tools are not callable by agents without a tokenVery lowContract tests, release gate
T7Exfiltrating data through a note field or a drafted messageInformation disclosureOutput scan with data-loss detection; length and format limits; messages need approvalLowExfiltration set X1 to X5
T8System prompt or tool definition leakageInformation disclosureNo secrets in prompts; topic guardrail; scan on outputsLowAdversarial set A9 to A12
T9Credential theft: provider keys, project keys, backend credentialsInformation disclosureKeys only in the gateways; rotation; secrets scanning in codeLowSecrets scan in CI (continuous integration), access review
T10Denial of wallet or service by floods of large attachmentsDenial of serviceSize limits at intake; per-key budgets and rate limits; token cap per itemMediumLoad tests, budget alerts
T11Poisoned contract clause in the indexTamperingSource review and signed ingestion; effective dates; citations shown to the approverMediumIngestion tests, clause diff review
T12Compromised provider or alias repoint to a worse modelTamperingAlias changes gated by the evaluation set; provider terms; fallback testedLowRelease gate
T13Excessive agency: a tool that can do more than the flow needsElevation of privilegeMinimal scopes per tool; no delete tools; writes need a basis and an approval where requiredLowScope review each release
T14Telemetry or analytics expose bank details or contactsInformation disclosureDrop or hash in the collector; masks in the lakehouse; telemetry auditLowTelemetry scan
T15Insider misuse of the review desk or lakehouseRepudiationRole-based access; audit of every unmask; least privilege; four-eyes on write-offsMediumAccess review, audit sampling

Mapping to the OWASP Top 10 for LLM Applications

RiskWhere it shows up hereThreatsPrimary control
Prompt injectionRemittances, emails, contracts, notesT1, T2Scans and structured extraction
Sensitive information disclosureDrafts, tools, logsT3, T7, T14Ownership checks, output scan, redaction
Supply chainModels, libraries, vendor platformsT9, T12Provider terms, dependency scanning, gated changes
Data and model poisoningClause index, evaluation setsT11Reviewed, signed ingestion
Improper output handlingModel output passed to toolsT1, T7Schema validation, tool-side checks
Excessive agencyTool scopes and write pathsT5, T6, T13Minimal scopes, basis and approval
System prompt leakageInstructions and tool definitionsT8No secrets in prompts
Vector and embedding weaknessesClause retrievalT3, T11Filters at query time, source control
MisinformationA wrong clause or amount stated as factT11Citations, grounding check, decline without a source
Unbounded consumptionFloods and long inputsT10Budgets, rate limits, size limits

An attack tree: get a refund sent to the wrong account

  1. Goal

    Redirect money owed to a customer to an attacker's account.

  2. Path A · Talk the agent into it

    Blocked at the input scan, and no agent tool can change bank details at all.

  3. Path B · Forge a change-of-bank email

    The request becomes a task for a person. Changes need call-back verification to a known contact.

  4. Path C · Hide instructions in a remittance

    Scanned and extracted into a schema. Extracted text never becomes an instruction to a tool.

  5. Path D · Compromise an account in the portal

    Portal logins and signed links are separate from the agents, and bank detail changes are not available there.

  6. Result

    No single control carries the whole defence, so no single failure moves the money.

Hidden instructions in a remittance blocked at the scan An attacker sends a remittance with hidden text instructing the platform to apply the payment elsewhere. The extracted text is scanned, the scan blocks it, and the item goes to a clerk. A security event records the block without the content. Attacker Intake Prisma AIRS Orchestrator Review desk remittance with hidden instructions extract text from the file scan extracted text block: indirect injection item blocked, reason code route to clerk, no content The model never sees the hidden text.
Hidden instructions in a remittance blocked at the scan

If a scan ever missed it, the later controls still hold: apply_cash needs a basis and an ownership check, and bank details cannot be changed by any tool.

A forged change-of-bank request An email asks the company to refund a credit to a new bank account. The platform classifies it as a bank change request, which no tool can perform. A task goes to the credit manager, who verifies by calling a known contact before anything changes. Attacker Intake Orchestrator Credit manager Known contact Audit log email: use new bank details classify: bank change request task: verify by call-back audit: request received call the number on file we did not ask for this reject, flag sender block sender, notify security
A forged change-of-bank request

The control is a person and a known channel. The platform's job is to recognise the request and make sure nothing else can act on it.

Security testing

Residual risk and acceptance

RiskResidualOwnerDecision
Bank detail change fraud (T4)MediumCredit manager and securityAccepted with call-back verification and alerting
Poisoned clause (T11)MediumCommercial operationsAccepted with source review and diff approval
Denial of wallet (T10)MediumPlatformAccepted with budgets and alerts
Insider misuse (T15)MediumSecurityAccepted with audit and four-eyes on write-offs

Residual ratings are illustrative. Review the model whenever a tool, channel or data source is added.

Build this for your business

This example is a receivables platform for a distributor, but the same pattern, deterministic financial rules, a governed gateway, runtime security, grounded evidence and measured quality, fits any back-office process that moves money. We can scope a pilot on your own systems.

Book a discovery call