FAQ Man page Mailing list Download

SEC - simple event correlator

Introduction

SEC is an open source and platform independent event correlation tool that was designed to fill the gap between commercial event correlation systems and homegrown solutions that usually comprise a few simple shell scripts. SEC accepts input from regular files, named pipes, and standard input, and can thus be employed as an event correlator for any application that is able to write its output events to a file stream. The SEC configuration is stored in text files as rules, each rule specifying an event matching condition, an action list, and optionally a Boolean expression whose truth value decides whether the rule can be applied at a given moment. Regular expressions, Perl subroutines, etc. are used for defining event matching conditions. SEC can produce output events by executing user-specified shell scripts or programs (e.g., snmptrap or mail), by writing messages to pipes or files, and by various other means.

SEC has been successfully applied in various domains like network management, system monitoring, data security, intrusion detection, log file monitoring and analysis, etc. The applications SEC has been used or integrated with include HP OpenView NNM and Operations, CiscoWorks, BMC Patrol, Nagios, SNMPTT, Snort IDS, Prelude IDS, etc.

Event correlation operations supported by SEC

Following event correlation rule types are currently implemented in SEC: Rules allow not only shell commands to be executed as actions, but they can also: This makes it possible to combine several rules and form more complex event correlation schemes.

Documentation

See SEC manpage and FAQ for a detailed information about SEC. You can also check the following sources for additional information:

Installation information and dependencies

SEC has been primarily tested on Linux and Solaris, but since it is written in Perl and does not use any platform-dependent subroutines, it should work on most operating systems. The author has received reports about SEC working on FreeBSD, OpenBSD, HP-UX, AIX, Tru64 UNIX, Mac OS X, and Win2000 (with CygWin Perl).

In order to install SEC check where your Perl executable is located, and change the first line in sec.pl file accordingly, if necessary. If your Perl executable is /usr/local/bin/perl, for instance, set the first line to #!/usr/local/bin/perl -w. Then copy sec.pl and sec.pl.man (SEC manpage) to appropriate directories, e.g.,
cp sec.pl /usr/local/bin
cp sec.pl.man /usr/local/man/man1/sec.pl.1

Since SEC is generally not tested against outdated Perl releases, it is recommended to run SEC with at least Perl 5.6 (see http://www.perl.org for the latest stable Perl release). SEC also uses Perl Getopt, POSIX, Fcntl, IO::Handle, and Sys::Syslog modules, but those modules are included in the standard installation of Perl.

Mailing list

There is a mailing list for SEC users. The purpose of this list is to facilitate discussion between SEC users, so that you can ask questions from more experienced users and share your experience with others.

Download

sec-2.5.2.tar.gz (July 16 2009)

... or you can visit SEC download page at Sourceforge (has also older versions available).

SEC has also been packaged for:
- Debian Linux
- Gentoo Linux
- Ubuntu Linux
- Fedora Linux
- RHEL
- FreeBSD
- OpenBSD
(if any of the links are broken or you spot packages for other platforms, please contact the author).

Related tools

Logpp is a tool that can be employed for reducing the load of SEC by filtering out irrelevant input data, for converting multi-line log messages into syslog format, and for other log preprocessing tasks. You might also be interested in SLCT and LogHound that were designed for mining patterns from log files.

Author

Risto Vaarandi (ristov at users d0t s0urcef0rge d0t net)

Please don't contact the author with SEC usage questions - you should post such questions to the SEC mailing list.

Acknowledgments

This work is supported by SEB.

The author wishes to thank the following people for supplying software patches and documentation updates:

Al Sorrell
James Brown
John P. Rouillard
Jon Frazier
Mark D. Nagel
Rick Casey
William Gertz


SourceForge.net Logo