| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  | # T-Pot (Tarpit)
 | 
					
						
							|  |  |  | # 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:
 | 
					
						
							|  |  |  |   endlessh_local:
 | 
					
						
							|  |  |  |   hellpot_local:
 | 
					
						
							|  |  |  |   heralding_local:
 | 
					
						
							|  |  |  |   ewsposter_local:
 | 
					
						
							|  |  |  |   spiderfoot_local:
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##################
 | 
					
						
							|  |  |  | #### Honeypots
 | 
					
						
							|  |  |  | ##################
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Endlessh service
 | 
					
						
							|  |  |  |   endlessh:
 | 
					
						
							|  |  |  |     container_name: endlessh
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |      - endlessh_local
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |      - "22:2222"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/endlessh:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     read_only: true
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data/endlessh/log:/var/log/endlessh
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # 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"
 | 
					
						
							|  |  |  |      - "465:465"
 | 
					
						
							|  |  |  |      - "993:993"
 | 
					
						
							|  |  |  |      - "995:995"
 | 
					
						
							|  |  |  |     # - "3306:3306"
 | 
					
						
							|  |  |  |     # - "3389:3389"
 | 
					
						
							|  |  |  |      - "1080:1080"
 | 
					
						
							|  |  |  |      - "5432:5432"
 | 
					
						
							|  |  |  |      - "5900:5900"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/heralding:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     read_only: true
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data/heralding/log:/var/log/heralding
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Honeytrap service
 | 
					
						
							|  |  |  |   honeytrap:
 | 
					
						
							|  |  |  |     container_name: honeytrap
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     tmpfs:
 | 
					
						
							|  |  |  |      - /tmp/honeytrap:uid=2000,gid=2000
 | 
					
						
							|  |  |  |     network_mode: "host"
 | 
					
						
							|  |  |  |     cap_add:
 | 
					
						
							|  |  |  |      - NET_ADMIN
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/honeytrap:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     read_only: true
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data/honeytrap/attacks:/opt/honeytrap/var/attacks
 | 
					
						
							|  |  |  |      - /data/honeytrap/downloads:/opt/honeytrap/var/downloads
 | 
					
						
							|  |  |  |      - /data/honeytrap/log:/opt/honeytrap/var/log
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Hellpot service
 | 
					
						
							|  |  |  |   hellpot:
 | 
					
						
							|  |  |  |     container_name: hellpot
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |      - hellpot_local
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |      - "80:8080"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/hellpot:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     read_only: true
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data/hellpot/log:/var/log/hellpot
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##################
 | 
					
						
							|  |  |  | #### NSM
 | 
					
						
							|  |  |  | ##################
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Fatt service
 | 
					
						
							|  |  |  |   fatt:
 | 
					
						
							|  |  |  |     container_name: fatt
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     network_mode: "host"
 | 
					
						
							|  |  |  |     cap_add:
 | 
					
						
							|  |  |  |      - NET_ADMIN
 | 
					
						
							|  |  |  |      - SYS_NICE
 | 
					
						
							|  |  |  |      - NET_RAW
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/fatt:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data/fatt/log:/opt/fatt/log
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # P0f service
 | 
					
						
							|  |  |  |   p0f:
 | 
					
						
							|  |  |  |     container_name: p0f
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     network_mode: "host"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/p0f:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +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
 | 
					
						
							|  |  |  |     # Loading externel Rules from URL 
 | 
					
						
							|  |  |  |     # - FROMURL="https://username:password@yoururl.com|https://username:password@otherurl.com"
 | 
					
						
							|  |  |  |     network_mode: "host"
 | 
					
						
							|  |  |  |     cap_add:
 | 
					
						
							|  |  |  |      - NET_ADMIN
 | 
					
						
							|  |  |  |      - SYS_NICE
 | 
					
						
							|  |  |  |      - NET_RAW
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/suricata:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data/suricata/log:/var/log/suricata
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##################
 | 
					
						
							|  |  |  | #### Tools
 | 
					
						
							|  |  |  | ##################
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #### ELK
 | 
					
						
							|  |  |  | ## Elasticsearch service
 | 
					
						
							|  |  |  |   elasticsearch:
 | 
					
						
							|  |  |  |     container_name: elasticsearch
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |      - bootstrap.memory_lock=true
 | 
					
						
							|  |  |  |      - ES_JAVA_OPTS=-Xms2048m -Xmx2048m
 | 
					
						
							|  |  |  |      - ES_TMPDIR=/tmp
 | 
					
						
							|  |  |  |     cap_add:
 | 
					
						
							|  |  |  |      - IPC_LOCK
 | 
					
						
							|  |  |  |     ulimits:
 | 
					
						
							|  |  |  |       memlock:
 | 
					
						
							|  |  |  |         soft: -1
 | 
					
						
							|  |  |  |         hard: -1
 | 
					
						
							|  |  |  |       nofile:
 | 
					
						
							|  |  |  |         soft: 65536
 | 
					
						
							|  |  |  |         hard: 65536
 | 
					
						
							|  |  |  |     mem_limit: 4g
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |      - "127.0.0.1:64298:9200"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/elasticsearch:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data:/data
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Kibana service
 | 
					
						
							|  |  |  |   kibana:
 | 
					
						
							|  |  |  |     container_name: kibana
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     depends_on:
 | 
					
						
							|  |  |  |       elasticsearch:
 | 
					
						
							|  |  |  |         condition: service_healthy
 | 
					
						
							|  |  |  |     mem_limit: 1g
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |      - "127.0.0.1:64296:5601"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/kibana:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Logstash service
 | 
					
						
							|  |  |  |   logstash:
 | 
					
						
							|  |  |  |     container_name: logstash
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							| 
									
										
										
										
											2022-03-31 14:46:56 +00:00
										 |  |  |     environment:
 | 
					
						
							|  |  |  |      - LS_JAVA_OPTS=-Xms1024m -Xmx1024m
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     depends_on:
 | 
					
						
							|  |  |  |       elasticsearch:
 | 
					
						
							|  |  |  |         condition: service_healthy
 | 
					
						
							|  |  |  |     env_file:
 | 
					
						
							|  |  |  |      - /opt/tpot/etc/compose/elk_environment
 | 
					
						
							|  |  |  |     mem_limit: 2g
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/logstash:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data:/data
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Map Redis Service
 | 
					
						
							|  |  |  |   map_redis:
 | 
					
						
							|  |  |  |     container_name: map_redis
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     stop_signal: SIGKILL
 | 
					
						
							|  |  |  |     tty: true
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/redis:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     read_only: true
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Map Web Service
 | 
					
						
							|  |  |  |   map_web:
 | 
					
						
							|  |  |  |     container_name: map_web
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |      - MAP_COMMAND=AttackMapServer.py
 | 
					
						
							|  |  |  |     env_file:
 | 
					
						
							|  |  |  |      - /opt/tpot/etc/compose/elk_environment
 | 
					
						
							|  |  |  |     stop_signal: SIGKILL
 | 
					
						
							|  |  |  |     tty: true
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |      - "127.0.0.1:64299:64299"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/map:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Map Data Service
 | 
					
						
							|  |  |  |   map_data:
 | 
					
						
							|  |  |  |     container_name: map_data
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     depends_on:
 | 
					
						
							|  |  |  |       elasticsearch:
 | 
					
						
							|  |  |  |         condition: service_healthy
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |      - MAP_COMMAND=DataServer_v2.py
 | 
					
						
							|  |  |  |     env_file:
 | 
					
						
							|  |  |  |      - /opt/tpot/etc/compose/elk_environment
 | 
					
						
							|  |  |  |     stop_signal: SIGKILL
 | 
					
						
							|  |  |  |     tty: true
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/map:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  | #### /ELK
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Ewsposter service
 | 
					
						
							|  |  |  |   ewsposter:
 | 
					
						
							|  |  |  |     container_name: ewsposter
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |      - ewsposter_local
 | 
					
						
							|  |  |  |     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
 | 
					
						
							|  |  |  |      - EWS_HPFEEDS_TLSCERT=false
 | 
					
						
							|  |  |  |      - EWS_HPFEEDS_FORMAT=json
 | 
					
						
							|  |  |  |     env_file:
 | 
					
						
							|  |  |  |      - /opt/tpot/etc/compose/elk_environment
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/ewsposter:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data:/data
 | 
					
						
							|  |  |  |      - /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Nginx service
 | 
					
						
							|  |  |  |   nginx:
 | 
					
						
							|  |  |  |     container_name: nginx
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     tmpfs:
 | 
					
						
							|  |  |  |      - /var/tmp/nginx/client_body
 | 
					
						
							|  |  |  |      - /var/tmp/nginx/proxy
 | 
					
						
							|  |  |  |      - /var/tmp/nginx/fastcgi
 | 
					
						
							|  |  |  |      - /var/tmp/nginx/uwsgi
 | 
					
						
							|  |  |  |      - /var/tmp/nginx/scgi
 | 
					
						
							|  |  |  |      - /run
 | 
					
						
							|  |  |  |      - /var/lib/nginx/tmp:uid=100,gid=82
 | 
					
						
							|  |  |  |     network_mode: "host"
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |      - "64297:64297"
 | 
					
						
							|  |  |  |      - "127.0.0.1:64304:64304"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/nginx:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +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/
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Spiderfoot service
 | 
					
						
							|  |  |  |   spiderfoot:
 | 
					
						
							|  |  |  |     container_name: spiderfoot
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |      - spiderfoot_local
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |      - "127.0.0.1:64303:8080"
 | 
					
						
							| 
									
										
										
										
											2022-04-08 13:45:53 +00:00
										 |  |  |     image: "dtagdevsec/spiderfoot:2204"
 | 
					
						
							| 
									
										
										
										
											2022-03-23 21:56:44 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |      - /data/spiderfoot:/home/spiderfoot/.spiderfoot
 |