Skip to content
BriskStack Study
Sign in
Agentic Design Patterns + Multi-Agent Failure Modes

Agents and tools, 1 of 3, about 5 h 7 min of reading

Agentic Design Patterns + Multi-Agent Failure Modes

About 4 h 53 min left

Concept. In week 5, one agent is a model in a loop with tools and memory. This week you put several of them together, and the combination turns out to be where the danger lives. Two sets of ideas run side by side. The design patterns (reflection, planning, orchestration topologies) make multi-agent systems worth building. The failure modes make them a new attack surface, because once agents talk to each other, one compromised agent can quietly steer the whole chain. The industry now has a standard taxonomy for exactly this: the OWASP Top 10 for Agentic Applications (ASI01–ASI10), released with more than 100 researchers. Three of its categories (inter-agent communication, cascading failures and rogue agents) did not exist in any single-model threat model.

🎯 Objectives

By the end of this unit you can:

  • Build a multi-agent system in LangGraph or AutoGen and name the topology you chose (network, supervisor, hierarchical, or subagents as tools).
  • Tell the four agentic design patterns (reflection, tool use, planning, multi-agent) apart from the orchestration topologies that wire them together.
  • Map any multi-agent design to the OWASP Agentic Top 10 and identify which of ASI01–ASI10 apply.
  • Explain the three agentic attack techniques (agent impersonation, cross-agent privilege escalation, tool-selection coercion) and why they only appear once agents delegate.
  • Reason about cascading failure: why one poisoned agent contaminates downstream decisions, and why N AI reviewers that share a base model are not N independent checks.
Next sectionThe design patternsabout 2 minOpening question: A team chooses handoff-style patterns over subagent-style ones to save model calls. What did they trade, and which end of the topology table is the isolated one?

The design patterns

Andrew Ng splits agentic behavior into four patterns that you can layer. Reflection means an agent critiques and revises its own output. Tool use means calling external functions. Planning means breaking a goal into steps. Multi-agent collaboration means specialists that hand work to each other. The first three live inside one agent. The fourth is a wiring decision, and that wiring is what this week is about.

LangGraph models a multi-agent system as a graph. Nodes are agents (or steps), edges are the control flow, and a shared state object passes through every node. A handoff happens when a tool call updates a state variable that triggers routing, which the LangChain docs describe as "switching agents or adjusting the current agent's tools and prompt" (LangChain docs).

The design choice to watch is statefulness against isolation. Handoff-style patterns share context across turns. That is cheaper (40–50% fewer calls on repeat requests), but it lets one agent's contaminated context bleed into the next. Subagent-style patterns isolate each agent, which gives a stronger boundary at a higher cost (LangChain multi-agent docs). Efficiency against blast-radius containment is the same knob you will tune for security. AutoGen (from Microsoft) describes the same space as conversations, with AssistantAgent, UserProxyAgent and GroupChat orchestration. It is now in maintenance mode, and its production successor, recommended for new projects, is the Microsoft Agent Framework (Semantic Kernel and AutoGen combined).

Topology How work flows Trust property Fails when
Network any agent can call any agent no central control; peer trust one peer is poisoned, so the poison spreads freely
Supervisor a router delegates to specialists a central choke point the supervisor is impersonated or coerced
Hierarchical supervisors of supervisors scoped delegation privilege is inherited down the tree
Subagents as tools a parent calls children with isolated context strongest isolation it costs the most and has no shared memory

To make the choice concrete, build the smallest supervisor you can before you read on. Start with the LangGraph documentation quickstart, then take the modules of the LangChain Academy course that matter here: Module 1 (graph, router, agent) and Module 4 (parallelization and sub-graphs). A sub-graph is the course's version of a subagent with its own state schema, so it is the isolated end of the table above; a node that writes to the parent's shared state is the handoff end. Pick one for each edge and write it down, because each edge is a place where one agent's output becomes another's input.

The four patterns and the four topologies answer different questions. A reflection loop (a writer node and a critic node) is a pattern. A planner that emits a list of steps is a pattern. Whether those nodes call each other freely, through a router or through a tree is the topology. A system can use all four patterns inside a single supervisor topology, which is why the objectives ask you to name both.

