2022-03-08 17:29:03 +00:00
|
|
|
FROM alpine:edge
|
2019-06-07 13:00:20 +00:00
|
|
|
#
|
2017-10-13 18:58:14 +00:00
|
|
|
# Include dist
|
2022-03-08 17:29:03 +00:00
|
|
|
COPY dist/ /root/dist/
|
2019-06-07 13:00:20 +00:00
|
|
|
#
|
2017-10-13 18:58:14 +00:00
|
|
|
# Install packages
|
2024-12-04 19:50:06 +00:00
|
|
|
RUN apk --no-cache -U upgrade && \
|
|
|
|
apk --no-cache -U add \
|
tweaking
updating .env, env.example and compose files regarding sentrypeer ENVs
make glutton image aware of payloads feature
bump glutton to latest master, alpine 3.19, multi-stage build
bump ipphoney to alpine 3.19
bump mailoney to alpine 3.19, adjust for py3
revert medpot to previous master, use multi stage build and alpine 3.19
bump cyberchef to latest master
bump ngninx to alpine 3.19
bump p0f to alpine 3.19, use multi stage build
bump redishoneypot to alpine 3.19, use multi stage build
bump sentrypeer to latest master, fix bug for open ports in compose files, now all tcp/5060, udp/5060 traffic will be seen
bump spiderfoot to latest master
bump spiderfoot to alpine 3.19
bump suricata to 7.0.2, fix performance issue with capture-filter-bpf by reducing the rules
update clean.sh to include glutton payloads folder
2024-03-09 11:11:14 +00:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
file \
|
|
|
|
hiredis \
|
|
|
|
libcap \
|
|
|
|
wget \
|
|
|
|
suricata && \
|
2019-06-07 13:00:20 +00:00
|
|
|
#
|
2017-10-13 18:58:14 +00:00
|
|
|
# Setup user, groups and configs
|
|
|
|
addgroup -g 2000 suri && \
|
|
|
|
adduser -S -H -u 2000 -D -g 2000 suri && \
|
2020-11-26 17:10:16 +00:00
|
|
|
cp /root/dist/*.yaml /etc/suricata/ && \
|
|
|
|
cp /root/dist/*.conf /etc/suricata/ && \
|
2018-05-23 13:02:19 +00:00
|
|
|
cp /root/dist/*.bpf /etc/suricata/ && \
|
2017-10-13 18:58:14 +00:00
|
|
|
cp /root/dist/update.sh /usr/bin/ && \
|
2022-03-08 17:29:03 +00:00
|
|
|
chmod 644 /etc/suricata/*.config && \
|
|
|
|
chmod 755 -R /var/lib/suricata && \
|
2018-03-30 16:41:46 +00:00
|
|
|
chmod 755 /usr/bin/update.sh && \
|
2022-03-08 17:29:03 +00:00
|
|
|
chown -R root:suri /tmp /run && \
|
|
|
|
#
|
|
|
|
# Download the latest EmergingThreats OPEN ruleset
|
2020-11-26 17:10:16 +00:00
|
|
|
suricata-update update-sources && \
|
2022-03-08 17:29:03 +00:00
|
|
|
suricata-update --no-test --no-reload && \
|
2019-06-07 13:00:20 +00:00
|
|
|
#
|
2017-10-13 18:58:14 +00:00
|
|
|
# Clean up
|
2024-09-11 10:42:17 +00:00
|
|
|
rm -rf /root/* \
|
|
|
|
/tmp/* \
|
|
|
|
/var/cache/apk/*
|
2019-06-07 13:00:20 +00:00
|
|
|
#
|
2017-10-13 18:58:14 +00:00
|
|
|
# Start suricata
|
2018-09-11 12:19:26 +00:00
|
|
|
STOPSIGNAL SIGINT
|
2025-03-13 23:31:32 +00:00
|
|
|
CMD SURICATA_CAPTURE_FILTER=$(update.sh $OINKCODE) && exec suricata -v -F $SURICATA_CAPTURE_FILTER -i $(ip route | grep "^default" | awk '{ print $5 }')
|