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.
| Asset | Why it matters |
|---|---|
| Ledger integrity | Applications, credits and write-offs change what customers owe and what the company reports |
| Cash and refund destinations | Misdirected money is lost money |
| Customer financial data | Bank details, contacts and payment behaviour |
| Pricing and contract terms | Commercially sensitive and the basis of every invoice |
| Availability | Month-end close depends on cash being applied |
| Keys and credentials | Provider keys, project keys and backend credentials |
| Customer trust | A wrong dunning notice or a misapplied payment damages a relationship |
Data flow and trust boundaries
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) | Threat | STRIDE | Controls | Residual | Verified by |
|---|---|---|---|---|---|
| T1 | Hidden instructions in a remittance to redirect or misapply cash | Tampering | Input scan; structured extraction; apply_cash needs a basis and ownership check | Low | Adversarial set A1 to A8 |
| T2 | Indirect injection through a retrieved contract clause or a customer note | Tampering | Scan on retrieved text; strip notes from tool results; citation checks | Low | Adversarial set B1 to B6 |
| T3 | Asking an agent for another customer's balance or payment history | Information disclosure | Topic guardrail; ownership check on every tool; no cross-customer tool | Low | Privacy set P1 to P10 |
| T4 | Bank detail change fraud: a forged email asking to change refund details | Spoofing | No tool changes bank details; call-back verification by a person; alert on change requests | Medium | Process drills |
| T5 | Misapplication of cash through a crafted or mistaken reference | Tampering | Customer match before invoice match; threshold on scored matches; reversible entries | Low | Match evaluation set |
| T6 | Credit issued by persuasion or manipulation | Tampering | Credits need approval above the limit; evidence from tools; credit tools are not callable by agents without a token | Very low | Contract tests, release gate |
| T7 | Exfiltrating data through a note field or a drafted message | Information disclosure | Output scan with data-loss detection; length and format limits; messages need approval | Low | Exfiltration set X1 to X5 |
| T8 | System prompt or tool definition leakage | Information disclosure | No secrets in prompts; topic guardrail; scan on outputs | Low | Adversarial set A9 to A12 |
| T9 | Credential theft: provider keys, project keys, backend credentials | Information disclosure | Keys only in the gateways; rotation; secrets scanning in code | Low | Secrets scan in CI (continuous integration), access review |
| T10 | Denial of wallet or service by floods of large attachments | Denial of service | Size limits at intake; per-key budgets and rate limits; token cap per item | Medium | Load tests, budget alerts |
| T11 | Poisoned contract clause in the index | Tampering | Source review and signed ingestion; effective dates; citations shown to the approver | Medium | Ingestion tests, clause diff review |
| T12 | Compromised provider or alias repoint to a worse model | Tampering | Alias changes gated by the evaluation set; provider terms; fallback tested | Low | Release gate |
| T13 | Excessive agency: a tool that can do more than the flow needs | Elevation of privilege | Minimal scopes per tool; no delete tools; writes need a basis and an approval where required | Low | Scope review each release |
| T14 | Telemetry or analytics expose bank details or contacts | Information disclosure | Drop or hash in the collector; masks in the lakehouse; telemetry audit | Low | Telemetry scan |
| T15 | Insider misuse of the review desk or lakehouse | Repudiation | Role-based access; audit of every unmask; least privilege; four-eyes on write-offs | Medium | Access review, audit sampling |
Mapping to the OWASP Top 10 for LLM Applications
| Risk | Where it shows up here | Threats | Primary control |
|---|---|---|---|
| Prompt injection | Remittances, emails, contracts, notes | T1, T2 | Scans and structured extraction |
| Sensitive information disclosure | Drafts, tools, logs | T3, T7, T14 | Ownership checks, output scan, redaction |
| Supply chain | Models, libraries, vendor platforms | T9, T12 | Provider terms, dependency scanning, gated changes |
| Data and model poisoning | Clause index, evaluation sets | T11 | Reviewed, signed ingestion |
| Improper output handling | Model output passed to tools | T1, T7 | Schema validation, tool-side checks |
| Excessive agency | Tool scopes and write paths | T5, T6, T13 | Minimal scopes, basis and approval |
| System prompt leakage | Instructions and tool definitions | T8 | No secrets in prompts |
| Vector and embedding weaknesses | Clause retrieval | T3, T11 | Filters at query time, source control |
| Misinformation | A wrong clause or amount stated as fact | T11 | Citations, grounding check, decline without a source |
| Unbounded consumption | Floods and long inputs | T10 | Budgets, rate limits, size limits |
An attack tree: get a refund sent to the wrong account
Goal
Redirect money owed to a customer to an attacker's account.
Path A · Talk the agent into it
Blocked at the input scan, and no agent tool can change bank details at all.
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.
Path C · Hide instructions in a remittance
Scanned and extracted into a schema. Extracted text never becomes an instruction to a tool.
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.
Result
No single control carries the whole defence, so no single failure moves the money.
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.
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
- A versioned adversarial set of injections, extraction attempts and tool-abuse cases runs in the release gate.
- A red-team campaign, automated and human, runs before launch and every quarter. Findings become test cases.
- Cross-account and basis contract tests run on every tool in every build.
- Telemetry and tables are scanned for bank details and contacts after each release.
- A tabletop exercise walks through T4 and T14 twice a year.
Residual risk and acceptance
| Risk | Residual | Owner | Decision |
|---|---|---|---|
| Bank detail change fraud (T4) | Medium | Credit manager and security | Accepted with call-back verification and alerting |
| Poisoned clause (T11) | Medium | Commercial operations | Accepted with source review and diff approval |
| Denial of wallet (T10) | Medium | Platform | Accepted with budgets and alerts |
| Insider misuse (T15) | Medium | Security | Accepted 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