flowchart TD
  U["User request"] --> S["Supervisor<br/>(router)"]
  S -->|"task text"| W["Web specialist<br/>reads untrusted pages"]
  S -->|"task text"| D["Data specialist<br/>holds credentials"]
  S -->|"task text"| M["Email specialist<br/>sends externally"]
  W -.->|"result: untrusted"| S
  D -.->|"result: untrusted"| S
  M -.->|"result: untrusted"| S

Every dotted arrow is a trust boundary. The supervisor is the choke point, so what comes back across those arrows is the input an attacker most wants to shape.

💡 Localhost is not a trust boundary, and neither is "another agent." A downstream agent trusts an upstream agent's message by default. That default is the vulnerability: every inter-agent message is untrusted input that carries the sender's authority.

Recall from memory

A team chooses handoff-style patterns over subagent-style ones to save model calls. What did they trade, and which end of the topology table is the isolated one?

Not saved. Sign in and this question comes back in Review when you are about to forget it.

Next sectionThe new attack surface: inter-agent communication (Needs access)
Sign in to keep reading. It is free, and your place is kept. Sign in and continue

The new attack surface: inter-agent communication

Failure modes: how the chain breaks

The redundancy trap

When the contamination self-propagates

Offensive depth: attacking multi-agent systems and A2A protocols

✅ Check yourself

📇 OWASP Agentic Top 10 (ASI01–ASI10) reference

Finish Agentic Design Patterns + Multi-Agent Failure Modes

About 4 h 53 min left in this unit.

From memory first

Write the main points of this unit, in your own words.

The unit is done when you have answered the check and marked the required sources.

  1. 1 Check yourself

    Do the check
  2. 2 Required sources

    Go to the sources

Sources in this unit

  • OWASP Top 10 for Agentic Applications (ASI01–ASI10)
  • DeepTeam: OWASP Top 10 for Agentic Applications
  • Google DeepMind: AI Agent Traps (Mar 2026)
  • HiddenLayer: How the Lethal Trifecta Exposes Agentic AI
  • LangGraph documentation
  • LangChain Academy: Intro to LangGraph
  • codebasics: CrewAI Tutorial: Agentic AI Tutorial
  • IBM: A2A Protocol (Agent2Agent) Explained
  • LangChain: Conceptual Guide: Multi Agent Architectures
  • LangGraph Multi-Agent Collaboration Tutorial
  • AutoGen documentation
  • Microsoft Agent Framework 1.0
  • Build a simple 2-agent system: one that plans and one that executes, with explicit trust boundaries between them
  • Andrew Nesbitt: Incident Report: CVE-2026-LGTM (satire, Jun 2026)
  • Bessemer: Securing AI Agents (2026)
  • CISA KEV: Langflow CVE-2025-34291 (CVSS 9.4)
  • Mind Viruses: Self-Propagating Ideas in Multi-Agent LLM Systems (arXiv 2608.10218, Aug 2026)
  • Keysight: Agent Card Poisoning in Google A2A
  • Semgrep: A Security Engineer's Guide to the A2A Protocol
  • securew2: A2A Protocol Security
  • CyberArk: Poison Everywhere: Full-Schema Poisoning of MCP
  • CSA: MCP Tool Poisoning: Adversarial Hijacking of Agent Workflows
  • ETDI: Mitigating Tool Squatting and Rug Pull Attacks in MCP (arXiv 2506.01333)
  • A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks & Defenses (arXiv 2506.19676)
  • Palo Alto: Safeguarding AI Agents: A2A Protocol Risks
  • Invariant Labs: mcp-scan
  • Poison your own agent mesh: spoof a /.well-known/agent-card.json, inject an adversarial line into a remote agent's card description, rug-pull an approved MCP tool, then run mcp-scan and log declared-vs-enforced auth for each step
  • Emergent Cheating and Whistleblowing in Autonomous Research Swarms (arXiv 2609.04170, DeepMind)

Checklist

