You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Sequence-level by and per-subquery runs; subqueries use different integrations and validate correctly."""
138
+
rc=RuleCollection()
139
+
query="""
140
+
sequence by host.id, user.id with maxspan=1s
141
+
[any where event.dataset == "azure.auditlogs" and event.action == "Register device"] by azure.auditlogs.properties.initiated_by.user.userPrincipalName with runs=5
142
+
[authentication where event.dataset == "okta.system" and okta.event_type == "user.mfa.okta_verify.deny_push"] by okta.actor.id
143
+
"""
144
+
rule= {
145
+
"metadata": mk_metadata(["azure", "okta"], comments="Top-level sequence by and runs"),
146
+
"rule": mk_rule(
147
+
name="EQL sequence with top-level by and runs",
148
+
rule_id="4e5f6a99-4567-4f8d-9f72-1d8e5f3e5f15",
149
+
description="Validate top-level sequence by and per-subquery runs across integrations.",
"""Sequence-level by with runs; okta subquery incorrectly uses an azure join field causing validation failure."""
158
+
rc=RuleCollection()
159
+
query="""
160
+
sequence by host.id, user.id with maxspan=1s
161
+
[any where event.dataset == "azure.auditlogs" and event.action == "Register device"] by azure.auditlogs.properties.initiated_by.user.userPrincipalName with runs=5
162
+
[authentication where event.dataset == "okta.system" and okta.event_type == "user.mfa.okta_verify.deny_push"] by azure.auditlogs.properties.initiated_by.user.userPrincipalName
163
+
"""
164
+
bad_rule= {
165
+
"metadata": mk_metadata(["azure", "okta"], comments="Top-level sequence by and runs invalid join"),
166
+
"rule": mk_rule(
167
+
name="EQL sequence with top-level by and runs invalid",
0 commit comments