Solved

how to set an email alert for ftp and ssh login in snort

Posted on 2010-11-13
6
1,353 Views
Last Modified: 2013-11-29
Dear Experts:

I am having RHEL5 and snort is installed configured and working fine similary for front end installed base, this is also fine now iam looking for an email alert configuration in snort , the server is accessed from nay users through the ftp and some through the ssh, iam looking for an alert mail when somebody login through the ftp or ssh , please please help me how to configure this in the snort. somewhere i read it can be done in the local.rules file but i missed that doc, please help in this, thank you.
0
Comment
Question by:D_wathi
  • 4
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
Giladn earned 500 total points
Comment Utility
you are looking for something like this:

alert tcp any any -> any any 21 (content:"user root";)

now you want an email alert which is NOT what snort can do, you need a program to monitor snort and alert via email
lie 'swatch' or 'logcheck'

try reading the following link for understanding the process :


http://blackflag.wordpress.com/2006/01/24/how-to-email-alerting-for-the-snort-intrusion-detection-system/

0
 

Author Comment

by:D_wathi
Comment Utility
Sir, thanks for the help, now i understood alert is not dependent on snort .

By adding the following line in the .bash_profile, if any body login then iam getting mail.
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user@example.com

similarly iam looking for an alert if the users login through the ftp i mean login as ftp, if any user login using ftp service then i should get an email alert, please help


0
 

Author Comment

by:D_wathi
Comment Utility
Sir,

if we add the below line to the local.rules file will i get an email alert
 alert tcp any any -> any any 21 (content:"user root";)

Please suggest.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 11

Expert Comment

by:Giladn
Comment Utility
In that way you will get an alert in log not via email, read whitin the link I've posted to make it email on alert..
0
 

Author Comment

by:D_wathi
Comment Utility
Sir, Thanks for the reply , while going through the link got to know it requires SnortSlinger hence as mentioned in the link tried to access http://www.venom600.org/code/SnortSlinger but this link is not accessible, please suggest me frowm where i can download the SnortSlinger.

Thanks in advance.
0
 

Author Comment

by:D_wathi
Comment Utility
Sir, now the snort , barnyard and swatch got installed successfully,  iam looking for the automatic email alert for the ftp logins ,with the help of experts exchange got to know with the below mentioned alert command automatic email alert is possible but i have no idea where to put these lines i mean in which file i have to add this, please help.

alert tcp $EXTERNAL_NET any -> $HOME_NET 21 (msg:"FTP USER login"; flow:to_server,established,no_stream; content:"USER"; nocase; relative; pcre:"/^USER\s[^\n]{1,100}/smi"; classtype:log-login)


0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now