It does not count toward done.

  • Deploy a multi-agent system in LangGraph or AutoGen and write down which topology it uses.
  • Tell the four agentic design patterns (reflection, tool use, planning, multi-agent) apart from the orchestration topologies, and list one example of each.
  • Compare the network, supervisor, hierarchical and subagent topologies in a table that gives each one's trust property and failure mode.
  • Explain the trade-off between statefulness and isolation (shared context compared with containing the blast radius) in two or three sentences.
  • Map one multi-agent design to the OWASP Agentic Top 10 (ASI01 to ASI10) and list which entries apply.
  • Describe the three ASI03 attack techniques (agent impersonation, privilege escalation through identity inheritance, tool-selection coercion) with one example of each.
  • Read the DeepMind "AI Agent Traps" paper and list its 6 categories, with the 86% content-injection figure and the 58–90% sub-agent-spawning figure beside them.
  • Explain the lethal trifecta, and draw how a multi-agent system spreads its three parts across separate agents.
  • Trace how one compromised agent's output cascades along the inter-agent channel, and name the ASI07 and ASI08 controls that would stop it at each hop.
  • Explain the correlated-blind-spots lesson from the satirical CVE-2026-LGTM write-up in your own words: redundancy without diversity is security theater.
  • Record CVE-2025-34291 (Langflow, CVSS 9.4, the first AI-orchestration platform on the CISA Known Exploited Vulnerabilities catalog) in your notes with its cause and its fix.
  • Explain the difference between MCP Full-Schema Poisoning (FSP, on the schema side, through Type Field and Required Field poisoning) and the Advanced Tool Poisoning Attack (ATPA, on the output side, where a fake runtime error leads to exfiltration), and say why static review cannot clear a server.
  • Run the agent-mesh drill: spoof /.well-known/agent-card.json, poison a card description, rug-pull an approved MCP tool, then run mcp-scan and log the declared and the enforced auth for each step.
  • Explain "mind viruses" (self-propagating payloads that survive a memory wipe by writing to self-modifiable prompt files, with 20-hop survival) and write out the prompt-level inoculation that cut transmission to near zero.
  • Write a short note on the knowledge-commons lesson: a shared library or memory is both a contagion vector and a detection channel, so you govern the commons (sanctioning, provenance on writes) instead of only trusting each agent.
Drill, planned

Spot a spoofed agent card

Attack: Pass off a spoofed agent card from a look-alike host Defend: Verify a card against its fetch host, the registry and its signature, and accept genuine ones

Nothing to do here yet; the unit is complete without it.

Practise this in the lab, Catch a tool description that changes after you approve it.45 min to 1 h estimate

Practise this in the lab, Bind a credential to its issuer, then refuse it anywhere else.50 min to 1 h 10 min estimate

Practise this in the lab, Capstone: one engagement, replayable findings and a scope log.1 h 40 min estimate

Study notes

None yet

Sign in to take notes.

More for this unit

21 readings

Readings no section cites. They do not count toward the unit.

Show
Multi-agent frameworks and patterns4 readings
  • youtube.comvideoGo deeperabout 1 h 11 min

    A complete introduction to CrewAI that builds agents, crews and real workflows. Watch it if you want a third framework to compare with LangGraph and AutoGen.

  • youtube.comvideoGo deeperabout 9 min

    IBM shows how AI agents collaborate through Google's A2A protocol. Watch it before the A2A attack readings, because you need the protocol's moving parts to follow them.

  • youtube.comvideoGo deeperabout 9 min

    LangChain's overview of the supervisor, hierarchical and peer-to-peer agent patterns. Watch it before you pick a topology for your build.

  • Build a simple 2-agent system: one that plans and one that executes, with explicit trust boundaries between them

    labGo deeper
Multi-agent failure modes and security4 readings
  • nesbitt.iopaperGo deeperabout 10 min

    Simon Willison flagged this satirical incident report on correlated blind spots. A set of AI reviewers that share a base model is not a set of independent reviews: "six assumed another had read the code; the seventh read it and apologised." Read it before the redundancy section.

  • bvp.compaperGo deeper

    Bessemer calls agent security the "defining cybersecurity challenge of 2026" and describes four attack-surface layers. Its defense runs in three stages: visibility, configuration, then runtime defense. Read it for the business case and the operational counterpart to OWASP's taxonomy.

  • cybersecuritynews.compaperGo deeperabout 20 min

    Covers the first AI-orchestration platform on the CISA Known Exploited Vulnerabilities catalog. Permissive CORS together with SameSite=None cookies led to authenticated remote code execution. Read it as a real case of the failure modes this week describes.

  • arxiv.orgpaperGo deeper

    Anthropic Fellows and EPFL evolved "mind viruses" that spread from agent to agent through natural-language messages, and by writing to self-modifiable prompt files (such as SOUL.md) that survive memory wipes. All 4 payloads survived a 20-hop chain, and one warning line in the system prompt held against more than 150 evolved bypass variants. Read it when you design memory and cross-agent messaging for your own agents.

