[New Rule] AWS EKS Access Entry Created Then Deleted by Same Identity - #6656
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new AWS CloudTrail EQL sequence detection rule to identify suspicious Amazon EKS access entries that are created and then deleted by the same identity within a short window—behavior consistent with temporary privilege grants used to establish Kubernetes persistence before removing evidence.
Changes:
- Introduces a new EQL sequence rule for
CreateAccessEntryfollowed byDeleteAccessEntrywithinmaxspan=10m. - Adds an investigation guide, references, and investigation fields tailored to EKS access entry abuse.
- Defines initial tagging and ATT&CK mappings for the new detection.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+66
to
+74
| tags = [ | ||
| "Domain: Cloud", | ||
| "Platform: AWS", | ||
| "Data Source: AWS CloudTrail", | ||
| "Service: AWS EKS", | ||
| "Rule Type: Event Correlation (EQL)", | ||
| "Tactic: Persistence", | ||
| "Resources: Investigation Guide", | ||
| ] |
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
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
imays11
reviewed
Aug 24, 2026
imays11
approved these changes
Aug 24, 2026
imays11
reviewed
Aug 24, 2026
terrancedejesus
approved these changes
Aug 25, 2026
terrancedejesus
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Agreed on medium, and the guide needs a false positives section. Also +1 on tagging Domain/Platform Kubernetes.
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>
Added false positive analysis section to clarify scenarios that may trigger EKS access entry events.
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 an eql sequence rule that detects an EKS access entry created and deleted by the same identity within 10 minutes — a pattern indicative of a temporary privilege grant used to install persistent Kubernetes-level backdoors before removing the CloudTrail evidence of the initial grant.
Why it matters
EKS access entries map IAM principals to Kubernetes access policies. An adversary with
eks:CreateAccessEntryandeks:DeleteAccessEntrycan temporarily grant themselves cluster-admin level access, use that access to create persistent RBAC resources (ClusterRoleBindings, privileged ServiceAccounts, rogue DaemonSets), then delete the access entry to remove the CloudTrail evidence of the initial grant — while retaining Kubernetes-level access through the backdoor RBAC objects. The deletion within a short window of creation is the key behavioral indicator separating this from legitimate lifecycle operations.How To Test
Query to verify in our TRaDE stack:
Checklist
Rule: NewContributor checklist