RedHat: Monitor specific security events and send notifications about them
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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
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!
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...
- 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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.