LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-30-2008, 01:53 PM   #1
rstev39147
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Rep: Reputation: 0
RedHat: Monitor specific security events and send notifications about them


Hello everyone,

I'll try to make this short. I'm using RedHat RHEL 4 on all the machines in my network. What I need to do is monitor specific security events on my network and notify a single machine/application when they happen. The events will include:

- Log in failure (especially multiple failures in a short period of time)
- Direct root login attempts (successful and failed)
- The use of the -su command
- Denial of Service attacks
- Distributed Denial of Service attacks
- When someone attempts to scan for open ports (ETTERCAP??)
- When a new MAC address is found
- Modifications and deletion of certain files and directories (GAMIN??)
- Power downs and reboots
- When a drive is added or removed

So basically, when any of these events happen, I just need a notification sent to the main machine. I found a few ideas as you can see in the parenthesis after a couple of them.

Any help/suggestions/suggested packages/etc. in any area mentioned would be HUGELY appreciated. I'll continue to search for ideas as well. Please yell at me if I need to provide more information...
 
Old 07-30-2008, 09:33 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, I've got Fedora, and RH is based on that. In the root acct, if I go into mail (mailx) I see emails from the logwatch tool which seem to cover some of those.
Maybe you could get it to cc the remote as well.
See also syslog, tripwire.
In fact, this should prob be moved to the security forum for better responses. Ask the mods via the 'Report' button on your post.
Good luck
 
Old 07-31-2008, 05:38 PM   #3
rstev39147
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the suggestions

Chris,

Thanks so much for the suggestions. I'll look into them and sorry for the post being in the wrong area, I thought I was posting in the security forum!! Thanks again!
 
Old 07-31-2008, 05:43 PM   #4
rstev39147
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Monitor specific security events and send notifications about them

Hello everyone,

I'll try to make this short. I'm using RedHat RHEL 4 on all the machines in my network. What I need to do is monitor specific security events on my network and notify a single machine/application when they happen. The events will include:

- Log in failure (especially multiple failures in a short period of time)
- Direct root login attempts (successful and failed)
- The use of the -su command
- Denial of Service attacks
- Distributed Denial of Service attacks
- When someone attempts to scan for open ports (ETTERCAP??)
- When a new MAC address is found
- Modifications and deletion of certain files and directories (GAMIN??)
- Power downs and reboots
- When a drive is added or removed

So basically, when any of these events happen, I just need a notification sent to the main machine that monitors the network. I'm not sure if there are applications I can use, built in features of the OS, etc. I found a few ideas as you can see in the parenthesis after a couple of them.

Any help/suggestions/suggested packages/etc. in any area mentioned would be HUGELY appreciated. I'll continue to search for ideas as well. Please yell at me if I need to provide more information...
 
Old 07-31-2008, 06:00 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
- Log in failure # per-daemon or in syslog (PAM).
- Direct root login attempts # in syslog (PAM)
- The use of the -su command # in syslog (PAM), depending on RH version apparently can be mitigated with like pam_script
- Denial of Service attacks # IDS
- Distributed Denial of Service attacks # IDS
- When someone attempts to scan for open ports # IDS
- When a new MAC address is found # arpwatch
- Modifications and deletion of certain files and directories # Dnotify in Linux 2.4, Inotify in kernel 2.6 but "better": Auditd (depending on which and how many files)
- Power downs and reboots # last, gets syslogged
- When a drive is added or removed # depends on what you need to see HW inventory, hotswap?, USB/Firewire plugin events?... define.

Some processes can deal with notifications themselves, some have plugins to allow that and in any other case any text that can be logged can be filtered for using regexes, meaning any action-capable (sys)log watcher like SEC can handle that. You've got a lot of options, it just depends on what and how you want it.
 
Old 07-31-2008, 09:34 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, thinking about it, as you've got RH, you may find that the SELinux SW can be used
 
Old 08-01-2008, 12:11 AM   #7
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by rstev39147 View Post
Hello everyone,

I'll try to make this short. I'm using RedHat RHEL 4 on all the machines in my network. What I need to do is monitor specific security events on my network and notify a single machine/application when they happen. The events will include:

- Log in failure (especially multiple failures in a short period of time)
- Direct root login attempts (successful and failed)
- The use of the -su command
- Denial of Service attacks
- Distributed Denial of Service attacks
- When someone attempts to scan for open ports (ETTERCAP??)
- When a new MAC address is found
- Modifications and deletion of certain files and directories (GAMIN??)
- Power downs and reboots
- When a drive is added or removed

So basically, when any of these events happen, I just need a notification sent to the main machine that monitors the network. I'm not sure if there are applications I can use, built in features of the OS, etc. I found a few ideas as you can see in the parenthesis after a couple of them.

Any help/suggestions/suggested packages/etc. in any area mentioned would be HUGELY appreciated. I'll continue to search for ideas as well. Please yell at me if I need to provide more information...
Have you checked Snort? It's a network-based intrusion detection system (NIDS). It'll do a lot of what you want but some of your requirements are host-based (HIDS). You may need to try Samhain or something similar to monitor host logs. You'll need to probably use both NIDS and HIDS technologies, as one won't do all your requirements, but both combined should be able to do it.

You've a big project on your hands, BTW.
 
Old 08-02-2008, 03:14 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <security> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-03-2008, 08:44 PM   #9
rstev39147
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for all the help...

I really appreciate the help from you guys...I'll try out some stuff and see what happens...

Rob
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send events from kernel module to user space process yugandhar Linux - Kernel 2 02-21-2011 10:39 AM
How to send keyboard/mouse events to a process? shamju Linux - Software 0 12-14-2006 04:27 AM
Need a way for slack server automatically send various notifications cav Slackware 3 04-20-2006 05:48 PM
Command line program to send X events? drj000 Linux - Software 0 09-07-2005 05:48 PM
Specific Monitor Refresh Rates in Redhat? dbeatle123 Linux - Hardware 3 01-13-2005 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration