AWS Bedrock AgentCore Resource Credential Retrieved by New Principal

Last updated 6 days ago on 2026-11-26
Created 6 days ago on 2026-11-26

About

Identifies the first time a given user, in a given account, successfully calls GetResourceApiKey or GetResourceOauth2Token against Amazon Bedrock AgentCore's Token Vault. These calls take only a workload-identity token and a credential-provider name, and the API does not bind a credential provider to the specific workload identity that created it, so any workload's token can retrieve any other workload's stored API key or OAuth token in the same account. Because there is no ownership check to alert on directly, this rule instead surfaces new or unusual callers of this sensitive retrieval API for analyst review.
Tags
Domain: CloudDomain: GenAIData Source: AWSData Source: AWS CloudTrailData Source: Amazon Web ServicesUse Case: Identity and Access AuditTactic: Credential AccessRule Type: New TermsPlatform: AWSService: AWS BedrockMitre Atlas: AML.T0012Language: kuery
Severity
medium
Risk Score
47
MITRE ATT&CK™

Credential Access (TA0006)(external, opens in a new tab or window)

False Positive Examples
A newly deployed agent or workload legitimately retrieving its own credential-provider secret for the first time. Validate the caller identity against the credential provider it requested and confirm the pairing is expected.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
New Terms Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-aws.cloudtrail-*
Related Integrations

aws(external, opens in a new tab or window)

Query
text code block:
data_stream.dataset: "aws.cloudtrail" and event.provider: "bedrock-agentcore.amazonaws.com" and event.action: ("GetResourceApiKey" or "GetResourceOauth2Token") and event.outcome: "success"

Install detection rules in Elastic Security

Detect AWS Bedrock AgentCore Resource Credential Retrieved by New Principal 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).