[Hunt Tuning] Fixing Sort Logic in Aviatrix Hunting Query (#4432)

* fixing sort logic error

* Update hunting/aws/queries/iam_unusual_default_aviatrix_role_activity.toml

Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>

---------

Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>
This commit is contained in:
Terrance DeJesus
2025-02-03 21:43:02 -05:00
committed by GitHub
parent 1dfb05ec1c
commit f1dee060b6
2 changed files with 3 additions and 3 deletions
@@ -22,7 +22,7 @@ from logs-aws.cloudtrail-*
and aws.cloudtrail.user_identity.arn like "*aviatrix-role*"
| stats activity_counts = count(*) by event.provider, event.action, aws.cloudtrail.user_identity.arn
| where activity_counts < 10
| sort by activity_counts asc
| sort activity_counts asc
```
## Notes
@@ -25,5 +25,5 @@ from logs-aws.cloudtrail-*
and aws.cloudtrail.user_identity.arn like "*aviatrix-role*"
| stats activity_counts = count(*) by event.provider, event.action, aws.cloudtrail.user_identity.arn
| where activity_counts < 10
| sort by activity_counts asc
''']
| sort activity_counts asc
''']