This is post #11 of the prompt attack detection (score and threshold)
for managed session isolation
for ephemeral per-invocation execution
roles with scope-down session policies
/ for code signing
for immutable knowledge base sources
Schema Registry for message validation
for network-level agent isolation
Ring 6: Monitoring & Kill Switches
The last line of defense when everything else fails.
anomaly detection on behavioral baselines
as hard organizational boundaries- EventBridge + Lambda automatic containment (Deny-All on anomaly)
No single ring is bulletproof. That's the point. The attacker has to punch through all six to cause real damage. And at every ring, you have visibility into what's happening.
The Security Checklist
Print this out. Stick it on the wall. Work through it before your next agent deployment.
☐ ASI01 (Goal Hijack): All inputs validated through Bedrock Guardrails prompt attack detection. InvokeGuardrailChecks on RAG content before it enters context. System prompt locked and versioned.
☐ ASI02 (Tool Misuse): Each tool has its own IAM policy, Lambda, and rate limits. No tool has broader access than its specific function requires. API Gateway throttling prevents loop amplification.
☐ ASI03 (Privilege Abuse): Agent roles use scope-down session policies per invocation. Verified Permissions (Cedar) enforces fine-grained authorization. No long-lived credentials. Permission boundaries prevent self-escalation.
☐ ASI04 (Supply Chain): All dependencies sourced from private registries with approval gates. Code signed with AWS Signer. Inspector scanning on every deployment. Lambda layers pinned and immutable.
☐ ASI05 (Code Execution): Agent-generated code runs exclusively in sandboxed environments (AgentCore, Lambda, Fargate). Static analysis gate between generation and execution. No eval() in production.
☐ ASI06 (Memory Poisoning): Knowledge base sources in S3 with Object Lock. GuardDuty monitoring source buckets. CloudTrail data events on every vector store write. Pre-ingestion content validation via Guardrails.
☐ ASI07 (Inter-Agent Comms): All inter-agent messages schema-validated via EventBridge. Agent-to-agent traffic over PrivateLink. Cedar policies for semantic authorization between agents. No implicit trust.
☐ ASI08 (Cascading Failures): Step Functions with retry limits, timeouts, and catch blocks on every state. Circuit breaker Lambda for emergency halt. Composite CloudWatch alarms for correlated failures. Fault Injection Service testing quarterly.
☐ ASI09 (Human Trust): A2I structured review for high-impact decisions. Approval gates with timeout-to-deny (not timeout-to-approve). Rubber-stamp detection alarms. Agent decisions surfaced with full provenance.
☐ ASI10 (Rogue Agents): CloudWatch anomaly detection on behavioral baselines. Cost Anomaly Detection per agent (token spend + concurrent sessions). SCPs preventing IAM self-escalation and backup deletion. Automatic kill switch via EventBridge + Lambda.
The Cross-Cutting Services
Some AWS services showed up again and again across this series. Here's the hit list:
| AWS Service | Posts It Appeared In | Primary Role |
|---|---|---|
| 1, 2, 7, 8, 9 | Orchestration, approval gates, error handling, circuit breakers | |
| 2, 3, 5, 10 | Least privilege, session policies, permission boundaries, SCPs | |
| 3, 7 | Fine-grained Cedar policies for agent authorization | |
| 7, 10 | Schema validation, event-driven kill switches |
If you're building agents on AWS and you're not using at least Step Functions, Guardrails, CloudWatch, and IAM session policies... you're leaving doors open.
What's Next
The OWASP Agentic Top 10 was published in December 2025. It's July 2026 as I write this. In those seven months, we've already seen:
- The first fully autonomous AI ransomware attack (JADEPUFFER)
- Multiple CVSS 9.9 vulnerabilities in agent frameworks (Semantic Kernel, AutoGen)
- 30+ CVEs in MCP servers and clients
- An 81% success rate in AI self-replication experiments
This landscape is evolving fast. The OWASP list will update. New attack patterns will emerge. New AWS services will launch to address them.
Don't treat this series as a one-time checklist you complete and forget. Treat it as a living practice:
Quarterly: Re-read the OWASP Agentic Top 10. Check if new entries or updates apply to your agents.
Monthly: Review your agent's permissions, tool access, and behavioral baselines. Drift happens.
Weekly: Check your CloudWatch anomaly detections and cost alerts. Are the baselines still accurate?
Every deployment: Run through the checklist above. Every new agent, every new tool, every new data source.
The Series
If you missed any posts or want to revisit a specific threat:
- Prompt injection in multi-step agents
- Confused deputies and privilege escalation
- Agent-generated code running unsandboxed
- When agents talk, attackers listen
- Over-reliance and rubber-stamping
- This post
And That's a Wrap
Twelve posts. ~25,000 words. A lot of code. A lot of IAM policies. And one core message:
Agentic AI is not a chatbot with extra features. It's an autonomous system. Secure it like one.
The good news? You don't need exotic tooling. Everything in this series uses services you already have access to in your AWS account. The challenge was never "can we do this?" It was "do we know where and why to apply these controls?"
I hope this series gave you that map.
I would be very interested to hear your thoughts or comments, so please feel free to ping me on , or drop them below. If you've built on top of any of these patterns, I genuinely want to hear about it. What worked. What didn't. What I missed.
Hope you enjoyed the ride!
SOCIAL SHARE CARD GENERATOR