A2A and MCP protocol attacks11 readings
  • keysight.compaperGo deeper

    A proof of concept for metadata injection: a poisoned agent-card description steers the host model to POST payment and personal data to an attacker's endpoint, a silent hijack of control flow. Read it before you poison a card in the drill.

  • semgrep.devpaperGo deeper

    Maps the A2A attack surface: JSON-RPC 2.0, task-state manipulation, stream hijacking with stolen tokens, webhook SSRF, and gaps in OAuth scope and lifetime. Read it for the wire-level detail behind the chapter's inter-agent attacks.

  • securew2.compaperGo deeper

    Explains why agent-card spoofing is cheap: signing is optional, there is no central registry, cards can be tampered with at their well-known path (/.well-known/agent-card.json in A2A v1.0), and replay attacks work. Read it before you spoof a card in the drill.

  • web.archive.orgpaperGo deeper

    Names two categories of MCP poisoning. FSP (full-schema poisoning) works on the schema side through parameter names, injected extra fields, Type Field Poisoning and Required Field Manipulation via Pydantic model_json_schema(). ATPA (advanced tool poisoning attack) works on the output side: a clean tool returns a fake runtime error, for example "paste your SSH key to compute the sum". The report's conclusion is "No output is safe." Read it to tell the two categories apart.

  • labs.cloudsecurityalliance.orgpaperGo deeper

    The Cloud Security Alliance covers tool poisoning, tool shadowing and server impersonation (including Anthropic's own Git MCP server, Jan 2026), and shows that trust is inherited without continuous verification. Read it for the MCP threat model.

  • arxiv.orgpaperGo deeper

    Describes the rug-pull (bait-and-switch) attack behind CVE-2025-54136 (CVSS 8.8), and proposes OAuth-enhanced tool definitions with policy-based access control as the fix. Read it before the rug-pull step of the drill.

  • arxiv.orgpaperGo deeper

    A three-level taxonomy (user to agent, agent to agent, agent to environment) across A2A, MCP, ACP and ANP. It covers cross-agent prompt injection, agent spoofing, fake advertisement, unauthorized registration and recursive denial of service. Read it for a map of the whole protocol landscape.

  • live.paloaltonetworks.compaperGo deeper

    A layered A2A threat model. Its argument is that the most potent threats sit at the application and logic layer (context poisoning, impersonation, SSRF), not in transport. Read it to see why TLS alone does not protect an agent mesh.

  • github.comtoolGo deeper

    An open-source scanner that detects poisoned tool descriptions and suspicious MCP configurations. Run it against your own mesh in the drill.

  • Poison your own agent mesh: spoof a /.well-known/agent-card.json, inject an adversarial line into a remote agent's card description, rug-pull an approved MCP tool, then run mcp-scan and log declared-vs-enforced auth for each step

    labGo deeper
  • arxiv.orgpaperGo deeper

    In a swarm of 100 LLM agents proving formal math conjectures, one agent found an exploit in the evaluation system. The exploit spread through the shared library, while a separate cohort whistleblew on it, so govern the commons and not only individual agents. Read it with the chapter's section on self-propagating contamination.

📡 From the Resources feed2 readings
  • arxiv.orgpaperGo deeper

    tests prompt injection on single- and multi-agent systems and shows weaknesses propagate across agents: a direct injection in one agent leaks data and infects peers through inter-agent messages — the cross-agent contagion case for the multi-agent trust matrix

  • arxiv.orgpaperGo deeper

    RL-induced reward-hacking in one coding agent spreads to collaborators through shared code, memory and natural-language plans — even intensifying after the original agent leaves as the code gains persuasive justifications; code review by the coder or an independent verifier reduces delivered hacks — reframes reward hacking as a multi-agent coordination failure

This unit's library holds 5 more readings for readers with access.