[New Rule] AWS Bedrock AgentCore Resource Created with IAM Execution Role - #6697
Open
bryans3c wants to merge 2 commits into
Open
[New Rule] AWS Bedrock AgentCore Resource Created with IAM Execution Role#6697bryans3c wants to merge 2 commits into
bryans3c wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new AWS CloudTrail KQL detection rule aimed at identifying potential privilege escalation via AWS Bedrock AgentCore resource creation when an IAM execution role is attached at creation time.
Changes:
- Introduces a new query rule targeting
bedrock-agentcore.amazonaws.comCreate*actions whereexecutionRoleArn/roleArnappears in request parameters. - Adds an investigation guide describing triage, false positives, and response/remediation guidance.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
terrancedejesus
approved these changes
Aug 25, 2026
terrancedejesus
left a comment
Contributor
There was a problem hiding this comment.
Looks good, added a suggestion.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
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
Issue link(s):
Summary - What I changed
Added a KQL query rule that detects the creation of an AWS Bedrock AgentCore resource (code interpreter, agent runtime, browser, or harness) with an IAM execution role attached via
iam:PassRole.Why it matters
AWS Bedrock AgentCore resources run user workloads inside isolated MicroVMs. When an IAM role is attached at creation time, all code executing inside the resource assumes that role's identity. An attacker with
iam:PassRoleandbedrock-agentcore:Create*permissions can attach a privileged role to a new AgentCore resource and then invoke it to operate as that role, escalating privileges to any role that trustsbedrock-agentcore.amazonaws.comas a service principal.How To Test
Query to verify in our TRaDE stack:
Checklist
Contributor checklist