Defense Evasion (TA0005)(external, opens in a new tab or window)
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).