diff --git a/staticanalysis/Dockerfile b/staticanalysis/Dockerfile index 8e63305..c1364a1 100644 --- a/staticanalysis/Dockerfile +++ b/staticanalysis/Dockerfile @@ -12,8 +12,9 @@ RUN wget https://mark0.net/download/trid_linux_64.zip \ && chmod +x trid \ && mv trid /usr/local/bin/trid ## YARA -COPY ./yara-rules /usr/local/bin/yara-rules -RUN git clone https://github.com/Yara-Rules/rules.git /usr/local/src/yara-rules +RUN git clone https://github.com/Yara-Rules/rules.git /usr/local/src/yara-rules \ + && echo "#!/bin/bash" > /usr/local/bin/yara-rules && echo 'yara -w /usr/local/src/yara-rules/index.yar "${*}"' >> /usr/local/bin/yara-rules \ + && chmod +x /usr/local/bin/yara-rules ## Detect-It-Easy RUN wget https://github.com/horsicq/DIE-engine/releases/download/3.08/die_3.08_Debian_12_amd64.deb -O die.deb\ && apt-get install --no-install-recommends -y ./die.deb