# Scan ports doubt

**URL:** https://community.zeek.org/t/scan-ports-doubt/3945
**Category:** Zeek
**Created:** [December 15, 2015, 10:10pm UTC](https://community.zeek.org/t/scan-ports-doubt/3945 "2015-12-15T22:10:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Cristian\_Barbaro](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@Cristian\_Barbaro](https://community.zeek.org/u/Cristian_Barbaro)
#### Post date: [December 15, 2015, 10:10pm UTC](https://community.zeek.org/t/scan-ports-doubt/3945/1 "2015-12-15T22:10:22Z")

</div>

Hello, Community.

I've a problem with scan ports:

&nbsp;&nbsp;&nbsp;&nbsp;I'm working on a script to detect ports scan (horizontal and  
vertical) using scan.bro script and I send email when detected. I've a  
question with Notice::policy executions times.  
I do a scan to IP's ports (e.g. 10.10.10.10) from a specific IP (e.g.  
10.10.1.2). If scan detected first time, send email, but if I do another  
scan to same IP (10.10.10.10) from 10.10.1.2, Notice::policy hook  
doesn't execute again.  
If I do nmap scan from another IP (e.g. 10.10.2.2) to 10.10.10.10,  
occurs same problem: It only detects first time executing Notice::policy.

I would like to change this options but I can't find how to do it.

Thank you and I'm sorry for my English.

---

<div class="post-metadata">

### Author: ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)
#### Post date: [December 15, 2015, 10:27pm UTC](https://community.zeek.org/t/scan-ports-doubt/3945/2 "2015-12-15T22:27:50Z")

</div>

Duplicate notices are suppressed so that you don't get notified about the same event over and over again.

Try something like this in your local.bro

&nbsp;&nbsp;&nbsp;&nbsp;redef Notice::type\_suppression\_intervals += {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Scan::Port\_Scan] = 60sec,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Scan::Address\_Scan] = 60sec,  
&nbsp;&nbsp;&nbsp;&nbsp;};

---

<div class="post-metadata">

### Author: ![Cristian\_Barbaro](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@Cristian\_Barbaro](https://community.zeek.org/u/Cristian_Barbaro)
#### Post date: [December 15, 2015, 11:13pm UTC](https://community.zeek.org/t/scan-ports-doubt/3945/3 "2015-12-15T23:13:59Z")

</div>

Perfect. Works fine.

Thank you.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)
#### Post date: [May 6, 2022, 3:43pm UTC](https://community.zeek.org/t/scan-ports-doubt/3945/4 "2022-05-06T15:43:17Z")

</div>


