Part 6 of the Free MYDFIR Wazuh Challenge - Build a Custom SSH Brute-Force Detection Rule
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
I do want to create a custom rule that says something along the lines of three failed SSH log ons within say five or two minutes. Essentially, I used a prompt that says create a rule where greater than or equal to three SSH login failures were observed. And this is pretty much what it gave me. I am going to paste all of this into the free community so you can simply copy and paste it and test it for yourself. All right, so now let's go ahead and test it out. So I'll click on save. And it says changes will not take effect until a reload is performed. Click on reload and while that's doing its thing, take a look at the description. It says multiple SSH login failures observed from the same source IP. And that's pretty much what I wanted to say. So if we happen to see three failed login attempts within 120 seconds, this custom
rule should trigger. Going back over to our discover and instead of last 15 minutes, let's do last five minutes. And
we have no results. Let's go and generate this one more time.
Fail once. Fail twice. And the last one. Perfect. Now in theory, our custom rule should now trigger. Let's go ahead and refresh and here we go. Multiple SSH
login failures observed from the same source IP. So now that we have this, we can now configure active response so Wazuh can perform some automated actions.





