Privilege Escalation (TA0004)(external, opens in a new tab or window)
Persistence (TA0003)(external, opens in a new tab or window)
text code block:FROM logs-aws.cloudtrail-* METADATA _id, _version, _index | WHERE event.provider == "iam.amazonaws.com" AND event.action IN ("CreateAccessKey", "CreateLoginProfile", "UpdateLoginProfile") AND event.outcome == "success" AND user.target.name LIKE "BedrockAPIKey-*" | KEEP _id, _version, _index, @timestamp, aws.*, cloud.*, event.*, source.*, user.*, user_agent.*
Install detection rules in Elastic Security
Detect AWS IAM Credentials Added to a Bedrock API Key Phantom User 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).