[New Rule] AWS Bedrock API Key Used for Destructive or Anti-Recovery Action#6386
Open
bryans3c wants to merge 3 commits into
Open
[New Rule] AWS Bedrock API Key Used for Destructive or Anti-Recovery Action#6386bryans3c wants to merge 3 commits into
bryans3c wants to merge 3 commits into
Conversation
Contributor
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new AWS CloudTrail ES|QL detection rule aimed at identifying Amazon Bedrock API keys (bearer tokens) being used for destructive or anti-recovery Bedrock control-plane actions, which is inconsistent with their intended purpose (model invocation) and aligns with LLMjacking/sabotage behaviors.
Changes:
- Introduces a new production Bedrock rule that matches destructive Bedrock API actions when
callWithBearerTokenis present in CloudTrailadditional_eventdata. - Includes investigation guidance, false positive notes, references, and ATT&CK mappings for Defense Evasion and Impact.
Comment on lines
+63
to
+72
| tags = [ | ||
| "Domain: Cloud", | ||
| "Data Source: AWS", | ||
| "Data Source: Amazon Web Services", | ||
| "Data Source: Amazon Bedrock", | ||
| "Use Case: Threat Detection", | ||
| "Tactic: Impact", | ||
| "Tactic: Defense Evasion", | ||
| "Resources: Investigation Guide", | ||
| ] |
| query = ''' | ||
| FROM logs-aws.cloudtrail-* METADATA _id, _version, _index | ||
| | WHERE event.provider == "bedrock.amazonaws.com" | ||
| AND aws.cloudtrail.additional_eventdata RLIKE """.*callWithBearerToken=true.*""" |
Copilot stopped work on behalf of
bryans3c due to an error
July 6, 2026 10:41
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
django-88
approved these changes
Jul 7, 2026
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
Detects an Amazon Bedrock API key (bearer token) used for a destructive or anti-recovery control-plane action, deleting a guardrail, custom/imported model, or provisioned throughput, or disabling model invocation logging.
Bedrock API keys are bearer tokens meant for model invocation (InvokeModel/Converse); every such call is identifiable in CloudTrail by additionalEventData.callWithBearerToken = true. Using one to delete Bedrock resources or disable logging is inconsistent with the credential's purpose and is characteristic of LLMjacking.
How To Test
Query can be used in TRADE stack and other telemetry stacks.
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist