Techniques
Sample rules
AWS Bedrock AgentCore Gateway Policy Engine Set to Log Only
- source: elastic
- technicques:
- T1562
Description
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.
Detection logic
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