Skip to content
BriskStack Study
Sign in
Core Concepts of Agentic AI

Foundations, 4 of 5, about 2 h 40 min of reading

Core Concepts of Agentic AI

About 2 h 27 min left

Concept. An AI agent is a large language model (LLM) placed inside a Perceive, Plan, Act loop with memory and tools, and every step of that loop is a place where trust can be poisoned. A chatbot answers; an agent acts. This week builds the mental model the attack weeks target: what an agent is, how the spectrum from workflow to agent is constructed, and where the security boundaries live or fail. This week is engineering foundation, because you cannot threat-model a machine you cannot draw.

๐ŸŽฏ Objectives

By the end of this unit you can:

  • Draw the Perceive-Plan-Act(-Self-Correct) loop and place an agent's four building blocks (LLM controller, planning, memory, tool use) onto it.
  • Distinguish a workflow (predefined code paths) from an agent (an LLM directs its own process), and name the five composable workflow patterns.
  • Locate the trust boundary in an agent, the seam where trusted instructions meet untrusted content, and explain why it cannot be filtered away.
  • Apply the Cognitive Threat Model: identify how each loop step (perception, planning, memory, action) can be independently corrupted.
  • Recognize the lethal trifecta in a real agent configuration and say why the combination, not any single capability, is the risk.
  • (Go deeper) Build four agent controls on a local mock agent (a recipient gate in the tool, a URL allowlist in the renderer, provenance on memory writes, hidden-text stripping), measure each, and name the attack that gets past it.
Next sectionThe anatomy of an agentabout 1 minOpening question: Where does a human-in-the-loop approval gate belong in an agent, and what evidence does the chapter give for it?

The anatomy of an agent

Strip away the hype and an LLM-powered agent is four parts wired together. Lilian Weng's decomposition, the post most of the field cites, names them: an LLM as controller (the "brain" that decides), planning (decompose a goal into sub-goals and refine them through self-reflection), memory (short-term in-context memory plus long-term external vector stores), and tool use (call APIs for anything not in the model's weights) (Lilian Weng). Anthropic describes the same substrate as the augmented LLM, a base model enhanced with retrieval, tools and memory, and treats it as the atom from which everything larger is composed (Anthropic).

Planning is where "agentic" earns its name, and three techniques recur. Chain-of-Thought (CoT) spends test-time compute to break a hard task into ordered simple steps. ReAct interleaves reasoning and action in a Thought, Action, Observation cycle, so the model can react to what the environment returns. Reflexion adds self-reflection and dynamic memory, so an agent can detect its own inefficient plans or hallucinations and retry (Lilian Weng).

Memory maps to human cognition in three layers: sensory (embeddings of raw input), short-term (the context window), and long-term (external stores queried by Maximum Inner Product Search (MIPS) indexes such as FAISS or HNSW). That is why retrieval-augmented generation (RAG, RAG SystemsRAG security, 1 of 2, about 5.4 h) is really an agent's long-term memory subsystem.

๐Ÿ’ก The loop is the unit of analysis, not the model. The PPAS paper formalizes the loop as Perceive, Plan, Act, Self-Correct. The loop descends directly from classical agent theory (BDI, OODA, SOAR), and the paper maps at least 15 modern frameworks onto an 8-layer stack (foundation models, orchestration, memory, tools, protocols, planning, apps, observability). It also reports, as a single-author preprint not marked peer reviewed, that reflective planning with a human-in-the-loop approval gate cut irreversible-action failures by 73%, a figure the paper gives in its abstract. That gate is your first defensive primitive. PPAS

Recall from memory

Where does a human-in-the-loop approval gate belong in an agent, and what evidence does the chapter give for it?

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

Next sectionWorkflows and agents: the autonomy spectrum (Needs access)
Sign in to keep reading. It is free, and your place is kept. Sign in and continue

Workflows and agents: the autonomy spectrum

Where trust breaks: the cognitive threat model

Agent protocols: which one connects what

Carrying this forward

Offensive depth: attacking AI agents

Go deeper: defending the agent you just attacked

โœ… Check yourself

๐Ÿ“‡ Agent concept reference

Finish Core Concepts of Agentic AI

About 2 h 27 min left in this unit.

From memory first

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

What you set out to be able to do

Check each one against what you can do now.

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

  • Lilian Weng: LLM Powered Autonomous Agents
  • Anthropic: Building Effective Agents
  • Simon Willison: Prompt injection explained
  • Simon Willison: The Lethal Trifecta
  • OWASP: Memory Is a Feature. It Is Also an Attack Surface (ASI06)
  • Narajala et al.: Securing Agentic AI: Comprehensive Threat Model
  • Jason Haddix: Attacking AI: The New Frontier (NDC Security 2026)
  • Andrew Ng: Agentic Design Patterns (Sequoia)
  • DeepLearning.AI: Agentic AI Course
  • PPAS Framework: Perceive-Plan-Act-Self-Correct
  • AgentDojo: attack and defense benchmark for tool-using agents
  • Unit 42: Indirect Prompt Injection Poisons AI Long-Term Memory
  • EchoLeak: First zero-click prompt-injection exploit in M365 Copilot (CVE-2025-32711)
  • MITRE ATLAS: AML.T0080 Memory Poisoning
  • MemoryGraft: Persistent Compromise via Poisoned Experience Retrieval
  • MINJA: Memory Poisoning Attack and Defense on Memory-Based LLM Agents
  • SkillJect: Automated Stealthy Skill-Based Injection for Coding Agents
  • It's a TRAP! Task-Redirecting Agent Persuasion Benchmark for Web Agents
  • Christian Schneider: Multimodal Prompt Injection (images, audio, video)
  • CrowdStrike: Indirect Prompt Injection Attacks: Hidden AI Risks
  • Microsoft Security: AI Recommendation Poisoning
  • IBM: What is Tool Calling? Connecting LLMs to Your Data
  • Better Stack: AI Agent Protocols Explained: MCP, A2A, ACP and More

