AI Safety & Alignmentprompt injectionLLM securityAI agent securitythreat modeling

Prompt Injection in Production Agents: A Practical Threat Model for B2B Systems

A practical prompt injection threat model for B2B AI agents: trust boundaries, attack surfaces, impact tiers, and the controls to demand from vendors.

Why Prompt Injection Is a Production Problem, Not a Demo Problem

Most prompt injection demonstrations are parlor tricks: a researcher coaxes a chatbot into revealing its system prompt or emitting a disallowed string. That framing has lulled many B2B teams into treating injection as a curiosity rather than an operational risk. The calculus changes the moment an agent has tool access, retrieval over proprietary data, and the authority to send, write, or execute.

A production agent is not a chat interface. It reads from your CRM, drafts emails to customers, calls internal APIs, and chains multi-step actions without a human reviewing each hop. Prompt injection stops being an output-quality issue and becomes an agent security issue with direct business consequences: data exfiltration, unauthorized transactions, regulatory exposure, and reputational damage that outlasts the incident.

It helps to keep two threats distinct, because they call for different controls. Jailbreaking is an attempt to defeat a model's own safety alignment—getting it to produce output it was trained to refuse. Prompt injection is untrusted content steering the agent's behavior, including the actions it takes with its tools. This article is about the second, because that is where production agents carry real blast radius.

The shift is measurable. A read-only FAQ bot that emits a wrong answer costs you a support ticket. An agent with a send-email tool and CRM write access that gets hijacked can exfiltrate a customer list to an attacker-controlled address in a single tool call—before any human sees the transcript. The difference between those two systems is not the model; it is the capability envelope around it. Teams that scope prompt injection work by model quality rather than by tool authority consistently underestimate their exposure.

This is why prompt injection is now a first-class item in LLM security, not just an academic curiosity. The OWASP LLM Top 10 lists it as LLM01—the top entry—in its 2025 edition. Treat that as a consensus ranking of severity, not a prevalence statistic, but the consensus is well founded. The core vulnerability is architectural: in current LLM systems, instructions and data arrive in the same token stream, and the model has no trustworthy way to mark one as "trusted" and the other as "inert." There is no cryptographic provenance on tokens and no separate privileged channel for the developer's intent.

Prompt-level defenses—delimiters, "ignore instructions in documents" boilerplate, role-play hardening—raise the cost of a casual attack, but none has survived adaptive evaluation. Research on indirect prompt injection has repeatedly shown that carefully phrased payloads get through instruction hierarchies and system-prompt reinforcement. That is an empirical record, not a mathematical impossibility, but it is consistent enough that planning around "the model will learn to ignore it" is not a security strategy. (See our guide to LLM security fundamentals for the broader attack landscape.)

The defining property of a production agent is that it acts. Every action it can take is a prompt injection payload's potential objective.

The rest of this article lays out a threat model engineering leaders can actually use—scoping trust boundaries, classifying injection types, running a repeatable modeling workflow, and specifying the controls to require from your own teams and your vendors. (For a framework-level comparison, see our breakdown of the OWASP LLM Top 10.)

A Practical Threat Model for Production Agents

A threat model is only useful if it maps to how your system is built. For agents, that means starting with where trust changes hands and what an attacker gains once they cross a boundary. The model below has three layers: boundaries, surfaces, and impact.

Trust Boundaries in Agent Architectures

Every agent architecture has at least four trust zones, and prompt injection exploits the seams between them:

  • System prompt and developer instructions — controlled by you, but visible to the model and leakable. Treat the system prompt as trusted for provenance, not confidential: assume it can be extracted, and never place credentials, secrets, or authorization logic in it. Authorization belongs in code the model cannot rewrite.
  • User input — semi-trusted; adversarial in multi-tenant or customer-facing deployments.
  • Retrieved and tool-returned content — untrusted by default, even when it comes from "internal" sources.
  • Third-party integrations — external APIs, plugins, and partner data feeds whose content your agent ingests blindly.

The critical insight: most teams treat retrieved content as trusted because it lives in their vector store. Anything an attacker can influence is untrusted, regardless of which system it passes through. A support ticket written by a customer, a vendor PDF, a wiki page any employee can edit, a calendar invite from an external domain—each is an attacker-writable channel that terminates inside your agent's context window. The vector store does not sanitize anything; it just makes hostile content easier to retrieve at exactly the wrong moment. (Related: securing RAG pipelines against data poisoning.)

Attack Surfaces: Where Untrusted Input Enters

Enumerate every ingress point. In a typical B2B agent you will find:

  • User chat and form inputs
  • Documents and RAG sources (uploaded PDFs, wikis, tickets)
  • Web browsing and search results
  • Email, calendar, and collaboration tool content
  • API responses and webhook payloads
  • Plugin and tool outputs
  • Multi-agent message passing between sub-agents

Each surface is a potential injection vector. The larger the surface, the more architectural—not prompt-level—your defenses must be. Two surfaces deserve special attention because they are routinely missed. First, tool outputs are inputs: an API response your agent parses for a customer record can carry injected text in a free-form notes field, and the agent will treat it as context on the next turn. Second, multi-agent handoffs compound risk: a sub-agent with narrower privileges can pass a poisoned summary to an orchestrator with broader ones, laundering untrusted content across a trust boundary the orchestrator never sees. The orchestrator effectively inherits the sub-agent's exposure while operating with more authority than the sub-agent had. (See designing least-privilege tool access for agents.)

