Skip to content

BICEP-Pump/BICEP-maltrail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container Registry Codecov GitHub branch status

BICEP-maltrail

Maltrail Docker image adapted for BICEP.

The image holds the dependencies and IDS plugin interface implementation needed to run Maltrail inside the BICEP application. It supports BICEP configuration uploads, custom trail uploads, static PCAP analysis, and live network analysis through Maltrail's sensor.py.

The main BICEP project is available here
The official Maltrail repository can be found here

Usage

If you want to use the resulting image with the BICEP framework, provide a valid maltrail.conf configuration. During analysis, the wrapper applies the runtime values that BICEP expects: Maltrail writes logs to /opt/logs, live analysis uses the BICEP-managed tap interface, and static analysis uses any while reading the uploaded PCAP.

Custom rules uploaded through BICEP are treated as Maltrail custom trails. They are stored in /tmp/custom-trails/custom_trails.txt, and the wrapper patches CUSTOM_TRAILS_DIR into the active configuration when custom trails are present.

A starter configuration is included at bicep-maltrail/maltrail.conf.

Initialize project

In order to be able to start the project you will need to initialize it first. Do this by running:

git submodule update --init --recursive

This fetches the newest version of the submodule for the backend code and is necessary for the application to work seamlessly.

Building the project

To build a local version of the image for testing purposes, run:

cd ./bicep-maltrail
docker buildx build . \
  --build-arg BASE_IMAGE=ghcr.io/stamparm/maltrail \
  --build-arg VERSION=1.4 \
  -t ghcr.io/bicep-pump/bicep-maltrail:latest \
  --no-cache

Change the version to your desired upstream Maltrail version.

About

Repository to add maltrail as IDS plugin to BICEP

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors