# This Docker image encapsulates the REMnux v7 distro on Ubuntu 20.04 (focal). # For details about REMnux, including how you can run it on a physical system # or as a virtual machine, see https://REMnux.org. # # You can run this image as a container using a command such as: # # docker run --rm -it remnux/remnux-distro /bin/bash # # To map a local directory into the container's /home/remnux/files directory, # you could use a command lile this by supplying the appropriate directory name: # # docker run --rm -it -v :/home/remnux/files remnux/remnux-distro /bin/bash # # If you'd like to access the container using SSH, you can invoke it like this by # mapping your local TCP port 22 to the container's internal TCP port 22. In this example, # the container will remain active in the background: # # docker run -d -p 22:22 remnux/remnux-distro # # If you're going to run this container in a remote cloud, be sure to change the default # password and otherwise harden the system according to your requirements. # # If you're planning to use Cutter inside the container, you'll need to include the # --privileged parameter when invoking Docker. # FROM ubuntu:20.04 LABEL description="REMnux® is a Linux toolkit for reverse-engineering and analyzing malicious software." LABEL maintainer="Lenny Zeltser (@lennyzeltser, zeltser.com)" LABEL builder="Johannes Bülow " ARG CAST_VER=0.14.0 USER root WORKDIR /tmp RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ apt-get install -y wget gnupg git && \ wget https://github.com/ekristen/cast/releases/download/v${CAST_VER}/cast_v${CAST_VER}_linux_amd64.deb && \ dpkg -i /tmp/cast_v${CAST_VER}_linux_amd64.deb && \ rm /tmp/cast_v${CAST_VER}_linux_amd64.deb RUN cast install --mode cloud --user remnux remnux && \ rm -rf /root/.cache/* && \ unset DEBIAN_FRONTEND ENV TERM linux WORKDIR /home/remnux RUN mkdir /var/run/sshd EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"]