Skip to content
All learning paths

Study notes · three weeks · 3–4 h a week

Agent Security

An agent that can act can be turned. This path starts from the OWASP agentic risk list, then maps each risk to concrete Azure controls: shields on inputs and tool output, real identities for agents, and automated red-teaming.

The core material

ResourceRoleUse it for
OWASP Top 10 for Agentic ApplicationsThreat modelThe ten agent-specific risks, released December 2025
MCP Security Best PracticesProtocol securityConfused deputy, token passthrough, tool poisoning and local server risks
Prompt ShieldsAzure controlDetect direct and indirect prompt injection, including in agent tool responses
Microsoft Entra Agent IDAzure controlIdentities, blueprints, Conditional Access and governance for agents
AI Red Teaming AgentAzure testingPyRIT-based scans with agentic risk categories and an attack success rate

01 / Week 1

The agentic threat model

Learn the ten risks that are specific to agents, and how MCP's own security guidance addresses several of them.

IDRisk
ASI01Agent goal hijack
ASI02Tool misuse and exploitation
ASI03Identity and privilege abuse
ASI04Agentic supply chain compromise
ASI05Unexpected code execution
ASI06Memory and context poisoning
ASI07Insecure inter-agent communication
ASI08Cascading failures
ASI09Human-agent trust exploitation
ASI10Rogue agents

Source: Speakeasy, OWASP Agentic Top 10 explained

CheckpointFor one agent you run, rank the ten risks by exposure and name the single change that would cut the top one most.

02 / Week 2

Controls: shields, identity, least privilege

Put guards on what goes into the model and give each agent its own identity with only the access it needs.

Inputs and tool output (~1.5 h)

  • Prompt Shields: user prompt attacks, document attacks, and scanning agent tool responses (preview)
  • Turn on document-attack detection and spotlighting for one retrieval path, and log in annotate mode before you block.

Identity and access (~2 h)

Remember: A clean shield result doesn't mean the input is safe. Shields cut risk; least privilege limits the damage when one gets through.

CheckpointYour agent runs as its own Entra identity, cannot call any write tool without approval, and flags injected text in a retrieved document.

03 / Week 3

Red-team the agent before launch

Attack your own agent with automated scans, measure the success rate, fix, and re-run.

Do (~3 h)

  1. AI Red Teaming Agent concepts: agentic categories: prohibited actions, sensitive data leakage, task adherence, indirect prompt injection
  2. Run a cloud scan: agentic categories are cloud-only, in selected regions
  3. PyRIT: the open-source engine underneath, for custom attacks
  4. Run against a non-production copy with mock tools, never against live systems.

CheckpointYou have a before-and-after attack success rate for indirect prompt injection on one agent.

Capstone

Harden one real agent. Done when every line holds:

Reference links