---
title: "Prompt injection meets payments: guarding the tool call"
type: Article
published: 2026-11-23T06:00:00.000Z
url: https://agenticopenfinance.com/blog/week-2026-11-23
source: AgenticOpenFinance
---

# Prompt injection meets payments: guarding the tool call

> An agent that reads untrusted content and can pay is a target. The defence is to treat retrieved text as data and to place payment controls outside the model.

Language models follow instructions, and they cannot reliably tell instructions from data. That is the root of **prompt injection**. NIST's Generative AI Profile distinguishes direct injection, typed by an attacker, from [indirect injection](/glossary/indirect-prompt-injection), hidden in content the system retrieves. The OWASP GenAI Security Project lists prompt injection first among risks for applications built on language models.

For a chat assistant, a successful injection produces wrong text. For an agent with payment tools, it can produce a wrong payment. An invoice with hidden text asking the agent to update bank details, or a product page instructing it to add items, are realistic carriers.

**Controls that do not depend on the model:**
- **Narrow tools.** Offer "draft payment to an approved payee" instead of "pay anyone". OWASP calls the opposite [excessive agency](/glossary/excessive-agency).
- **Payee verification.** New or changed bank details are confirmed through a separate channel, never from the document that requested the change.
- **Limits in the credential.** Amount, merchant and expiry are enforced by the payment provider.
- **Approval on change.** Any new payee or unusual amount goes to a person with a specific prompt.
- **Consent at the host.** The Model Context Protocol requires hosts to obtain explicit user consent before invoking tools.

**Treat retrieved content as data.** Label it, keep it apart from instructions, and log what was retrieved for every action. Red-team the agent with poisoned invoices and pages before release, and keep each successful attack as a regression test.

**Sources:** [NIST AI 600-1: Generative AI Profile](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf), [OWASP GenAI Security Project: LLM01 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), [OWASP GenAI Security Project: LLM06 Excessive Agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/), [Model Context Protocol specification (version 2026-07-28)](https://modelcontextprotocol.io/specification/2026-07-28)