Checklist

It does not count toward done.

  • Draw the Perceive-Plan-Act(-Self-Correct) loop for an AI agent and label each of its steps.
  • Place the four building blocks (LLM controller, planning, memory, tool use) on your drawing of the loop.
  • Classify an example system as a workflow or an agent, and name the five composable workflow patterns.
  • Analyze an agent framework's trust boundaries and mark where trusted instructions meet untrusted content.
  • Complete the Cognitive Threat Model checklist by naming one attack for each of perception, planning, memory and action.
  • Check a real agent configuration for the lethal trifecta and note where a human-in-the-loop (HITL) approval gate belongs.
  • Agent attack drill: Run AgentDojo, land the "Important-instructions" injection from a fetched page to trigger send_email, and record the attack success rate (ASR).
  • Agent attack drill: Escalate to persistence by poisoning the session summary or memory store, start a fresh session, and confirm the instruction fires again with no new injection.
  • Agent attack drill: Add a Markdown-image exfiltration URL, then re-run with the payload hidden (zero-width Unicode, HTML comment, image or audio) and log the ASR change for each stealth layer.

Practise this in the lab, Stop an injected agent from leaking data through its tools.35 min to 1 h 10 min estimate

Practise this in the lab, Turn model output into an action, then fence every place it lands.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

16 readings

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

Show
Agent architectures3 readings
  • youtube.comvideoGo deeperabout 56 min

    A broad offensive security talk on attacking AI systems, agents included, from a practitioner's point of view. Watch it to see how attackers approach agents.

  • youtube.comvideoGo deeperabout 40 min

    Ng presents four patterns: reflection, tool use, planning and multi-agent collaboration. Watch it when you want the same ideas as the chapter from the pattern side.

  • deeplearning.aicourseGo deeper

    Andrew Ng's full course expands the four patterns (reflection, tool use, planning, multi-agent) and task decomposition, with exercises in Python. Take it if you want to build the patterns yourself.

Attacking agents: offensive techniques and labs11 readings
  • github.comlabGo deeper

    A runnable lab with 97 tasks and more than 600 security cases across email, banking, travel and Slack, with pluggable adaptive prompt-injection attacks scored by attack success rate (ASR). The paper describes the design. Use it for the hands-on drill in the chapter.

  • unit42.paloaltonetworks.compaperGo deeper

    A step-by-step proof of concept (PoC) that poisons a Bedrock agent's memory through the session-summarization prompt, using forged XML delimiters, and persists silently across sessions. Read it before you try the persistence step of the drill.

  • arxiv.orgpaperGo deeper

    The paper walks through the full exfiltration chain: evasion of the XPIA (cross-prompt injection attack) classifier, then an auto-fetched reference-style Markdown image sent through a proxy that the content security policy (CSP) allowed. It is the canonical tool-abuse exfiltration example; read it before you add an image exfiltration URL to the drill.

  • atlas.mitre.orgpaperGo deeper

    The canonical entry for persistent-state poisoning, useful for shared vocabulary and for mapping attacks. AML.T0080 is "AI Agent Context Poisoning", and memory poisoning is its Memory sub-technique, .000. Skim it when you need the official names.

  • arxiv.orgpaperGo deeper

    The authors turn an agent's habit of learning from success into an attack: they seed hidden "successful" procedure templates that semantic retrieval replays on clean tasks. A few poisoned records came to dominate retrieval on benign workloads, tested on MetaGPT DataInterpreter with GPT-4o. Read it after the memory section of the chapter.

  • arxiv.orgpaperGo deeper

    The paper shows memory injection that needs only queries and no privileged access, with about 95% injection but about 70% attack success. Pre-existing legitimate memories dilute the attack sharply, which gives defenders a lever. Read it for the numbers behind the chapter's memory poisoning section.

  • arxiv.orgpaperGo deeper

    SkillJect combines structural mimicry, a hidden payload split and trace-driven closed-loop refinement to stay stealthy inside the agent loop. Read it when you reach the stealth techniques.

  • arxiv.orgpaperGo deeper

    The benchmark shows agents rationalizing a hijack in their own reasoning trace, which makes it a template for semantically plausible stealth injections. It redirected 25% of tasks on average across 6 frontier models (13% for GPT-5 to 43% for DeepSeek-R1), and minor context tweaks doubled that. Read it before you design a stealth payload.

  • christian-schneider.netpaperGo deeper

    Schneider covers invisible and steganographic payloads, image-embedded text that evades optical character recognition (OCR) filters (FigStep-Pro), and audio channels (AudioJailbreak played over the air, Muting Whisper), all of which slip past text-centric filters. Read it when you add the hidden-payload layers to the drill.

  • crowdstrike.compaperGo deeper

    CrowdStrike lists the injection points and exfiltration channels of tool-enabled agents. Use it as a checklist when you review an agent's configuration.

  • microsoft.compaperGo deeper

    Microsoft reports real telemetry: 50 distinct memory-influence prompts across 31 companies in 14 industries in 60 days. Read it to see that memory poisoning is happening outside the lab.

Function calling and tool use2 readings
  • youtube.comvideoGo deeperabout 5 min

    A short explanation of function calling as the bridge between LLMs and external tools. Watch it if tool use is new to you.

  • youtube.comvideoGo deeperabout 13 min

    The video compares the emerging agent communication standards, including the Model Context Protocol (MCP). Watch it to prepare for the move from this week to Model Context Protocol (MCP).

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