[Rule Tuning] AWS Access Token Used from Multiple Addresses#5785
Merged
[Rule Tuning] AWS Access Token Used from Multiple Addresses#5785
Conversation
Summary Tuning changes to reduce noise and improve fidelity for the AWS Access Token Used from Multiple Addresses rule. After several tuning this rule is still producing ~2000 alerts/day - Added aws.cloudtrail.session_credential_from_console exclusion to filter out legitimate console login sessions - Added Esql.event_provider_count_distinct > 1 condition requiring activity across multiple AWS services to reduce single-service noise - Changed interval from 5m to 30m to reduce alert frequency - Updated query time window from 30 minutes to 32 minutes to align with the from setting - Added min_stack_version = "9.2.0" for the new console credential field (AWS integration 4.6.0+) Rational - Console login sessions generate temporary credentials that can appear from multiple IPs during VPN/network transitions - Requiring activity across multiple AWS service providers increases confidence that the token is being used for broader reconnaissance rather than normal single-service operations - Longer interval reduces duplicate alerting per access token while still catching the behavior within the 32-minute aggregation window
Contributor
Rule: Tuning - GuidelinesThese guidelines serve as a reminder set of considerations when tuning an existing rule. Documentation and Context
Rule Metadata Checks
Testing and Validation
|
Samirbous
reviewed
Feb 26, 2026
imays11
commented
Feb 26, 2026
imays11
commented
Feb 26, 2026
…rom_multiple_addresses.toml
eric-forte-elastic
approved these changes
Mar 5, 2026
Contributor
eric-forte-elastic
left a comment
There was a problem hiding this comment.
Manual review, reviewed telemetry tuning makes sense and looks good 👍
| """, | ||
| ] | ||
| from = "now-32m" | ||
| interval = "5m" |
Contributor
There was a problem hiding this comment.
Maybe make interval window 31m since aggregation ESQL queries have no deduplication upstream?
Contributor
Author
There was a problem hiding this comment.
I did have it set this way but Samir make a good note that this will delay detection, I think I'll go in the middle with 15 minutes to reduce some of the chance for duplication
| // this rule only alerts for "high" fidelity cases, to broaden the rule scope to include all activity | ||
| // change the final condition to | ||
| // | where Esql.activity_type != "normal_activity" | ||
| // | where Esql.activity_type != "normal_activity" and Esql.event_provider_count_distinct > 1 |
Contributor
There was a problem hiding this comment.
good thinking here, makes sense that the behavior after acquiring the token (if stolen) differs by provider or action.
terrancedejesus
approved these changes
Mar 9, 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
Tuning changes to reduce noise and improve fidelity for the AWS Access Token Used from Multiple Addresses rule. After several tuning this rule is still producing ~2000 alerts/day
Rational
How To Test
run query in stack and prod telemetry cluster