Professional Security Operations Engineer free question 7 / 10 · Domain 4: Detection engineering
In a rule's events section you write UDM events $login and $logout and join them on the same user. You want to detect a login with no logout. Which condition compiles?
- $login and !$logout
- $login and not $logout
- $login, not $logout
- $login, !$logout
Show the answer and explanation
Answer: A
Why this is correct
To compile a non-existence query, at least one UDM event must have a bounded condition. $login is a bounded condition that requires the event to exist, and !$logout is an unbounded condition that expresses the absence of the event. Joining the two with and satisfies the requirement, and both UDM events written in events appear in the condition.
Why the other options are wrong
"$login and not $logout" … The not keyword cannot be used in conditions on events or placeholders, and not $u1 appears in the invalid examples. The absence of an event is written with a ! prefix, as in !$logout.
"$login, !$logout" … Commas cannot be used to separate conditions in condition (the invalid example is $u1, $u2, $e1, ...). Join conditions with and.
"$login, not $logout" … This combines both mistakes: a comma cannot separate conditions, and the not keyword cannot be used. Join conditions with and and write absence with !.
Key point
A placeholder or entity with an unbounded condition must also be tied to at least one bounded UDM event. The or keyword cannot be combined with unbounded conditions.