[New Rule] Azure Arc Kubernetes Cluster Connect Abuse#5824
Open
terrancedejesus wants to merge 11 commits intomainfrom
Open
[New Rule] Azure Arc Kubernetes Cluster Connect Abuse#5824terrancedejesus wants to merge 11 commits intomainfrom
terrancedejesus wants to merge 11 commits intomainfrom
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
|
Samirbous
approved these changes
Mar 13, 2026
rules/integrations/azure/initial_access_azure_service_principal_signin_multiple_countries.toml
Outdated
Show resolved
Hide resolved
Mikaayenson
approved these changes
Mar 13, 2026
| severity = "medium" | ||
| tags = [ | ||
| "Data Source: Kubernetes", | ||
| "Domain: Kubernetes", |
Contributor
There was a problem hiding this comment.
Maybe we should update definitions.py to include these as expected tags?
rules/integrations/azure/initial_access_azure_arc_cluster_credential_access_unusual_source.toml
Outdated
Show resolved
Hide resolved
| Esql.event_count = COUNT(*) | ||
| BY kubernetes.audit.impersonatedUser.username | ||
|
|
||
| | WHERE Esql.timestamp_first_seen >= NOW() - 9 minutes |
Contributor
There was a problem hiding this comment.
Is this needed when we have
from = "now-5d"
interval = "9m"
Can we let the detection engine handle this?
Contributor
Author
There was a problem hiding this comment.
Yes, this is how to apply the New Terms logic.
- Grab the last 5 days work of data for this given query
- Store the first seen time stamp if we have hits
- The first time seen has to be greater than or equal to the last 9 minutes (meaning it has never been seen before until this run)
Contributor
Author
There was a problem hiding this comment.
Can we let the detection engine handle this?
@Samirbous has suggested that ESQL new terms logic is more performant than new terms rule type in recent discussions so I assume so. Additionally these rules all do 5 day lookback windows as well, just in minutes.
…ential_access_unusual_source.toml Co-authored-by: Mika Ayenson, PhD <Mikaayenson@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.
Fixes #5823
Pull Request
Issue link(s):
Summary - What I changed
Adds 4 new rules across Azure and K8s integrations to cover Azure Arc-assisted suspicious anomalies. Please see the issue for more details.
How To Test
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