[New Rule] Azure AKS API Server Proxying Request to Kubelet#6428
Merged
terrancedejesus merged 8 commits intoJul 17, 2026
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
|
…pdated non-ecs-schema
terrancedejesus
requested review from
Aegrah,
Samirbous,
bryans3c,
django-88,
eric-forte-elastic,
imays11 and
w0rk3r
July 16, 2026 14:50
terrancedejesus
marked this pull request as ready for review
July 16, 2026 14:53
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds two new Azure AKS detections focused on identifying abuse of the Kubernetes API server nodes/proxy subresource to access Kubelet endpoints (general proxying to Kubelet, plus high-signal command-execution endpoints), and updates the non-ECS schema to support the new fields referenced by these rules.
Changes:
- Added a lateral movement detection for non-system identities proxying through the AKS API server to reach node Kubelet.
- Added an execution-focused detection for proxy access to Kubelet command-execution endpoints (e.g.,
/exec,/run,/attach,/portForward). - Extended
logs-azure.platformlogs-*non-ECS schema with kube-audit flattened fields used by the new rules.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| rules/integrations/azure/lateral_movement_azure_aks_api_server_proxy_to_kubelet.toml | New rule for detecting non-system identities using nodes/proxy to reach Kubelet. |
| rules/integrations/azure/execution_azure_aks_kubelet_proxy_command_endpoint.toml | New rule for detecting nodes/proxy access to Kubelet exec/run/attach/portforward/cri endpoints. |
| detection_rules/etc/non-ecs-schema.json | Adds Azure platformlogs flattened kube-audit fields needed for querying/investigation fields. |
Aegrah
approved these changes
Jul 17, 2026
Aegrah
reviewed
Jul 17, 2026
bryans3c
approved these changes
Jul 17, 2026
bryans3c
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Maybe changing the rule name to potential or verifying response code or authorization?
terrancedejesus
commented
Jul 17, 2026
terrancedejesus
deleted the
new-rule/azure-aks-api-server-proxy-to-kubelet
branch
July 17, 2026 13:59
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
Adds a detection for non-system identity using the AKS (Azure Kubernetes Service) API server nodes/proxy subresource to reach a node's Kubelet API. Proxying through the API server bypasses direct network access and Kubelet TLS controls and can be used to run commands on nodes and move laterally across the cluster. Adds another detection for exec-specific API endpoints that are called from non-system identities.
How To Test
Query can be used in TRADE stack.
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