Skip to content

Docker based Suricata, Elasticsearch, Logstash, Kibana, Scirius aka SELKS

License

Notifications You must be signed in to change notification settings

glongo/Amsterdam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amsterdam

Introduction

Amsterdam is SELKS and Docker using Compose. The result of Amsterdam is a set of containers providing a complete Suricata IDS/NSM ecosystem:

  • Suricata
  • Elasticsearch
  • Logstash
  • Kibana
  • Scirius

The ELK stack is created using the official docker images. Communication between logstash and suricata is done via a share directory (from the host). The same applies to scirius and suricata where the /etc/suricata/rules directory is shared.

Installation

You can install amsterdam from the source directory by running

sudo python setup.py install

Usage

You need to install Docker compose. On Debian

sudo apt-get install docker-compose

To sniff the wlan0 interface and store data and config in the data directory, you can run

amsterdam -d data -i wlan0 setup
amsterdam -d data start

As of now the start command will take really long on first run as it will fetch from Docker hub all the necessary images and build some custom container based on Debian.

Subsequent run should take less than 1 minute.

You can then connect to:

To stop the amsterdam instance, run

amsterdam -d data stop

Updating

When code is updated (new suricata package or new ELK versions), you can run

amsterdam -d data update

Then, you can restart the services

amsterdam -d data restart

Tuning and coding

The configuration are stored in the config directory. For now only scirius, logstash and suricata are configured that way.

Running Scirius from latest git

To do so, simply edit docker-compose.yml in the data directory and uncomment and set the path to the scirius source tree. Then restart the services

amsterdam -d data restart

Run a migration inside the container (if you project name is amsterdam)

docker exec amsterdam_scirius_1 python /opt/selks/scirius/manage.py migrate

About

Docker based Suricata, Elasticsearch, Logstash, Kibana, Scirius aka SELKS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 92.5%
  • Shell 7.5%