# bro email, cleartext passwords and snort signature

**URL:** https://community.zeek.org/t/bro-email-cleartext-passwords-and-snort-signature/709
**Category:** Zeek
**Created:** [February 25, 2005, 8:59pm UTC](https://community.zeek.org/t/bro-email-cleartext-passwords-and-snort-signature/709 "2005-02-25T20:59:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vern](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/vern/32/630_2.png) [@Vern](https://community.zeek.org/u/Vern)
#### Post date: [February 25, 2005, 8:59pm UTC](https://community.zeek.org/t/bro-email-cleartext-passwords-and-snort-signature/709/1 "2005-02-25T20:59:51Z")

</div>

> 1) We used to run wots/swatch on bro logs periodically which checks for  
> alert patterns and send an us an email for that particular bro alert  
> with content being the alert line from bro logs.
> 
> Is there a better way to do this with bro ?

With the latest release there are two new notice actions, NOTICE\_EMAIL and  
NOTICE\_PAGE, which you can use for this.

> [ I do see policy/notice.bro has some email parameters settings but does  
> not seems to be working ]

Can you provide an example that demonstrates it's not working?

> 2) Our site has no cleartext password policy. I do not see passwords.bro  
> policy [as suggested by the documentation] with the default  
> installation policy files. It there such a policy available ?

Oops, it got left out inadvertently, as did rsh.bro. I'll send them  
along in the next two messages so folks can play with them prior to  
the next release.

> 3) The latest version seems to be failing when I am putting snort  
> signatures on machine.site.bro in site/ folder.

I see that you've since figured this out. A significant change with  
the 0.9a8 release was that signatures are now turned off by default.

&nbsp;&nbsp;&nbsp;&nbsp;Vern

---

<div class="post-metadata">

### Author: ![Aashish\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Aashish\_Sharma](https://community.zeek.org/u/Aashish_Sharma)
#### Post date: [February 26, 2005, 12:18am UTC](https://community.zeek.org/t/bro-email-cleartext-passwords-and-snort-signature/709/2 "2005-02-26T00:18:20Z")

</div>

Thanks a lot Vern. Getting passwords.bro and rsh.bro is very helpful. I  
have activated them to enforce our site policy.

Also, It would be nice if we can capture clear text ftp passwords.  
Recently we have seen thats' how most of warez upload/download is done.  
In some of the root exploit attempts in recent past miscreants had their  
own ftp server with stockpile of exploits from where they ftp'ed  
selected ones to our machine using their login/passwd.

> With the latest release there are two new notice actions, NOTICE\_EMAIL and  
> NOTICE\_PAGE, which you can use for this.

1) [From policy/notice.bro]  
global notice\_policy: set[notice\_policy\_item] = {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[$pred(n: notice\_info) = { return T; },  
# $result = NOTICE\_ALARM\_ALWAYS,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result = NOTICE\_EMAIL,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$priority = 0],  
} &redef;

How do I set up various degree's of notifications. For some things I  
would like to be paged, others an email and rest just logged.

$result seems to let me setup only one notice action option here.

> [ I do see policy/notice.bro has some email parameters settings but

does

> \> not seems to be working ]
> 
> Can you provide an example that demonstrates it's not working?

However If I understand it correctly, email sending mechanism is defined  
here in notice.bro :

# Variables the control email notification.  
global mail\_notification = reading\_live\_traffic() &redef;  
global mail\_script = "mail\_notice.sh" &redef;  
global mail\_dest = "bro" &redef;  
global mail\_page\_dest = "bro-page" &redef;

I dont see mail\_notice.sh in scripts folder so right now I am not very  
sure how bro is going to handle sending email notification and what this  
script is intending to do.

It is going to parse logs periodically and grep for NOTICE\_EMAIL and  
take action or has some other mechanism is intended ?

Thanks,  
Aashish

---

<div class="post-metadata">

### Author: ![Aashish\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Aashish\_Sharma](https://community.zeek.org/u/Aashish_Sharma)
#### Post date: [March 3, 2005, 4:26pm UTC](https://community.zeek.org/t/bro-email-cleartext-passwords-and-snort-signature/709/3 "2005-03-03T16:26:00Z")

</div>

Hello All,

Any thoughts about this :  
&nbsp;&nbsp;&nbsp;&nbsp;

> \> With the latest release there are two new notice actions, NOTICE\_EMAIL and  
> \> NOTICE\_PAGE, which you can use for this.  
> \>
> 
> 1) [From policy/notice.bro]  
> global notice\_policy: set[notice\_policy\_item] = {  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[$pred(n: notice\_info) = { return T; },  
> # $result = NOTICE\_ALARM\_ALWAYS,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result = NOTICE\_EMAIL,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$priority = 0],  
> } &redef;
> 
> How do I set up various degree's of notifications. For some things I  
> would like to be paged, others an email and rest just logged.
> 
> $result seems to let me setup only one notice action option here.
> 
> \> [ I do see policy/notice.bro has some email parameters settings but  
> does  
> \> \> not seems to be working ]  
> \>

2)

---

<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:37pm UTC](https://community.zeek.org/t/bro-email-cleartext-passwords-and-snort-signature/709/4 "2022-05-06T15:37:23Z")

</div>


