This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
95 lines (82 loc) · 2.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# This file is part of Viper - https://github.com/viper-framework/viper
# See the file 'LICENSE' for copying permission.
#
FROM ubuntu:14.04
MAINTAINER Viper-Framework (https://github.com/viper-framework)
ENV YARA_VERSION 3.4.0
ENV SSDEEP_VERSION 2.13
ENV PYEXIF_VERSION 0.2.0
ENV ANDROGUARD_VERSION 1.9
ENV VIPER_VERSION 1.2
USER root
RUN apt-get update && apt-get install -y \
git \
gcc \
python-dev \
python-pip \
curl \
libtool \
autoconf \
flex \
python-socksipy \
python-m2crypto \
python-levenshtein \
swig \
libssl-dev \
pff-tools \
libimage-exiftool-perl && \
rm -rf /var/lib/apt/lists/*
# Make Tmp Dir
RUN mkdir ~/tmp_build
# Install Yara
RUN cd ~/tmp_build && \
git clone -b v${YARA_VERSION} https://github.com/plusvic/yara.git && \
cd yara && \
bash build.sh && \
make install && \
cd yara-python && \
python setup.py build && \
python setup.py install && \
cd ../.. && \
rm -rf yara && \
ldconfig
# Install SSDEEP
RUN cd ~/tmp_build &&\
curl -sSL http://sourceforge.net/projects/ssdeep/files/ssdeep-${SSDEEP_VERSION}/ssdeep-${SSDEEP_VERSION}.tar.gz/download | \
tar -xzC . && \
cd ssdeep-${SSDEEP_VERSION} && \
./configure && \
make install && \
pip install pydeep && \
cd .. && \
rm -rf ssdeep-${SSDEEP_VERSION}
# Install PyExif
RUN cd ~/tmp_build && \
git clone -b v${PYEXIF_VERSION} git://github.com/smarnach/pyexiftool.git && \
cd pyexiftool && \
python setup.py install
# Install AndroGuard
RUN cd ~/tmp_build && \
curl -sSL https://github.com/androguard/androguard/archive/${ANDROGUARD_VERSION}.tar.gz | \
tar -xzC . && \
cd androguard-${ANDROGUARD_VERSION} && \
python setup.py install
# Create Viper User
RUN groupadd -r viper && \
useradd -r -g viper -d /home/viper -s /sbin/nologin -c "Viper User" viper && \
mkdir /home/viper && \
chown -R viper:viper /home/viper
# Clean tmp_build
RUN rm -rf ~/tmp_build
USER viper
WORKDIR /home/viper
RUN git clone -b v${VIPER_VERSION} https://github.com/botherder/viper.git && \
mkdir /home/viper/workdir
USER root
WORKDIR /home/viper/viper
RUN chmod a+xr viper.py && \
pip install -r requirements.txt
USER viper
WORKDIR /home/viper/workdir
CMD ["../viper/viper.py"]