tpotce/etc/compose/nextgen.yml

604 lines
14 KiB
YAML
Raw Normal View History

2018-11-23 22:30:25 +00:00
# T-Pot (NextGen)
2018-06-11 12:34:46 +00:00
# Do not erase ports sections, these are used by /opt/tpot/bin/rules.sh to setup iptables ACCEPT rules for NFQ (honeytrap / glutton)
version: '2.3'
networks:
2018-12-05 16:59:08 +00:00
adbhoney_local:
ciscoasa_local:
2020-01-15 12:14:23 +00:00
citrixhoneypot_local:
2018-06-11 12:34:46 +00:00
conpot_local_IEC104:
conpot_local_guardian_ast:
conpot_local_ipmi:
conpot_local_kamstrup_382:
cyberchef_local:
2020-06-18 16:38:43 +00:00
dicompot_local:
dionaea_local:
ddospot_local:
elasticpot_local:
endlessh_local:
hellpot_local:
2018-06-11 12:34:46 +00:00
heralding_local:
2020-06-19 11:54:50 +00:00
honeysap_local:
2020-08-24 21:36:08 +00:00
ipphoney_local:
2018-06-11 12:34:46 +00:00
mailoney_local:
2018-09-09 18:38:47 +00:00
medpot_local:
2018-06-11 12:34:46 +00:00
rdpy_local:
redishoneypot_local:
2018-06-11 12:34:46 +00:00
ewsposter_local:
spiderfoot_local:
services:
##################
#### Honeypots
##################
2018-12-05 16:59:08 +00:00
# Adbhoney service
adbhoney:
container_name: adbhoney
restart: always
networks:
- adbhoney_local
ports:
- "5555:5555"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/adbhoney:2203"
2018-12-05 16:59:08 +00:00
read_only: true
volumes:
- /data/adbhoney/log:/opt/adbhoney/log
- /data/adbhoney/downloads:/opt/adbhoney/dl
2018-06-11 12:34:46 +00:00
# Ciscoasa service
ciscoasa:
container_name: ciscoasa
restart: always
networks:
- ciscoasa_local
2018-06-11 12:34:46 +00:00
tmpfs:
- /tmp/ciscoasa:uid=2000,gid=2000
ports:
- "5000:5000/udp"
- "8443:8443"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/ciscoasa:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/ciscoasa/log:/var/log/ciscoasa
2020-01-15 12:14:23 +00:00
# CitrixHoneypot service
citrixhoneypot:
container_name: citrixhoneypot
restart: always
networks:
- citrixhoneypot_local
ports:
- "443:443"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/citrixhoneypot:2203"
2020-01-15 12:14:23 +00:00
read_only: true
volumes:
- /data/citrixhoneypot/logs:/opt/citrixhoneypot/logs
2018-06-11 12:34:46 +00:00
# Conpot IEC104 service
conpot_IEC104:
2018-06-14 11:59:07 +00:00
container_name: conpot_iec104
2018-06-11 12:34:46 +00:00
restart: always
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_IEC104.json
- CONPOT_LOG=/var/log/conpot/conpot_IEC104.log
- CONPOT_TEMPLATE=IEC104
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_IEC104
ports:
2021-02-25 11:32:59 +00:00
- "161:161/udp"
2018-06-11 12:34:46 +00:00
- "2404:2404"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/conpot:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/conpot/log:/var/log/conpot
# Conpot guardian_ast service
conpot_guardian_ast:
container_name: conpot_guardian_ast
restart: always
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_guardian_ast.json
- CONPOT_LOG=/var/log/conpot/conpot_guardian_ast.log
- CONPOT_TEMPLATE=guardian_ast
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_guardian_ast
ports:
- "10001:10001"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/conpot:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/conpot/log:/var/log/conpot
# Conpot ipmi
conpot_ipmi:
container_name: conpot_ipmi
restart: always
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_ipmi.json
- CONPOT_LOG=/var/log/conpot/conpot_ipmi.log
- CONPOT_TEMPLATE=ipmi
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_ipmi
ports:
2021-02-25 11:32:59 +00:00
- "623:623/udp"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/conpot:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/conpot/log:/var/log/conpot
# Conpot kamstrup_382
conpot_kamstrup_382:
container_name: conpot_kamstrup_382
restart: always
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_kamstrup_382.json
- CONPOT_LOG=/var/log/conpot/conpot_kamstrup_382.log
- CONPOT_TEMPLATE=kamstrup_382
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_kamstrup_382
ports:
- "1025:1025"
- "50100:50100"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/conpot:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/conpot/log:/var/log/conpot
# Ddospot service
ddospot:
container_name: ddospot
2018-06-11 12:34:46 +00:00
restart: always
networks:
- ddospot_local
2018-06-11 12:34:46 +00:00
ports:
- "19:19/udp"
- "53:53/udp"
- "123:123/udp"
# - "161:161/udp"
- "1900:1900/udp"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/ddospot:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/ddospot/log:/opt/ddospot/ddospot/logs
- /data/ddospot/bl:/opt/ddospot/ddospot/bl
- /data/ddospot/db:/opt/ddospot/ddospot/db
2018-06-11 12:34:46 +00:00
2020-06-18 16:38:43 +00:00
# Dicompot service
# Get the Horos Client for testing: https://horosproject.org/
# Get Dicom images (CC BY 3.0): https://www.cancerimagingarchive.net/collections/
# Put images (which must be in Dicom DCM format or it will not work!) into /data/dicompot/images
2020-06-18 16:38:43 +00:00
dicompot:
container_name: dicompot
restart: always
networks:
- dicompot_local
ports:
- "11112:11112"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/dicompot:2203"
2020-06-18 16:38:43 +00:00
read_only: true
volumes:
- /data/dicompot/log:/var/log/dicompot
# - /data/dicompot/images:/opt/dicompot/images
2020-06-18 16:38:43 +00:00
2018-06-11 12:34:46 +00:00
# Dionaea service
dionaea:
container_name: dionaea
stdin_open: true
tty: true
restart: always
networks:
- dionaea_local
2018-06-11 12:34:46 +00:00
ports:
- "20:20"
- "21:21"
- "42:42"
- "69:69/udp"
- "81:81"
- "135:135"
2020-01-15 12:14:23 +00:00
# - "443:443"
2018-06-11 12:34:46 +00:00
- "445:445"
- "1433:1433"
- "1723:1723"
- "1883:1883"
- "3306:3306"
- "5060:5060"
- "5060:5060/udp"
- "5061:5061"
- "27017:27017"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/dionaea:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/dionaea/roots/ftp:/opt/dionaea/var/dionaea/roots/ftp
- /data/dionaea/roots/tftp:/opt/dionaea/var/dionaea/roots/tftp
- /data/dionaea/roots/www:/opt/dionaea/var/dionaea/roots/www
- /data/dionaea/roots/upnp:/opt/dionaea/var/dionaea/roots/upnp
- /data/dionaea:/opt/dionaea/var/dionaea
- /data/dionaea/binaries:/opt/dionaea/var/dionaea/binaries
- /data/dionaea/log:/opt/dionaea/var/log
- /data/dionaea/rtp:/opt/dionaea/var/dionaea/rtp
# ElasticPot service
elasticpot:
container_name: elasticpot
restart: always
networks:
- elasticpot_local
ports:
- "9200:9200"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/elasticpot:2203"
read_only: true
volumes:
- /data/elasticpot/log:/opt/elasticpot/log
# Endlessh service
endlessh:
container_name: endlessh
restart: always
networks:
- endlessh_local
ports:
- "22:2222"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/endlessh:2203"
read_only: true
volumes:
- /data/endlessh/log:/var/log/endlessh
2019-03-10 18:20:12 +00:00
# Glutton service
glutton:
container_name: glutton
2018-06-11 12:34:46 +00:00
restart: always
2019-03-10 18:20:12 +00:00
tmpfs:
- /var/lib/glutton:uid=2000,gid=2000
- /run:uid=2000,gid=2000
network_mode: "host"
cap_add:
- NET_ADMIN
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/glutton:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
2019-03-10 18:20:12 +00:00
- /data/glutton/log:/var/log/glutton
# - /root/tpotce/docker/glutton/dist/rules.yaml:/opt/glutton/rules/rules.yaml
2018-06-11 12:34:46 +00:00
# Heralding service
heralding:
container_name: heralding
restart: always
tmpfs:
- /tmp/heralding:uid=2000,gid=2000
networks:
- heralding_local
ports:
# - "21:21"
# - "22:22"
# - "23:23"
# - "25:25"
# - "80:80"
- "110:110"
- "143:143"
# - "443:443"
2021-02-16 17:14:56 +00:00
- "465:465"
2018-06-11 12:34:46 +00:00
- "993:993"
- "995:995"
2019-10-16 14:46:58 +00:00
# - "3306:3306"
# - "3389:3389"
- "1080:1080"
2018-06-11 12:34:46 +00:00
- "5432:5432"
2018-09-11 13:11:27 +00:00
- "5900:5900"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/heralding:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/heralding/log:/var/log/heralding
2020-06-19 11:54:50 +00:00
# HoneySAP service
honeysap:
container_name: honeysap
restart: always
networks:
- honeysap_local
ports:
- "3299:3299"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/honeysap:2203"
2020-06-19 11:54:50 +00:00
volumes:
- /data/honeysap/log:/opt/honeysap/log
2020-08-24 21:36:08 +00:00
# Ipphoney service
ipphoney:
container_name: ipphoney
restart: always
networks:
- ipphoney_local
ports:
- "631:631"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/ipphoney:2203"
2020-08-24 21:36:08 +00:00
read_only: true
volumes:
- /data/ipphoney/log:/opt/ipphoney/log
2018-06-11 12:34:46 +00:00
# Mailoney service
mailoney:
container_name: mailoney
restart: always
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
networks:
- mailoney_local
ports:
- "25:25"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/mailoney:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/mailoney/log:/opt/mailoney/logs
2018-09-09 18:38:47 +00:00
# Medpot service
medpot:
container_name: medpot
restart: always
networks:
- medpot_local
ports:
- "2575:2575"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/medpot:2203"
2018-09-09 18:38:47 +00:00
read_only: true
volumes:
2018-09-11 07:59:14 +00:00
- /data/medpot/log/:/var/log/medpot
2018-09-09 18:38:47 +00:00
2018-06-11 12:34:46 +00:00
# Rdpy service
rdpy:
container_name: rdpy
extra_hosts:
- hpfeeds.example.com:127.0.0.1
restart: always
environment:
- HPFEEDS_SERVER=hpfeeds.example.com
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=65000
- SERVERID=id
networks:
- rdpy_local
ports:
- "3389:3389"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/rdpy:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/rdpy/log:/var/log/rdpy
# Redishoneypot service
redishoneypot:
container_name: redishoneypot
restart: always
networks:
- redishoneypot_local
ports:
- "6379:6379"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/redishoneypot:2203"
read_only: true
volumes:
- /data/redishoneypot/log:/var/log/redishoneypot
# Hellpot service
hellpot:
container_name: hellpot
2018-06-11 12:34:46 +00:00
restart: always
networks:
- hellpot_local
ports:
- "80:8080"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/hellpot:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/hellpot/log:/var/log/hellpot
2018-06-11 12:34:46 +00:00
##################
#### NSM
##################
2019-06-01 17:47:14 +00:00
# Fatt service
fatt:
container_name: fatt
restart: always
network_mode: "host"
cap_add:
- NET_ADMIN
- SYS_NICE
- NET_RAW
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/fatt:2203"
2019-06-01 17:47:14 +00:00
volumes:
- /data/fatt/log:/opt/fatt/log
2018-06-11 12:34:46 +00:00
# P0f service
p0f:
container_name: p0f
restart: always
network_mode: "host"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/p0f:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/p0f/log:/var/log/p0f
# Suricata service
suricata:
container_name: suricata
restart: always
environment:
# For ET Pro ruleset replace "OPEN" with your OINKCODE
- OINKCODE=OPEN
network_mode: "host"
cap_add:
- NET_ADMIN
- SYS_NICE
- NET_RAW
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/suricata:2203"
2018-06-11 12:34:46 +00:00
volumes:
- /data/suricata/log:/var/log/suricata
##################
#### Tools
##################
# Cyberchef service
cyberchef:
container_name: cyberchef
restart: always
networks:
- cyberchef_local
ports:
- "127.0.0.1:64299:8000"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/cyberchef:2203"
read_only: true
2018-06-11 12:34:46 +00:00
#### ELK
## Elasticsearch service
elasticsearch:
container_name: elasticsearch
restart: always
environment:
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms2048m -Xmx2048m
2018-06-11 12:34:46 +00:00
- ES_TMPDIR=/tmp
cap_add:
- IPC_LOCK
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 4g
2018-06-11 12:34:46 +00:00
ports:
- "127.0.0.1:64298:9200"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/elasticsearch:2203"
2018-06-11 12:34:46 +00:00
volumes:
- /data:/data
## Kibana service
kibana:
container_name: kibana
restart: always
depends_on:
elasticsearch:
condition: service_healthy
mem_limit: 1g
2018-06-11 12:34:46 +00:00
ports:
- "127.0.0.1:64296:5601"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/kibana:2203"
2018-06-11 12:34:46 +00:00
## Logstash service
logstash:
container_name: logstash
restart: always
# environment:
# - LS_JAVA_OPTS=-Xms2048m -Xmx2048m
2018-06-11 12:34:46 +00:00
depends_on:
elasticsearch:
condition: service_healthy
env_file:
- /opt/tpot/etc/compose/elk_environment
mem_limit: 2g
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/logstash:2203"
2018-06-11 12:34:46 +00:00
volumes:
- /data:/data
## Elasticsearch-head service
head:
container_name: head
restart: always
depends_on:
elasticsearch:
condition: service_healthy
ports:
- "127.0.0.1:64302:9100"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/head:2203"
2018-06-11 12:34:46 +00:00
read_only: true
# Ewsposter service
ewsposter:
container_name: ewsposter
restart: always
networks:
- ewsposter_local
2019-03-15 15:59:02 +00:00
environment:
- EWS_HPFEEDS_ENABLE=false
- EWS_HPFEEDS_HOST=host
- EWS_HPFEEDS_PORT=port
- EWS_HPFEEDS_CHANNELS=channels
- EWS_HPFEEDS_IDENT=user
- EWS_HPFEEDS_SECRET=secret
2019-04-01 07:42:24 +00:00
- EWS_HPFEEDS_TLSCERT=false
2019-03-15 15:59:02 +00:00
- EWS_HPFEEDS_FORMAT=json
2018-06-11 12:34:46 +00:00
env_file:
- /opt/tpot/etc/compose/elk_environment
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/ewsposter:2203"
2018-06-11 12:34:46 +00:00
volumes:
- /data:/data
- /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
# Nginx service
nginx:
container_name: nginx
restart: always
environment:
### If set to YES all changes within Heimdall will remain for the next start
### Make sure to uncomment the corresponding volume statements below, or the setting will prevent a successful start of T-Pot.
- HEIMDALL_PERSIST=NO
2018-06-11 12:34:46 +00:00
tmpfs:
- /var/tmp/nginx/client_body
- /var/tmp/nginx/proxy
- /var/tmp/nginx/fastcgi
- /var/tmp/nginx/uwsgi
- /var/tmp/nginx/scgi
2018-06-11 12:34:46 +00:00
- /run
- /var/log/php7/
- /var/lib/nginx/tmp:uid=100,gid=82
- /var/lib/nginx/html/storage/logs:uid=100,gid=82
- /var/lib/nginx/html/storage/framework/views:uid=100,gid=82
2018-06-11 12:34:46 +00:00
network_mode: "host"
ports:
- "64297:64297"
- "127.0.0.1:64304:64304"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/nginx:2203"
2018-06-11 12:34:46 +00:00
read_only: true
volumes:
- /data/nginx/cert/:/etc/nginx/cert/:ro
- /data/nginx/conf/nginxpasswd:/etc/nginx/nginxpasswd:ro
- /data/nginx/log/:/var/log/nginx/
### Enable the following volumes if you set HEIMDALL_PERSIST=YES
# - /data/nginx/heimdall/database:/var/lib/nginx/html/database
# - /data/nginx/heimdall/storage:/var/lib/nginx/html/storage
2018-06-11 12:34:46 +00:00
# Spiderfoot service
spiderfoot:
container_name: spiderfoot
restart: always
networks:
- spiderfoot_local
ports:
- "127.0.0.1:64303:8080"
2022-01-14 16:24:15 +00:00
image: "dtagdevsec/spiderfoot:2203"
2018-06-11 12:34:46 +00:00
volumes:
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db