Skip to content

[New Rule] AWS Bedrock AgentCore Resource Credential Retrieved by New Principal - #7257

Open
bryans3c wants to merge 4 commits into
mainfrom
new-rule/aws-agentcore-credential-new-principal
Open

bryans3c wants to merge 4 commits into
mainfrom
new-rule/aws-agentcore-credential-new-principal

Conversation

@bryans3c

@bryans3c bryans3c commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

  • elastic/ia-trade-team#955

Summary - What I changed

Added a new-terms detection rule that surfaces the first time a given user, in a given account, successfully calls GetResourceApiKey or GetResourceOauth2Token against Amazon Bedrock AgentCore's Token Vault.

Why it matters

Both APIs take only a workload-identity token and a credential-provider name, and AgentCore does not check that the calling workload identity is the one that created or was associated with the credential provider — so any workload's token can retrieve any other workload's stored API key or OAuth token in the same account. There is no ownership check to alert on directly, so this rule surfaces new or unusual callers of this sensitive retrieval API for analyst review rather than claiming to detect the cross-workload mismatch itself.

How To Test

Validated the TOML with python -m detection_rules validate-rule. A disposable AWS emulation lab confirmed a GetResourceApiKey call from a new principal matched the query. Logs available in our TRaDE stack.

Checklist

  • Added the Rule: New, Integration: AWS-Bedrock, Domain: Cloud, and Domain: GenAI labels
  • Secret and sensitive material has been managed correctly
  • Documentation and investigation guidance were added
  • Testing and detection evidence was provided
  • Existing coverage was checked for duplication

Relates to elastic/ia-trade-team#955

Copilot AI balanced review requested due to automatic review settings November 26, 2026 15:44
@bryans3c bryans3c self-assigned this Nov 26, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The rule’s unsupported integration declaration and folder placement fail validation, and its missing required ATLAS technique tag leaves taxonomy compliance incomplete.

2 open issues
What changed in this PR

Adds a CloudTrail-based new-terms rule for successful AWS Bedrock AgentCore credential retrieval by newly observed account/user pairs. It surfaces unusual callers for investigation rather than claiming to detect cross-workload credential access directly.

Changes:

  • Detects GetResourceApiKey and GetResourceOauth2Token calls using a seven-day history window.
  • Adds investigation and remediation guidance, relevant alert fields, and MITRE ATT&CK/ATLAS mappings.
File Description
rules/​integrations/​aws_bedrock_agentcore/​credential_access_bedrock_agentcore_resource_credential_retrieved_by_new_principal.toml Adds the credential-retrieval detection rule and investigation guidance.

Review effort: Balanced

severity = "medium"
tags = [
"Domain: Cloud",
"Domain: GenAI",
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants