# Can Suricata-IDS protect a service like vsftpd from Brute-force attack?

**URL:** <https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524>\
**Category:** Help\
**Created:** [August 20, 2020, 9:17am UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524 "2020-08-20T09:17:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Hack3rcon](https://forum.suricata.io/u/Hack3rcon)\
**Post date:** [August 20, 2020, 9:17am UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/1 "2020-08-20T09:17:25Z")

</div>

Hello,  
Can I protect a service like vsftpd from Brute-force attack via Suricata-IDS?

Thank you.

---

<div class="post-metadata">

**Author:** ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)\
**Post date:** [August 20, 2020, 9:37pm UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/2 "2020-08-20T21:37:26Z")

</div>

IDS mode is passive, so it’s no real protection you will just see a potential attack. In IPS mode you could block it if you have a rule for that.

---

<div class="post-metadata">

**Author:** ![Hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Hack3rcon](https://forum.suricata.io/u/Hack3rcon)\
**Post date:** [August 21, 2020, 10:59am UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/3 "2020-08-21T10:59:00Z")

</div>

I used [https://kifarunix.com/install-and-setup-suricata-on-centos-8/](https://kifarunix.com/install-and-setup-suricata-on-centos-8/) tutorial for installed the Suricata-IDS. Which mode is enabled?  
Can you show me any rule about it?

---

<div class="post-metadata">

**Author:** ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)\
**Post date:** [August 22, 2020, 10:32pm UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/4 "2020-08-22T22:32:23Z")

</div>

IDS mode is the default mode in most cases/

I don’t have a rule for that, that’s something you either have to check in the different signature sources like Emerging Threats or write your own rule(s) to match your usecase

---

<div class="post-metadata">

**Author:** ![Hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Hack3rcon](https://forum.suricata.io/u/Hack3rcon)\
**Post date:** [August 23, 2020, 2:58am UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/5 "2020-08-23T02:58:33Z")

</div>

If the default option is IDS then what is the rule of “rules” files? They loaded but not protecting the system?

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [August 23, 2020, 3:04am UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/6 "2020-08-23T03:04:35Z")

</div>

The rules are a set of signatures that tell Suricata what to “alert” on. This information is separate from the Suricata program so people can create them, and load them into Suricata. For the most part the rules look for a pattern in the network traffic and create an alert to let you know what happened. I often think of this as the start of investigating further to see if its something that needs attention, is a false positive, or just some extra noise on the network.

If you do configure Suricata to run inline, then you can optionally “drop” the packet that triggered the alert to provide protection. It is generally up to you, the user to decide what rules should be convert to drop. I personally don’t run inline so never really consider what I would turn into a drop rule.

---

<div class="post-metadata">

**Author:** ![Hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Hack3rcon](https://forum.suricata.io/u/Hack3rcon)\
**Post date:** [August 23, 2020, 7:28am UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/7 "2020-08-23T07:28:37Z")

</div>

Did you see  
[https://kifarunix.com/install-and-setup-suricata-on-centos-8/](https://kifarunix.com/install-and-setup-suricata-on-centos-8/)?  
If with above configuration the Suricata-IDS just working as IDS and doesn’t protect the server, then why that tutorial used “hping” tool to launch a DDos attack and Suricata-IDS blocked it?

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [August 23, 2020, 4:23pm UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/8 "2020-08-23T16:23:22Z")

</div>

> [@Hack3rcon](#):
>
> Did you see  
> [https://kifarunix.com/install-and-setup-suricata-on-centos-8/](https://kifarunix.com/install-and-setup-suricata-on-centos-8/)?  
> If with above configuration the Suricata-IDS just working as IDS and doesn’t protect the server, then why that tutorial used “hping” tool to launch a DDos attack and Suricata-IDS blocked it?

I don’t see anything about blocking in that tutorial. Just detecting.

---

<div class="post-metadata">

**Author:** ![Hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Hack3rcon](https://forum.suricata.io/u/Hack3rcon)\
**Post date:** [August 23, 2020, 4:48pm UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/9 "2020-08-23T16:48:51Z")

</div>

Please see " Perform SSH DDoS Test Attack" section. What about now?

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [August 23, 2020, 5:46pm UTC](https://forum.suricata.io/t/can-suricata-ids-protect-a-service-like-vsftpd-from-brute-force-attack/524/10 "2020-08-23T17:46:37Z")

</div>

I think that was just a poor choice of rule to use in the example. While the rule does have a description of “ET DROP Spamhaus DROP Listed Traffic Inbound group 1”, it is just an alert rule. It would still be up to you as the user to:

1. Setup Suricata to run inline.
2. Convert this rule to a drop rule.
