Threat hunting1 / 5
A threat hunter is analyzing anomalous user behavior in Google SecOps and suspects lateral movement. They want to identify a user account authenticating from an unusual number of distinct source IP addresses within a 24-hour window. Which YARA-L approach best supports this behavioral analysis?
CorrectNot quite
Alex
For behavioral detections, use a multi-event YARA-L rule. Assign the user ID and source IP from USER_LOGIN events, group by user in the match section over 24h, calculate an outcome such as $distinct_source_ips = count_distinct($src_ip), and trigger in the condition when that outcome exceeds the chosen threshold. This follows the official YARA-L structure: match correlates events, outcome computes aggregations, and condition decides whether the rule fires.
Sourcecloud.google.com
Create a free account to keep asking Alex — no credit card required.
Question 1 of 5
Get started free