ndl@home

Prelude Trigger

· updated

Intro

Prelude Trigger is a small daemon that allows to execute actions based on IDMEF events emitted by Prelude IDS.

It is written in Python and distributed under GPL.

Prelude Trigger is heavily based on Prelude Correlator implementation.

Some of the things it might be useful for:

As most of my side projects, it was written due to my own needs in two evenings with all consequences that bears, so consider yourselves warned ;-)

Getting it

Prelude Trigger 1.0.0-beta1.

Prerequisites

Installation

Running

By default executable script is located at /usr/bin/prelude-trigger, run /usr/bin/prelude-trigger --help to see the list of available options.

On Gentoo, if installed using ebuild above, you can use /etc/init.d/prelude-trigger to start it in daemon mode.

Configuration

Edit /etc/prelude-trigger/prelude-trigger.yaml to add your triggers and /etc/prelude-trigger/prelude-trigger.conf for logging configuration.

Trigger consists of two main parts:

Currently only regex-based filter and command-line action are implemented, but new ones are easy to add as plugins.

Command-line action supports IDMEF paths substitutions, so if command argument is valid IDMEF path - the value from IDMEF is passed to the command, otherwise the argument is passed verbatim.

See comments in prelude-trigger.yaml for exact configuration syntax and trigger examples.

Known “bugs”