mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
prepare for sissden opt-in
This commit is contained in:
parent
86715ccf7c
commit
5dae44b5e9
10 changed files with 98 additions and 8 deletions
25
bin/sissden_optin.sh
Executable file
25
bin/sissden_optin.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
myTPOTYMLFILE="/opt/tpot/etc/tpot.yml"
|
||||||
|
|
||||||
|
echo "SISSDEN Delivery Opt-In for EWSPoster"
|
||||||
|
echo "-------------------------------------"
|
||||||
|
echo "By running this script you agree to share your data with https://sissden.eu and agree to the corresponding sharing terms."
|
||||||
|
echo
|
||||||
|
echo "Please provide the credentials you created at the SISSDEN portal ..."
|
||||||
|
read -p "Ident: " myIDENT
|
||||||
|
read -p "Secret: " mySECRET
|
||||||
|
echo
|
||||||
|
echo "Now stopping T-Pot ..."
|
||||||
|
systemctl stop tpot
|
||||||
|
echo "Adding your credentials ..."
|
||||||
|
sed -i.bak 's/EWS_HPFEEDS_ENABLE=false/EWS_HPFEEDS_ENABLE=true/g' "$myTPOTYMLFILE"
|
||||||
|
sed -i 's/EWS_HPFEEDS_HOST=host/EWS_HPFEEDS_HOST=hpfeeds.sissden.eu/g' "$myTPOTYMLFILE"
|
||||||
|
sed -i 's/EWS_HPFEEDS_PORT=port/EWS_HPFEEDS_PORT=10000/g' "$myTPOTYMLFILE"
|
||||||
|
sed -i 's/EWS_HPFEEDS_CHANNELS=channels/EWS_HPFEEDS_CHANNELS=t-pot.events/g' "$myTPOTYMLFILE"
|
||||||
|
sed -i "s/EWS_HPFEEDS_IDENT=user/EWS_HPFEEDS_IDENT=${myIDENT}/g" "$myTPOTYMLFILE"
|
||||||
|
sed -i "s/EWS_HPFEEDS_SECRET=secret/EWS_HPFEEDS_SECRET=${mySECRET}/g" "$myTPOTYMLFILE"
|
||||||
|
echo "Now starting T-Pot ..."
|
||||||
|
systemctl start tpot
|
||||||
|
echo "Done. On behalf of SISSDEN we thank you for sharing!"
|
||||||
|
echo
|
|
@ -36,6 +36,7 @@ RUN apk -U --no-cache add \
|
||||||
|
|
||||||
# Supply configs
|
# Supply configs
|
||||||
mv /root/dist/ews.cfg /opt/ewsposter/ && \
|
mv /root/dist/ews.cfg /opt/ewsposter/ && \
|
||||||
|
mv /root/dist/ca.pem /opt/ewsposter/ && \
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
apk del build-base \
|
apk del build-base \
|
||||||
|
|
16
docker/ews/dist/ews.cfg
vendored
16
docker/ews/dist/ews.cfg
vendored
|
@ -18,16 +18,16 @@ rhost_second = https://community.sicherheitstacho.eu/ews-0.1/alert/postSimpleMes
|
||||||
ignorecert = false
|
ignorecert = false
|
||||||
|
|
||||||
[HPFEED]
|
[HPFEED]
|
||||||
hpfeed = false
|
hpfeed = %(EWS_HPFEEDS_ENABLE)s
|
||||||
host = 0.0.0.0
|
host = %(EWS_HPFEEDS_HOST)s
|
||||||
port = 0
|
port = %(EWS_HPFEEDS_PORT)s
|
||||||
channels = 0
|
channels = %(EWS_HPFEEDS_CHANNELS)s
|
||||||
ident = 0
|
ident = %(EWS_HPFEEDS_IDENT)s
|
||||||
secret= 0
|
secret= %(EWS_HPFEEDS_SECRET)s
|
||||||
# path/to/certificate for tls broker - or "false" for non-tls broker
|
# path/to/certificate for tls broker - or "false" for non-tls broker
|
||||||
tlscert = false
|
tlscert = %(EWS_HPFEEDS_TLSCERT)s
|
||||||
# hpfeeds submission format: "ews" (xml) or "json"
|
# hpfeeds submission format: "ews" (xml) or "json"
|
||||||
hpfformat = json
|
hpfformat = %(EWS_HPFEEDS_FORMAT)s
|
||||||
|
|
||||||
[EWSJSON]
|
[EWSJSON]
|
||||||
json = false
|
json = false
|
||||||
|
|
|
@ -12,9 +12,19 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- 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=/opt/ewsposter/ca.pem
|
||||||
|
- EWS_HPFEEDS_FORMAT=json
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/elk_environment
|
- /opt/tpot/etc/compose/elk_environment
|
||||||
image: "dtagdevsec/ewsposter:1903"
|
image: "dtagdevsec/ewsposter:1903"
|
||||||
volumes:
|
volumes:
|
||||||
- /data:/data
|
- /data:/data
|
||||||
- /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
|
- /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
|
||||||
|
|
||||||
|
|
|
@ -170,6 +170,15 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- 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=/opt/ewsposter/ca.pem
|
||||||
|
- EWS_HPFEEDS_FORMAT=json
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/elk_environment
|
- /opt/tpot/etc/compose/elk_environment
|
||||||
image: "dtagdevsec/ewsposter:1903"
|
image: "dtagdevsec/ewsposter:1903"
|
||||||
|
|
|
@ -348,6 +348,15 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- 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=/opt/ewsposter/ca.pem
|
||||||
|
- EWS_HPFEEDS_FORMAT=json
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/elk_environment
|
- /opt/tpot/etc/compose/elk_environment
|
||||||
image: "dtagdevsec/ewsposter:1903"
|
image: "dtagdevsec/ewsposter:1903"
|
||||||
|
|
|
@ -288,6 +288,15 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- 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=/opt/ewsposter/ca.pem
|
||||||
|
- EWS_HPFEEDS_FORMAT=json
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/elk_environment
|
- /opt/tpot/etc/compose/elk_environment
|
||||||
image: "dtagdevsec/ewsposter:1903"
|
image: "dtagdevsec/ewsposter:1903"
|
||||||
|
|
|
@ -514,6 +514,15 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- 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=/opt/ewsposter/ca.pem
|
||||||
|
- EWS_HPFEEDS_FORMAT=json
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/elk_environment
|
- /opt/tpot/etc/compose/elk_environment
|
||||||
image: "dtagdevsec/ewsposter:1903"
|
image: "dtagdevsec/ewsposter:1903"
|
||||||
|
|
|
@ -433,6 +433,15 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- 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=/opt/ewsposter/ca.pem
|
||||||
|
- EWS_HPFEEDS_FORMAT=json
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/elk_environment
|
- /opt/tpot/etc/compose/elk_environment
|
||||||
image: "dtagdevsec/ewsposter:1903"
|
image: "dtagdevsec/ewsposter:1903"
|
||||||
|
|
|
@ -506,6 +506,15 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- 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=/opt/ewsposter/ca.pem
|
||||||
|
- EWS_HPFEEDS_FORMAT=json
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/elk_environment
|
- /opt/tpot/etc/compose/elk_environment
|
||||||
image: "dtagdevsec/ewsposter:1903"
|
image: "dtagdevsec/ewsposter:1903"
|
||||||
|
|
Loading…
Reference in a new issue