begin prep for move to GitHub Container Registry

Start pinning Dockerfiles to specific releases / commits
This commit is contained in:
listbot 2020-09-02 15:18:32 +00:00
parent 9a7f55bb52
commit 1ac79d6be7
13 changed files with 53 additions and 49 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:3.12
# #
# Include dist # Include dist
ADD dist/ /root/dist/ ADD dist/ /root/dist/
@ -13,7 +13,9 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
python3-dev && \ python3-dev && \
# #
# Install adbhoney from git # Install adbhoney from git
git clone --depth=1 https://github.com/huuck/ADBHoney /opt/adbhoney && \ git clone https://github.com/huuck/ADBHoney /opt/adbhoney && \
cd /opt/adbhoney && \
git checkout ad7c17e78d01f6860d58ba826a4b6a4e4f83acbd && \
cp /root/dist/adbhoney.cfg /opt/adbhoney && \ cp /root/dist/adbhoney.cfg /opt/adbhoney && \
sed -i 's/dst_ip/dest_ip/' /opt/adbhoney/adbhoney/core.py && \ sed -i 's/dst_ip/dest_ip/' /opt/adbhoney/adbhoney/core.py && \
sed -i 's/dst_port/dest_port/' /opt/adbhoney/adbhoney/core.py && \ sed -i 's/dst_port/dest_port/' /opt/adbhoney/adbhoney/core.py && \

View file

@ -14,7 +14,7 @@ services:
- adbhoney_local - adbhoney_local
ports: ports:
- "5555:5555" - "5555:5555"
image: "dtagdevsec/adbhoney:2006" image: "ghcr.io/telekom-security/adbhoney:2006"
read_only: true read_only: true
volumes: volumes:
- /data/adbhoney/log:/opt/adbhoney/log - /data/adbhoney/log:/opt/adbhoney/log

View file

@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:3.12
# #
# Include dist # Include dist
ADD dist/ /root/dist/ ADD dist/ /root/dist/
@ -23,8 +23,9 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
# Get and install packages # Get and install packages
mkdir -p /opt/ && \ mkdir -p /opt/ && \
cd /opt/ && \ cd /opt/ && \
git clone --depth=1 https://github.com/cymmetria/ciscoasa_honeypot && \ git clone https://github.com/cymmetria/ciscoasa_honeypot && \
cd ciscoasa_honeypot && \ cd ciscoasa_honeypot && \
git checkout d6e91f1aab7fe6fc01fabf2046e76b68dd6dc9e2 && \
pip3 install --no-cache-dir -r requirements.txt && \ pip3 install --no-cache-dir -r requirements.txt && \
cp /root/dist/asa_server.py /opt/ciscoasa_honeypot && \ cp /root/dist/asa_server.py /opt/ciscoasa_honeypot && \
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \ chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \

View file

@ -13,7 +13,7 @@ services:
ports: ports:
- "5000:5000/udp" - "5000:5000/udp"
- "8443:8443" - "8443:8443"
image: "dtagdevsec/ciscoasa:2006" image: "ghcr.io/telekom-security/ciscoasa:2006"
read_only: true read_only: true
volumes: volumes:
- /data/ciscoasa/log:/var/log/ciscoasa - /data/ciscoasa/log:/var/log/ciscoasa

View file

@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:3.12
# #
# Install packages # Install packages
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
@ -15,7 +15,9 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
# Install CitrixHoneypot from GitHub # Install CitrixHoneypot from GitHub
# git clone --depth=1 https://github.com/malwaretech/citrixhoneypot /opt/citrixhoneypot && \ # git clone --depth=1 https://github.com/malwaretech/citrixhoneypot /opt/citrixhoneypot && \
# git clone --depth=1 https://github.com/vorband/CitrixHoneypot /opt/citrixhoneypot && \ # git clone --depth=1 https://github.com/vorband/CitrixHoneypot /opt/citrixhoneypot && \
git clone --depth=1 https://github.com/t3chn0m4g3/CitrixHoneypot /opt/citrixhoneypot && \ git clone https://github.com/t3chn0m4g3/CitrixHoneypot /opt/citrixhoneypot && \
cd /opt/citrixhoneypot && \
git checkout f59ad7320dc5bbb8c23c8baa5f111b52c52fbef3 && \
# #
# Setup user, groups and configs # Setup user, groups and configs
mkdir -p /opt/citrixhoneypot/logs /opt/citrixhoneypot/ssl && \ mkdir -p /opt/citrixhoneypot/logs /opt/citrixhoneypot/ssl && \

