AWS adds Policy Engine and Lambda interceptors to Bedrock AgentCore gateway for agent security controls
Amazon Web Services launched Policy Engine and Lambda interceptors for Bedrock AgentCore gateway, enabling enterprises to control which tools AI agents can access and validate requests dynamically. The Policy Engine uses Cedar declarative policy language for deterministic access decisions, while Lambda interceptors run custom code before or after each tool call for validation, token exchange, and response filtering.
AWS adds Policy Engine and Lambda interceptors to Bedrock AgentCore gateway for agent security controls
Amazon Web Services launched Policy Engine and Lambda interceptors for Bedrock AgentCore gateway, addressing a core security challenge in enterprise AI agent deployments: controlling which tools agents can access at runtime.
The new features provide two complementary security mechanisms. The Policy Engine uses Cedar, AWS's open-source policy language, to define deterministic access control rules. Cedar policies evaluate each request against a principal, action, and resource with optional conditions, producing auditable allow/deny decisions. Lambda interceptors run custom code before or after tool calls, enabling dynamic validation, payload enrichment, token exchange, and response filtering.
How the security model works
When an AI agent attempts to call a tool through AgentCore gateway, the request interceptor Lambda function executes first, transforming the request by replacing bearer tokens with tenant-scoped credentials and injecting additional context. The Policy Engine then evaluates the transformed request against defined Cedar policies before permitting tool invocation.
According to AWS, the architecture follows a deny-by-default model. Without an explicit permit policy, all requests are blocked. Organizations define baseline permit rules, then layer forbid rules on top to carve out specific restrictions.
Lakehouse data agent implementation
AWS demonstrated the security model with a lakehouse data agent that queries insurance claims data stored in Amazon S3 Tables (Apache Iceberg) through Amazon Athena and AWS Lake Formation. The agent serves three user roles: policyholders (viewing own claims only), adjusters (managing assigned claims), and administrators (full data access including audit logs).
The implementation uses DynamoDB to store role-to-tool access mappings, tenant IAM role configurations, and user geography data. AWS Lake Formation enforces row-level and column-level security at query time, automatically scoping results to what each caller's IAM role permits.
In the reference implementation, policyholders are blocked from calling the get_claims_summary tool through a Cedar forbid rule:
forbid(
principal is AgentCore::OAuthUser,
action == AgentCore::Action::"lakehouse-mcp-target___get_claims_summary",
resource == AgentCore::Gateway::"<gateway_arn>"
) when {
principal.hasTag("cognito:groups") &&
principal.getTag("cognito:groups") like "*policyholders*"
};
The forbid rule takes precedence over baseline permit policies, blocking the specific tool while leaving other access intact.
Geography-based access control
The system combines Lambda interceptors and Policy Engine to implement geography-based access restrictions. The Lambda interceptor dynamically validates user geography from DynamoDB and injects it as request context. The Policy Engine then evaluates Cedar policies against that enriched context to enforce data residency rules.
Authentication flows through Amazon Cognito, which issues JWT bearer tokens passed to the agent. AgentCore Runtime validates tokens and establishes isolated sessions per user. All policy decisions and tool invocations stream to Amazon CloudWatch for compliance auditing.
What this means
The launch addresses a fundamental governance problem in enterprise AI platforms managing hundreds of agents accessing thousands of tools across different teams and business units. Unlike traditional applications with fixed logic, LLM-powered agents decide at runtime which tools to invoke, making advance call graph auditing impossible.
AWS recommends starting with policy enforcement mode set to LOG_ONLY, writing all policy decisions to CloudWatch without blocking requests. This allows organizations to validate policies against production traffic patterns before enforcing restrictions. The combination of deterministic Cedar policies and dynamic Lambda interceptors provides layered security architecture for controlling agent behavior at scale.
Related Articles
Meta adds "spaces" to Muse AI, letting users build app-like hubs by describing them
Meta is rolling out "spaces" to all users of its Muse AI assistant. Spaces are customized, app-like experiences that Muse builds from a text description, and they can update automatically when connected to a relevant app. Meta is also releasing a "specialized" version of its Muse Wonder AI model.
Google Antigravity 2.29 adds cloud Remote Agents for Google AI Pro and Ultra subscribers
Google's Antigravity 2.29 adds Remote Agents that run in isolated cloud virtual machines for Google AI Pro and Ultra subscribers. The update also brings a Gemini Live-powered Voice Mode, a redesigned conversation page, and changes to Automations and the built-in browser.
Perplexity launches 'teammates' AI agents inside Computer, exclusive to $200-a-month Max plan
Perplexity has launched 'teammates,' personal AI agents built on Perplexity Computer that handle ongoing work autonomously with minimal supervision. The feature is exclusive to Perplexity Max subscribers, who pay $200 a month or $2,000 a year, on web and iOS.
Jimeng Short Drama Studio links script, assets and storyboards; Seedance 2.5 as low as 0.15 yuan per second
Jimeng (即梦) Short Drama Studio puts scriptwriting, an asset library and storyboarding in a single project for episodic AI video. Qbitai (量子位), in a Chinese-language hands-on test, reports Seedance 2.5 priced as low as 0.15 yuan per second for teams during the Double Eleven promotion.
Comments
Loading...