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
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.
In order to be able to start the project you will need to initialize it first. Do this by running:
git submodule update --init --recursiveThis fetches the newest version of the submodule for the backend code and is necessary for the application to work seamlessly.
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-cacheChange the version to your desired upstream Maltrail version.