Skip to content

Instantly share code, notes, and snippets.

@lopes
Created August 7, 2024 14:44
Show Gist options
  • Save lopes/7c66f716aecc3763bfc349c96b644960 to your computer and use it in GitHub Desktop.
Save lopes/7c66f716aecc3763bfc349c96b644960 to your computer and use it in GitHub Desktop.
Chronicle searches in YARA-L. #siem #log #yara-l #chronicle #google
metadata.event_type = "NETWORK_CONNECTION"
$srcip = principal.ip
target.ip = "34.231.161.67"
match:
$srcip over 1h
outcome:
$event_count = count_distinct(metadata.id)
$sum_bytes_sent = sum(network.sent_bytes)
$sum_bytes_received = sum(network.received_bytes)
$dst_ports = array_distinct(target.port)
order:
$sum_bytes_sent desc, $event_count
limit:
5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment