AWS Bedrock AgentCore Gateway Policy Engine Set to Log Only

Last updated 6 days ago on 2026-11-26
Created 6 days ago on 2026-11-26

About

Identifies a successful UpdateGateway call against an Amazon Bedrock AgentCore Gateway that sets its policyEngineConfiguration mode to LOG_ONLY. UpdateGateway is a full-replace operation, and LOG_ONLY mode evaluates Cedar policy but no longer blocks a denied tool call, so this moves the gateway from enforcing authorization to merely observing it for every tool call the gateway proxies, even though the Cedar policies themselves remain unchanged and still look configured in the policy engine. A caller needs only UpdateGateway, GetGateway, and the ability to pass the gateway's execution role to do this, and no Cedar policy permission is required.
Tags
Domain: CloudDomain: GenAIData Source: AWSData Source: AWS CloudTrailData Source: Amazon Web ServicesUse Case: Identity and Access AuditTactic: Defense EvasionRule Type: ES|QLPlatform: AWSService: AWS BedrockMitre Atlas: AML.T0012Language: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Defense Evasion (TA0005)(external, opens in a new tab or window)

False Positive Examples
Legitimate configuration-management or infrastructure-as-code tooling that deliberately sets LOG_ONLY to test new Cedar policies before enforcing them. Validate the caller identity, its permissions, and whether the change matches an approved rollout or testing plan.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

aws(external, opens in a new tab or window)

Query
text code block:
from logs-aws.cloudtrail-* metadata _id, _version, _index | where event.dataset == "aws.cloudtrail" and event.outcome == "success" and event.provider == "bedrock-agentcore.amazonaws.com" and event.action == "UpdateGateway" and aws.cloudtrail.request_parameters is not null | eval Esql.sets_log_only = aws.cloudtrail.request_parameters RLIKE """\{policyEngineConfiguration=\{[^}]*mode=LOG_ONLY.*""" or aws.cloudtrail.request_parameters RLIKE """.*, policyEngineConfiguration=\{[^}]*mode=LOG_ONLY.*""" | where Esql.sets_log_only | keep _id, _version, _index, @timestamp, event.action, event.provider, event.outcome, aws.cloudtrail.user_identity.arn, aws.cloudtrail.user_identity.type, aws.cloudtrail.user_identity.access_key_id, user.name, user_agent.original, source.ip, source.geo.country_name, cloud.account.id, cloud.region, data_stream.namespace, aws.cloudtrail.request_id, aws.cloudtrail.request_parameters

Install detection rules in Elastic Security

Detect AWS Bedrock AgentCore Gateway Policy Engine Set to Log Only in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).