Skip to content

Ramdek/OCI-Manalyze

Repository files navigation

OCI-Manalyze

Version Latest size Latest-dev size

An OCI container wrapper for Manalyze tool.

The image comes prepackaged with yara rules free of errors and precompiled.

Usage

Choose your favourite container management tool. (podman will be used in the examples)

The image can be pulled like this:

podman pull ghcr.io/ramdek/manalyze:latest

Single file analysis

By default, the container uses the following flags -p all -o json.
It scans the file under /binary inside of the container.

podman run -it --rm -v /path/to/pe/binary:/binary ghcr.io/ramdek/manalyze

You can change default behaviour by calling the manalyze binary.

podman run -it --rm -v /path/to/pe/binary:/other-binary ghcr.io/ramdek/manalyze manalyze -p all /other-binary

Directory analysis

It is possible to scan PE files in a directory.

podman run -it --rm -v /path/to/pe/directory:/binaries ghcr.io/ramdek/manalyze manalyze -p all -r /binaries

VirusTotal

The image supports using the VirusTotal plugin.
VIRUS_TOTAL_API_KEY environment variable should be filled to use it.

podman run -it --rm -e VIRUS_TOTAL_API_KEY=xxxx -v /path/to/pe/binary:/binary ghcr.io/ramdek/manalyze

Reuse this image

The image is built distroless by default.
If you wish to build another image on top of this one, use images with tag suffixed by -dev. (i.e. latest-dev)

Build (not yet)

The noshellkit submodule is not yet available !

You can use the Makefile to build the image:

make image

The image ramdek/manalyze:dev will then be built.

Yara rules

Some yara rules can be malformatted, failing the image build.
Rules to be removed during build time are located in build/malformatted_rules.

Malformatted rules can be listed like so:

make seek_bad_yara_rules

Other targets in the Makefile are for distribution purposes.