You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/contrib/file_processor
Martin Holste 4030840212 Added contrib folder with file_processor utility which is a plugin framework for reading the files-json.log and processing and taking action based on the files observed. 14 years ago
..
Action Added contrib folder with file_processor utility which is a plugin framework for reading the files-json.log and processing and taking action based on the files observed. 14 years ago
Processor Added contrib folder with file_processor utility which is a plugin framework for reading the files-json.log and processing and taking action based on the files observed. 14 years ago
README Added contrib folder with file_processor utility which is a plugin framework for reading the files-json.log and processing and taking action based on the files observed. 14 years ago
file_processor.conf Added contrib folder with file_processor utility which is a plugin framework for reading the files-json.log and processing and taking action based on the files observed. 14 years ago
file_processor.pl Added contrib folder with file_processor utility which is a plugin framework for reading the files-json.log and processing and taking action based on the files observed. 14 years ago

README

This directory contains what's needed for reading the JSON file /var/log/suricata/files-json.log and processing those entries against plugins.  Included are plugins for checking the MD5 of the observed file on the network against already created reports on anubis.iseclab.org, malwr.com, and threatexpert.com.  If you have a virustotal.com API key (free, though see the terms of use on virustotal.com/documentation/public-api/), you can enable the virustotal.com plugin and configure your API key so you can check the MD5 against over forty AV vendors' results.

To create new plugins, use the existing modules as a guide.  Drop a new file with the .pm extension in either the Processor or Action directory, depending on what kind of plugin it is.  Processor plugins add information to the data.  Action plugins do something with the data once all of the information is available.  A simple logging demo has been included, but many different kinds of action plugins could be written to do things like submit full files to a sandbox, send an email, log to a database, send an SNMP trap, etc.