[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:
@@ -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
|
||||
''']
|
||||
|
||||
Reference in New Issue
Block a user