WEBVTT

00:00:01.040 --> 00:00:04.970
I went back to the file added to the system alert in the Cabana UI.

00:00:05.440 --> 00:00:06.280
Right now,

00:00:06.310 --> 00:00:10.570
this alert fires whenever a file is added to one of the monitored file paths.

00:00:11.340 --> 00:00:12.450
But how do we know this?

00:00:12.840 --> 00:00:16.170
Let's search for the rule that fired this alert.

00:00:17.040 --> 00:00:18.870
First off, we get the rule ID.

00:00:22.340 --> 00:00:26.270
Then we search the Wazuh ruleset on GitHub for that ID.

00:00:30.440 --> 00:00:31.100
Basically,

00:00:31.110 --> 00:00:35.190
all you need to do is enter 554 into the search field when

00:00:35.190 --> 00:00:37.370
you're within the Wazuh ruleset repo.

00:00:38.440 --> 00:00:40.160
Okay, it looks like we got a match.

00:00:40.350 --> 00:00:41.170
Let's check this out.

00:00:45.640 --> 00:00:47.840
All rules need to be triggered by some event.

00:00:47.840 --> 00:00:52.170
In this case, pay particular attention to the decoded_as field.

00:00:52.540 --> 00:00:57.460
All events that come into Wazuh go through a decoder that classifies the event.

00:00:57.460 --> 00:01:00.760
As far as what values can exist in this field,

00:01:00.820 --> 00:01:04.650
I suggest you go through the decoder files in course notes number 9.

00:01:04.650 --> 00:01:09.150
However, Wazuh defines certain decoders internally that aren't seen in this link.

00:01:10.040 --> 00:01:12.890
My suggestion is to go through the ruleset repo and

00:01:12.890 --> 00:01:14.960
look for different decoded_as values.

00:01:15.340 --> 00:01:17.280
The values are pretty self‑descriptive.

00:01:17.280 --> 00:01:19.170
In this example,

00:01:19.170 --> 00:01:23.850
syscheck_new_entry corresponds to the new files that are observed by _____.

00:01:24.240 --> 00:01:29.040
To note, this rule won't trigger when an existing file is changed or deleted.

00:01:29.290 --> 00:01:31.650
For that, let's do a little more searching.

00:01:33.340 --> 00:01:40.060
Above, we see rule 553 sysheck_deleted, or in other words, a file is deleted.

00:01:40.060 --> 00:01:43.080
And further, in 550 above that,

00:01:43.150 --> 00:01:47.400
we see syscheck_integrity_changed or Integrity checksum changed.

00:01:47.400 --> 00:01:51.880
As we're seeing, multiple rules can correlate to a file operation.

00:01:51.880 --> 00:01:56.010
To keep things simple, Wazuh classifies rules into groups.

00:01:56.440 --> 00:02:00.370
Further, we notice that all of the rules are within the syscheck rule group.

00:02:00.840 --> 00:02:03.360
Let's keep this in mind for the rule we're about to create.
