Defending AgentCore Memory with Multi‑Layer Validation
🛡️ This post describes a composable, pre-write validation pipeline for Amazon Bedrock AgentCore Memory that augments existing controls like IAM, Cedar policies, and AgentCore guardrails. The solution attaches as a Lambda interceptor on AgentCore Gateway and scores writes using four signals — including a primary semantic-drift signal powered by Amazon Titan Text Embeddings V2 — to decide ALLOW, QUARANTINE, or DENY. It includes an AWS CDK deployment, Cedar policy examples, quarantine handling, alerting via SNS, test results from 11 scenarios, and latency/cost guidance for production use.
