Repository navigation
Conversation
|
Starting the rule tests ... |
Contributor
There was a problem hiding this comment.
🟡 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
GetResourceApiKeyandGetResourceOauth2Tokencalls 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", |
…ved_by_new_principal.toml
|
Starting the rule tests ... |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pull Request
Summary - What I changed
Added a new-terms detection rule that surfaces the first time a given user, in a given account, successfully calls
GetResourceApiKeyorGetResourceOauth2Tokenagainst 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 aGetResourceApiKeycall from a new principal matched the query. Logs available in our TRaDE stack.Checklist
Rule: New,Integration: AWS-Bedrock,Domain: Cloud, andDomain: GenAIlabelsRelates to elastic/ia-trade-team#955