tpotce/etc/compose/collector.yml

222 lines
4.7 KiB
YAML
Raw Normal View History

2018-03-25 18:35:32 +00:00
# T-Pot (Collector)
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'
2018-03-25 18:35:32 +00:00
networks:
cyberchef_local:
2018-03-25 18:35:32 +00:00
heralding_local:
2018-06-11 12:34:46 +00:00
ewsposter_local:
2018-03-25 18:35:32 +00:00
spiderfoot_local:
services:
2018-06-11 12:34:46 +00:00
##################
#### Honeypots
##################
# 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"
- "993:993"
- "995:995"
- "1080:1080"
2018-06-11 12:34:46 +00:00
- "5432:5432"
- "5900:5900"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/heralding:1903"
2018-06-11 12:34:46 +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
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/honeytrap:1903"
2018-06-11 12:34:46 +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
##################
#### NSM
##################
# P0f service
p0f:
container_name: p0f
restart: always
network_mode: "host"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/p0f:1903"
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
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/suricata:1903"
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"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/cyberchef:1903"
read_only: true
2018-06-11 12:34:46 +00:00
#### ELK
2018-03-25 18:35:32 +00:00
## Elasticsearch service
elasticsearch:
container_name: elasticsearch
restart: always
environment:
- bootstrap.memory_lock=true
2018-06-11 12:34:46 +00:00
- ES_JAVA_OPTS=-Xms1024m -Xmx1024m
- ES_TMPDIR=/tmp
2018-03-25 18:35:32 +00:00
cap_add:
- IPC_LOCK
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
2018-06-11 12:34:46 +00:00
mem_limit: 4g
2018-03-25 18:35:32 +00:00
ports:
- "127.0.0.1:64298:9200"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/elasticsearch:1903"
2018-03-25 18:35:32 +00:00
volumes:
- /data:/data
## Kibana service
kibana:
container_name: kibana
restart: always
depends_on:
elasticsearch:
condition: service_healthy
ports:
- "127.0.0.1:64296:5601"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/kibana:1903"
2018-03-25 18:35:32 +00:00
## Logstash service
logstash:
container_name: logstash
restart: always
depends_on:
elasticsearch:
condition: service_healthy
env_file:
- /opt/tpot/etc/compose/elk_environment
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/logstash:1903"
2018-03-25 18:35:32 +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"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/head:1903"
2018-03-31 15:18:28 +00:00
read_only: true
2018-03-25 18:35:32 +00:00
# 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-03-25 18:35:32 +00:00
env_file:
- /opt/tpot/etc/compose/elk_environment
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/ewsposter:1903"
2018-03-25 18:35:32 +00:00
volumes:
- /data:/data
- /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
2018-06-11 12:34:46 +00:00
# Nginx service
2018-03-25 18:35:32 +00:00
nginx:
container_name: nginx
restart: always
2018-03-29 16:21:00 +00:00
tmpfs:
- /var/tmp/nginx/client_body
- /var/tmp/nginx/proxy
- /var/tmp/nginx/fastcgi
- /var/tmp/nginx/uwsgi
- /var/tmp/nginx/scgi
- /run
2018-03-25 18:35:32 +00:00
network_mode: "host"
ports:
- "64297:64297"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/nginx:1903"
2018-03-29 16:21:00 +00:00
read_only: true
2018-03-25 18:35:32 +00:00
volumes:
2018-04-13 18:22:49 +00:00
- /data/nginx/cert/:/etc/nginx/cert/:ro
- /data/nginx/conf/nginxpasswd:/etc/nginx/nginxpasswd:ro
2018-03-25 18:35:32 +00:00
- /data/nginx/log/:/var/log/nginx/
2018-06-11 12:34:46 +00:00
# Spiderfoot service
spiderfoot:
container_name: spiderfoot
2018-03-25 18:35:32 +00:00
restart: always
2018-06-11 12:34:46 +00:00
networks:
- spiderfoot_local
ports:
- "127.0.0.1:64303:8080"
2019-02-25 18:59:40 +00:00
image: "dtagdevsec/spiderfoot:1903"
2018-03-25 18:35:32 +00:00
volumes:
2018-06-11 12:34:46 +00:00
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db