Credential Access (TA0006)(external, opens in a new tab or window)
aws_bedrock_agentcore(external, opens in a new tab or window)
text code block:from logs-aws_bedrock_agentcore.runtime_logs-* metadata _id, _version, _index | where ( event.action == "invoke-agent-runtime-command" and TO_LOWER(process.command_line) like ( "*169.254.169.254*", "*fd00:ec2::254*", "*/latest/api/token*", "*/latest/meta-data/iam*", "*security-credentials*", "*x-aws-ec2-metadata-token*" ) ) or ( message like "*AccessKeyId*" and message like "*SecretAccessKey*" and message like ("*Token*", "*SessionToken*") ) | keep _id, _version, _index, @timestamp, aws.*, cloud.*, event.*, message, process.command_line
Install detection rules in Elastic Security
Detect AWS Bedrock AgentCore Runtime Command Accesses Instance Metadata Credentials 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).