L7 · MAESTRO

Agent Ecosystem

Last reviewed 2026-05-08 · Status: published · Order 7 of 7
WHERE L7 LIVES ON THE AGENTIC REFERENCE ARCHITECTURE
Agentic reference architecture: L7 Agent Ecosystem highlighted APPLICATION USER INPUT OUTPUT AI AGENTS PLANNING TOOL CALLING ACTION MEMORY (short) MODEL LLM Function Calling AGENT peer / MCP CONTENT CODE DATA HITL DEVICE SERVICE LONG-TERM MEMORY VECTOR DATASTORE

L7 is the ecosystem the agent meets: the user and application above, peer agents on the side, and the services below.

The Agent Ecosystem layer covers everything outside the agent’s own stack that the agent communicates with, trusts, or can be influenced by. This includes the humans who interact with it, the third-party tools and services it invokes, the peer agents it delegates to or receives instructions from, and the protocols (MCP and A2A) that govern those interactions. L7 is where the agent’s trust boundary meets the world, and where adversarial influence that originates externally becomes an internal threat.

What lives here

  • Human-agent interaction surfaces: chat interfaces, API endpoints, voice channels, operator consoles
  • External tool integrations: third-party APIs, SaaS webhooks, browser-automation surfaces, file-system connectors
  • MCP servers: the external processes that expose tools and resources to agents via the Model Context Protocol
  • Peer agents in a multi-agent system: orchestrator-to-worker relationships, peer-to-peer delegation, shared-task coordination
  • A2A (Agent-to-Agent) protocol endpoints and the message-passing fabric between agent processes
  • Third-party agent services: externally operated agents that a local agent is authorised to delegate to
  • User-generated content that reaches the agent as input: emails, documents, web pages, form submissions
  • Supply chain for third-party tools and MCP servers: their dependencies, update channels, and signing status

The MAESTRO guide (Cloud Security Alliance, Ken Huang, 2025) identifies a MAS-specific threat unique to L7: malicious agent diffusion, where a single compromised or rogue agent introduces adversarial behaviour into the ecosystem by exploiting the trust that legitimate peers extend to it. This is the multi-agent analog of network worm propagation.

Concrete example: A software-development platform exposes an AutoGen orchestrator to external contributors via an API endpoint. An external contributor submits a task that includes a carefully crafted prompt embedded in a GitHub issue URL. The orchestrator fetches the issue, the injected text instructs a peer code-review agent to approve the contributor’s pull request and merge it without human sign-off. The entry point, an unauthenticated external surface at L7, drives an action that bypasses the HITL gate the operator believed was mandatory.

Threats that target this layer

  • T9 Identity Spoofing and Impersonation: in a multi-agent system, agents authenticate to peers and tools using certificates, tokens, or protocol-level identifiers. Spoofing a peer agent’s identity allows an attacker to issue instructions or receive responses intended for a legitimate participant. Because agents extend substantial trust to peers, identity spoofing at L7 often requires no further exploitation to produce impact.
  • T13 Rogue Agents in Multi-Agent Systems: an agent introduced into the ecosystem without operator authorisation (via supply-chain compromise, a misconfigured orchestration plane, or direct injection) can impersonate a legitimate participant and receive tasks, data, or trust it should not hold.
  • T14 Human Attacks on Multi-Agent Systems: adversarial humans who interact with one agent in the ecosystem to produce effects on the broader MAS: using a low-trust entry point to inject instructions that cascade through the agent network.
  • T15 Human Manipulation: social engineering attacks that target the human operators, reviewers, or users who interact with the agent at L7. An attacker who manipulates a human into approving a malicious action or into providing elevated credentials achieves impact through the human channel that no technical control at lower layers blocks.
  • T16 Insecure Inter-Agent Protocol Abuse: the L7 face of this threat is the ecosystem-level protocol: MCP server metadata, A2A handshake messages, capability advertisements, and peer discovery mechanisms. These are the attack surfaces an adversary targets before the framework layer even processes the message.

Mitigations anchored here

  • SPIFFE / SPIRE workload identity: issue SPIFFE/SPIRE workload identities to every agent process. In the ecosystem, SPIFFE identities allow peers to verify they are communicating with a legitimate, attested workload rather than an impersonator. The primary L7 control for T9.
  • inter-agent message signing: sign all inter-agent messages cryptographically. A message that cannot be verified as originating from a legitimate peer is rejected before it enters the receiving agent’s context. Closes the forgery vector in A2A communication.
  • per-agent trust scoring: maintain per-peer trust scores updated from observed behaviour, incident history, and attestation status. A peer whose score drops below threshold receives reduced delegation rights or is quarantined. The primary L7 control for T13 and T16.
  • multi-agent consensus: for high-consequence decisions, require agreement from multiple independent peer agents before proceeding. Prevents a single rogue or compromised peer from unilaterally directing an action.
  • tool description validation: validate MCP tool descriptions against a pre-approved schema or registry before the framework layer processes them. Malicious tool descriptions are the primary injection vector from MCP servers (T16).
  • insider-threat program: a structured program for detecting and responding to insider threats from human operators who have legitimate access to the ecosystem. Covers anomalous access patterns, privilege escalation by humans, and misuse of administrative interfaces.
  • restricted link rendering: prevent agents from rendering or following hyperlinks or embedded references in user-generated content without explicit policy approval. Limits the content-injection surface from untrusted documents (T15, T14).

How L7 relates to its neighbours

L7 sits at the top of the MAESTRO stack above L5 Evaluation and Observability. L5 provides the tracing and logging infrastructure that makes L7 interactions visible; without L5 instrumentation on A2A and MCP traffic, L7 threats are largely undetectable. The relationship is also upstream: adversarial input that enters at L7 (via a malicious MCP server, a manipulated user, or a rogue peer) propagates downward through L3 (framework), L2 (data), and potentially L1 (if the input influences training).

L7 also has the most direct relationship with L6 Security and Compliance: the third-party due diligence program, the ecosystem trust policy, and the identity governance rules that determine which peer agents are permitted are all L6 policies whose scope of application is the L7 ecosystem.


L7 is the layer at which the agent encounters the world as an adversary would approach it: through social engineering, protocol manipulation, supply chain compromise, and identity spoofing. Controls at lower layers reduce the damage when L7 is breached; L7 controls are the first line of defence.

All threats tagged to this layer

Every threat whose maestroLayers list includes L7. The prose above may discuss a subset; this list is the complete index.

Upstream sources