Attack Surface vs Attack Vector in Cloud-Native Systems
In AI agents, exposed components double as attack paths.

In cloud-native AI agent systems, attack surface and attack vector are no longer cleanly separable. The reasoning layer, tool calls, and retrieval pipelines are both exposed components and pathways for exploitation. Securing these systems therefore requires more than an inventory of entry points. It requires tracing how untrusted content becomes an instruction, an authorized tool call, and a change to data or state.
Why the classical definitions break down in agentic AI environments
Practitioners were trained to distinguish the exposed area of a system from the path an attacker takes to exploit it. Traditional definitions assumed deterministic software, a stable perimeter that could be mapped, and discrete routes through that perimeter. The application processed input and returned output. Under that model, identifying the input boundary provided a practical starting point for separating surface from vector. An agent that plans, replans, and executes autonomously does not preserve that separation.
Instead, the agent reaches outward to consume documents, web pages, tool outputs, and messages from other agents. Its task determines which sources it encounters, while its reasoning determines what happens to their contents. Material encountered during execution can redirect later decisions, so a component that appears passive in an architectural inventory can become an active route to privileged operations.
ISACA's 2026 industry analysis frames AI as an attack enabler, an attack surface, and a defender asset. That tripartite role exceeds the inherited vocabulary. For agent security, familiar threat categories alone cannot explain how the decisions an agent makes on its own connect to the systems it can affect. Applying STRIDE or conventional penetration testing without extending the analysis produces systematically incomplete results. Such assessments identify familiar threats but miss the multi-step, goal-oriented, stateful attack chains that require the agent's own execution to unfold.
What the attack surface of an AI agent actually contains
The endpoint is the first of at least four structurally distinct layers. Coding agents and task-execution agents use local file systems, shell access, and configuration files to do their work. The second layer is the API and tool gateway, where agents call external tools and exchange instructions through MCP servers and plugin interfaces. Here, the deployment inherits the trust model of every server to which the agent connects.
The third layer is made up of persistent memory stores, vector databases, and retrieval-augmented generation pipelines. Persistence changes the scope of an exposure. Unlike session-scoped input, poisoned memory can remain available across sessions and projects. The fourth layer consists of the identities and credentials agents need to access databases, cloud services, and code repositories. As agents accumulate entitlements without systematic review, their credential footprint grows beyond the access required for an individual task.
Non-human identity sprawl leaves more exposed across all four layers. Machine-to-human identity ratios in enterprise clouds have reached roughly a hundred to one, making the credential surface much larger than the human-managed one. Credentials connect these layers to resources the agent can affect. MATRA, a threat modeling framework demonstrated on the OpenClaw agent, shows how architectural patterns determine which parts of the surface are reachable. Its treatment of network sandboxing and least-privilege access distinguishes the resources present in a deployment from those a successful injection can actually touch.
How agentic workflows blur the line between surface and vector
A surface map identifies components, but it does not explain how the agent turns their contents into actions. In a conventional application, the surface is passively exposed and the vector is the active path an attacker selects. In an agentic workflow, planning and replanning can perform that conversion. The agent takes material from a retrieved document, tool output, or inter-agent message and uses it to decide what to do next. The boundary between instructions and data is where this can go wrong.
Attacker-controlled content in those channels consequently has two roles. It is part of the surface because the agent encounters it, and it becomes a vector when it redirects execution. MATRA makes the architectural relationship explicit. Failures arise not only from model behavior in isolation, but also from the connections between model outputs and privileged tools, databases, retrieval pipelines, and downstream services. Those connections are exposed parts of the system and routes through which a compromised decision takes effect.
Multi-agent systems extend this relationship beyond a single execution loop. Inter-agent communication is both a critical surface and an active propagation vector. A prompt injection can self-replicate across interconnected agents, allowing one entry point to produce system-wide disruption. The attack chain thus runs from ingestion through reasoning, tool calls, state changes, and downstream agents. A model that stops where malicious content first entered cannot explain how a local exposure becomes a distributed failure.
Prompt injection as the vector that most fully exploits the collapsed boundary
Indirect prompt injection exploits this dual role most directly. It enters through material the agent is designed to consume, including retrieved documents, emails, and tool outputs, and uses the agent's reasoning to redirect action. The structural condition combines access to private data, exposure to untrusted content, and the ability to communicate externally or execute tools. Those capabilities support the agent's intended work. Their combination makes the vulnerability architectural rather than an incidental defect at a single input field.
CVE-2026-24307, Reprompt in Microsoft Copilot Personal, enabled single-click data exfiltration through URL parameter injection with zero user-entered prompts. CVE-2025-54135 caused Cursor's agent to create a malicious MCP configuration without user approval, leading to remote code execution. In the February 2026 OpenClaw incident, an agent ignored stop commands and deleted user emails. This shows how corrupted reasoning can lead an agent to act on its own, a different kind of harm from exfiltration.
Flowise CVE-2025-59528, disclosed in September 2025 and actively exploited in April 2026, let attackers use CustomMCP configuration for remote code execution on a large number of exposed instances. One malicious configuration could give an attacker full control of the server. Beyond that vulnerability, MCP's trust model means a compromised server can extend its reach across connected agents and tools. The local configuration surface therefore cannot be assessed separately from the connections it enables.
Researchers also found and recorded injection payloads on web pages anyone could access, with full details of payment transactions. The payloads told agents with payment integration to make the transactions without asking the user to confirm. The web page was the exposed surface. The instructions sought to turn that exposure into payment execution through the agent's own capabilities, without requiring the attacker to invoke the payment tool directly.
Why tool-call arguments are the blind spot that surface-level monitoring misses
Invocation-level monitoring records which tool was called and when, but attacks often reside inside the arguments. Values, payload shape, operation type, and provenance reveal distinctions that a tool name and timestamp cannot expose. Permission to call a tool is not permission for every use of it. An agent may legitimately invoke a file-write tool while an untrusted source supplies the destination path and content. The invocation appears authorized even though the arguments encode the attack.
Tool-call argument analysis addresses this mismatch between permitted capability and unauthorized content. Flat invocation-level monitors cannot distinguish the origin or semantic role of argument values, producing false positives or false negatives. PACT, Provenance-Aware Capability Contracts, assigns semantic roles to tool arguments and tracks value provenance across replanning steps. It then checks whether each argument's origin satisfies its role-specific trust contract. Under oracle provenance conditions, PACT achieves full utility and full security on mixed-trust diagnostic suites where flat monitors fail on at least one dimension. That qualification bounds the result rather than establishing equivalent performance under every runtime condition.
The VIGIL framework uses symbolic evaluation to check execution traces against behavioral policies. It checks temporal dependencies, how arguments relate to one another, and how values flow across multiple tool calls. Some violations become detectable only by inspecting several steps, even when inspection of a single call includes its arguments. The practical implication is to enforce the detection boundary at argument level and retain provenance across the full replanning chain, so that a permitted tool cannot obscure the untrusted origin of its requested action.
Threat modeling approaches that map the full attack chain rather than the boundary
MATRA constructs attack trees that connect confidentiality, integrity, and availability impact scenarios to attacker objectives, techniques, and architecture-specific vectors. Starting with impact ties the analysis to what the deployment can lose or damage. The framework includes both adversarial manipulation and non-adversarial pathways. In the latter, unexpected LLM behavior combines with autonomous tool execution to produce high-impact outcomes without requiring a deliberate attacker at every step.
The five-zone scenario-driven approach provides a complementary way to follow the same chain. Its zones comprise direct user input, environment data the agent reads, tool call exchanges, persistent state and memory, and inter-agent communication. Each zone can be both a surface and a vector. Where MATRA connects impacts to architecture-specific attack paths, the zone model helps locate the transitions through which malicious content propagates. Practitioners may use either method or combine them according to the deployment and the assessment's purpose.
The May 2026 Five Eyes guidance, issued by CISA, NSA, and counterparts in the UK, Canada, Australia, and New Zealand, named prompt injection as a core manipulation mechanism. It also stressed that no single safeguard is sufficient. That position supports defense in depth across zones rather than reliance on one ingestion check or permission boundary. Different stages of the same chain expose different opportunities to constrain an attack.
Of eight major AI-related incidents documented from January through April 11, 2026, only one received a CVE identifier. The rest stemmed from misconfiguration, excessive agency, supply-chain failure, or prompt injection. A CVE-focused assessment would therefore omit much of that record. Threat modeling must account for how an agent is configured and allowed to act, as well as for defects in the software it uses.
Controls that reflect the collapsed surface/vector model: minimal, argument-aware, and verifiable
For practitioners, the control objective is to constrain the full execution chain without disabling approved work. That requires least privilege for identities and credentials, argument-level provenance enforcement at runtime, and behavioral verification before production. Microsoft's guidance adds “least agency” to least privilege. A minimally permissioned agent can still have excessive autonomy, because permissions define accessible resources while autonomy determines how independently the agent can act on them.
ISACA's analysis recommends a layered, secure-by-default approach with clear governance and ownership. Its controls include strong identity protections, least privilege, isolated execution environments, protected data and memory, pre-action policy enforcement, continuous behavioral monitoring, and resilience mechanisms. These controls address different stages of execution. MATRA's OpenClaw case study demonstrates quantitatively how network sandboxing and least-privilege access limit the propagation of a successful injection. They reduce blast radius rather than eliminate exposure, leaving the surface present while bounding the vector's reach.
Agent behavior is nondeterministic, so one successful test run does not prove a safeguard. Approved workflows must be re-run after every change to test whether the fix stops the attack and preserves intended execution. The evidence must be reproducible. Opinion-based risk assessments cannot establish that a control behaves correctly across the workflow it is meant to protect.
The target is the smallest safeguard that stops the attack without disrupting approved workflows. Over-constraining an agent can close legitimate capabilities and create pressure to roll back controls. Small, targeted fixes avoid that tradeoff when they are applied in isolated environments and checked against real workflow traces. Their precision depends on understanding where exposed content becomes authority, action, and persistent state. A richer surface/vector framework is therefore a prerequisite for effective controls because controls designed around a clean separation will be incomplete or misconfigured where exposure and exploitation are entangled.


