# Suricata-IDS and Nmap

**URL:** <https://forum.suricata.io/t/suricata-ids-and-nmap/506>\
**Category:** Rules\
**Tags:** community\
**Created:** [August 16, 2020, 8:48pm UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506 "2020-08-16T20:48:42Z")\
**Posts on this page:** 9\
**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 16, 2020, 8:48pm UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/1 "2020-08-16T20:48:42Z")

</div>

Hello,  
How can I block the Nmap scanner via Suricata-IDS? Any rule exist?

Thank you.

---

<div class="post-metadata">

**Author:** ![syoc](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@syoc](https://forum.suricata.io/u/syoc)\
**Post date:** [August 18, 2020, 6:43am UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/2 "2020-08-18T06:43:32Z")

</div>

Have a look at: [Try to check nmap scan with suricata](https://forum.suricata.io/t/try-to-check-nmap-scan-with-suricata/513)

Seems like Emerging Threats have some nmap rules. You can try changing the alert keyword to drop.

---

<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 18, 2020, 9:23am UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/3 "2020-08-18T09:23:12Z")

</div>

No default rule?  
Suricata-IDS can’t detect Nmap?

---

<div class="post-metadata">

**Author:** ![bwoodberg](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bwoodberg](https://forum.suricata.io/u/bwoodberg)\
**Post date:** [August 18, 2020, 11:38am UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/4 "2020-08-18T11:38:41Z")

</div>

Hi Jason,

There is no one default rule because NMAP uses many different techniques to scan, so it wouldn’t be possible to do this with a single signature. You would likely need some combination of signatures + Suricata’s IDS decoder events. If you do find a specific NMAP technique (or any scanner, tool, vulnerability PoC &c) that we do not have Suricata coverage for, please submit a request for coverage to either [support@emergingthreats.net](mailto:support@emergingthreats.net) or through our feedback portal at [https://feedback.emergingthreats.net](https://feedback.emergingthreats.net) with the specific technique that is not detected, and ideally a PCAP of the traffic for us to analyze.

Best Regards,

![image001.png](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/1X/ecb193c34b91b8326b45241f900a0b83b4c068eb.png)

---

<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 19, 2020, 9:15am UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/5 "2020-08-19T09:15:08Z")

</div>

Thank you, but the Suricata-IDS could provide some of the rules against popular Nmap scan technique!!!  
I think the Snort can detect some of the Nmap scans: [https://frankfu.click/security/ids/how-to-detect-nmap-scan-using-snort.html#:~:text=IDENTIFY%20NMAP%20PING%20SCAN&text=Therefore%20be%20smart%20and%20add,rule%20file%20in%20text%20editor](https://frankfu.click/security/ids/how-to-detect-nmap-scan-using-snort.html#:~:text=IDENTIFY%20NMAP%20PING%20SCAN&text=Therefore%20be%20smart%20and%20add,rule%20file%20in%20text%20editor)

---

<div class="post-metadata">

**Author:** ![bwoodberg](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bwoodberg](https://forum.suricata.io/u/bwoodberg)\
**Post date:** [August 19, 2020, 12:38pm UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/6 "2020-08-19T12:38:40Z")

</div>

Hi Jason,

Looking at these rules, I see a few problems:

![image001.png](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/1X/ecb193c34b91b8326b45241f900a0b83b4c068eb.png)

---

<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 19, 2020, 6:06pm UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/7 "2020-08-19T18:06:45Z")

</div>

What problem? They are not working properly?

---

<div class="post-metadata">

**Author:** ![bwoodberg](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bwoodberg](https://forum.suricata.io/u/bwoodberg)\
**Post date:** [August 19, 2020, 6:36pm UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/8 "2020-08-19T18:36:09Z")

</div>

Looks like my email response got cutoff. Reposting the full response in the Discourse Web which explains it:

Hi Jason,

Looking at these rules, I see a few problems:

1. They lock it down to a specific IP address, which yes could be used to detect scans, but might not be a good for the general ruleset from an FP perspective.
2. They do not actually affirmatively identify NMAP, they may identify the technique, but it could be any tool using the same scan.
3. There isn’t any thresholding, which will result in FP’s for at least some of these signatures.

Still, I’ll inquire with our threat research team to see if there’s anything we can do to detect the techniques in a reliable manner.

Regards,

---

<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:14am UTC](https://forum.suricata.io/t/suricata-ids-and-nmap/506/9 "2020-08-20T09:14:56Z")

</div>

Thanks to you and Suricata-IDS team.