View file

@ -14,7 +14,7 @@ services:
- citrixhoneypot_local - citrixhoneypot_local
ports: ports:
- "443:443" - "443:443"
image: "dtagdevsec/citrixhoneypot:2006" image: "ghcr.io/telekom-security/citrixhoneypot:2006"
read_only: true read_only: true
volumes: volumes:
- /data/citrixhoneypot/logs:/opt/citrixhoneypot/logs - /data/citrixhoneypot/logs:/opt/citrixhoneypot/logs

View file

@ -41,7 +41,6 @@ RUN apk -U add \
sed -i 's/port="6230"/port="623"/' /opt/conpot/conpot/templates/ipmi/ipmi/ipmi.xml && \ sed -i 's/port="6230"/port="623"/' /opt/conpot/conpot/templates/ipmi/ipmi/ipmi.xml && \
pip3 install --no-cache-dir -U setuptools && \ pip3 install --no-cache-dir -U setuptools && \
pip3 install --no-cache-dir . && \ pip3 install --no-cache-dir . && \
pip3 install --no-cache-dir pysnmp-mibs && \
cd / && \ cd / && \
rm -rf /opt/conpot /tmp/* /var/tmp/* && \ rm -rf /opt/conpot /tmp/* /var/tmp/* && \
setcap cap_net_bind_service=+ep /usr/bin/python3.8 && \ setcap cap_net_bind_service=+ep /usr/bin/python3.8 && \

View file

@ -35,7 +35,7 @@ services:
- "2121:21" - "2121:21"
- "44818:44818" - "44818:44818"
- "47808:47808" - "47808:47808"
image: "dtagdevsec/conpot:2006" image: "ghcr.io/telekom-security/conpot:2006"
read_only: true read_only: true
volumes: volumes:
- /data/conpot/log:/var/log/conpot - /data/conpot/log:/var/log/conpot
@ -58,7 +58,7 @@ services:
ports: ports:
# - "161:161" # - "161:161"
- "2404:2404" - "2404:2404"
image: "dtagdevsec/conpot:2006" image: "ghcr.io/telekom-security/conpot:2006"
read_only: true read_only: true
volumes: volumes:
- /data/conpot/log:/var/log/conpot - /data/conpot/log:/var/log/conpot
@ -80,7 +80,7 @@ services:
- conpot_local_guardian_ast - conpot_local_guardian_ast
ports: ports:
- "10001:10001" - "10001:10001"
image: "dtagdevsec/conpot:2006" image: "ghcr.io/telekom-security/conpot:2006"
read_only: true read_only: true
volumes: volumes:
- /data/conpot/log:/var/log/conpot - /data/conpot/log:/var/log/conpot
@ -102,7 +102,7 @@ services:
- conpot_local_ipmi - conpot_local_ipmi
ports: ports:
- "623:623" - "623:623"
image: "dtagdevsec/conpot:2006" image: "ghcr.io/telekom-security/conpot:2006"
read_only: true read_only: true
volumes: volumes:
- /data/conpot/log:/var/log/conpot - /data/conpot/log:/var/log/conpot
@ -125,7 +125,7 @@ services:
ports: ports:
- "1025:1025" - "1025:1025"
- "50100:50100" - "50100:50100"
image: "dtagdevsec/conpot:2006" image: "ghcr.io/telekom-security/conpot:2006"
read_only: true read_only: true
volumes: volumes:
- /data/conpot/log:/var/log/conpot - /data/conpot/log:/var/log/conpot

View file

@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:3.12
# #
# Include dist # Include dist
ADD dist/ /root/dist/ ADD dist/ /root/dist/

View file

@ -18,7 +18,7 @@ services:
ports: ports:
- "22:22" - "22:22"
- "23:23" - "23:23"
image: "dtagdevsec/cowrie:2006" image: "ghcr.io/telekom-security/cowrie:2006"
read_only: true read_only: true
volumes: volumes:
- /data/cowrie/downloads:/home/cowrie/cowrie/dl - /data/cowrie/downloads:/home/cowrie/cowrie/dl

View file

@ -13,7 +13,7 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
# #
# Install CyberChef # Install CyberChef
cd /root && \ cd /root && \
git clone https://github.com/gchq/cyberchef --depth=1 && \ git clone https://github.com/gchq/cyberchef -b v9.21.0 && \
chown -R nobody:nobody cyberchef && \ chown -R nobody:nobody cyberchef && \
cd cyberchef && \ cd cyberchef && \
npm install && \ npm install && \

View file

@ -14,5 +14,5 @@ services:
- cyberchef_local - cyberchef_local
ports: ports:
- "127.0.0.1:64299:8000" - "127.0.0.1:64299:8000"
image: "dtagdevsec/cyberchef:2006" image: "ghcr.io/telekom-security/cyberchef:2006"
read_only: true read_only: true

View file

@ -10,98 +10,98 @@ services:
# Adbhoney service # Adbhoney service
adbhoney: adbhoney:
build: adbhoney/. build: adbhoney/.
image: "dtagdevsec/adbhoney:2006" image: "ghcr.io/telekom-security/adbhoney:2006"
# Ciscoasa service # Ciscoasa service
ciscoasa: ciscoasa:
build: ciscoasa/. build: ciscoasa/.
image: "dtagdevsec/ciscoasa:2006" image: "ghcr.io/telekom-security/ciscoasa:2006"
# CitrixHoneypot service # CitrixHoneypot service
citrixhoneypot: citrixhoneypot:
build: citrixhoneypot/. build: citrixhoneypot/.
image: "dtagdevsec/citrixhoneypot:2006" image: "ghcr.io/telekom-security/citrixhoneypot:2006"
# Conpot IEC104 service # Conpot IEC104 service
conpot_IEC104: conpot_IEC104:
build: conpot/. build: conpot/.
image: "dtagdevsec/conpot:2006" image: "ghcr.io/telekom-security/conpot:2006"
# Cowrie service # Cowrie service
cowrie: cowrie:
build: cowrie/. build: cowrie/.
image: "dtagdevsec/cowrie:2006" image: "ghcr.io/telekom-security/cowrie:2006"
# Dicompot service # Dicompot service
dicompot: dicompot:
build: dicompot/. build: dicompot/.
image: "dtagdevsec/dicompot:2006" image: "ghcr.io/telekom-security/dicompot:2006"
# Dionaea service # Dionaea service
dionaea: dionaea:
build: dionaea/. build: dionaea/.
image: "dtagdevsec/dionaea:2006" image: "ghcr.io/telekom-security/dionaea:2006"
# ElasticPot service # ElasticPot service
elasticpot: elasticpot:
build: elasticpot/. build: elasticpot/.
image: "dtagdevsec/elasticpot:2006" image: "ghcr.io/telekom-security/elasticpot:2006"
# Glutton service # Glutton service
glutton: glutton:
build: glutton/. build: glutton/.
image: "dtagdevsec/glutton:2006" image: "ghcr.io/telekom-security/glutton:2006"
# Heralding service # Heralding service
heralding: heralding:
build: heralding/. build: heralding/.
image: "dtagdevsec/heralding:2006" image: "ghcr.io/telekom-security/heralding:2006"
# HoneyPy service # HoneyPy service
honeypy: honeypy:
build: honeypy/. build: honeypy/.
image: "dtagdevsec/honeypy:2006" image: "ghcr.io/telekom-security/honeypy:2006"
# Honeytrap service # Honeytrap service
honeytrap: honeytrap:
build: honeytrap/. build: honeytrap/.
image: "dtagdevsec/honeytrap:2006" image: "ghcr.io/telekom-security/honeytrap:2006"
# Mailoney service # Mailoney service
mailoney: mailoney:
build: mailoney/. build: mailoney/.
image: "dtagdevsec/mailoney:2006" image: "ghcr.io/telekom-security/mailoney:2006"
# Medpot service # Medpot service
medpot: medpot:
build: medpot/. build: medpot/.
image: "dtagdevsec/medpot:2006" image: "ghcr.io/telekom-security/medpot:2006"
# Rdpy service # Rdpy service
rdpy: rdpy:
build: rdpy/. build: rdpy/.
image: "dtagdevsec/rdpy:2006" image: "ghcr.io/telekom-security/rdpy:2006"
#### Snare / Tanner #### Snare / Tanner
## Tanner Redis Service ## Tanner Redis Service
tanner_redis: tanner_redis:
build: tanner/redis/. build: tanner/redis/.
image: "dtagdevsec/redis:2006" image: "ghcr.io/telekom-security/redis:2006"
## PHP Sandbox service ## PHP Sandbox service
tanner_phpox: tanner_phpox:
build: tanner/phpox/. build: tanner/phpox/.
image: "dtagdevsec/phpox:2006" image: "ghcr.io/telekom-security/phpox:2006"
## Tanner API Service ## Tanner API Service
tanner_api: tanner_api:
build: tanner/tanner/. build: tanner/tanner/.
image: "dtagdevsec/tanner:2006" image: "ghcr.io/telekom-security/tanner:2006"
## Snare Service ## Snare Service
snare: snare:
build: tanner/snare/. build: tanner/snare/.
image: "dtagdevsec/snare:2006" image: "ghcr.io/telekom-security/snare:2006"
################## ##################
@ -111,17 +111,17 @@ services:
# Fatt service # Fatt service
fatt: fatt:
build: fatt/. build: fatt/.
image: "dtagdevsec/fatt:2006" image: "ghcr.io/telekom-security/fatt:2006"
# P0f service # P0f service
p0f: p0f:
build: p0f/. build: p0f/.
image: "dtagdevsec/p0f:2006" image: "ghcr.io/telekom-security/p0f:2006"
# Suricata service # Suricata service
suricata: suricata:
build: suricata/. build: suricata/.
image: "dtagdevsec/suricata:2006" image: "ghcr.io/telekom-security/suricata:2006"
################## ##################
@ -131,40 +131,40 @@ services:
# Cyberchef service # Cyberchef service
cyberchef: cyberchef:
build: cyberchef/. build: cyberchef/.
image: "dtagdevsec/cyberchef:2006" image: "ghcr.io/telekom-security/cyberchef:2006"
#### ELK #### ELK
## Elasticsearch service ## Elasticsearch service
elasticsearch: elasticsearch:
build: elk/elasticsearch/. build: elk/elasticsearch/.
image: "dtagdevsec/elasticsearch:2006" image: "ghcr.io/telekom-security/elasticsearch:2006"
## Kibana service ## Kibana service
kibana: kibana:
build: elk/kibana/. build: elk/kibana/.
image: "dtagdevsec/kibana:2006" image: "ghcr.io/telekom-security/kibana:2006"
## Logstash service ## Logstash service
logstash: logstash:
build: elk/logstash/. build: elk/logstash/.
image: "dtagdevsec/logstash:2006" image: "ghcr.io/telekom-security/logstash:2006"
## Elasticsearch-head service ## Elasticsearch-head service
head: head:
build: elk/head/. build: elk/head/.
image: "dtagdevsec/head:2006" image: "ghcr.io/telekom-security/head:2006"
# Ewsposter service # Ewsposter service
ewsposter: ewsposter:
build: ews/. build: ews/.
image: "dtagdevsec/ewsposter:2006" image: "ghcr.io/telekom-security/ewsposter:2006"
# Nginx service # Nginx service
nginx: nginx:
build: heimdall/. build: heimdall/.
image: "dtagdevsec/nginx:2006" image: "ghcr.io/telekom-security/nginx:2006"
# Spiderfoot service # Spiderfoot service
spiderfoot: spiderfoot:
build: spiderfoot/. build: spiderfoot/.
image: "dtagdevsec/spiderfoot:2006" image: "ghcr.io/telekom-security/spiderfoot:2006"