Impact Tiers: From Data Leakage to Action Hijacking

Not all prompt injection attacks are equal. Classify impact so you can prioritize controls and communicate risk to stakeholders. The right-hand column names the control that most directly bounds each tier—none of them eliminates injection, but each caps the damage.

TierExampleBusiness ImpactPrimary Control
1 — Response manipulationAgent returns biased or false guidance; poisoned FAQ answerWrong decisions, support cost, eroded trustGrounding checks; source attribution; output review for high-stakes answers
2 — Data exposure / exfiltrationInjected content instructs the agent to summarize and send customer records to an external addressConfidentiality breach, regulatory exposure (e.g., PII/contract data), notification obligationsEgress allow-listing; no arbitrary URLs in tool calls; DLP on outbound content
3 — Unauthorized actionAgent is steered to issue a refund, change a record, or send a contractFinancial loss, integrity damage, customer harmLeast-privilege tool scopes; human approval for irreversible or high-value actions
4 — Privilege escalation / persistenceInjected content pushes the agent to invoke a broader tool, or plants instructions that re-trigger on later turnsAttacker gains standing capability; incident is harder to containTool-call authorization outside the model; per-turn re-validation; session isolation

The tiers are cumulative in severity, not in likelihood. Tier 1 is the most common and the least costly; the point of the model is to make sure your controls are proportionate to the highest tier your agent can actually reach. If your agent can reach Tier 3 or 4, prompt-level defenses are not your primary control—capability scoping is.

Running the Model: A Repeatable Workflow

A threat model that isn't run on every change is documentation, not security. Use this loop whenever you add a tool, a data source, or a new autonomous path:

  1. Inventory capabilities. List every tool, its scope, and whether its effects are reversible. Irreversible or externally visible actions drive the risk tier.
  2. Map ingress to capability. For each attack surface, ask which tools an attacker could reach through it. A ticket field that can influence a send-email tool is a Tier 2 path regardless of how "internal" the ticket system is.
  3. Assign impact tier. Use the table above. Record the highest tier each (surface → capability) path can reach.
  4. Attach controls to the highest tier, not the average. Controls should be sized to the worst reachable outcome, not the typical one.
  5. Re-run on change. New tool, new data source, new sub-agent, new integration = new model. Treat it as a required review gate, like a schema migration.

Controls That Actually Bound the Blast Radius

No control here solves prompt injection. The goal is defense in depth: assume some injected content will get through, and make sure what it can reach is small, visible, and reversible. Prioritize in this order.

1. Capability scoping (the highest-leverage control). Give each agent the minimum tool set and the narrowest scopes it needs, and separate read from write. An agent that only needs to read CRM records should not hold a send-email tool. Split broad agents into narrow ones with distinct privilege sets rather than granting one agent every capability.

2. Authorization outside the model. Never let the model be the thing that decides whether an action is permitted. Enforce tool permissions in code, per call, against the authenticated user's entitlements—not against what the prompt says. The model proposes; deterministic policy disposes.

3. Human approval for irreversible or high-value actions. Sending external email, moving money, deleting records, and changing contracts should require an explicit human confirmation step, with the proposed action shown plainly. This converts a potential Tier 3 incident into a Tier 1 annoyance.

4. Egress control. Restrict outbound destinations to an allow-list and scan outbound content for sensitive data. Most exfiltration payloads need the agent to send data somewhere; closing arbitrary destinations removes the simplest path.

5. Content provenance and taint tracking. Tag content by source and carry that tag through the pipeline so retrieved or tool-returned text is treated as untrusted downstream. This is hard to do fully in current stacks, but even coarse tagging—"this text came from an external document"—lets you apply stricter rules to it.

6. Detection and audit. Log every tool call with its inputs, the content that preceded it, and the user context. Alert on anomalies: a first-time external recipient, a burst of record reads, a tool invoked far outside its normal pattern. You will not prevent every injection; you want to catch the ones that get through before they complete.

7. Prompt-level hardening—as a layer, not a strategy. Delimiters, instruction-hierarchy reinforcement, and input filtering are worth doing because they raise attacker cost and catch low-effort attempts. Budget for them accordingly: they are speed bumps, not walls.

What to Demand From Vendors

When you buy an agentic product, you are buying its capability envelope and its controls. Ask specifically:

  • What tools can the agent invoke, with what scopes, and which actions are irreversible? Vague answers ("it's very capable") are a red flag.
  • Is authorization enforced outside the model? Ask where tool permissions are checked and against what identity.
  • Which actions require human approval, and can that be configured?
  • How is retrieved and tool-returned content treated—trusted or untrusted by default?
  • What is logged per tool call, and what anomaly detection runs on it?
  • How do you handle multi-agent handoffs—can a low-privilege sub-agent influence a high-privilege orchestrator?

A vendor that can answer these crisply has thought about injection as an architecture problem. One that answers with "our model is very well aligned" has not.

The Takeaway for Engineering Leaders

Prompt injection is not a prompt-engineering problem you can finish. It is an architecture and authorization problem you manage continuously. The teams that handle it well do three things: they scope agent capability to the minimum the task needs, they enforce authorization outside the model, and they put human approval in front of anything irreversible. Everything else—filtering, delimiters, detection—is a supporting layer.

The question to bring to your next architecture review is not "is our model robust to injection?" It is "if injected content gets through tomorrow, what is the worst thing this agent can do, and have we bounded it?"

ShareX / TwitterLinkedIn
← Back to Research