From 990488c201cd0a1cbc256ee482d3eb15ad28f66b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Tue, 19 Sep 2023 09:44:46 +0200 Subject: [PATCH] inlined yara-rules file creation --- staticanalysis/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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