Skip to content

Commit b8646f6

Browse files
committed
adding metadata query fields
1 parent 9b2474d commit b8646f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/integrations/aws/privilege_escalation_sts_role_chaining.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ timestamp_override = "event.ingested"
4747
type = "esql"
4848

4949
query = '''
50-
from logs-aws.cloudtrail-*
50+
from logs-aws.cloudtrail-* metadata _id, _version, _index
5151
5252
// filter for AssumeRole API calls where access key id is a short term token beginning with ASIA
5353
| where event.dataset == "aws.cloudtrail" and event.provider == "sts.amazonaws.com" and event.action == "AssumeRole" and aws.cloudtrail.resources.account_id == aws.cloudtrail.recipient_account_id and aws.cloudtrail.user_identity.access_key_id like "ASIA*"

0 commit comments

Comments
 (0)