Skip to main content

YARA-L rule to detect ingestion drop

  • June 16, 2024
  • 5 replies
  • 48 views

Forum|alt.badge.img+4

Hi,

Has anyone got any experience with creating a YARA-L rule that detects when a log source drops ingesting? I was hoping for a possible quick win here instead of using a dashboard.

Thanks

5 replies

bsalvatore
Forum|alt.badge.img+6
  • Bronze 1
  • June 19, 2024

Hi,

I Think that is not possible because you cannot search for a nullable log. Maybe you can use the search API and create a custom cloud function to ingest the metric in the SIEM and create a related rule.


mikewilusz
Staff
Forum|alt.badge.img+10
  • Staff
  • June 20, 2024

The awesome blog by Chris Martin has a great write-up on how you can achieve this with Cloud Monitoring in GCP: https://medium.com/@thatsiemguy/chronicle-forwarder-telemetry-via-google-cloud-monitoring-39ccb32b3853

As noted, a YARA-L rule is not the best spot to do this type of monitoring today.

-mike


jpetitg
Forum|alt.badge.img+2
  • Bronze 1
  • June 24, 2024

Hi,

Use of YARA-L for ingestion monitoring is indeed not recommended as use of event missing (!$event) is not for this use case and can result on the rule being limited and then paused.

For monitoring purpose, as you should have your instance linked to a specific project on your GCP instance, metrics from SIEM module of Google SecOps will be usable on your project. You can leverage those metrics to create Alerting Policies (Monitoring > Alerting in GCP) for your use case (use of metric absense).

In addition to the great article from Chris, you can find official documentation on this topic here: https://cloud.google.com/chronicle/docs/ingestion/ingestion-notifications-for-health-metrics


Forum|alt.badge.img+1
  • Bronze 1
  • June 24, 2024

As said by Mike, the best way to keep tabs on ingestion metrics is by using Monitoring directly on GCP. 


Forum|alt.badge.img+4

Thanks for the feedback all. I already knew the answer but wanted to double check whether there was a way via YARA-L which i had missed.

Thanks.