Skip to main content

Overview

This lab validates AI agent workload attack patterns against an Azure AI Services / Foundry-backed agent loop and sends detection signals to Microsoft Sentinel.

It focuses on the gap between traditional container security and agentic workload security. A container scanner can tell you whether an image has CVEs. It cannot tell you whether a prompt injection caused an agent to misuse a tool, leak credentials, or follow malicious instructions from retrieved content.

What Gets Deployed

ResourcePurpose
Azure AI ServicesModel deployment for the agent loop
Foundry hub/projectProject context for agentic AI workloads
Key Vault, Storage, ACRFoundry dependencies and future hosted-agent container path
Application InsightsRuntime telemetry linked to the Sentinel workspace
AI Services diagnosticsAudit, request/response, usage, trace, and metric logs
Sentinel rulesFive analytics rules for agent attack signals

Test Scenarios

ScenarioPurpose
jailbreakDirect prompt override attempt
instruction-leakSystem prompt extraction
xpiaIndirect prompt injection through retrieved content
credential-exfilHoneytoken API key / SSH key extraction attempt
ascii-smugglingInvisible Unicode instruction smuggling
tool-abuseProhibited email exfiltration via tool use
wallet-attackHigh-volume request storm

Quick Start

export SENTINEL_WS_ID="/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.OperationalInsights/workspaces/<workspace>"
./scripts/deploy-lab.sh
export AI_SERVICES_ENDPOINT="https://<ai-services>.cognitiveservices.azure.com"
export MODEL_DEPLOYMENT="gpt-4-1-mini"
.venv/bin/python attacks/run_attack.py jailbreak

Companion Blog

Published: /blog/agent-365-defender-playbook/

Keyboard Shortcuts

Navigation
Ctrl + K Open search / command palette
? Show this help
ESC Close dialogs
Actions
G then H Go to Home
G then B Go to Blog
G then A Go to About
G then C Go to Contact
G then T Go to Threat Feeds
G then G Go to Glossary
Shift + C Copy page URL
Easter Eggs
โ†‘โ†‘โ†“โ†“โ†โ†’โ†โ†’BA Konami code
Click cat 9ร— Nine lives activation
Click logo 9ร— Cat Burglar mode