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_application_logs-* metadata _id, _version, _index | where aws.bedrock_agentcore.operation == "InvokeAgentRuntime" and ( aws.bedrock_agentcore.request_payload.prompt rlike """.*(AKIA|ASIA)[A-Z0-9]{16}.*""" or aws.bedrock_agentcore.request_payload.prompt rlike """.*-----BEGIN [A-Z ]*PRIVATE KEY-----.*""" or aws.bedrock_agentcore.request_payload.prompt rlike """.*ABSK[A-Za-z0-9+/=]{20}.*""" or aws.bedrock_agentcore.request_payload.prompt rlike """.*bedrock-api-key-[-A-Za-z0-9+/=._~:]{20,}.*""" ) | keep _id, _version, _index, @timestamp, aws.*, cloud.*, event.*
Install detection rules in Elastic Security
Detect AWS Bedrock AgentCore Runtime Prompt Containing 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).